ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.11k stars 2.16k forks source link

null object reference in version swapping #15118

Closed Nkill68 closed 1 month ago

Nkill68 commented 1 month ago

Describe your problem here.

3 years ago I finished a private mod but with the arrival of the shaders without the source code, I started developing it again. but I don't know why the error comes out in some songs. on the old version of fnf psych engine lua this error did not appear, with the new version it does. why, please help

old version: 0.4.2

new version: 0.7.3

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows x64

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

No response

Nkill68 commented 1 month ago

here the error:

objects/Note.hx (line 464) states/PlayState.hx (line 1758) flixel/group/FlxGroup.hx (line 787) states/PlayState.hx (line 1752) flixel/FlxState.hx (line 222) flixel/FlxGame.hx (line 752) flixel/FlxGame.hx (line 682) flixel/FlxGame.hx (line 556) openfl/events/EventDispatcher.hx (line 444) openfl/display/DisplayObject.hx (line 1400)

Uncaught Error: Null Object Reference Please report this error to the GitHub page: https://github.com/ShadowMario/FNF-PsychEngine

Crash Handler written by: sqirra-rng

nguyenkiet1234d commented 1 month ago

Wtf from 0.4.2? hmmm basically the codes and classes are outdated so your old mod script files might conflict with the game

nguyenkiet1234d commented 1 month ago

you should rewrite the code from scratch

ShadowMario commented 1 month ago

https://github.com/ShadowMario/FNF-PsychEngine/wiki/Transitioning-Lua-Mods-from-0.6.x-to-0.7 Also works for older versions but your code is so old that you might just rewrite it in case it doesn't help