This site is in archival mode. A replacement is being developed. In the meantime, please use the PBW2 Forums for community discussions. The replacement software for this site will use a unified account system with PBW2, and any newly created threads will carry over.
Posted: Sun Oct 27, 2013 11:54 am Post subject: Troubles with script modding
I've tryed to change AI_DesignCreation in the middle of my game to make troops larger and more competitive against fighters. After compiling and replacing old scripts in empire folders, AI went wrong. They ceased to built attack fleets, though still build and sent out scouts, patrol and colony ships. Unit production also went wrong, some races build only troops, others - no units at all.
One possible reason is that I've missed version defferences (game was started with mod version 1.19g, and new scripts were modified from sources of 1.19h). However, these versions should be savegame-compatible. What's the matter? Back to top
If you altered much more than DesignCreation, I have my doubts it'll be easy to track down. Are the new csf files reasonably close to the same size as the old ones? Might it be possible not all the elements were included during the compile process? Back to top
Thank you, actually, I've found the problem already. Key test was to try to compile the original source scripts on my machine without any modification. These compiled scripts also behaved wrong, for example, no colony ships were built.
Further investigation led me to the note on the SEV wiki: "Note: On systems that use "," for decimal places, you'll need to switch to "." when compiling files due to a quirk with SE:V's script parser. Otherwise, the compiled scripts will not work correctly. " (http://wiki.spaceempires.net/index.php/AI_and_Script_Editing_%28SEV%29). This was the point. After changing my regional settings to USA everything was right. Back to top
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 vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All logos and trademarks used on this site, all comments and stories posted for reading, all files hosted for download, and all art work hosted for viewing are property of their respective owners; all the rest copyright 2003-2010 Nolan Kelly.
Syndicate news: - Syndicate forums:
Page Generation: 0.17 Seconds