The Banner Saga

The Banner Saga

Ver estadísticas:
Vyndicu 29 DIC 2014 a las 11:38
Need help with JSON editor (Resolved)
I keep trying to use JSON editor but it seem difficult to get a "global" variable to be changed from the default value to something else.

I am trying to edit the file saga1.json.z and put the mod in K directory (the main game is also in K: directory). I am not sure if the mod actually get read by the main game using "-mods xyz -mod_root K://blah/blah/blah/TBC/mod/MOD_files_folder" in the command line.

I manage to compile a new mod I think. I am not even sure that the value I want changed actually got changed and it is confusing with the JSON editor provided by the devs.

{ "max": 10, "min": -10, "name": "weather_wind", "per_caravan": true, "start": 1, "type": "DECIMAL" }, { "name": "tryggviunlocked" }, { "name": "tryggvidied" }, { "name": "ekkilldied" },

I add this line as per unlocking thread over on the dev forum.

{ "max": 10, "min": -10, "name": "weather_wind", "per_caravan": true, "start": 1, "type": "DECIMAL" }, { "name": "tryggviunlocked",
"start": 1
}, { "name": "tryggvidied" }, { "name": "ekkilldied" },
Última edición por Vyndicu; 22 ENE 2015 a las 12:36
< >
Mostrando 1-9 de 9 comentarios
Aleonymous 29 DIC 2014 a las 12:04 
Why would you wanna put the modded saga1.json.z file anywhere? Just edit it (it will automatically create a .orig backup file) and leave it where it is!
Vyndicu 29 DIC 2014 a las 12:09 
I am creating a mod so it will be unlikely to be overwrite by Steam for any reason like verification and re-download.
Aleonymous 29 DIC 2014 a las 12:19 
Honestly, I haven't tried that myself... With Zeno being in an unfinished state, I wouldn't use it yet. Especially if you're only trying to mod simple stuff (like that edit, in only one JSON file).
Vyndicu 29 DIC 2014 a las 12:20 
Publicado originalmente por Aleonymous:
Honestly, I haven't tried that myself... With Zeno being in an unfinished state, I wouldn't use it yet. Especially if you're only trying to mod simple stuff (like that edit, in only one JSON file).

Hmm I suppose I could go for a true json editor and just keep a back up of the edited file.

Know of any good json editor?
Aleonymous 29 DIC 2014 a las 12:24 
There's plenty, I am sure. The problem is the .z compression used by TBS, that is obviously non-standard. Me, I only used the mini-editor made by John Watson (Stoic's lead/only programmer):

https://github.com/jwatson000/tbsdec/raw/master/TBS_Decompiler.air

Just point it to a .JSON.Z file, and you got a basic text editor afterwards. It automatically creates the .ORIG backup I mentioned as well. Only problem is the no "Find" feature. Also, be careful by copy-pasting things back-and-for (to your own custom text-editor, e.g. npp) when there's non-unicode characters around!
Vyndicu 29 DIC 2014 a las 12:25 
Yes I am using notepad++ for this. At least for the plain text format anyway.
Aleonymous 29 DIC 2014 a las 12:33 
Good luck with this AIR mini-editor! Report your progress :)

I tried using Zeno as well, but it generated so much "garbage" (redundant files etc) that I didn't find it worth it, for the scale of mods I was doing. For example, editing just a couple of JSON files, produced a "packaged" mod of several hundred MBs! So, I abandoned it, and "manually" kept track of everything using that AIR editor and notes.
Vyndicu 22 ENE 2015 a las 12:01 
It took me a long time to get around to this. Life keep interrupting!

Anyway first off I used the info in this thread.

http://stoicstudio.com/forum/showthread.php?3160-Unlock-Tryggvi

I am going to quote some pertinent info here.

Steam > Library > R-Click on TBS icon > Properties > Set Launch Options > --developer
CTRL SHIFT ~ ( to get into dev mode to verify the variable did take)

Most of the other info I used is already present in First post so I won't repeat.

Once you are done with the JSON modifying. Start the game either via modified exe on desktop or via steam library. Use CTRL SHIFT ~ to open the console.

Now in the console type everything, including a single space between each word, in the code box following this paragraph. You should see a line "Tryggniunlocked 1" in the long list of values if it did work. Then of course back up the JSON somehow.

saga vars global

Then afterward turn off the dev console, for those who don't want to cheat or have dev console on, since that was only used to "confirm" the value did indeed change.
Última edición por Vyndicu; 22 ENE 2015 a las 12:02
Aleonymous 22 ENE 2015 a las 12:19 
Thanks for wrapping this up! :Arberrang:
< >
Mostrando 1-9 de 9 comentarios
Por página: 1530 50

Publicado el: 29 DIC 2014 a las 11:38
Mensajes: 9