[Mini-Release] Custom Unique Notifies

08/15/2019 04:51 #HB#1
[Only registered and activated users can see links. Click Here To Register...]
08/15/2019 06:51 Laag#82#2
good job

if you can add in guard (why dll)


And don't forget to add your system message at textuisystem, for example:

PHP Code:
1    UIIT_MSG_APPEAR_SETH    0    0    0    0    0    0    Seth has appeared on Earth.    0    0    0    0    0    0    0 
example:-

SendNotify("UIIT_MSG_APPEAR_SETH");

PHP Code:
public void SendNotify(string Msg)
{
 
/* BLUE */
 
Packet packet = new Packet(0x300C);
 
packet.WriteUInt16(3100);
 
packet.WriteUInt8(1);
 
packet.WriteAscii(Msg);
 
C_Security.Send(packet);
 
Send(false);

good luck
08/15/2019 07:31 #HB#3
Quote:
Originally Posted by khaleed2010 View Post
if you can add in guard (why dll)
A lot of reasons.

-Why would I waste network, memory and processing to re-send a data that is already being sent but just in a different shape?
Since this packet is received by all clients, so my way will be more network saving than yours. That's small things that some people may not notice or care about. But scientifically, they can make even a tiny difference in speed.
Why do you think joymax did that in sro_client internally as well instead of server files?

-It's not about being a DLL or filter, we usually use a DLL to modify/control main executable code, at least in this field.
So, you can imagine that this is the real executable code, because in theory, it is true.
08/15/2019 11:38 Mr.Awesome1337#4
You made my day, awesome release, thank you.
08/15/2019 19:54 Takashipvp#5
Quote:
Originally Posted by #HB View Post
A lot of reasons.

-Why would I waste network, memory and processing to re-send a data that is already being sent but just in a different shape?
Since this packet is received by all clients, so my way will be more network saving than yours. That's small things that some people may not notice or care about. But scientifically, they can make even a tiny difference in speed.
Why do you think joymax did that in sro_client internally as well instead of server files?

-It's not about being a DLL or filter, we usually use a DLL to modify/control main executable code, at least in this field.
So, you can imagine that this is the real executable code, because in theory, it is true.

Yes you are right good job :)
08/16/2019 10:34 Mr.Awesome1337#6
Feedback: using the dll downloaded works fine with "Seth' unique but trying to modify the unique code, the sro_client crashes once unique appears
08/16/2019 12:22 #HB#7
Quote:
Originally Posted by Mr.Awesome1337 View Post
Feedback: using the dll downloaded works fine with "Seth' unique but trying to modify the unique code, the sro_client crashes once unique appears
I added 3 different uniques notifies and it works fine for me.

Please ensure that you're using VC80 aka VS 2005 and building on Release. You can provide a dump file as well.
08/16/2019 12:44 Mr.Awesome1337#8
Oh, okay I will be downloading it and reporting back
08/17/2019 16:47 Mr.Awesome1337#9
Is it possible to use vs 2019? if yes then here we go
dump file: [Only registered and activated users can see links. Click Here To Register...]
crashing once the unique appears
08/17/2019 17:42 #HB#10
Quote:
Originally Posted by Mr.Awesome1337 View Post
Is it possible to use vs 2019? if yes then here we go
dump file: [Only registered and activated users can see links. Click Here To Register...]
crashing once the unique appears
Since SRO was compiled on VC80 aka VS 2005, we have to get along with old structures to dodge any errors caused by the sro_client.

Quote:
Originally Posted by #HB View Post
Note: Structures found in the files are for VC80 libs, back when strings were 28 bytes. You'll face errors, if you work with any later compiler.
08/17/2019 22:30 Mr.Awesome1337#11
Quote:
Originally Posted by #HB View Post
Since SRO was compiled on VC80 aka VS 2005, we have to get along with old structures to dodge any errors caused by the sro_client.
I tried it on 2005 but got an error saying that this file was created in a newer version
[Only registered and activated users can see links. Click Here To Register...]
08/17/2019 22:47 #HB#12
Quote:
Originally Posted by Mr.Awesome1337 View Post
I tried it on 2005 but got an error saying that this file was created in a newer version
Yeah, just create a new clean project and copy header and source files into it.
08/18/2019 01:44 Mr.Awesome1337#13
Quote:
Originally Posted by #HB View Post
Yeah, just create a new clean project and copy header and source files into it.
here i got 5 errors after i copy the header and source files
[Only registered and activated users can see links. Click Here To Register...]
08/18/2019 02:46 #HB#14
Quote:
Originally Posted by Mr.Awesome1337 View Post
here i got 5 errors after i copy the header and source files
Open each of them, and write this in the first line:
Code:
#include "stdafx.h"

Alternative solution, in case you didn't even wanna use a precompiled header:

Select Your Project from Solution Explorer -> Alt + Enter to open Properties -> Configuration Properties -> Precompiled Headers -> Precompiled Header -> Switch it to "Not Using Precompiled Headers"
08/18/2019 03:12 Mr.Awesome1337#15
Quote:
Originally Posted by #HB View Post
Open each of them, and write this in the first line:
Code:
#include "stdafx.h"

Alternative solution, in case you didn't even wanna use a precompiled header:

Select Your Project from Solution Explorer -> Alt + Enter to open Properties -> Configuration Properties -> Precompiled Headers -> Precompiled Header -> Switch it to "Not Using Precompiled Headers"
when i'm Not Using Precompiled Headers i got more errors and when i write this #include "stdafx.h" in first line also errors appear

While using #include "stdafx.h"
[Only registered and activated users can see links. Click Here To Register...]

while Not Using Precompiled Headers
[Only registered and activated users can see links. Click Here To Register...]