Funkin
Funkin copied to clipboard
Compiling help: JsonParser_0 has no ignoreUnknownVariables
- [X] Windows
- [ ] Mac
- [ ] Linux
- [ ] HTML5
I am trying to compile for testing. I haven't changed anything, but I'm getting this error:
I might have the wrong version of JsonParser, but i have no idea. Anyone got any idea how to fix?
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
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
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 json2objectto 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<haxe.macro.ObjectField>
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<SongMetadata>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | Unknown<0> cannot be constructed
duplicate of #2305
Duplicate of #2305 + Please follow the compilation guide next time.