ShadowMario / FNF-PsychEngine

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

Error about compiling #12770

Closed Ve3h closed 1 year ago

Ve3h commented 1 year ago

Describe your bug here.

alrig, so i have download all the things that psych engine needs to build, the haxe, the libarys, etc but when i go try this error that i put right down is happening and i dont know how to fix, any help will be awesome thx.

Command Prompt/Terminal logs (if existing)

C:\Users\us\OneDrive\Documentos\FNF-PsychEngine-main>haxelib run lime build windows
source/Achievements.hx:132: characters 30-54 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead
Error: Could not find haxelib "hxCodec", does it need to be installed?

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.

Yes, i edited the play state, i have added/replaced

''#if VIDEOS_ALLOWED #if (hxCodec >= "3.0.0") import hxcodec.flixel.FlxVideo as VideoHandler; #elseif (hxCodec >= "2.6.1") import hxcodec.VideoHandler as VideoHandler; #elseif (hxCodec == "2.6.0") import VideoHandler as VideoHandler; #else import vlc.VideoHandler; #end #end''

and

''public function startVideo(name:String) { #if VIDEOS_ALLOWED inCutscene = true; var filepath:String = Paths.video(name); #if sys if(!FileSystem.exists(filepath)) #else if(!OpenFlAssets.exists(filepath)) #end { FlxG.log.warn('Couldnt find video file: ' + name); startAndEnd(); return; } var video:VideoHandler = new VideoHandler(); #if (hxCodec >= "3.0.0") // Recent versions video.play(filepath); video.onEndReached.add(function() { video.dispose(); startAndEnd(); return; }, true); #else // Older versions video.playVideo(filepath); video.finishCallback = function() { startAndEnd(); return; } #end #else FlxG.log.warn('Platform not supported!'); startAndEnd(); return; #end }''

just thatlol

moxie-coder commented 1 year ago

you didn’t install hxCodec

NexIsDumb commented 1 year ago

Okay no, I know why it happens if you have SUCCESSFULLY downloaded all psych's libraries as the readme says

Basically hxCodec 3.0.2 (and older versions too) has a shitty thing which makes it bug To make it work you have to install it normally (so without using hmm) in your main folder, basically how you would download normally an haxe lib using the command prompt on the desktop: it must BE the same version as the one installed using the hmm method And then ofc you have to install the same hxCodec with the same version using hmm if you didn't already, so as the readme says

This bug got fixed from hxCodec version 3.0.3

Ve3h commented 1 year ago

Okay no, I know why it happens if you have SUCCESSFULLY downloaded all psych's libraries as the readme says

Basically hxCodec has a shitty thing which makes it bug To make it work u have to install it normally (so without using hmm.json) in your main folder, basically how you would download normally an haxe lib using the command prompt on the desktop: it must BE the same version as the one install using hmm.json And then ofc u have to install the same hxCodec with the same version using hmm.json, so as the readme says

Hopefully they're gonna fix this bug

IT WORKED!!! Thank ya so much now im compiling it!1

NexIsDumb commented 1 year ago

Okay no, I know why it happens if you have SUCCESSFULLY downloaded all psych's libraries as the readme says Basically hxCodec has a shitty thing which makes it bug To make it work u have to install it normally (so without using hmm.json) in your main folder, basically how you would download normally an haxe lib using the command prompt on the desktop: it must BE the same version as the one install using hmm.json And then ofc u have to install the same hxCodec with the same version using hmm.json, so as the readme says Hopefully they're gonna fix this bug

IT WORKED!!! Thank ya so much now im compiling it!1

nppp

RonRazar commented 1 year ago

source/psychlua/CallbackHandler.hx:48: characters 18-33 : Class has no field sendErrorsToLua i get this when do lime test windows how do i fix this im dumb

moxie-coder commented 1 year ago

source/psychlua/CallbackHandler.hx:48: characters 18-33 : Class has no field sendErrorsToLua i get this when do lime test windows how do i fix this im dumb

haxelib git linc_luajit https://github.com/superpowers04/linc_luajit master

RonRazar commented 1 year ago

i used haxelib git linc_luajit https://github.com/superpowers04/linc_luajit master and it showed me this what do i do now? Error: 64bit is not automatically supported for this version of VC. Set HXCPP_MSVC_CUSTOM and manually configure the executable, library and include paths Error: Error: 64bit is not automatically supported for this version of VC. Set HXCPP_MSVC_CUSTOM and manually configure the executable, library and include paths

moxie-coder commented 1 year ago

i used haxelib git linc_luajit https://github.com/superpowers04/linc_luajit master and it showed me this what do i do now? Error: 64bit is not automatically supported for this version of VC. Set HXCPP_MSVC_CUSTOM and manually configure the executable, library and include paths Error: Error: 64bit is not automatically supported for this version of VC. Set HXCPP_MSVC_CUSTOM and manually configure the executable, library and include paths

install visual studio

RonRazar commented 1 year ago

image

I did it already

moxie-coder commented 1 year ago

that's visual studio code bro, not visual studio

RonRazar commented 1 year ago

image

Alr what do I do now?

moxie-coder commented 1 year ago

image

RonRazar commented 1 year ago

imageimage

What do I do about this how do I set it up?

moxie-coder commented 1 year ago

MSVC v142 - VS 2019 C++ x64/x86 build tools has to be latest

RonRazar commented 1 year ago

I'm sorry but what do you mean by Latest how will I know its newer?

RonRazar commented 1 year ago

image

image

Where do I see it?

moxie-coder commented 1 year ago

I'm sorry but what do you mean by Latest how will I know its newer?

latest works

RonRazar commented 1 year ago

Hey I did it and it work I compiled it but for some reason I can't add stuff like images, songs and json like how I can't see my character in the character editor

RonRazar commented 1 year ago

Idk how to work the mod templete idk why I can't add characters or have json being shown in the compiled build

NexIsDumb commented 1 year ago

Idk how to work the mod templete idk why I can't add characters or have json being shown in the compiled build

please make a new issue for that this issue was originally just meant to be for the hxCodec compiling problem This just not goes to you but to anyone else too

moxie-coder commented 1 year ago

Idk how to work the mod templete idk why I can't add characters or have json being shown in the compiled build

please make a new issue for that this issue was originally just meant to be for the hxCodec compiling problem This just not goes to you but to anyone else too

yea and I’m getting tired of discussing this on a closed issue

cotne1233 commented 1 year ago

Okay no, I know why it happens if you have SUCCESSFULLY downloaded all psych's libraries as the readme says

Basically hxCodec 3.0.2 (and older versions too) has a shitty thing which makes it bug To make it work you have to install it normally (so without using hmm) in your main folder, basically how you would download normally an haxe lib using the command prompt on the desktop: it must BE the same version as the one installed using the hmm method And then ofc you have to install the same hxCodec with the same version using hmm if you didn't already, so as the readme says

This bug got fixed from hxCodec version 3.0.3

it still doesn't work for me

NexIsDumb commented 1 year ago

Okay no, I know why it happens if you have SUCCESSFULLY downloaded all psych's libraries as the readme says

Basically hxCodec 3.0.2 (and older versions too) has a shitty thing which makes it bug To make it work you have to install it normally (so without using hmm) in your main folder, basically how you would download normally an haxe lib using the command prompt on the desktop: it must BE the same version as the one installed using the hmm method And then ofc you have to install the same hxCodec with the same version using hmm if you didn't already, so as the readme says

This bug got fixed from hxCodec version 3.0.3

it still doesn't work for me

then it must be something else maybe you didnt install properly some libs or else report it creating a new issue so people can help you

Aness6040 commented 1 year ago

Did'nt Work

NexIsDumb commented 1 year ago

Did'nt Work

then as i said before too, create a new issue and let other ppl help you, dont use this issue

expertyeti commented 2 months ago

Hello, I come to present a problem that occurred to me when compiling Psych engine, when compiling I simply found:

source/psychlua/HScript.hx:317: characters 89-96 : Type not found : TeaCall

and it is simply tedious, run all the Visual Studio files, I remember having executed the necessary .bat that are inside the setup folder in this way installing the dependencies, as well as having correctly installed git and haxe, what should I do?

B1ueRabb1t7 commented 2 months ago

Hello, I come to present a problem that occurred to me when compiling Psych engine, when compiling I simply found:

source/psychlua/HScript.hx:317: characters 89-96 : Type not found : TeaCall

and it is simply tedious, run all the Visual Studio files, I remember having executed the necessary .bat that are inside the setup folder in this way installing the dependencies, as well as having correctly installed git and haxe, what should I do?

I saw this and I must ask three things: 1: What Psych Engine version are you using? 2: What does TeaCall do? And send either a picture or a screenshot because this might help viewing your code, otherwise without the code, I don't think people can help a lot 3: Is English your first language or second?

JaskeyWolf commented 2 months ago

I have the same problem and the same thing appears, I don't know what to do yo tengo el mismo problema y me aparece lo mismo, nose que hacer

C:\Users\julio cesar\Desktop\mod de fnf\FNF-PsychEngine-main\FNF-PsychEngine-main>lime test windows source/psychlua/HScript.hx:317: characters 89-96 : Type not found : TeaCall

that's what I get when I try to compile esto es lo que me sale cuando trato de compilar

FinderFromMac commented 2 months ago

Hello, I come to present a problem that occurred to me when compiling Psych engine, when compiling I simply found:

source/psychlua/HScript.hx:317: characters 89-96 : Type not found : TeaCall

and it is simply tedious, run all the Visual Studio files, I remember having executed the necessary .bat that are inside the setup folder in this way installing the dependencies, as well as having correctly installed git and haxe, what should I do?

In source/psychlua.hx replace everything with "TeaCall" to "Tea"

JaskeyWolf commented 2 months ago

I did what you said and tried again to see if it works, but when I put "lime test windows" it didn't work and it gave me this:

source/psychlua/CallbackHandler.hx:55: characters 18-33 : Class has no field sendErrorsToLua export/release/windows/haxe/ApplicationMain.hx:153: characters 5-36 : ... Called from macro here

Enois213 commented 3 weeks ago

i need help "source/psychlua/HScript.hx:317: characters 89-96 : Type not found : TeaCall"

FuseIsHere813 commented 2 days ago

i need help "source/psychlua/HScript.hx:317: characters 89-96 : Type not found : TeaCall"

set all references of "TeaCall" to "Tea"