Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Need help cant change background on troops

A topic by Pepperkid222 created Jul 01, 2020 Views: 753 Replies: 16
Viewing posts 1 to 8
(2 edits)

I tried to change  the background with the command on readme.md but this is what i get

Developer (1 edit)

So look in your configuration file, and look under the object named "configurations". You can pass any of the top level names there to refer to that configuration. For example, if the config looks like: ```

{
    "layers": [
        {
            "image": "000",
            "image_mode": "stretched",
            "palette_shift": 0
        },
        {
            "image": "009",
            "image_mode": "tiled",
            "effect": {
                "type": "horizontal_interlaced",
                "amplitude": 256,
                "frequency": 3
            },
            "palette_shift": 2,
            "scroll": [0, 1]
        }
    ],
    "configurations": {
        "alta": [1, 0],
        "default": {
            "layers": [1, 0],
            "speed": 2
        }
    }
}

```

You could call: `JM_EBB.setConfiguration("alta")` or `JM_EBB.setConfiguration("default")`

(1 edit)

i did what you said but it didn't work it kept showing the same error i'm getting so i might switch to troop tagging

but i don't know if i'm even doing it right

I get the feeling that it only working the config file being used at the plugin settings right?, or its something else?

Developer

You would put either [EBB: alta] or [EBB: default] if you had the configuration as I showed earlier. Can I see your plugin settings?

Well here you go. 

Developer

Is "normal" the name of a valid configuration in ebb/jm_ebb_normalbattle.hjson?

yes i changed it. i typed in [EBB: normal] and [EBB: default] and it works fine but the other configs filenames won't so i suspect that it only work's for the config file being used in the settings. i could be wrong though.

Developer

Yes, the only valid configurations that can be used are those specified in the configuration file.

Meaning i can't change the background without having to mess with the plugin settings?

Developer

Changing the background in a battle (or for the next battle) is a script call (or plugin command). Adding new backgrounds and adjust existing backgrounds is a configuration change, yes.

I think i know why, it's not working because config files i copied and pasted aren't being used in the plugin setting meaning troop tagging is only valid to that one config file at the settings.  correct me if i'm wrong.

So, it only works with the example file?

nvm, managed to get it working just after writing this :D Hope in the future we get to change the colors of the pattern.

Developer

@Kireus you can change the colors of the pattern. Just change the palette file.

well now i know how config names work but how do i change the pattern?

Developer

Look at the README for more details on the configuration format and details, but basically they are simply greyscale images.