Goto https://www.stucuk.netGoto https://www.atlanticaonlinewiki.comGoto https://www.game-requirements.com


Menu


It is currently Wed Oct 18, 2017 5:30 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Respawning code
PostPosted: Sun Aug 24, 2014 8:33 pm 
Offline
Moderator
Moderator
User avatar

Joined: Mon Mar 17, 2008 6:03 pm
Posts: 1129
Location: Denmark
All mission code would probably be better.

_________________
I have an if that has an else, but that if has another if with an else inside... My question is... If an if has an else, if there is more than one line in that if, should it have a begin and an end?


Top
 Profile  
 
 Post subject: Re: Respawning code
PostPosted: Tue Aug 26, 2014 7:31 pm 
Offline
Soldier level 2
Soldier level 2
User avatar

Joined: Tue Sep 28, 2010 11:30 pm
Posts: 110
Location: Kildare, Ireland
I don't have access to the code at the moment sadly but I'm pretty sure the main module is the same one used in the Throwback map 'oldest terror'.


Top
 Profile  
 
 Post subject: Re: Respawning code
PostPosted: Wed Aug 27, 2014 1:16 pm 
Offline
Moderator
Moderator
User avatar

Joined: Mon Mar 17, 2008 6:03 pm
Posts: 1129
Location: Denmark
I would prefer all code for the mission. It's not easy to find bugs when looking at modules in isolation. I can wait until you get access to the source.

_________________
I have an if that has an else, but that if has another if with an else inside... My question is... If an if has an else, if there is more than one line in that if, should it have a begin and an end?


Top
 Profile  
 
 Post subject: Re: Respawning code
PostPosted: Wed Aug 27, 2014 5:59 pm 
Offline
Soldier level 2
Soldier level 2
User avatar

Joined: Tue Sep 28, 2010 11:30 pm
Posts: 110
Location: Kildare, Ireland
I just have two of my maps compressed here, they are on the ru13a and ar15 maps.
'Showdown' is the code that i would use for nearly all of my maps but i just added the other one because it deals with maps which have the alliance feature aswel as the aftefacts.

Thanks again.


Attachments:
Heike's Maps.rar [899.1 KiB]
Downloaded 65 times


Last edited by Heike Steyer on Fri Aug 29, 2014 2:49 pm, edited 1 time in total.
Top
 Profile  
 
 Post subject: Re: Respawning code
PostPosted: Wed Aug 27, 2014 7:21 pm 
Offline
Moderator
Moderator
User avatar

Joined: Mon Mar 17, 2008 6:03 pm
Posts: 1129
Location: Denmark
Goodie. I will see what I can find. Tomorrow I think I have the time.

_________________
I have an if that has an else, but that if has another if with an else inside... My question is... If an if has an else, if there is more than one line in that if, should it have a begin and an end?


Top
 Profile  
 
 Post subject: Re: Respawning code
PostPosted: Wed Aug 27, 2014 8:24 pm 
Offline
Soldier level 2
Soldier level 2
User avatar

Joined: Tue Sep 28, 2010 11:30 pm
Posts: 110
Location: Kildare, Ireland
Okay thank you very much mcbenn, much appreciated :)


Top
 Profile  
 
 Post subject: Re: Respawning code
PostPosted: Fri Aug 29, 2014 2:51 pm 
Offline
Moderator
Moderator
User avatar

Joined: Mon Mar 17, 2008 6:03 pm
Posts: 1129
Location: Denmark
Here you go. I only modified Showdown. You can copy the code to the other missions.
Implemented the respawning of desert warriors so there is a 50% chance a character spawns as a desert warrior if the side doesn't have one and did have one at the beginning of the game (defined by "def_warrior" - that variable was already there!). I also moved the functionality of function "comm" in module "Main" to function "prepare_people" since "comm" would not always work as intended (make the commander a desert warrior).
Upon killing 10 humans you receive a human from a different nation (you can adjust this yourself ofc). The kill counter is also displayed along with the timer. It needs an identifier in counter.wri - you can do that yourself (I included comments in module "Respawning" to show where to substitute).
I noticed the variable "Side_IsSpec" is never initialized and caused some reading beyond end of list errors. I initialized it in function "read_multiplayer_and_game_parameters" (module "Main") the same way as multiplayer mission "Alien Base" does it.


Attachments:
Showdown.rar [297.26 KiB]
Downloaded 69 times

_________________
I have an if that has an else, but that if has another if with an else inside... My question is... If an if has an else, if there is more than one line in that if, should it have a begin and an end?
Top
 Profile  
 
 Post subject: Re: Respawning code
PostPosted: Fri Aug 29, 2014 3:11 pm 
Offline
Soldier level 2
Soldier level 2
User avatar

Joined: Tue Sep 28, 2010 11:30 pm
Posts: 110
Location: Kildare, Ireland
Thanks a million! This will be so so helpful :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Original War is an RTS / RPG game by Altar Games
Original War Support is not part of Altar Games but is maintaining Original War for Altar Games

Privacy Policy