ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.15k stars 2.21k forks source link

error on lua script #14668

Closed GwilynDev closed 6 months ago

GwilynDev commented 6 months ago

Describe your problem here.

Capturar this error appears when i start a custom song and a LUA file is active, like the stage, an script in the data folder and even when there are chart events. the background isn´t loading, and the scripts won´t work. the game was normal some days ago, and i literally didn´t touched in it. detail: i already even tried to reinstall Psych engine 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.

Nah, i didn´t

MasterGamaDev commented 6 months ago

Are you sure you didn't touch anything?, that shouldn't happen unless there is a modification in a Lua script. Recently, in fact about two hours ago I had the same problem as you, but I need you to tell me what version of Psych Engine you are using.

MasterGamaDev commented 6 months ago

Anyway I found the solution to the problem in Psych Engine v0.7.3, it turns out that no script can contain the letter ñ, otherwise this Lua script will not work

GwilynDev commented 6 months ago

Anyway I found the solution to the problem in Psych Engine v0.7.3, it turns out that no script can contain the letter ñ, otherwise this Lua script will not work Then when i get home, i'll try to search for something like this

GwilynDev commented 6 months ago

i checked and there´s no ñ in the stage script, i´m using this one:

--Hello! This is your script, you may be confused but its really easy --First, you need to have your image ready, read the tutorial about the thing here: --Next, replace the word "Test", with the name of your image (capitalization matters). --Open up the game and press 7 in any song, after that

function onCreate() -- background

makeLuaSprite('floresta', 'floresta', -650, -460);
setScrollFactor('floresta', 0.9, 0.9);
scaleObject('floresta', 1.1, 1.1);

addLuaSprite('floresta', false);

close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading the stage

end

MasterGamaDev commented 6 months ago

that script is too simple

MasterGamaDev commented 6 months ago

Can you check the "Mods/Scripts" folder, there's probably something there

MasterGamaDev commented 6 months ago

There may also be something in a custom_event

MasterGamaDev commented 6 months ago

In my case I was porting "Brimstone" by FNF Lullaby and I added an event called "AddZoomCamera" and that started to appear, but I didn't know why it happened since I had made many changes before testing. It wasn't until later that I realized the error and changed the name of the event to "AddCamaraZoom" and also changed everything about it within that same LUA script

GwilynDev commented 6 months ago

the mods/scripts folder is empty, and i deleted all of the custom events from the folder and from the chart, but the error persists

GwilynDev commented 6 months ago

i remember i've used Dadbattle's spotlight and an blackout event

GwilynDev commented 6 months ago

then i tried to make a custom note, but the custom note was glitched. i even tried to solve that, but i just erased it in the end

MasterGamaDev commented 6 months ago

You can try two things. 1 - Extract Psych Engine v0.7.3 again in another separate folder and just pass the chart and Inst/Voices and try the Chart Editor. 2 - Download a more recent version of lime.ndl either x86 or x64, that will depend on whether you are using PEx86 or x64

MasterGamaDev commented 6 months ago

Please do it as soon as possible and let me know so I can see what can be done.

GwilynDev commented 6 months ago

i´ll try it now

GwilynDev commented 6 months ago

result 1: i extracted Psych Engine again, the error screen is gone, but the background still doesn´t loads

GwilynDev commented 6 months ago

Wait, nevermind. i think it´s fixed

GwilynDev commented 6 months ago

earlier i´ve changed the background´s name in the lua file, because portuguese is my main language and i was using it on the mod, but i forgot to change the image name. in the lua file was "forest" and the image was named "floresta"

GwilynDev commented 6 months ago

yeah, it´s fixed. thanks for your patience

MasterGamaDev commented 6 months ago

It was nothing, I'm glad you were the first person I helped here, if you don't have any more problems you can proceed to close the post.

GwilynDev commented 6 months ago

ok