I think the time has come to report some real good news about the Apolyton Edition (and to let you know I am not only crashing the playtest): In general, the scenario structure now works as originally intended / advertised. And this makes modding a lot easier:
As far as my testing goes, I think I am able to say that all modified database files are properly loaded and used by the game and all SLIC is working as usual (with the usual unpredictable outcome, of course ). All sprites and graphics (including TileFile) are properly loaded and used, too.
The only remaining issue is that the soundfiles in the scenario folder (e.g. \scen0000\default\sound) are simply ignored. If you put them into \ctp2_data\default\sound they are used.
Generally I would consider the Apolyton Edition playtest/beta version being more stable and much faster than the 1.11 version (I am testing my mod with a lot of SLIC on 140 x 280 ultragigantic maps and in the -- rare -- moments when my SLIC is clean the game runs really fast).
As for clean SLIC: The Apolyton Edition, as I have already mentioned in the playtest thread, is a bit more demanding -- as far as I could notice specially concerning return values of functions/event handlers. It seems to be essential to evaluate the returned values of int-functions -- changing all function calls like e.g.
to
seemed to solve a lot of problems I had.
Similarily it seems to be a good idea in pre-EventHandlers that
also to
if the conditions for stopping the event are not met.
Anyway making a mod fit for CTP2 AE is a good opportunity for cleaning up / overhauling the code .
So to resume this initial post: I want to encourage modders to start converting their Mods to the Apolyton Edition Scenario Structure and to report their experiences in this thread.
- It's easier to keep the overview since you only need to put the files into the scenario folder which actually contain modifications.
- It's easier to use different units / tiles / graphics since you may put into the scenario folder whatever you need without the risk of overwriting original files or files that belong to other mods.
- It's easier to test and maintain different versions of a mod: you just need to copy the entire scenario folder and you have a new sub-scenario available.
- And of course it's much easier for the player to select and play your mod using an in-game menu without the hassle of installing a separate program and carefully copying files into the default data folder (with a good chance of screwing up something ).
As far as my testing goes, I think I am able to say that all modified database files are properly loaded and used by the game and all SLIC is working as usual (with the usual unpredictable outcome, of course ). All sprites and graphics (including TileFile) are properly loaded and used, too.
The only remaining issue is that the soundfiles in the scenario folder (e.g. \scen0000\default\sound) are simply ignored. If you put them into \ctp2_data\default\sound they are used.
Generally I would consider the Apolyton Edition playtest/beta version being more stable and much faster than the 1.11 version (I am testing my mod with a lot of SLIC on 140 x 280 ultragigantic maps and in the -- rare -- moments when my SLIC is clean the game runs really fast).
As for clean SLIC: The Apolyton Edition, as I have already mentioned in the playtest thread, is a bit more demanding -- as far as I could notice specially concerning return values of functions/event handlers. It seems to be essential to evaluate the returned values of int-functions -- changing all function calls like e.g.
Code:
GetCityByIndex(player, index, cityvar); // do everything else
Code:
if(GetCityByIndex(player, index, cityvar)) { // do everything else }
Similarily it seems to be a good idea in pre-EventHandlers that
Code:
return STOP;
Code:
return CONTINUE;
Anyway making a mod fit for CTP2 AE is a good opportunity for cleaning up / overhauling the code .
So to resume this initial post: I want to encourage modders to start converting their Mods to the Apolyton Edition Scenario Structure and to report their experiences in this thread.
Comment