Jump to content
Sign in to follow this  
Mdrst

Game.exe fails to initiate (2016 source)

Recommended Posts

Hello everyone, first time posting here since a long time. Ive talked to some of you on Discord already, but I figured this might be worth the try. I managed to compile the 2016 client from source (that is, the 1.3x-2.0 source). However, nothing seems to happen when I launch Game.exe. Ive attached VS debugger and it seems to be a problem addressing the string (RES_STRING function), I tried changing that to a hardcoded string but no luck. I'm using VS2019, with SDK 10.0.18362.0, and Platform Tools v142. Also using the Common folder from the "Fixed Server Files". Did anyone else have this issue? Thanks for reading.

 

PS: Ive compiled the en_US.txt localization file using the genrb.exe provided in Common/bin/, and Game.loc seems to be OK.


"Beware of bugs in the above code; I have only proved it correct, not tried it."

- Donald E. Knuth

Share this post


Link to post
Share on other sites

intenta probar esto uichat.cpp 

_pSessionNode = dynamic_cast<GUI::CTreeGridNode*>(m_pQQTreeView->GetRootNode()->FindNode("Local")); <-- traducir lineas

 

client folder script/lua/form/chat.clu 

itemid = UI_CreateNoteGraphItem( "texture/ui/QQ2.tga", 87,16,105,222, 0, "Local", 5,2 ) <-- traducir lineas

 

  • Like 1

Discord:Wolfen#1498

https://www.patreon.com/ReTop

Share this post


Link to post
Share on other sites

 

7 hours ago, wolfenx said:

iQoWIPW.png

 

fM01L2a.png

 

 

7 hours ago, wolfenx said:

intenta probar esto uichat.cpp 

_pSessionNode = dynamic_cast<GUI::CTreeGridNode*>(m_pQQTreeView->GetRootNode()->FindNode("Local")); <-- traducir lineas

 

client folder script/lua/form/chat.clu 

itemid = UI_CreateNoteGraphItem( "texture/ui/QQ2.tga", 87,16,105,222, 0, "Local", 5,2 ) <-- traducir lineas

 

 

 

Thanks for replying wolfenx! But changing those lines did not work.

 

image.png.2775c3225d7ba5a0ba6ed918cc8a6904.png

 

 

As you can see there is an access violation when it tries to load the CL_LANGUAGE_MATCH_35 from en_US.res, but Im really not sure if thats the issue, because I tried initializing that vector with hardcoded strings ([0] = "philips description", [1] = "lance description" ... ) and the violation changed its place to "xlocale" file, so it didnt help at all.

 

 

 

 

 

Im also not sure why LoadResString takes 2 quotation marks (3 since #a encloses it one more time?)

 

image.png

 

 

 

Update: I manage to compile it without an access violation by changing the vector to a switchcase (thanks to deguix top-recode src)

 

image.png

 

 

However that still isnt enough to make the client work. Now it simply ends returning zeros:

 

image.png

(Thread x was closed with code 0)

 

It is quite frustrating when you have no clue as to where the problem is. Should I use an external debugger like Olly? Would that even help? Im kinda lost here.

 

Edited by Mdrst

"Beware of bugs in the above code; I have only proved it correct, not tried it."

- Donald E. Knuth

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...