lunarcleint / Wednesdays-Infidelity

The GitHub repository for Wednesday's Infidelity Part 2.
Apache License 2.0
43 stars 74 forks source link

"Invalid char 97 at position 0" #16

Open BudDeuce opened 1 year ago

BudDeuce commented 1 year ago

Describe your bug here.

I boot up the game from the default directory, wait for it to load, go into freeplay, select the top week, and attempt to play "Versiculus Iratus." And that is when I get the error message.

I have looked at the .json files of the characters and backgrounds involved and cannot find any problems, I have also run JSON validators online, and they say that the JSON contents are acceptable.

EDIT: I have run every other song and most of the others work fine. I will make a separate issue on another song once this issue is resolved.

Command Prompt/Terminal logs (if existing)

Compiling group: haxe
cl.exe -Iinclude -IC:/HaxeToolkit/haxe/lib/discord_rpc/git/linc/ -I C:/HaxeToolkit/haxe/lib/hxCodec/2,5,1/lib/vlc/include/ -I C:/HaxeToolkit/haxe/lib/hxCodec/2,5,1/lib/vlc/src/ -nologo /WX- /fp:precise -DHX_WINDOWS -GR -O2(optim-std) -Zi(debug) -FdC:\Users\ge_ir\Downloads\Wednesdays-Infidelity-master\Wednesdays-Infidelity-master\export\release\windows\obj\obj/msvc1964-nc/vc.pdb(debug) -Od(debug) -O2(release) -Os(optim-size) -FS -Oy- -c -EHs -GS- -IC:/HaxeToolkit/haxe/lib/hxcpp/4,2,1/include -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS(haxe) -DHX_SMART_STRINGS(haxe) -DHXCPP_API_LEVEL=400(haxe) -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN(main) -wd4996 ... tags=[haxe,static]
 - src/ApplicationMain.cpp
 - src/lime/utils/AssetCache.cpp  [haxe,release]
Link: ApplicationMain.exe
   Creating library ApplicationMain.lib and object ApplicationMain.exp
source/util/Discord.hx:15: Discord Client starting...
source/util/Discord.hx:65: Discord Client initialized
source/util/Discord.hx:22: Discord Client started.
source/data/SpecsDetector.hx:36:
--- SYSTEM INFO ---
MEMORY AMOUNT: 8192
CPU 64 BITS: true
source/song/Conductor.hx:78: new BPM map BUDDY []

Are you modding a build from source or with Lua?

Source

What is your build target?

Windows

Did you edit anything in this build? If so, mention or summarize your changes.

Nothing changed.

lunarcleint commented 1 year ago

Does it work in story mode or is it only in freeplay?

BudDeuce commented 1 year ago

It does not work in story mode nor freeplay.

lunarcleint commented 1 year ago

thats so strange, have you tried resaving the json?

BudDeuce commented 1 year ago

I have. I even redownloaded it without looking into the code, just building it—still the same issue.

lunarcleint commented 1 year ago

hm what version of windows are you on (it might be a weird haxe thing)

BudDeuce commented 1 year ago

I am on Windows 10 21H2 (19044.2075)

lunarcleint commented 1 year ago

I wish I knew the issue but im not sure, Ill leave this issue open just incase anyone else wants to add what the problem might be

BudDeuce commented 1 year ago

UPDATE: Problems with Versiculus Iratus start with commit e470601. I compared some other songs in commits that had their ram consumption reduced and worked without issue.

BudDeuce commented 1 year ago

UPDATE 2: I found the issue, I downloaded the stable version of Wednesday's Infidelity, copied over the "manifest" folder to the game built from the source, and then Versiculus Iratus started to work again.

I had another issue where Leak Ma Balls was crashing as soon as I play it. It now also works as well.

lunarcleint commented 1 year ago

interesting, could you send your version of the song json, and character jsons so i can look further into the issue and see whats the problem

Cheemsandfriends commented 1 year ago

char 97 is basically character "a" (you can test this if you have a numeric keypad with alt and then type 97 with a numeric keypad but that's another thing). unless it's an unvalid json, i believe that youre trying to parse where the json is located, not the actual json lol

Cheemsandfriends commented 1 year ago

yknow cos "assets/..."

lunarcleint commented 1 year ago

me getting ready to not do anything with that info (im too lazy)

lunarcleint commented 1 year ago

image

ChandelureF-5 commented 1 year ago

h

MightyTheArmiddilo commented 6 days ago

Found a different way to fix it, without the manifest folder from the final build. I first looked in the character editor, and checked the two characters VI starts with: mouse-prison and sad-demon. Low and behold: sad-demon crashed with the same error, and I looked deeper, and found that the images/characters/Sad_Demon.json does not match up with the image, images/characters/SAD_DEMON.png, so to fix it, just first: rename Sad_Demon.json to SAD_DEMON.json, then go inside the file and change the image variable in the meta child at the bottom from Sad_Demon.png to SAD_DEMON.png. That's it.

TLDR: Change Sad_Demon.json in the images/characters folder to SAD_DEMON.json and then go inside it and change the image at the bottom of the json to SAD_DEMON.png.

BudDeuce commented 6 days ago

Wow! What a throwback. Nice work!

BudDeuce commented 6 days ago

interesting, could you send your version of the song json, and character jsons so i can look further into the issue and see whats the problem

Sure, let me get the files real quick!