Coder Social home page Coder Social logo

Unable to launch CKF3 about ckf3alpha HOT 28 CLOSED

brokenphilip avatar brokenphilip commented on July 27, 2024
Unable to launch CKF3

from ckf3alpha.

Comments (28)

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024 2

Then have fun! We got KOTH mode and some new maps recently😄

Nice! Will you release the maps later on or are they available somewhere?

Check latest commit 7884e93
All currently available maps has being uploaded.

from ckf3alpha.

brokenphilip avatar brokenphilip commented on July 27, 2024 1

Another weird occurence is when I launch the game in cmd (not through Steam) like this:
hl.exe -game ckf3
The following happens:
https://www.youtube.com/watch?v=DCb83uDuA0c

Can only navigate the main menu using the arrow keys, and it's obvious that in this state the game is using the CS base to run.
Upon loading a map I can't do anything because the team/class selection menu instantly closes.

When launching using ckf3.exe, it gets to the loading screen but crashes as mentioned before.
I have a feeling it has to do something with the exe.

I remember having the exact same issue a while ago (the crash one as well), even before Half-Life got updated on Steam.

from ckf3alpha.

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024 1

OK! I don't know what was wrong with my installation but after completely getting rid of the Half-Life folder from Steam and re-installing everything, then replacing the DLLs, it works! Hooray, something was wrong on my end. You can close the issue.

kép

Then have fun! We got KOTH mode and some new maps recently😄

from ckf3alpha.

hzqst avatar hzqst commented on July 27, 2024

see

#define S_LOADSOUND_SIG_NEW "\x55\x8B\xEC\x81\xEC\x44\x05\x00\x00\x53\x56\x8B\x75\x08"

You can find new sig with hex-ray IDA :
decompile hw.dll with IDA
search for xref to text "S_StartDynamicSound: %s volume > 255"
then you can find S_LoadSound (the screenshot is for engine 6153, you have to find S_LoadSound for your 8308 engine, in the same way ).
sss
ssss
sssss

from ckf3alpha.

selimnahimi avatar selimnahimi commented on July 27, 2024

I have done the steps described above, however, even after replacing the hex code and compiling successfully, I get a different error message. Not really sure what this one is referring to.
Error message

After some digging I figured it's referring to this in gl_hooks.cpp, although I have absolutely no idea where to find the hex code for it.

#define R_STUDIORENDERFINAL_SIG_NEW "\x55\x8B\xEC\x51\x6A\x00\x6A\x00\xC7\x05\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\xC7\x05\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\xE8"

from ckf3alpha.

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024

Fixed 3 crashes with 290a1db. But there still other crashes.

from ckf3alpha.

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024

@HUNcamper Can you check the latest version? "Could not found: SOMETHING" error should be fixed.

from ckf3alpha.

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024

I have fixed all crashes. Please check 9bb4256.

from ckf3alpha.

selimnahimi avatar selimnahimi commented on July 27, 2024

@yuxuanchiadm

Even after:

  • Reinstalling Half-Life
  • Making a clean install of CKF3
  • Replacing the DLLs with the new compiled DLLs (which have the newest commits)

The game does launch but crashes upon loading the main menu without any error.
It gets this far, which is further than before:
kép

from ckf3alpha.

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024

@HUNcamper Need more information for further investigation. Minidump upon crashes will help.

from ckf3alpha.

selimnahimi avatar selimnahimi commented on July 27, 2024

How can I get Half-Life to generate a minidump?

from ckf3alpha.

hzqst avatar hzqst commented on July 27, 2024

check C:\Program Files (x86)\Steam\dumps\ and you will minidump files.

from ckf3alpha.

selimnahimi avatar selimnahimi commented on July 27, 2024

Here it is:
crash_hl.exe_20191212123724_1.dmp.zip

from ckf3alpha.

selimnahimi avatar selimnahimi commented on July 27, 2024

Another weird occurence is when I launch the game in cmd (not through Steam) like this:
hl.exe -game ckf3
The following happens:
https://www.youtube.com/watch?v=DCb83uDuA0c

Can only navigate the main menu using the arrow keys, and it's obvious that in this state the game is using the CS base to run.
Upon loading a map I can't do anything because the team/class selection menu instantly closes.

When launching using ckf3.exe, it gets to the loading screen but crashes as mentioned before.
I have a feeling it has to do something with the exe.

from ckf3alpha.

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024

Another weird occurence is when I launch the game in cmd (not through Steam) like this:
hl.exe -game ckf3
The following happens:
https://www.youtube.com/watch?v=DCb83uDuA0c

Can only navigate the main menu using the arrow keys, and it's obvious that in this state the game is using the CS base to run.
Upon loading a map I can't do anything because the team/class selection menu instantly closes.

When launching using ckf3.exe, it gets to the loading screen but crashes as mentioned before.
I have a feeling it has to do something with the exe.

Game should launch with the -steam flag like:
hl.exe -steam -game ckf3

from ckf3alpha.

selimnahimi avatar selimnahimi commented on July 27, 2024

OK! I don't know what was wrong with my installation but after completely getting rid of the Half-Life folder from Steam and re-installing everything, then replacing the DLLs, it works! Hooray, something was wrong on my end. You can close the issue.

kép

from ckf3alpha.

selimnahimi avatar selimnahimi commented on July 27, 2024

Then have fun! We got KOTH mode and some new maps recently😄

Nice! Will you release the maps later on or are they available somewhere?

from ckf3alpha.

brokenphilip avatar brokenphilip commented on July 27, 2024

OK! I don't know what was wrong with my installation but after completely getting rid of the Half-Life folder from Steam and re-installing everything, then replacing the DLLs, it works! Hooray, something was wrong on my end. You can close the issue.

kép

Didn't work for me... Even after building & copying the DLLs after completely wiping my Half-Life folder from Steam I'm still having the same issue like in the video you sent. Tested both with ckf3.exe (not crashing for me) as well as hl.exe -steam -game ckf3, same results.

from ckf3alpha.

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024

OK! I don't know what was wrong with my installation but after completely getting rid of the Half-Life folder from Steam and re-installing everything, then replacing the DLLs, it works! Hooray, something was wrong on my end. You can close the issue.
kép

Didn't work for me... Even after building & copying the DLLs after completely wiping my Half-Life folder from Steam I'm still having the same issue like in the video you sent. Tested both with ckf3.exe (not crashing for me) as well as hl.exe -steam -game ckf3, same results.

Can you check if dlls is in correct location:

Half-Life\ckf3\Audio.dll
Half-Life\ckf3\CaptionMod.dll
Half-Life\ckf3\MetaHook.dll
Half-Life\ckf3\Renderer.dll
Half-Life\ckf3\dlls\mp.dll
Half-Life\ckf3\cl_dlls\client.dll
Half-Life\ckf3\MetaHook\CSBTE.dll

from ckf3alpha.

brokenphilip avatar brokenphilip commented on July 27, 2024

I seem to be missing
Half-Life\ckf3\CaptionMod.dll
Half-Life\ckf3\Renderer.dll
Half-Life\ckf3\MetaHook\CSBTE.dll

Any possible reasons why? While compiling I got a lot of errors saying: Cannot open include file: 'gl/glext.h': No such file or directory, could be that

from ckf3alpha.

hzqst avatar hzqst commented on July 27, 2024

https://github.com/KhronosGroup/OpenGL-Registry/blob/master/api/GL/glext.h

from ckf3alpha.

brokenphilip avatar brokenphilip commented on July 27, 2024

After downloading it and placing it in .\src\Interface\gl I was also missing KHR/khrplatform.h, which I downloaded from https://www.khronos.org/registry/EGL/api/KHR/khrplatform.h

Then the build was successful and without errors (I checked and all the DLL files were in place) but when I launch the game I see the background for a split-second and then the game exits with this pop-up:
image

from ckf3alpha.

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024

After downloading it and placing it in .\src\Interface\gl I was also missing KHR/khrplatform.h, which I downloaded from https://www.khronos.org/registry/EGL/api/KHR/khrplatform.h

Then the build was successful and without errors (I checked and all the DLL files were in place) but when I launch the game I see the background for a split-second and then the game exits with this pop-up:
image

This happens when CaptionMod cannot find Renderer. You could check Renderer is compiled correctly and loaded correctly.

from ckf3alpha.

brokenphilip avatar brokenphilip commented on July 27, 2024

After debugging I had noticed that the Renderer.dll loads, then shortly after unloads itself, as shown in the debug logs VS gave me here: https://pastebin.com/83n3nCr4

If it helps, I've noticed that the messagebox sent by CaptionMod\engfuncs.cpp upon game launch is the first one (hRenderer):
image

At this point I feel like I reached a dead-end, I'm pretty new to compiling projects of this size so any tips would be appreciated :)

from ckf3alpha.

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024

Place breakpoint at .\src\Renderer.cpp:72. Check the value of g_hRenderer returned by Sys_LoadModule. Use GetLastError to get errorcode if it returns NULL.

from ckf3alpha.

brokenphilip avatar brokenphilip commented on July 27, 2024

I just got the notification, apologies for my inactivity.

I've been trying to find solutions for the past couple of days but with no results. The only thing that I found out from the debugger is that g_hRenderer indeed returns NULL with a GetLastError() result of 126, "The specified module could not be found."

I have checked the value of filepath as well and it returns "ckf3/Renderer.dll" which is where the file is indeed located from the executable's perspective.

I have tried running both executables as admin, setting up the folder and file permissions as well as even copying the dll to several places where it might get found without any luck.

from ckf3alpha.

yuxuanchiadm avatar yuxuanchiadm commented on July 27, 2024

@brokenphilip This may caused by missing DLL dependencies for Renderer.dll. You can use utility like "Dependency Walker" to find out which is missing. But I think probably it is "FreeImage.dll". You can try download and install it here: http://freeimage.sourceforge.net/download.html

from ckf3alpha.

brokenphilip avatar brokenphilip commented on July 27, 2024

I have used the utility and I was indeed only missing FreeImage. After building the FreeImage project and moving the dll to the Half-Life folder the game launched and after playing for a few minutes worked just fine. Thank you so much for helping with my issue! :)

from ckf3alpha.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.