|
You last visited: Today at 20:28
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.
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
|
|
|
05/21/2020, 20:30
|
#137
|
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
|
Quote:
Originally Posted by florian0
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.
|
|
|
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.
|
|
|
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.
|
|
|
05/25/2020, 21:43
|
#140
|
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
|
Quote:
Originally Posted by WolfgangNeverDie
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.
|
|
|
05/26/2020, 09:55
|
#141
|
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
|
Quote:
Originally Posted by WolfgangNeverDie
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.
|
|
|
05/26/2020, 13:29
|
#142
|
elite*gold: 0
Join Date: May 2020
Posts: 70
Received Thanks: 6
|
Quote:
Originally Posted by florian0
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
|
|
|
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 ...
|
|
|
05/27/2020, 18:17
|
#144
|
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
|
Quote:
Originally Posted by kanka5252
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 ...
|
|
|
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.
|
|
|
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
|
|
|
05/28/2020, 14:59
|
#147
|
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,486
|
Quote:
Originally Posted by kanka5252
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.
|
|
|
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...
|
|
|
05/29/2020, 07:08
|
#149
|
elite*gold: 0
Join Date: May 2008
Posts: 57
Received Thanks: 35
|
Quote:
Originally Posted by kanka5252
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.
|
|
|
05/30/2020, 00:25
|
#150
|
elite*gold: 0
Join Date: Nov 2010
Posts: 132
Received Thanks: 10
|
my english is not yet... sorry
|
|
|
 |
|
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.
|
|