nillerusr / source-engine

Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
Other
1.13k stars 174 forks source link

'tier 0' failed with exit status 2 #351

Closed 2005abruno closed 1 month ago

2005abruno commented 1 month ago

I do not understand what i did wrong i would like some help. I will send log if needed

2005abruno commented 1 month ago

this happens when i run ./waf.bat install

maksw2 commented 1 month ago

we can't do anything without the logs. also, it looks like the issue is on your side. what did you specify as --prefix ?

2005abruno commented 1 month ago

this is what i had typed in "./waf.bat configure -T release --prefix="D:\SteamLibrary\steamapps\common\Half-Life 2" --build-games=hl2 " and where do i find the log at im new to this sry

maksw2 commented 1 month ago

first, you can throw away --build-games since hl2 is the default. also, in the prefix just type --prefix=mod_hl2. that will create a folder mod_hl2 with all the compiled files (after waf.bat install). then you can copy them over where you want. don't forget to delete the hl2 bin folder, otherwise video_quicktime.dll error.

2005abruno commented 1 month ago

ok ill try that thanks

2005abruno commented 1 month ago

that didnt work i still got the error.

maksw2 commented 1 month ago

can you provide the full log? also, sounds like a you problem.

2005abruno commented 1 month ago

I still am not sure where the log file gets saved to. if you could help me with that i can get the logs

maksw2 commented 1 month ago

just copy the console where the error occurs and down a few lines.

2005abruno commented 1 month ago

here is only a few lines of it starting from where the error started ``` D:\source-engine\public\tier0\basetypes.h(106): error C2371: 'uintptr_t': redefinition; different basic types C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\vadefs.h(61): note: see declaration of 'uintptr_t' D:\source-engine\public\tier0\platform.h(489): error C4235: nonstandard extension used: '__asm' keyword not supported on this architecture D:\source-engine\public\tier0\platform.h(491): error C2065: 'fnclex': undeclared identifier D:\source-engine\public\tier0\platform.h(492): error C2146: syntax error: missing ';' before identifier 'fnstcw' D:\source-engine\public\tier0\platform.h(492): error C2065: 'fnstcw': undeclared identifier D:\source-engine\public\tier0\platform.h(492): error C2146: syntax error: missing ';' before identifier 'word' D:\source-engine\public\tier0\platform.h(492): error C2131: expression did not evaluate to a constant D:\source-engine\public\tier0\platform.h(492): note: failure was caused by a read of a variable outside its lifetime D:\source-engine\public\tier0\platform.h(492): note: see usage of 'tmpCtrlW' D:\source-engine\public\tier0\platform.h(493): error C2146: syntax error: missing ';' before identifier 'and' D:\source-engine\public\tier0\platform.h(493): error C2065: 'and': undeclared identifier D:\source-engine\public\tier0\platform.h(493): error C3688: invalid literal suffix 'FCC0h'; literal operator or literal operator template 'operator ""FCC0h' not found D:\source-engine\public\tier0\platform.h(494): error C2146: syntax error: missing ';' before identifier 'or' D:\source-engine\public\tier0\platform.h(494): error C2065: 'or': undeclared identifier D:\source-engine\public\tier0\platform.h(494): error C3688: invalid literal suffix 'h'; literal operator or literal operator template 'operator ""h' not found

2005abruno commented 1 month ago

this is when i did ./waf.bat install

maksw2 commented 1 month ago

try deleting it and recloning with --recursive

maksw2 commented 1 month ago

also, if that don't work, uninstall vs2022 and install vs2017

2005abruno commented 1 month ago

ok it started working up till 94% i got an internal compiler error im gunna install vs2017

2005abruno commented 1 month ago

nevermind i ran out of space on the drive i was installing to but ill still try to install vs2017

2005abruno commented 1 month ago

It worked Thanks for your help

2005abruno commented 1 month ago

thanks

maksw2 commented 1 month ago

yeah, vs2022 has some weird problems and that's the solution that worked for me. glad that i could help.