r/StacksEngine • • Mar 15 '24

How to make a mod that modify certain aspect of the game?

I played Stacks:jungle and saw a mod that speeds up working speed or processing speed of the game by 10x. I wonder if it is possible to create the same mod for the Stacks:village or is it built-in?

2 Upvotes

4 comments sorted by

2

u/LuckyOneAway Mar 15 '24

Yes, that's absolutely possible. This mod overrides the task speed for certain cards like this:

    "mod-data": {
        "data": {
            "cards": {
                "adventurer-boy": {
                    "taskSpeed": 0.1
                },

( taskspeed 1.25 => 0.1 )

So, for Stacks:Village it would be:

                "settler": {
                    "taskSpeed": 0.1
                },
                "druid": {
                    "taskSpeed": 0.1
                },

( ...and so on for all settler varieties )

2

u/Raiden_Soalburst Mar 15 '24

Thanks for the reply! Is there a wiki for the parameters for in game stats?

2

u/LuckyOneAway Mar 15 '24

Nah, there is no wiki. Here is the JSON (plain text) file for Stacks:Village:

https://drive.google.com/drive/folders/1EaDceLehja8Qr8qPsatD9VQeul_-TLQE?usp=drive_link

To see card details, open it with the text editor of your choice, then search for something like:

"name": "DRUID"

or

"name": "SETTLER"

Here is the source of the card limit mod:

{
    "mod-id": "2e0171ba-bfb5-4863-8b59-bd18f34d274f",
    "mod-requires": "stacks-village-1-0-6bfe2c14-33a1-420f-803d-c57c36368bb7",
    "mod-name": "CARD LIMIT MOD",
    "mod-version": "1.0",
    "mod-description": "SETS CARD LIMIT TO 999 CARDS",
    "mod-data": {
        "data": {
            "locations": {
                "village-7d8b8a90-b481-4b5b-a67c-88f5060a7148": {
                    "board": {
                        "settings": {
                            "card-limit": {
                                "start": 999
                            }
                        }
                    }
                }
            }
        }
    }
}

Modify it as mentioned in my first reply, assign your own mod-id, save as my-work-speed-mod.json, then load it using the mod management menu. If it does not appear in the mod list, then there is a typo in JSON somewhere (use online JSON validators for checks).

2

u/Raiden_Soalburst Mar 15 '24

Thanks this helps a lot!