Register for your free account! | Forgot your password?

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

  • 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 08/03/2020, 15:14   #211
dotCom
 
Devsome's Avatar
 
elite*gold: 12400
The Black Market: 104/0/0
Join Date: Mar 2009
Posts: 15,880
Received Thanks: 4,386
Quote:
Originally Posted by thaidu0ngpr0 View Post
If you have a good heart, create a guide, handling packets using sro_dev, to help newbies like us do it.
Thank you for sharing
Do you ever read the wiki from ?

If you want to sniff packets, there are tons of tutorials out there.
Devsome is offline  
Old 08/03/2020, 16:16   #212
 
elite*gold: 0
Join Date: Apr 2012
Posts: 263
Received Thanks: 267
Quote:
Originally Posted by Devsome View Post
Do you ever read the wiki from ?

If you want to sniff packets, there are tons of tutorials out there.
Those instructions cannot be combined with sro_dev. we are newbie so it is hard to do it. The sro_dev wiki I have read many times. I don't see any packet handling instructions
thaidu0ngpr0 is offline  
Old 08/04/2020, 20:47   #213
 
elite*gold: 0
Join Date: Jun 2017
Posts: 83
Received Thanks: 22
I'm very interested and indeed I would like to see private servers based on these files <3 but I want to ask a couple of questions

- Are there any plans to add SRO Macro or any kind of in-game bot?
- According to your tests, Can the client handle a large number of players in one place? (unlike other private servers)

Thanks in advance ^_^
Ahmed0425 is offline  
Old 08/04/2020, 21:54   #214
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,465
Quote:
Originally Posted by Ahmed0425 View Post
Are there any plans to add SRO Macro or any kind of in-game bot?
Thought about it. Decided that I got enough to reverse engineer. Discarded it. Feel free to develop something and contribute it.

Quote:
Originally Posted by Ahmed0425 View Post
According to your tests, Can the client handle a large number of players in one place? (unlike other private servers)
I think you misunderstood this project. When you compile the code, you get a Dll to inject into the client, not a full client. The dll has little to no impact on the performance of the client.
florian0 is offline  
Old 08/06/2020, 18:06   #215
 
elite*gold: 0
Join Date: Apr 2012
Posts: 263
Received Thanks: 267
Video





I have successfully call form
I want to show some text on the form. but I wrote this code it does not show anything. you can see if it helps me where it is wrong
thank you
thaidu0ngpr0 is offline  
Old 08/07/2020, 00:33   #216
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,465
Quote:
Originally Posted by thaidu0ngpr0 View Post
I want to show some text on the form. but I wrote this code it does not show anything. you can see if it helps me where it is wrong
thank you
Kinda depends on what your resinfo looks like. Right now your code expects the CIFStatic to be in CGInterface (ginterface.txt). I guess that isn't the case. It's inside your own gui.

You need to query the control from your interface class. You have to make a function that returns a pointer to the element.

Code:
CIFflorian0 *pMyWnd = g_pCGInterface->m_IRM.GetResObj<CIFflorian0>(GDR_FLORIAN0, 1);

CIFStatic *pSlot1 = pMyWnd->GetSlot1();
The function can look like this:
Code:
CIFStatic *CIFflorian0::GetSlot1() const {
  return m_IRM.GetResObj<CIFStatic>(ELECTUSDPS_PLAYER_SLOT1, 1);
  // -- OR --
  return m_slot1; // where m_slot1 is set in OnCreate() accordingly.
}
I would recommend making a function for getting the pointer to your window aswell. It makes the code a lot more readable.

Code:
// So this
CIFflorian0 *pMyWnd = g_pCGInterface->m_IRM.GetResObj<CIFflorian0>(GDR_FLORIAN0, 1);

// becomes this
CIFflorian0 *pMyWnd = g_pCGInterface->GetMyWindow();
You can also make everything public. But that often leads to messy code. Keep it readable, don't be lazy.
florian0 is offline  
Thanks
1 User
Old 08/07/2020, 03:41   #217
 
elite*gold: 0
Join Date: Apr 2012
Posts: 263
Received Thanks: 267
Thumbs up

Quote:
Originally Posted by florian0 View Post
Kinda depends on what your resinfo looks like. Right now your code expects the CIFStatic to be in CGInterface (ginterface.txt). I guess that isn't the case. It's inside your own gui.

You need to query the control from your interface class. You have to make a function that returns a pointer to the element.

Code:
CIFflorian0 *pMyWnd = g_pCGInterface->m_IRM.GetResObj<CIFflorian0>(GDR_FLORIAN0, 1);

CIFStatic *pSlot1 = pMyWnd->GetSlot1();
The function can look like this:
Code:
CIFStatic *CIFflorian0::GetSlot1() const {
  return m_IRM.GetResObj<CIFStatic>(ELECTUSDPS_PLAYER_SLOT1, 1);
  // -- OR --
  return m_slot1; // where m_slot1 is set in OnCreate() accordingly.
}
I would recommend making a function for getting the pointer to your window aswell. It makes the code a lot more readable.

Code:
// So this
CIFflorian0 *pMyWnd = g_pCGInterface->m_IRM.GetResObj<CIFflorian0>(GDR_FLORIAN0, 1);

// becomes this
CIFflorian0 *pMyWnd = g_pCGInterface->GetMyWindow();
You can also make everything public. But that often leads to messy code. Keep it readable, don't be lazy.
Thank you my idol. it worked
thaidu0ngpr0 is offline  
Old 08/07/2020, 09:21   #218
 
elite*gold: 0
Join Date: Dec 2009
Posts: 386
Received Thanks: 88
Quote:
Originally Posted by thaidu0ngpr0 View Post
Thank you my idol. it worked
Can you share the dps meter?
mudik is offline  
Old 08/08/2020, 01:34   #219
 
Chigako's Avatar
 
elite*gold: 0
Join Date: Aug 2020
Posts: 32
Received Thanks: 21
Quote:
Originally Posted by mudik View Post
Can you share the dps meter?
you can find the window in electus client
Chigako is offline  
Old 08/08/2020, 13:12   #220
 
elite*gold: 0
Join Date: Dec 2009
Posts: 386
Received Thanks: 88
Quote:
Originally Posted by Chigako View Post
you can find the window in electus client
Who means the window?
mudik is offline  
Old 08/08/2020, 22:08   #221
 
Chigako's Avatar
 
elite*gold: 0
Join Date: Aug 2020
Posts: 32
Received Thanks: 21
Quote:
Originally Posted by mudik View Post
Who means the window?
Well, now read the aggro list on GS and send it to your window. I think you can do this using your superior mind
Chigako is offline  
Old 08/12/2020, 15:55   #222
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,465
Quote:
Originally Posted by thaidu0ngpr0 View Post
If you have a good heart, create a guide, handling packets using sro_dev, to help newbies like us do it.
Thank you for sharing
I just a couple thousand lines of code to allow processing network messages like the original game. It should now be easier to understand. I've also implemented two functions as an example.

OnUpdateGameTime



OnChatReceive
florian0 is offline  
Thanks
7 Users
Old 08/14/2020, 23:27   #223

 
elite*gold: 100
Join Date: Jun 2013
Posts: 442
Received Thanks: 778
@

On behalf of all of the Electus Team (@ - LENOX - @), we would like to greatly thank you for everything you've done up to this point with this devkit. We hope to return back the favor by contributing to your source code every now and then.

Definitely, absolutely, 100% recommend this for anyone, whether starting a server or not.

Great job. The scene needs more people like you.
Anonymous-9238 is offline  
Thanks
8 Users
Old 08/16/2020, 00:54   #224
 
elite*gold: 426
Join Date: Mar 2010
Posts: 561
Received Thanks: 226
Post

Quote:
Originally Posted by Simulation1337 View Post
@

On behalf of all of the Electus Team (@ - LENOX - @), we would like to greatly thank you for everything you've done up to this point with this devkit. We hope to return back the favor by contributing to your source code every now and then.

Definitely, absolutely, 100% recommend this for anyone, whether starting a server or not.

Great job. The scene needs more people like you.
you need thanks after this
Laag#82 is offline  
Old 08/19/2020, 10:42   #225
 
elite*gold: 0
Join Date: Dec 2009
Posts: 386
Received Thanks: 88
Can anyone tell me how i can disable Flo´s window and stay the discord only?






mudik 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 +2. The time now is 02:29.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.