JordanSantiagoYT / FNF-JS-Engine

JS Engine is basically Psych Engine but with (almost) no botplay lag and NEW features!
Apache License 2.0
42 stars 27 forks source link

Error compiling the game #140

Closed Diego0160 closed 8 months ago

Diego0160 commented 8 months ago

Describe your problem here.

I have tried to compile the game, solving several errors that have occurred, but I am stuck with this one and I have no idea how to fix it.

Here are the terminal logs

D:\Downloads\FNF\Engines\FNF-PsychEngine-NoBotplayLag-1.17.0> lime test linux D:/Downloads/FNF/Engines/FNF-PsychEngine-NoBotplayLag-1.17.0/.haxelib/discord_rpc/git/discord_rpc/DiscordRpc.hx:4: characters 8-20 : You cannot access the cpp package while targeting neko (for cpp.Function) source/Discord.hx:7: characters 8-30 : ... referenced here source/Main.hx:16: characters 8-15 : ... referenced here export/release/neko/haxe/ApplicationMain.hx:321: characters 48-52 : ... referenced here

PD: I am compiling from Windows, since compiling from Linux sends more errors (unless I fix it)

Are you modding a build from source or with Lua?

Source

What is your build target?

Linux

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

Nope, everything fresh from the source code

JordanSantiagoYT commented 8 months ago

i don't think it's going to work if you try compiling a linux build from windows 😭 windows builds need to be compiled on windows, mac builds need to be compiled on macOS, and linux builds need to be compiled on linux.

StinkTheStinker commented 8 months ago

since people usually play fnf on windows, just do windows

Diego0160 commented 8 months ago

since people usually play fnf on windows, just do windows

yep, although it is not my main operating system

Diego0160 commented 8 months ago

I think I already saw the error, the discord_rpc repository was not imported correctly Now the only error it shows is this: /media/diego/60CC-1C0C/Downloads/FNF/Engines/FNF-PsychEngine-NoBotplayLag-1.17.0/.haxelib/flixel/5,2,2/flixel/group/FlxSpriteGroup.hx:3: characters 8-32 : You cannot access the flash package while in a macro (for flash.display.BitmapData)

JordanSantiagoYT commented 8 months ago

Remove SScript

StinkTheStinker commented 8 months ago

Remove SScript

quick question, where is that?

JordanSantiagoYT commented 8 months ago

Remove SScript

quick question, where is that?

uhh.. haxelib remove SScript

Diego0160 commented 8 months ago

Sscript library is not installed, the error still remains

JordanSantiagoYT commented 8 months ago

New commit, should fix this issue

Diego0160 commented 8 months ago

The new commit works, but a new error arose in the same file in a different line of code

/media/diego/60CC-1C0C/Downloads/FNF/Engines/FNF-PsychEngine-NoBotplayLag-main/.haxelib/flixel/5,2,2/flixel/FlxG.hx:3: characters 8-17 : You cannot access the flash package while in a macro (for flash.Lib)

JordanSantiagoYT commented 8 months ago

Idk about any more of the macro stuff

moxie-coder commented 8 months ago

The new commit works, but a new error arose in the same file in a different line of code

/media/diego/60CC-1C0C/Downloads/FNF/Engines/FNF-PsychEngine-NoBotplayLag-main/.haxelib/flixel/5,2,2/flixel/FlxG.hx:3: characters 8-17 : You cannot access the flash package while in a macro (for flash.Lib)

you didn't update

JordanSantiagoYT commented 8 months ago

The new commit works, but a new error arose in the same file in a different line of code /media/diego/60CC-1C0C/Downloads/FNF/Engines/FNF-PsychEngine-NoBotplayLag-main/.haxelib/flixel/5,2,2/flixel/FlxG.hx:3: characters 8-17 : You cannot access the flash package while in a macro (for flash.Lib)

you didn't update

no apparently the project.xml needs a few additional settings to allow the engine to use the flash package

Stefan2008Git commented 8 months ago

The new commit works, but a new error arose in the same file in a different line of code /media/diego/60CC-1C0C/Downloads/FNF/Engines/FNF-PsychEngine-NoBotplayLag-main/.haxelib/flixel/5,2,2/flixel/FlxG.hx:3: characters 8-17 : You cannot access the flash package while in a macro (for flash.Lib)

you didn't update

no apparently the project.xml needs a few additional settings to allow the engine to use the flash package

This guy had an fucking latest Haxe version. He needs to use the 4.2.5 for fix

Diego0160 commented 8 months ago

Yes you're right Automatically updated via APT It was complicated to reinstall it because the repository is obsolete and can only be done manually from the haxe source code but I already have it installed. Now the only error that shows me is from hxCódec, in the libvlccore.so.9 library The error is the following:

/usr/bin/ld:/home/diego/Games/FNF/FNF-PsychEngine-NoBotplayLag-1.18.0/.haxelib/hxCodec/2,5,1/lib/vlc/lib/Linux/libvlccore.so.9: file format not recognized; treating as linker script
/usr/bin/ld:/home/diego/Games/FNF/FNF-PsychEngine-NoBotplayLag-1.18.0/.haxelib/hxCodec/2,5,1/lib/vlc/lib/Linux/libvlccore.so.9:0: syntax error
Stefan2008Git commented 8 months ago

Yes you're right Automatically updated via APT It was complicated to reinstall it because the repository is obsolete and can only be done manually from the haxe source code but I already have it installed. Now the only error that shows me is from hxCódec, in the libvlccore.so.9 library The error is the following:

/usr/bin/ld:/home/diego/Games/FNF/FNF-PsychEngine-NoBotplayLag-1.18.0/.haxelib/hxCodec/2,5,1/lib/vlc/lib/Linux/libvlccore.so.9: file format not recognized; treating as linker script
/usr/bin/ld:/home/diego/Games/FNF/FNF-PsychEngine-NoBotplayLag-1.18.0/.haxelib/hxCodec/2,5,1/lib/vlc/lib/Linux/libvlccore.so.9:0: syntax error

You have the weirdest libvlcvcore version installed

Diego0160 commented 8 months ago

I know, it was something unexpected after installing the libraries

moxie-coder commented 8 months ago

I would suggest reinstalling hxCodec 2.5.1, or updating since latest versions should work

Diego0160 commented 8 months ago

Yep, Updating it solves the problem thx

moxie-coder commented 8 months ago

Yep, Updating it solves the problem thx

np