Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 14:14

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[WIP] Get SRO Source Code - by re-writing it

Discussion on [WIP] Get SRO Source Code - by re-writing it within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old 04/17/2020, 00:26   #121
 
elite*gold: 0
Join Date: May 2018
Posts: 244
Received Thanks: 119
when i select char got crash BUILD BY 2005
Dont use any winodws.
#solved
Hercules* is offline  
Old 04/18/2020, 19:41   #122
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
Quote:
Originally Posted by Hercules* View Post
when i select char got crash BUILD BY 2005
Dont use any winodws.
#solved
We already sorted this out on discord. I just wanna add this here so anyone will maybe benefit from the answer.

A crash right after selecting the character is typically an issue with the resinfo files. The game tries to parse the file, but fails because of a syntax error or a class not being registered. (Which was the case this time).

But it could also be something completely different. DevKit can crash for various reasons. So friendly reminder to anyone: If you are experiencing a crash and you are familiar with a debugging tool like x64dbg, try to figure out the address where the crash is happening. It helps a lot for narrowing down the issue.
florian0 is offline  
Thanks
1 User
Old 04/29/2020, 12:14   #123
 
elite*gold: 0
Join Date: Mar 2020
Posts: 303
Received Thanks: 20
So finally this could be possible soon xD

Beba Army is offline  
Thanks
3 Users
Old 05/07/2020, 16:05   #124
 
elite*gold: 0
Join Date: Oct 2019
Posts: 12
Received Thanks: 3
Will there be a new update? @
Frukio92 is offline  
Old 05/07/2020, 22:22   #125
 
elite*gold: 0
Join Date: Jul 2014
Posts: 187
Received Thanks: 70
Quote:
Originally Posted by Frukio92 View Post
Will there be a new update? @
JohnDornel^ is offline  
Old 05/14/2020, 14:46   #126
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
##########
WolfgangNeverDie is offline  
Old 05/14/2020, 22:24   #127
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
Quote:
Originally Posted by WolfgangNeverDie View Post
Hi!
My client crash on receiver a new packet like 0x8888
What's wrong?
Does your packet have bytes to read? If yes, afair you need to read the packet to the end. The client will be sad otherwise.

Try calling MsgBuffer->FlushRemaining(); before returning.
florian0 is offline  
Old 05/15/2020, 07:19   #128
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
Quote:
Originally Posted by WolfgangNeverDie View Post
Crash too bro! My packet don't have byte to read.
You have to return 1 as well, if its a custom opcode.
#HB is offline  
Old 05/15/2020, 07:58   #129
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Quote:
Originally Posted by #HB View Post
You have to return 1 as well, if its a custom opcode.

Can you give me a example. I change "return 0" to "return 1" but still crashed!
WolfgangNeverDie is offline  
Old 05/15/2020, 08:14   #130
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
Quote:
Originally Posted by WolfgangNeverDie View Post
Can you give me a example. I change "return 0" to "return 1" but still crashed!
Ensure about your func address
Code:
reinterpret_cast<int(__thiscall*)(OnPacketHandle*, CMsgStreamBuffer*)>(0x0084CAB0)(this, MsgBuffer);
Because there's no class in SRO called OnPacketHandle and I can't really tell which process you're hooking.

0084CAB0 shall mean CPSMission, so ensure about your bytes as flo mentioned first and the return value. Debugging will help you find it out quickly.

If you're interested, I had a mini-guide about this: (meanwhile flo's reconstruction is way better, but I like just to stick with my reverse)
#HB is offline  
Thanks
1 User
Old 05/15/2020, 21:46   #131
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Quote:
Originally Posted by #HB View Post
You have to return 1 as well, if its a custom opcode.
Thank #florian0, thank #HB too ^^
WolfgangNeverDie is offline  
Old 05/20/2020, 23:51   #132
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Why my character information return don't correctly.

Code:
printf("- Char: %s,  - Level: %d - Strength: %d - Intellect: %d \n",g_pCICPlayer->m_charname.c_str(), g_pCICPlayer->m_level , g_pCICPlayer->m_str_stat, g_pCICPlayer->m_int_stat);
WolfgangNeverDie is offline  
Old 05/21/2020, 06:31   #133
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
Quote:
Originally Posted by WolfgangNeverDie View Post
Why my character information return don't correctly.

Code:
printf("- Char: %s,  - Level: %d - Strength: %d - Intellect: %d \n",g_pCICPlayer->m_charname.c_str(), g_pCICPlayer->m_level , g_pCICPlayer->m_str_stat, g_pCICPlayer->m_int_stat);
Are you sure that m_charname is not wchar? If its wchar, you need to use wprintf instead.
#HB is offline  
Old 05/21/2020, 08:41   #134
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Quote:
Originally Posted by #HB View Post
Are you sure that m_charname is not wchar? If its wchar, you need to use wprintf instead.
yeah brother. But both stats wrongs ^^
WolfgangNeverDie is offline  
Old 05/21/2020, 13:03   #135
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,108
Received Thanks: 903
Quote:
Originally Posted by WolfgangNeverDie View Post
yeah brother. But both stats wrongs ^^
I don't understand what you mean with stats, but anyways since level & str seems bugged too, then probably its string size that messed up offsets.

You need to ensure to use VC80 as mentioned in main post.
#HB is offline  
Reply

Tags
ussless


Similar Threads Similar Threads
[Source] Fix the old exp bar - by writing code!
05/17/2020 - SRO PServer Guides & Releases - 18 Replies
Hello beloved, dead community, its time for another release. Its more of a proof of concept and I hope it might inspire people to continue working on it. You don't need the source to accomplish cool things. Just write your own source. http://i.epvpimg.com/d7hJbab.png Ye, its super ugly looking. I choose to be a coder, not a designer. I'd be happy, if someone supplies me a proper version of the 2dt and ddj files so I can update this embarrassing screenshot. Anyway. It allows you to...
[Release/WIP]EP6 Source code
04/15/2018 - Shaiya PServer Guides & Releases - 33 Replies
Hi guys, First of all, I want to say that this release is not recommended for public servers yet. Shortly ago I changed my server to ep6 using shen1l's pet.dll, the server crashed every day, after checking the dump files I discovered that the problem was in pet.dll, but without the source code it would be harder to find the cause of the problem. So I decided to start a project and release the source code for everyone, so that everyone can solve their problems more easily, and also so that...
[C++ Source] My Free Farm Bot [WIP]
06/28/2011 - Browsergames - 0 Replies
I decided to release this on here as i have no more use for it and no intention to continue the project. I am releasing 2 projects: One basic library for mff called libmff(although it is not really a library) there is an example on how to use it in the package. And a helper with a fancy gui. Note that there is almost no error checking on the helper and that it crashes if you for example forget to select a product. You need libcurl and boost for both and GWEN(the gui toolkit by garry) for...



All times are GMT +1. The time now is 14:15.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.