codengine / SOTFEdit

A Sons of The Forest Savegame Editor
MIT License
104 stars 6 forks source link

Wrong placed data.json prevents starting #5

Closed Ravo92 closed 1 year ago

Ravo92 commented 1 year ago

data.json file was in root directory of SOFTEdit instead of data\data.json. See log file. logs-2023-03-26.txt

codengine commented 1 year ago

This is strange. I just downloaded the zip file from github and it does indeed have the data.json at the right place: grafik

Is it possible that your path is just too long? Windows has a certain limit. Could you try to download it from github and decompress it to a different location?

Ravo92 commented 1 year ago

Its more like.. im using the "r2modman-3.1.39" where i did download your mod. So, maybe its wrong on their side?

codengine commented 1 year ago

Hm it's possible. So does the version from github work for you? Because I've basically uploaded the same ZIP file everywhere. My best guess is that the pathname is just too long

codengine commented 1 year ago

I think I found something: https://github.com/ebkr/r2modmanPlus/issues/944

So it is indeed their way of handling zip files. I'll have a look tomorrow at that I can do.

Ravo92 commented 1 year ago

Yes, im 100% certain its because of the flat file hierachy.

codengine commented 1 year ago

BTW. This is not a BepinEx Plugin but rather a standalone application. Does that make any difference in regards to your report? Is it even the right way to install it like the way you did?

Ravo92 commented 1 year ago

Hey, i think its up to you if installing the tool via modmanPlus is the right way anyway. I installed it via the program and saw its a .net exe in appdata which cant be started as a real "mod" via game. So i executed your exe after install just to see the file hierarchy for the json is wrong and i corrected it manually anyway. I think this issue can be solved if you make it either flat or dismiss it from this mod tool. I just think about other people who could potentionally have the same problem and cant read .net exceptions.

codengine commented 1 year ago

To be honest, extracting zip archives to a flat structure because of legacy reasons doesn't justify that I change the whole application structure. In my opinion it's a bug in r2modman

I'll try to find another way.

Ravo92 commented 1 year ago

Understandable. For now ill use the "standalone" tool directly from your github.

codengine commented 1 year ago

I raised a feature request on their github: https://github.com/ebkr/r2modmanPlus/issues/997

Let's see what they respond