Game not respecting some mod file changes

I’m sure there’s something I’m missing somewhere, but I cannot figure it out.

I’ve made changes to add some “looks_like” bits to vehicle parts, they don’t change. I’ve made replacements to damage types “fire” to “heat” to reflect recent changes, due to various mods not being up to date with that.

I have those mods in cdda/mods, and the rest of the mods that come with the game in the cdda/data/mods folder.

I’ve done a find and replace in all files for the damage type strings to remove “fire” and replace with “heat” and replace “bio” with “biological”. Now when I search the files there are NO occurences of the old stuff, but the game still hangs up while loading up on the same mod it’s always been doing it (Vamp Stuff / Vamp Stuff + Arcana), and I cannot figure out why. Same error message.

13:22:24.719 ERROR : src/main_menu.cpp:1146 [bool main_menu::load_character_tab(bool)] Error: Invalid enum string 'fire' for '11damage_type'

Obviously with these two types of changes something is wrong, but I don’t know what. I am very frustrated and just want to update so I can deploy fish traps again! Argh!

Try searching for "fire" in all json files in CDDA folder.

If I remember right, there are actually three places the game looks for installed mods (given that you don’t use the launcher, which might add more locations):
./mods, ./data/mods and ./save/[WORLD_NAME]/mods.

I don’t know which one’s overwrite the other if there are multiple instances of a single mod id (if that’s even allowed to happen), but my guess is that it will overwrite it in the order of depth (basically as listed above; those in the save file will overwrite all others, those in the data folder will overwrite the ones in the base folder).
Check all locations, just to make sure you’ve got all of them.
And always exit the game fully, as sometimes the mods get “stuck”.

Yeah I have the same issue and I think it has something to do with Arcana

I update the mod and the build to the newest version and it is fixed for me

Sigh, there was a single line…in one obscure spot, where the formatting was slightly wrong, and it was missed. Thanks facepalm :sweat: I really should setup regex scripts for this stuff. Still doesn’t help with that damned ugly tile that won’t be a tile! But thank you, got my game running again!

I thought you were able to fix that kitchen unit tile thing with a reinstall… Is it back? Or is it something new?

Glad you could solve at least that issue, though.

Sadly, yes it is back. The reinstall worked … till I updated. And then it of course was reverted. So I made the change again, and it iddn’t work. Wiped the mods and did it again like last time, but didn’t fix it this time. -._ I’ve even add the looks_like tag to the item that you use to make it, and a random mod I don’t even use that had a copy-from tag from the survivor station.

Do you have multiple cataclysm dda folders on your computer? If you edit with notepad++ or similar, it might saves it to the wrong folder…
After making the change and starting the game… does the file revert back (I mean apart from updates)? Is the change still there?

Currently no, just one install. And after making the change the file doesn’t revert back, the change is still there. That’s what’s mind boggling about it. It shouldn’t be possible for it to just pretend the looks_like tag isn’t in the JSON.

Alright… Let’s change things up a bit before I request a lot of data and do a lot of testing.

The legacy tileset does have a support for that tile, but I guess you don’t want to go back to that version… That’s fine…

Instead of modifying the mod, let’s create a new one (if that doesn’t work, theres a lot more complex way to add this one in, so let’s hope this one works)…

First close the game and make a backup of your save. Then…

  • Create a new mod with this file…:

modinfo.json:

[
  {
    "type": "MOD_INFO",
    "id": "uglyampersandbegone",
    "name": "Tileset addition",
    "authors": [ "You" ],
    "description": "Replaces an ugly ampersand with a less ugly sink.",
    "category": "graphical",
    "dependencies": [ "dda", "Cata++" ]
  },
  {
    "id": "surv_station_t",
    "copy-from": "surv_station_t",
    "type": "vehicle_part",
    "name": "Survivor's Station Unit",
    "looks_like": "craft_rig"
  }
]
  • Add the newly generated mod id to your world mod list by editing the mods.json file in your save game folder.
  • Start the game and load up your world.

If this doesn’t work, we could try to add the vehicle part to the tileset ourself, but that’s going to be a lot more work than this one.