Is character.cpp something that a player has access to or can I only get it changed through a pull request? I think I’ve looked through every folder but haven’t been able to find it, I cant seem to find any .cpp files at all actually. (But I’m not putting past myself that I might of missed it)
And can I tag bionics so you can only install one or the other but not both at the same time?
You need to have a fork of the repository to be able to edit it, the source files are not shipped with the game.
In addition, once you edit it, for your changes to apply you need to recompile the game.
Thanks, I’ll see about the fork now. Do I need a program to compile it? Sorry for the amateur questions but I’m new to this. I’ve got the code I need thanks to mr_sep but I’m at a bit of a loss on what to do with it.
Forking and GitHub: Guide for first time contributors (this should have some good info on GitHub and git).
Thank you very much, I’ll start reading through that and see about getting Visual Studio
Ok, I ended up trying MinGW. I followed the instructions as best I could but some of the files didn’t exactly match what was in the guide, I tried to go with the ones that looked like direct upgrades but it doesn’t seem to work. I’m kind of completely lost on what I’ve messed up
Do you need to recompile if you’re just changing JSON files? If not, how do you test? I’ve forked and cloned it to my desktop, but I’ve only ever used the launcher before so I have no real clue what I’m doing…
You don’t need to compile when changing JSON files.
For testing JSON, just change what you want to change and restart the game. The only reason you’d need to compile for JSON is if you’d never compiled the game in the first place.
The changes will be available immediately, though it depends on what you’re editing. IE: If you change an item’s weight or a creature’s description, for example, it will be immediately apparent. But if you change a location, it won’t change an already explored location, it will only change new ones.
I recommend creating a mod folder just for testing your changes, then making a world that uses that mod, so everything is fresh and organized and that way you’re not changing core files.
EDIT: Make sure what you’re editing is in the same directory as whatever one you’re playing, since you use the launcher but also have downloaded from Github.
I had a VERY hard time compiling for the first time, especially when I was trying to use Visual Studio. I hate VS and Microsoft is the devil.
I would recommend CodeBlocks. It comes with a compiler (that’s 11 compatible) and there’s a CBP (code blocks project) file in the main directory (CataclysmWin.cbp). Basically, all I had to do with CodeBlocks was start CB, open that project file, and hit ‘build’.
Thanks! I’ll try that instead. I was a bit lost on what to do and I think the guide on github might be a bit outdated and/or you need some knowledge about coding to understand it (MinGW was the one I ended up going with).
All this for for like 4 lines of code
“screams triumphantly in binary”
I think I’m actually getting somewhere