Logo Platform
logo amplifiers simplified

Modding Help

Reply
Copied to clipboard!
10 years ago
Nov 8, 2014, 10:43:24 PM
First, enjoying what could become a "classic". Kudos to those in developing this fine product. I need some expert help, however.

I have tried to implement a small tweak into my game play by increasing the number of Militia in a city.

Changing the - "MaximumUnitSlotCount" Value from 1 to 4 gives me 5 starting Miltia. I like that. This works fine if I simply switch out files in the SIMULATION folder. I would, however, prefer to create a mod to use through the "Add Mod" mechanics.

My attempt at this has been...not very successful.



Here is my - "root" XML file: The mod folder is called More Milita & in that folder I place the Simulation folder which has the modded - SimulationDescriptors[Garrison] - file as well as my "root" XML file. All of which I place in the "Community" folder where other mods are working just fine.











eddieballgame

none

More Militia

Cities now start with 5 Militia instead of 2











Simulation/SimulationDescriptors[Garrison].xml

Simulation/SimulationDescriptors[Garrison]
  • .xml

















    Any help would be much appreciated...thank you.
  • 0Send private message
    10 years ago
    Nov 9, 2014, 1:19:13 AM
    Welcome.



    I immediately see an issue with the following line (there's a space):

    [code]Amplitude.Unity.Simulation.SimulationDes criptors[Garrison], Assembly-CSharp-firstpass">[/code]

    but that could just be a bad paste.



    Side-note, the forums have a "[code]x[/code]" tag (without the spaces) for displaying code in a fixed-width font and without wrapping lines, useful for viewing code, like in the example above.



    1. The best way to do this is to download ModdingReference.rar. (If you're using internet explorer, you'll have to rename attachment.php to ModdingReference.rar before you can open it)

    2. Extract it to your folder called "More Militia" - it is a single XML file, and rename it to whatever you wish to call it e.g. MoreMilitia.xml (whether or not it works, I don't think you should use spaces). "More Militia" will also contain the "Simulation" folder, which has your modified SimulationDescriptors[Garrison].xml file.

    So your folder/file structure will look like this:

    [code]

    My Documents\

    >Endless Legend\

    >>Community\

    >>>More Militia\

    >>>>MoreMilitia.xml

    >>>>Simulation\

    >>>>>SimulationDescriptors[Garrison].xml

    [/code]

    3. Open your new MoreMilitia.xml file, and change only these seven lines:

    [code]

    MoreMilitia" Type="Conversion">

    Your tags here (doesn't currently work)

    eddieballgame



    <b>More Militia</b>

    Cities now start with 5 Militia instead of 2

    Your release notes here

    [/code]

    Note: This must match the filename of the "root" XML file exactly.

    Note: You MUST remove the "none" from Homepage, because if it is not a URL, it will break.



    Don't worry about the other lines in the "root" file - there is no reason to change or remove them. Even if you don't make any changes to other XML files, you don't need to remove the non-relevant lines because the game doesn't seem to care. If there are no replacements/amendments, it will default to the original files.



    Note that you can't use more than one mod at once - the only way to do so is to merge them. Simple enough, and the rules are simple, but if you need help with that just let us know. The reason I advise that you use the "root" template is because it allows you to merge them trivially, and if you do decide to change more files, you can change them without changing the "root" XML file.
    0Send private message
    10 years ago
    Nov 9, 2014, 9:39:52 AM
    Thank you very much for your help. Thanks to you I was able to get it to work. There was a lot of entries in the Modding Reference XML file that I did not need so I deleted them. Thank you, again.

    Here is my new root XML file which works: One thing I noticed was the "" entry which I did not have originally.













    eddieballgame



    More_Militia

    Cities now start with 5 Militia instead of 2











    Simulation/SimulationDescriptors.xml

    Simulation/SimulationDescriptors
  • .xml







    Registry.xml

    AI/Registry.xml









  • 0Send private message
    10 years ago
    Nov 9, 2014, 10:51:56 AM
    Glad u made it smiley: smile

    I just want to add my 2 cents :

    One error was the :

    [CODE]Simulation/SimulationDescriptors[Garrison]
  • .xml
  • [/CODE]



    If u have a lot of altered files like :

    [CODE]Simulation/SimulationDescriptors[Class].xml

    Simulation/SimulationDescriptors[Stuff].xml

    Simulation/SimulationDescriptors[LolCatz].xml[/CODE]

    And of course :

    [CODE]Simulation/SimulationDescriptors[Garrison].xml[/CODE]



    The " * " is there for that :

    [CODE]Simulation/SimulationDescriptors
  • .xml
  • [/CODE]
    0Send private message
    10 years ago
    Nov 9, 2014, 1:28:55 PM
    eddieballgame wrote:
    Thank you very much for your help. Thanks to you I was able to get it to work.



    Glad I could help.



    I still advise sticking to the existing entries in the Modding Reference XML, because it is always sure to work, but as long as it works, that's what matters.
    0Send private message
    0Send private message
    ?

    Click here to login

    Reply
    Comment