Jump to content
Baniseb

Agreed RawMaterial, Profession, ...

6 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

Hi,
I'm new to modding.
I would like to know if there are already agreements for RawMaterial, Profession, ... like for the New Limits.

I also wonder what structure would you recommend for the mod : 
Like ressource folder : /Dialog/StringTable.rsc, /Dialog/Sprite/
Or like exemple folder : /UI/StringTable.rsc, /UI/Sprite/.

Thanks.
Baniseb

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Hi catty-cb,

    Thanks for the answer.

    So to make a mod for new greenhouse building which grow only textie (flax, cotton, hemp), with buid required iron, glass and lumber, and require water and fertilizer for production.
    I need to create my own rawmaterial for lumber, glass (meaning the whole production chaine from sand), water (+ well), modify livestock template (don't have the model files) to add fertilizer, and also for flax, cotton and hemp),... and maybe profession, toolbar, ...

    And how can I being sure that those rawmaterial will be correctly recognize/used by the weaver ?

    Sorry, again with questions.

     

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Hi @Baniseb

    Am about to head off to work, but you are in luck @kid1293 passed onto me a number of files when I was attempting my first mod so I could see how to do things in the banished code .... am pretty certain I have all the code and models for lumber and not sure re glass, but I think once you see the code for lumber that should make adding glass alot easier.

    As for professions, I added my own into the mod I was making, called it a wheelright so should be able to pull out the code for that and the model I made to go with it and pass that on as well.

    Take a look in the banished club as @kid1293 included a number of source files one of which shows you how to add honey into the game so that should help with the other things you want to add to your mod.

    Unable to help with animals as only one banished modder has successfully created new animals ... but those new animals should be available in a number of mods available in the club cos I can remember uploading them from the blackliquid site, which turned out to be a good thing as last time I checked the site had vanished.

    There is also .... not sure where the source code for adding chickens to the game is, as on my phone so can't check but that should help if you are planning on doing something with the animals.

    -catty

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Hi @catty-cb

    I have already added the white chicken, lettuce and fig from the examples.
    And also integrated thee Agreed New Limits.
    It will be easier to have a more common base, to avoid a new modder to overwritte profession, remake all rawmaterials, ...
    Which helps on which value to use.

    Baniseb

    • Yes 1

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    That took a bit longer that I was expecting, have recently replaced computer and still in the process of transferring files across .... including it seems most of my banished files

    So adding a Profession you want to add a folder called Profession into your mod, within that folder you need to create a file called Profession.rcs and in that file you need to add in all the professions your mod is planning on using ... example taken from one of @kid1293 mods, as you can see its referencing your UI folder which hopefully your mod has

    NOTE: The sort priority is just used by your mod so as long as you have a different sort priority for each profession its not going to conflict with anyone else mod

    Quote

    Profession worker
    {
        StringTable _stringTable = "UI/TinyStringTable.rsc";
        SpriteSheet _spriteSheet = "UI/TinySpriteSheet.rsc";

        String _text = "ProfessionWorker";
        String _toolTipText = "ProfessionWorkerTip";
        String _deathText = "ProfessionWorkerDeath";

        int _sortPriority = 201;
        bool _transient = false;

        RandomSelection _deathSelector
        {
            float _years = 10;
            float _population = 500;
        }
    }

    Profession dairyman
    {
        StringTable _stringTable = "UI/TinyStringTable.rsc";
        SpriteSheet _spriteSheet = "UI/TinySpriteSheet.rsc";

        String _text = "ProfessionDairyman";
        String _toolTipText = "ProfessionDairymanTip";
        String _deathText = "ProfessionDairymanDeath";

        int _sortPriority = 1100;
        bool _transient = false;

        RandomSelection _deathSelector
        {
            float _years = 10;
            float _population = 500;
        }
    }

    Profession baker
    {
        StringTable _stringTable = "UI/TinyStringTable.rsc";
        SpriteSheet _spriteSheet = "UI/TinySpriteSheet.rsc";

        String _text = "ProfessionBaker";
        String _toolTipText = "ProfessionBakerTip";
        String _deathText = "ProfessionBakerDeath";

        int _sortPriority = 400;
        bool _transient = false;

        RandomSelection _deathSelector
        {
            float _years = 10;
            float _population = 500;
        }
    }

    Profession beekeeper
    {
        StringTable _stringTable = "UI/TinyStringTable.rsc";
        SpriteSheet _spriteSheet = "UI/TinySpriteSheet.rsc";

        String _text = "ProfessionBeekeeper";
        String _toolTipText = "ProfessionBeekeeperTip";
        String _deathText = "ProfessionBeekeeperDeath";

        int _sortPriority = 650;
        bool _transient = false;

        RandomSelection _deathSelector
        {
            float _years = 10;
            float _population = 500;
        }
    }

    Profession miller
    {
        StringTable _stringTable = "UI/TinyStringTable.rsc";
        SpriteSheet _spriteSheet = "UI/TinySpriteSheet.rsc";

        String _text = "ProfessionMiller";
        String _toolTipText = "ProfessionMillerTip";
        String _deathText = "ProfessionMillerDeath";

        int _sortPriority = 2400;
        bool _transient = false;

        RandomSelection _deathSelector
        {
            float _years = 10;
            float _population = 500;
        }
    }

    Profession butcher
    {
        StringTable _stringTable = "UI/TinyStringTable.rsc";
        SpriteSheet _spriteSheet = "UI/TinySpriteSheet.rsc";

        String _text = "ProfessionButcher";
        String _toolTipText = "ProfessionButcherTip";
        String _deathText = "ProfessionButcherDeath";

        int _sortPriority = 875;
        bool _transient = false;

        RandomSelection _deathSelector
        {
            float _years = 10;
            float _population = 500;
        }
    }

    Am going to send you via PM a dropbox link to three of @kid1293 mods, one showing you the above example, another how to add glass and the last one how to add lumber into your mod, if you use any of Kid's files in your mod can you make sure you acknowledge that when you release your mod.

    -catty

    Share this post


    Link to post
    Share on other sites

    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections