Making mods problem :/

  • CCl2F2
    9th Jan 2021 Moderator 0 Permalink

    Ok, so i just finished Building for the first time in this tutorial, what to do next? I want to add some elements, where should I go?

    Edited once by IlikeUssr. Last: 9th Jan 2021
  • Cracker1000
    9th Jan 2021 Member 0 Permalink

    @IlikeUssr (View Post)

    Assuming you are compiling it for windows,

    You need to add your new element in the src/simulation/elements folder.

    The files look like FIRE.cpp, WATR.cpp etc.

    Just add your new element file there.

     

     Adding new elements also requires you to define their IDs in meson.build file located in (src/simulation/elements/meson.build)

    Just give it a number higher than the last one, for eg. 191

    (As 190 is already assigned for ROCK.)

     

    Once you are done, run the ninja command. 

     

    (I would suggest reading the tutorial for adding elements on wiki first, it definitely helps with various functions and properties that are used by elements.)

    Hope this helps.

    Edited once by Cracker1000. Last: 9th Jan 2021
  • CCl2F2
    9th Jan 2021 Moderator 0 Permalink

    Hm, lemme try

     

     

     

    Oh fu*k 

    I just found out that i wrote "SC_SOLID" while it must be "SC_SOLIDS"

    lma0

    YEE it works!!! I just added copper into my game!

    Thanks @Cracker1000 for help

    Edited 2 times by IlikeUssr. Last: 9th Jan 2021