ShadowMario / FNF-PsychEngine

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

Unable to build due to errors in ModsMenuState.hx #1556

Closed Aeryn1023 closed 2 years ago

Aeryn1023 commented 2 years ago

Describe your bug here.

I had just edited the CoolUtil.hx file, added a couple new songs, as well as added a new difficulty PNG and when I attempt to run it, I end up with this error. I had never even touched ModsMenuState.hx, so I have no idea why it's throwing errors like this.

Command Prompt/Terminal logs (if existing)

Microsoft Windows [Version 10.0.19043.1348]
(c) Microsoft Corporation. All rights reserved.

C:\Users\xrave>cd C:\Users\xrave\Custom_FNF_Mod\FNF-PsychEngine-main

C:\Users\xrave\Custom_FNF_Mod\FNF-PsychEngine-main>lime test windows
source/ModsMenuState.hx:388: characters 6-28 : {+ length : Int } should be String
source/ModsMenuState.hx:392: characters 6-42 : {+ length : Int } should be String
source/ModsMenuState.hx:396: characters 36-47 : Array access is not allowed on {+ length : Int }
source/ModsMenuState.hx:396: characters 36-47 : For function argument 'Red'

C:\Users\xrave\Custom_FNF_Mod\FNF-PsychEngine-main>

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.

I edited CoolUtil.hx to add a new difficulty as well as added new folders for custom songs and a separate .png file for the new difficulty.

ItzEpicstickman commented 2 years ago

i'm having the same problem :(

Aeryn1023 commented 2 years ago

I think I found the solution here: #1419 (comment)

Letting lime test windows run to see if any other errors crop up, if none crop up, I'll close the issue.