![]() ![]() All good programmers know that counting from zero is the proper way to do it, unlike what they teach you in kindergarten. We start with the opening turn in the scenario, Turn 0. I'm using the tutorial_breakin scenario as an example. If you aren't sure what bug I'm talking about and are curious about what it looks like, this is a little picture book story of the problem. I've included ConfigEdit changes for two scenarios from the game - tutorial_breakin and generic_breakin - that are hit by this bug to show what might need changing in your scenario configurations. There may be some changes you have to make to your scenario configurations as well. You may have to do more than copy this code into your mod to fix the bug. The ModManager code is there for the release demo. I have modified the method that processes ConfigEdit files so that it can handle deep paths and more value types (like enums) as well as expand YAML tags to objects but there's a subtle difference in behavior from the stock ModManager that may cause you problems. Do not copy the code related to the ModManager. This is easiest if you already have a library mod but if not, create a library for your mod. ![]() The best way to use this mod is to copy the code into your own mod. This time you will see the scenario exit with Victory right after waiting 3 turns in the circle. After you install the example mod from the release, run through the above steps again. I have put together a release so you can see the fix in action. You will have to wait this turn and the next turn before the scenario will end in Victory. The circle will have disappeared showing that you have completed that objective.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |