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

05/21/2020 13:40 florian0#136
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 [Only registered and activated users can see links. Click Here To Register...]
05/21/2020 20:30 WolfgangNeverDie#137
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 [Only registered and activated users can see links. Click Here To Register...]
Yeah. :D
05/22/2020 23:06 Hercules*#138
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 WolfgangNeverDie#139
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 sarkoplata#140
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.
05/26/2020 09:55 florian0#141
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.

[Only registered and activated users can see links. Click Here To Register...]
05/26/2020 13:29 WolfgangNeverDie#142
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.

[Only registered and activated users can see links. Click Here To Register...]
Perfect! :D thx u
05/26/2020 18:20 kanka5252#143
Anyone can share, SLN for 2005 or 2010 ? i cant use cmake var vs2005 -.-" fvk ...
05/27/2020 18:17 florian0#144
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 ...
05/28/2020 07:00 WolfgangNeverDie#145
Flo!
How to set a GUI "always on top" or set display priority for each GUI.
05/28/2020 10:53 kanka5252#146
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 [Only registered and activated users can see links. Click Here To Register...]
05/28/2020 14:59 florian0#147
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 [Only registered and activated users can see links. Click Here To Register...]
The Wiki has a guide on how to setup Visual Studio 2010. Make sure to follow all the steps: [Only registered and activated users can see links. Click Here To Register...]

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 kanka5252#148
Can you connected my pc and can show me ? how i can make it... really fvk...
05/29/2020 07:08 momtaz009#149
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.
05/30/2020 00:25 kanka5252#150
my english is not yet... sorry
[Only registered and activated users can see links. Click Here To Register...]