Page 1 of 1

[Fixed][Not an Issue][User Error] Updating

Posted: Sat Nov 30, 2024 10:07 pm
by BraveCaperCat
Hi! When I try to add new features to my mod, nothing happens. I removed some logging and the logging still happens when I load the game up. I am using the correct version of the mod, I checked myself. The only thing that's different since I was last able to add mod features is that I installed github desktop. I don't think that would do anything.

Re: [2.0] Updating

Posted: Sun Dec 01, 2024 6:16 am
by Pi-C
BraveCaperCat wrote: Sat Nov 30, 2024 10:07 pm Hi! When I try to add new features to my mod, nothing happens. I removed some logging and the logging still happens when I load the game up. I am using the correct version of the mod, I checked myself. The only thing that's different since I was last able to add mod features is that I installed github desktop. I don't think that would do anything.
This may seem like a stupid question, but are you sure you're starting the game with the same version of the mod you've edited? If the game was started with the zipped mod, but you've been editing the folder version, your changes wouldn't be applied. Also, changing localization files and changelog, or adding new migration files, won't take effect until you restart the game. Just asking because those things have happened to me more than once, so I know they really can be a thing. :-)

Re: [Fixed][Not an Issue][User Error] Updating

Posted: Sun Dec 01, 2024 11:40 am
by BraveCaperCat
Pi-C wrote: Sun Dec 01, 2024 6:16 am
BraveCaperCat wrote: Sat Nov 30, 2024 10:07 pm Hi! When I try to add new features to my mod, nothing happens. I removed some logging and the logging still happens when I load the game up. I am using the correct version of the mod, I checked myself. The only thing that's different since I was last able to add mod features is that I installed github desktop. I don't think that would do anything.
This may seem like a stupid question, but are you sure you're starting the game with the same version of the mod you've edited? If the game was started with the zipped mod, but you've been editing the folder version, your changes wouldn't be applied. Also, changing localization files and changelog, or adding new migration files, won't take effect until you restart the game. Just asking because those things have happened to me more than once, so I know they really can be a thing. :-)
The save file was started with a zipped copy of the mod - but I removed that when I started developing. Yes, I restarted the game.

Re: [2.0] Updating

Posted: Sun Dec 01, 2024 2:38 pm
by Pi-C
BraveCaperCat wrote: Sun Dec 01, 2024 11:40 am
Pi-C wrote: Sun Dec 01, 2024 6:16 am
BraveCaperCat wrote: Sat Nov 30, 2024 10:07 pm Hi! When I try to add new features to my mod, nothing happens. I removed some logging and the logging still happens when I load the game up.
The save file was started with a zipped copy of the mod - but I removed that when I started developing. Yes, I restarted the game.
If you've removed logging and the logging still happens, the reason must be that for some reason the/an old version is used. Did any dependencies change, perhaps? Is info.json correct?

From personal experience I know that info.json is easy to break (e.g. if there is a comma after the last entry of the "dependencies" field). If info.json isn't parsed correctly, the game would fall back to using the next version (either the zipped mod with the same version as the folder version, or a lower version – first folder, then zipped). Also, check mods/mod-list.json for a "version" field in the entry of your mod. If it is set, the mod will be locked to that version.

Re: [Fixed][Not an Issue][User Error] Updating

Posted: Mon Dec 02, 2024 10:28 am
by BraveCaperCat
Pi-C wrote: Sun Dec 01, 2024 2:38 pm
BraveCaperCat wrote: Sun Dec 01, 2024 11:40 am
Pi-C wrote: Sun Dec 01, 2024 6:16 am
BraveCaperCat wrote: Sat Nov 30, 2024 10:07 pm Hi! When I try to add new features to my mod, nothing happens. I removed some logging and the logging still happens when I load the game up.
The save file was started with a zipped copy of the mod - but I removed that when I started developing. Yes, I restarted the game.
If you've removed logging and the logging still happens, the reason must be that for some reason the/an old version is used. Did any dependencies change, perhaps? Is info.json correct?

From personal experience I know that info.json is easy to break (e.g. if there is a comma after the last entry of the "dependencies" field). If info.json isn't parsed correctly, the game would fall back to using the next version (either the zipped mod with the same version as the folder version, or a lower version – first folder, then zipped). Also, check mods/mod-list.json for a "version" field in the entry of your mod. If it is set, the mod will be locked to that version.
1. I have never touched info.json since technically - it's not my mod, it's Real Celestial Universe - a WIP mod by me, PlexPt and GemMaxweLlX (Github usernames used here)
2. The version of the mod I was working on (My copy) was on 1.0.20 with no problems prior to my edits - the current version is 1.1.2 now.
3. The issue was that github desktop created the repo in a folder inside the mod folder (which would be inside the zip if zipped, I didn't do this though) so I've moved the contents of the inner folder to the outer folder and removed the inner folder. I did have to restart my code editor, but that isn't the end of the world.