FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
551 stars 110 forks source link

Game crash on loading any map #235

Closed RykahKnight closed 7 years ago

RykahKnight commented 7 years ago

After building the latest files for this, and client and server dlls from this repo (as is linked), I expected to have no issues at all. How horribly wrong I was.

Compiling SDL2 set on Windows 10 with Visual Studio 2013 express results with a full screen window that looks like this (and crashes if I try to change the screen res or go windowed) followed by this nice little error box if I try to load a map. And here's the log it spit out.

Any and all help would be appreciated.

mittorn commented 7 years ago

Please compile with dbghelp support (enable DBGHELP macro). Your crash info is unuseful.

RykahKnight commented 7 years ago

I've double checked to make sure my files are up to date and compiled all the dlls and the exe with DBGHELP added to the marcos, and instead of crashing on map load it just now does nothing, spitting out this log this time: http://pastebin.com/wYFQyxvW

The dlls are there for sure, and I've noticed that when debugging from visual studio it spits this out: 'xash.exe' (Win32): Loaded 'C:\workspace\Xash3DStuff\game\testmod\bin\client.dll'. Symbols loaded. First-chance exception at 0x7792EA5F (ntdll.dll) in xash.exe: 0xC0000139: Entry Point Not Found. 'xash.exe' (Win32): Unloaded 'C:\workspace\Xash3DStuff\game\testmod\bin\client.dll'

mittorn commented 7 years ago

From full log:

[2017:03:02|16:03:41] Sys_Warn: Could not load client library:
LoadLibrary failed for bin/client.dll:127
LoadLibraryExt: could not find client.dll!

Seems that some import dependency missiing

RykahKnight commented 7 years ago

It's quite clearly not, yet every single time I try it out it says it is. It's right in the bin folder next to the server dll.

https://puu.sh/usVOw/f54b15ee5c.png

RykahKnight commented 7 years ago

I've tested it again with stock WON OpFor dlls (with OpFor included in the gameinfo), and now it loads the client dll but crashes on map load with this error box and this log.

RykahKnight commented 7 years ago

I've now tried loading every single one of Valve's released GoldSrc games on steam, and all of them resulted in the engine not even recognizing that the client.dll is in the game's proper folders, and then to be sure I tried a few old pre-SteamPipe HL1 mods (Scientist Hunt and Counter-Life to be exact) and they resulted in the engine loading the client.dll, but crashing on map load for different reasons. Here is the Counter-Life and Scientist Hunt logs.

nekonomicon commented 7 years ago

Engine compiled with vgui support?

RykahKnight commented 7 years ago

Should have, vgui_support and vgui dlls present.

RykahKnight commented 7 years ago

https://puu.sh/utjzS/61a920f27e.png

This should be correct, right?

RykahKnight commented 7 years ago

Welp, I feel like a total dipshit now. My entire issue was that I was using a pre-steam vgui dll from around 2001. I have since replaced it with the one from my current steam install of Half-Life and all is working now.

Thank you for your assistance.