ShadowMario / FNF-PsychEngine

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

Building error: fatal error lnk1136: invalid or corrupt file #2301

Closed Reycko closed 2 years ago

Reycko commented 2 years ago

Describe your bug here.

I'm having this when i compile the game I updated my haxe to 4.2.4 so that's not the problem i think.

Command Prompt/Terminal logs (if existing)

> Executing task: lime test windows  <

Warning: UPDATE HAXE TO 4.2.4
Warning: UPDATE HAXE TO 4.2.4 
Warning: UPDATE HAXE TO 4.2.4  
Warning: UPDATE HAXE TO 4.2.4   
Warning: UPDATE HAXE TO 4.2.4    
Warning: UPDATE HAXE TO 4.2.4             
Warning: UPDATE HAXE TO 4.2.4             
Warning: UPDATE HAXE TO 4.2.4             
Warning: UPDATE HAXE TO 4.2.4             
Warning: STOP USING 4.1.5 IT WON'T COMPILE
-bbpanzu
source/Achievements.hx:157: characters 30-54 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead
source/MainMenuState.hx:66: characters 3-39 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead
source/PlayState.hx:311: characters 3-39 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead
source/editors/CharacterEditorState.hx:93: characters 3-41 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead
source/editors/DialogueCharacterEditorState.hx:82: characters 3-40 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead
D:/Haxe/haxe/lib/hscript/2,4,0/hscript/Interp.hx:145: characters 8-18 : Warning : Std.is is deprecated. Use Std.isOfType instead.
D:/Haxe/haxe/lib/hscript/2,4,0/hscript/Interp.hx:180: characters 8-18 : Warning : Std.is is deprecated. Use Std.isOfType instead.
D:/Haxe/haxe/lib/hscript/2,4,0/hscript/Interp.hx:221: characters 8-18 : Warning : Std.is is deprecated. Use Std.isOfType instead.
D:/Haxe/haxe/lib/hscript/2,4,0/hscript/Interp.hx:515: characters 8-18 : Warning : Std.is is deprecated. Use Std.isOfType instead.
D:/Haxe/haxe/lib/hscript/2,4,0/hscript/Interp.hx:483: characters 37-56 : Warning : Std.is is deprecated. Use Std.isOfType instead.
D:/Haxe/haxe/lib/hscript/2,4,0/hscript/Interp.hx:484: characters 31-47 : Warning : Std.is is deprecated. Use Std.isOfType instead.
D:/Haxe/haxe/lib/hscript/2,4,0/hscript/Interp.hx:646: characters 10-42 : Warning : Std.is is deprecated. Use Std.isOfType instead.
source/options/NoteOffsetState.hx:57: characters 3-39 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead

Compiling group: haxe
cl.exe -Iinclude -ID:/Haxe/haxe/lib/discord_rpc/git/linc/ -ID:/Haxe/haxe/lib/linc_luajit/0,0,4//linc/ -I D:/FNFMods/FNFPsychEngine/0.5/HellMod/source/vlc/cpp/include/ -I D:/FNFMods/FNFPsychEngine/0.5/HellMod/source/vlc/cpp/src/ -nologo /WX- /fp:precise -DHX_WINDOWS -GR -O2(optim-std) -Zi(debug) -FdD:\FNFMods\FNFPsychEngine\0.5\HellMod\export\release\windows\obj\obj/msvc1964-nc/vc.pdb(debug) -Od(debug) -O2(release) -Os(optim-size) -FS -Oy- -c -EHs -GS- -ID:/Haxe/haxe/lib/hxcpp/4,2,1/include -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS(haxe) -DHX_SMART_STRINGS(haxe) -DHXCPP_API_LEVEL=400(haxe) -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -DHX_WIN_MAIN(main) -wd4996 ... 
tags=[haxe,static]
 - src/lime/utils/AssetCache.cpp  [haxe,release]
 - src/ApplicationMain.cpp
Link: ApplicationMain.exe
obj\msvc1964-nc\aa7d8192_Matrix3D.obj : fatal error lnk1136: invalid or corrupt file
The terminal process "C:\WINDOWS\System32\cmd.exe /d /c lime test windows " terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

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 added "hell" difficulty into the game.

tposejank commented 2 years ago

You probably cancelled a build during process, you should delete the "export" folder and recompile

Reycko commented 2 years ago

It works!