Editing, modding...cheating?

Is Choice of Rebels editable? I have tried repeatedly on Firefox to change my wealth but it always results in some error with JSON.parse. Can anybody help me?

Choicescript games are “compiled” into JSON “object” files which are a little harder to read, but run more efficiently then straight text files. New lines are replaced by commas in a JSON file, and the line number of every label present in the file is listed at the end of the file. So to add a line you’ll need to add a comma along with your double quote-enclosed text, but be warned that If you add a line to the file it will throw the line numbers of all the labels that follow off by the number of lines you added. So if you use a text editor to add 1 line somewhere in between the 4th and 5th label, you’ll need to add 1 to the line numbers listed at the end of the file for every label starting with the the 5th onward.

BTW, if you can find a point in the code where the wealth variable is already being adjusted, you can greatly increase it easily enough by just changing the number without adding new lines and worrying about adjusting JSON’s internal book-keeping. That’s quite a bit easier for someone who is unfamiliar with coding.

If I recall correctly, you can also move all of the JSON files to another folder which will cause choicescript to open up the original text files instead which are much easier to edit. It’s been several years since I’ve played with this however, so I may be forgetting something important about doing it this way.


I’m such a dork sometimes I have overlooked the simple solution. Here I was using tools to turn the .txt into .json and then hoping the game would still run and tweaking it until it did. :crying_cat_face:


I’m really inexperienced with coding and was wondering if you can perhaps explain more in-depth for me. I am uncertain on how to access the JSON files for the games on a browser or how to add lines. I usually edit a game by editing the local storage for the game. If this is to much to explain can you perhaps offer advice on what to learn about to give me a better grasp on how to edit the games.

Can you tell me how?


So I recently tried using your method for a Steam game but found myself stumped by the following error: “ERROR: ENOENT: no such file or directory, open ‘app.asar’”
I looked into it and this arises from the folder you’re trying to extract to/from not having an app.asar.unpacked file, but this clearly exists in the files for the game I’m trying to edit, Heroes of Myth. There’s no further advice online and this has left me quite irritated, so I was wondering if you had any advice?

Best regards, Eldrad.

You could try this plugin for 7zip http://www.tc4shell.com/en/7zip/asar/

Hey! Thanks for the quick reply.

I actually already downloaded it but I’m having some trouble with the installation. It asks that you place it in the 7-Zip installation folder but there doesn’t seem to be such a thing as far as I can tell, if you know the file path for 7-Zip I’d be much obliged as I can’t seem to find any information for it anywhere.

Well, on my PC it’s in C:\Program Files\7-Zip then I make a folder in there called Formats and drop the 64bit dll and restart 7zip.

1 Like

Oh damn, I clearly need to edit my own personal perception stat, it must be at 5% or something at this point, ha. Thank you very much.