Log in

View Full Version : Campaign script



edyzmedieval
04-16-2006, 22:26
This is a bit on the edge of EB. It really puzzled me.
Here's my question:

Why is every mod doing a single script for their campaign?

For those who played EB, the single script makes the game very slow and very resource draining. Why only 1? Why not for all the factions?

Please enlighten me. :juggle2:

Epistolary Richard
04-16-2006, 22:39
Discussion of existing Mods - and questions about them - live in Mod Discussion. Moved from Modding Questions.

As to your specific questions, I can't speak for the EB team but I can say the following:
- A campaign script is the bit referenced at the end of descr_strat which terminates almost immediately at the start of the game - while that is relatively big it is dwarfed by the size of the background script - which is what players have to activate.

- There is a huge amount of additional content within the EB mod and there are a variety of factors that means it runs slower than regular RTW - the background script does contribute but it is no means the only contributing factor.

- As for why one single background script and not one for each faction - I would imagine that during development it's far easier to have a single script file to update - rather than having to make the same changes to 20 different files. There would also be a considerable amount of duplication between them, for example the multiple turns script would have to be repeated in each file - so while there would be a size reduction it does not necessarily equate that a factional system would be a 1/20th of the size of the one for all factions.

But it is a good suggestion for EB and for other mods using a background script. Perhaps it will be something the EB team will incorporate in their final release because - as I say - it would make development much slower.

edyzmedieval
04-17-2006, 11:06
Thanks ER for the response. :juggle2:

Stuie
04-20-2006, 15:57
This is a bit on the edge of EB. It really puzzled me.
Here's my question:

Why is every mod doing a single script for their campaign?

For those who played EB, the single script makes the game very slow and very resource draining. Why only 1? Why not for all the factions?

Please enlighten me. :juggle2:

Actually... TFT uses multiple scripts. One "main" script for each campaign, and then "sub scripts" for specific functions within the campaigns. However, our scripts are nowhere's near the size of EB's, so even if it were all in one it probably wouldn't slow the game down. I just find it easier to manage the scripts by splitting them up.