FunkinCrew / Funkin

A rhythm game made with HaxeFlixel
https://www.newgrounds.com/portal/view/770371
Other
2.93k stars 2.28k forks source link

Compiling help: JsonParser_0 has no ignoreUnknownVariables #2426

Open marbloxy opened 4 months ago

marbloxy commented 4 months ago

I am trying to compile for testing. I haven't changed anything, but I'm getting this error: image

I might have the wrong version of JsonParser, but i have no idea. Anyone got any idea how to fix?

NotHyper-474 commented 4 months ago

My guess is that it wasn't installed properly. Perhaps you installed the original Json2Object instead of FunkinCrew's fork? I think you could try running hmm reinstall --force json2object to see if it gets fixed

GIDRO32 commented 4 months ago

I tried that, now there is new error appeared: ERROR source/funkin/graphics/shaders/RuntimeCustomBlendShader.hx:14: characters 10-23

14 | this.setBitmapData("sourceSwag", value); | ^^^^^^^^^^^^^ | funkin.graphics.shaders.RuntimeCustomBlendShader has no field setBitmapData

marbloxy commented 4 months ago

My guess is that it wasn't installed properly. Perhaps you installed the original Json2Object instead of FunkinCrew's fork? I think you could try running hmm reinstall --force json2object to see if it gets fixed

that fixed that problem, but now i have these 3

C:/HaxeToolkit/haxe/lib/json2object/2,4,3/src/json2object/DataBuilder.hx:229: characters 42-43

229 | caseValue = { expr: EConst(CString(${field.name})), pos: Context.currentPos()}; | ^ | Reification $ is not allowed outside of macro expression

ERROR C:/HaxeToolkit/haxe/lib/json2object/2,4,3/src/json2object/DataBuilder.hx:263: characters 40-54

263 | initializator = { expr: EObjectDecl(anonBaseValues), pos: Context.currentPos() }; | ^^^^^^^^^^^^^^ | error: { field : String, expr : haxe.macro.Expr } has no field quotes | have: Array<{ field, expr }> | want: Array

ERROR C:/HaxeToolkit/haxe/lib/json2object/2,4,3/src/json2object/DataBuilder.hx:402: characters 94-96

402 | internObjectCases.push({ expr: lil_expr, guard: null, values: [{ expr: EConst(CString($v{n})), pos: Context.currentPos()}] }); | ^^ | Reification $v is not allowed outside of macro expression

ERROR source/funkin/data/song/SongRegistry.hx:137: characters 18-60

137 | var parser = new json2object.JsonParser(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | Unknown<0> cannot be constructed

moxie-coder commented 4 months ago

duplicate of #2305