Register for your free account! | Forgot your password?

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

  • 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 05/21/2020, 13:40   #136
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
I think it's an error in the code. I recently added offset-testing to CICPlayer and it failed immediately, indicating there is something wrong with the offsets. I'm preparing a patch.

Edit: Patch is applied. Offsets are now correct.

PS: You don't need wprintf to print a wchar_t. %ls is the standarized version to print wstrings with printf-style formatting.

Code:
printf("%ls", wstr.c_str());
See
florian0 is offline  
Thanks
2 Users
Old 05/21/2020, 20:30   #137
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Quote:
Originally Posted by florian0 View Post
I think it's an error in the code. I recently added offset-testing to CICPlayer and it failed immediately, indicating there is something wrong with the offsets. I'm preparing a patch.

Edit: Patch is applied. Offsets are now correct.

PS: You don't need wprintf to print a wchar_t. %ls is the standarized version to print wstrings with printf-style formatting.

Code:
printf("%ls", wstr.c_str());
See
Yeah.
WolfgangNeverDie is offline  
Old 05/22/2020, 23:06   #138
 
elite*gold: 0
Join Date: May 2018
Posts: 244
Received Thanks: 119
little mistake on IFChatViewer.cpp clientlib

if (pChatList) {
std::n_wstring strmsg(message);

if (m_numberOfLinesPerTab[index]++ > 250)
m_numberOfLinesPerTab[index] = 1;

int lineNumber;
if (chatType == 0xff) {
lineNumber = 0;
} else {
lineNumber = this->m_numberOfLinesPerTab[index];
}

m_ChatLists[index]->sub_64F8A0(strmsg, lineNumber, color, color, -1, 0, param5);
}

colored one was [0]
ex. global chat written twice at all chat .
thank you flo.
Hercules* is offline  
Thanks
1 User
Old 05/25/2020, 19:57   #139
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Hi!
My item mall (F10) crash on press F10 If i add more than 6 GUI. What's wrong?
:|
and how can i get current Region.
WolfgangNeverDie is offline  
Old 05/25/2020, 21:43   #140

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
Quote:
Originally Posted by WolfgangNeverDie View Post
Hi!
My item mall (F10) crash on press F10 If i add more than 6 GUI. What's wrong?
:|
and how can i get current Region.
Code:
int16_t selfRegion = (*(int16_t*)0xEEF68C);
It's on CICPlayer as well, but for some reason sometimes it goes crazy, I couldn't solve it yet.
sarkoplata is offline  
Thanks
2 Users
Old 05/26/2020, 09:55   #141
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
Quote:
Originally Posted by WolfgangNeverDie View Post
My item mall (F10) crash on press F10 If i add more than 6 GUI. What's wrong?
Silkroad has a limit of 7000 UI elements. I guess you exceeded that. I made a post on increasing the limit but I can't tell if it has side effects.

florian0 is offline  
Thanks
1 User
Old 05/26/2020, 13:29   #142
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Quote:
Originally Posted by florian0 View Post
Silkroad has a limit of 7000 UI elements. I guess you exceeded that. I made a post on increasing the limit but I can't tell if it has side effects.

Perfect! thx u
WolfgangNeverDie is offline  
Old 05/26/2020, 18:20   #143
 
elite*gold: 0
Join Date: Nov 2010
Posts: 132
Received Thanks: 10
Anyone can share, SLN for 2005 or 2010 ? i cant use cmake var vs2005 -.-" fvk ...
kanka5252 is offline  
Old 05/27/2020, 18:17   #144
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
Quote:
Originally Posted by kanka5252 View Post
i cant use cmake var vs2005
if you elaborate what issues with cmake you are facing, we might be able to help you.

Copying cmake-generated VS projects across PCs might not be a good idea since include and executable paths might be hardcoded. Updating would be a nightmare aswell ...
florian0 is offline  
Old 05/28/2020, 07:00   #145
 
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
Flo!
How to set a GUI "always on top" or set display priority for each GUI.
WolfgangNeverDie is offline  
Old 05/28/2020, 10:53   #146
 
elite*gold: 0
Join Date: Nov 2010
Posts: 132
Received Thanks: 10
cmake do not supported vs2005

and

/DWIN32 /D_WINDOWS /W3 /GR /EHsc /X
/MTd /Zi /Ob0 /Od /RTC1
/MT /O2 /Ob2 /DNDEBUG


thats error ? i used cmake for vs2010

which
kanka5252 is offline  
Old 05/28/2020, 14:59   #147
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
Quote:
Originally Posted by kanka5252 View Post
cmake do not supported vs2005

and

/DWIN32 /D_WINDOWS /W3 /GR /EHsc /X
/MTd /Zi /Ob0 /Od /RTC1
/MT /O2 /Ob2 /DNDEBUG


thats error ? i used cmake for vs2010

which
The Wiki has a guide on how to setup Visual Studio 2010. Make sure to follow all the steps:

The guide should work on other Visual Studio versions as well (you'll only need to change the VS Version in the generate_project.cmd file), but since I quit using Visual Studio as an IDE overall, I can't test it.

Sorry about the cryptic codes. These are no errors, just compiler flags. I use these to compare different environments.

Visual Studio 2005 is not supported as an IDE, because CMake dropped Visual Studio 2005 support. SRO_DevKit already requires a bunch of different tools, I didn't want to make it even more complicated by depending on an outdated CMake version.
florian0 is offline  
Old 05/28/2020, 17:26   #148
 
elite*gold: 0
Join Date: Nov 2010
Posts: 132
Received Thanks: 10
Can you connected my pc and can show me ? how i can make it... really fvk...
kanka5252 is offline  
Old 05/29/2020, 07:08   #149
 
elite*gold: 0
Join Date: May 2008
Posts: 57
Received Thanks: 35
Quote:
Originally Posted by kanka5252 View Post
Can you connected my pc and can show me ? how i can make it... really fvk...
You really shouldn't be trying to do anything with this devkit if you can't even follow a simple step by step wiki to get it at least compiling and running.
momtaz009 is offline  
Old 05/30/2020, 00:25   #150
 
elite*gold: 0
Join Date: Nov 2010
Posts: 132
Received Thanks: 10
my english is not yet... sorry
kanka5252 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 20:29.


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.