Register for your free account! | Forgot your password?

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

  • 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 01/25/2019, 19:17   #31
 
Klito*'s Avatar
 
elite*gold: 0
Join Date: May 2018
Posts: 84
Received Thanks: 44
The Leader of the reversing field without rival!
Klito* is offline  
Old 02/01/2019, 17:53   #32
 
elite*gold: 0
Join Date: Jan 2011
Posts: 146
Received Thanks: 85
What do you think about the *.2dt file? ?
paradise1992 is offline  
Old 02/01/2019, 23:53   #33
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,464
Quote:
Originally Posted by paradise1992 View Post
What do you think about the *.2dt file? ?
I think it's not worth to implement, yet. I've only hit a single limitation yet, while trying to make a slot for items and skills and I'm not sure if it's not just me being stupid.

It's not that hard to implement, most of the virtual functions are the same, just different addresses, but, as I said, I don't think it's worth the effort.
florian0 is offline  
Old 02/11/2019, 03:53   #34
 
b0ykoe's Avatar
 
elite*gold: 72
Join Date: Sep 2011
Posts: 760
Received Thanks: 221
I've started 2 days ago with @ release and honestly this is fairly easy. Even for someone who has never worked with any C language before.

Huge thanks to him and keep going!

Just want to show some of my progress
b0ykoe is offline  
Thanks
6 Users
Old 02/14/2019, 16:10   #35
 
concucu's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 214
Received Thanks: 117
Quote:
Originally Posted by b0ykoe View Post
I've started 2 days ago with @ release and honestly this is fairly easy. Even for someone who has never worked with any C language before.

Huge thanks to him and keep going!

Just want to show some of my progress
Hi bro., I try to open the window when clicking florian0guid

Code:
int CIFflorian0Guide::OnClickEvent(int a1, int x, int y)
{
	printf("> " __FUNCTION__ "(%d, %d, %d)\n", a1, x, y);

	CGEffSoundBody::get()->PlaySound(L"snd_quest");		

// Add this

	g_pCGInterface->m_IRM.GetResObj(1338, 1)->SetVisibility(true);

	return 0;
}
and
Code:
#include <GInterface.h>
but i cant build the project.

how to make this work?

thank a lot
concucu is offline  
Old 02/14/2019, 16:29   #36
 
b0ykoe's Avatar
 
elite*gold: 72
Join Date: Sep 2011
Posts: 760
Received Thanks: 221
Quote:
Originally Posted by concucu View Post
Hi bro., I try to open the window when clicking florian0guid

Code:
int CIFflorian0Guide::OnClickEvent(int a1, int x, int y)
{
	printf("> " __FUNCTION__ "(%d, %d, %d)\n", a1, x, y);

	CGEffSoundBody::get()->PlaySound(L"snd_quest");		

// Add this

	g_pCGInterface->m_IRM.GetResObj(1338, 1)->SetVisibility(true);

	return 0;
}
and
Code:
#include <GInterface.h>
but i cant build the project.

how to make this work?

thank a lot
Well depends on whats your error. Without that information no one can help you.
b0ykoe is offline  
Old 02/14/2019, 16:41   #37
 
concucu's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 214
Received Thanks: 117
Quote:
Originally Posted by b0ykoe View Post
Well depends on whats your error. Without that information no one can help you.
i try like you do. Click on icon ! and show windows.

i add
Code:
int CIFflorian0Guide::OnClickEvent(int a1, int x, int y)
{
	printf("> " __FUNCTION__ "(%d, %d, %d)\n", a1, x, y);

	CGEffSoundBody::get()->PlaySound(L"snd_quest");		

// Add this

	g_pCGInterface->m_IRM.GetResObj(1338, 1)->SetVisibility(true);

	return 0;
}
and
Code:
#include <GInterface.h>
but build get the errors

Gallery 1
concucu is offline  
Old 02/14/2019, 16:51   #38
 
b0ykoe's Avatar
 
elite*gold: 72
Join Date: Sep 2011
Posts: 760
Received Thanks: 221
Quote:
Originally Posted by concucu View Post
i try like you do. Click on icon ! and show windows.

i add
Code:
int CIFflorian0Guide::OnClickEvent(int a1, int x, int y)
{
	printf("> " __FUNCTION__ "(%d, %d, %d)\n", a1, x, y);

	CGEffSoundBody::get()->PlaySound(L"snd_quest");		

// Add this

	g_pCGInterface->m_IRM.GetResObj(1338, 1)->SetVisibility(true);

	return 0;
}
and
Code:
#include <GInterface.h>
but build get the errors

Gallery 1
Looks like you're missing D9, did you extract the D9 stuff into "third-party\dxsdk"?
b0ykoe is offline  
Old 02/14/2019, 16:54   #39
 
concucu's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 214
Received Thanks: 117
Quote:
Originally Posted by b0ykoe View Post
Looks like you're missing D9, did you extract the D9 stuff into "third-party\dxsdk"?
i did it,




i just had trouble trying to add #include <GInterface.h>
concucu is offline  
Old 02/15/2019, 15:45   #40
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,464
Quote:
Originally Posted by concucu View Post
i just had trouble trying to add #include <GInterface.h>
It's a missing include in NavigationDeadreckon.h. I just pushed a fix. It's waiting for the pipeline prior to being merged.

florian0 is offline  
Thanks
1 User
Old 02/21/2019, 20:23   #41
 
Klito*'s Avatar
 
elite*gold: 0
Join Date: May 2018
Posts: 84
Received Thanks: 44
One more thing why i got crash because of the ginterface.txt file?, the dll built without any problem, loaded and working just the client crash when i select the character, anyone can help?
Klito* is offline  
Old 02/21/2019, 21:10   #42
 
b0ykoe's Avatar
 
elite*gold: 72
Join Date: Sep 2011
Posts: 760
Received Thanks: 221
Quote:
Originally Posted by Klito* View Post
One more thing why i got crash because of the ginterface.txt file?, the dll built without any problem, loaded and working just the client crash when i select the character, anyone can help?
Do you have added any custom windows yet?
b0ykoe is offline  
Old 02/21/2019, 21:17   #43
 
Klito*'s Avatar
 
elite*gold: 0
Join Date: May 2018
Posts: 84
Received Thanks: 44
Quote:
Originally Posted by b0ykoe View Post
Do you have added any custom windows yet?
no just the default window
Klito* is offline  
Old 02/21/2019, 23:24   #44
 
b0ykoe's Avatar
 
elite*gold: 72
Join Date: Sep 2011
Posts: 760
Received Thanks: 221
Quote:
Originally Posted by Klito* View Post
no just the default window
Are you loading the dll in your sro_client.exe? If not thats the reason for the crash because the game tries to render something it doesn't know about.
b0ykoe is offline  
Old 02/22/2019, 03:10   #45
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,464
Quote:
Originally Posted by Klito* View Post
One more thing why i got crash because of the ginterface.txt file?, the dll built without any problem, loaded and working just the client crash when i select the character, anyone can help?
As @ said, it could be that the Dll is not loaded (pretty obvious if the ImGui Windows arent visible) or if your ginterface.txt is malformed. It may not be obvious from the ginterface.txt-changes file itself, but you need to add the additional lines in the section named "Create". I've seen ppl append the lines at the end of the file, which is not correct.

To make it easier to troubleshoot, I'd like to ask everyone who is experiencing errors or crashes to supply:
1. the error message being thrown
2. the address (and/or the source line) the debugger stopped at
3. if available, a crash dump of the client

"My client is crashing" leaves too many possibilities open.
florian0 is offline  
Thanks
1 User
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 03:24.


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.