Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 21:23

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Updating flyff packet (ar.h and ar.cpp) issue

Discussion on [Help] Updating flyff packet (ar.h and ar.cpp) issue within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2014
Posts: 2
Received Thanks: 0
Exclamation [Help] Updating flyff packet (ar.h and ar.cpp) issue

I'm facing the issue in sending a packet that's <vector>
I've noticed that in my ar.h and ar.cpp is an old version
that doesn't contain <vector> type of operator as seen below

Old version of packet operator
Code:
   // insertion operations
    CAr& operator<<(BYTE by);
    CAr& operator<<(WORD w);
    CAr& operator<<(LONG l);
    CAr& operator<<(DWORD dw);
    CAr& operator<<(float f);
    CAr& operator<<(double d);

    CAr& operator<<(int i);
    CAr& operator<<(short w);
    CAr& operator<<(char ch);
    CAr& operator<<(unsigned u);

   // extraction operations
    CAr& operator>>(BYTE& by);
    CAr& operator>>(WORD& w);
    CAr& operator>>(DWORD& dw);
    CAr& operator>>(LONG& l);
    CAr& operator>>(float& f);
    CAr& operator>>(double& d);

    CAr& operator>>(int& i);
    CAr& operator>>(short& w);
    CAr& operator>>(char& ch);
   CAr&operator>>(unsigned&u);
compare to a newer version of many sources they tend to use these kind of operator
Code:
   template<typename T, size_t N>
    CAr & operator<<(const T(&t)[N]);
    template<typename T>
    CAr & operator<<(const T & t);
    template<typename T>
    CAr & operator<<(const std::vector<T> & v);
    template<typename T, typename U>
    CAr & operator<<(const map<T, U> & m);

    template<typename T, size_t N>
    CAr & operator>>(T(&t)[N]);
    template<typename T>
    CAr & operator>>(T & t);
    template<typename T>
    CAr & operator>>(vector<T> & v);
    template<typename T, typename U>
    CAr & operator>>(map<T, U> & m);
If I want to update my ar.h and ar.cpp, can I just replace my old ar.h and ar.cpp with the new one from newer version?
I've tried that already but seem like there's some packet that my client cannot recieve after the update (for example: player cannot recieve buff from BuffPang successfully)

I wonder that maybe if I want to update the packet system. Are there somewhere more in the code that I have to update?


I tried debugging and kind of assume that
the problem might come from SNAPSHOT sending and receiving
not PACKET

Seem like some SNAPSHOT is not corrected as seen in the debugging picture below



as you can see the 'hdr' value in the bottom left of the picture is = 65280 which is way too high for SNAPSHOTTYPE_DOAPPLYUSESKIL which normally has the value of = 215 or (WORD)0x00d7

that means some how with the new ar.h and ar.cpp packet is effect and cause the packet to get change from 215 to 65280 along the way before receiving in Neuz.exe client

I'm not sure where should I dig next to find where the packet got changed. Please help.
Cadenzatb is offline  
Old 09/26/2022, 18:22   #2
 
elite*gold: 0
Join Date: Apr 2013
Posts: 511
Received Thanks: 431
You need to understand how "Snapshots" work.

If something in the snapshot is wrong, you gonna **** up every snapshot behind.

Example:

Quote:
SNAPSHOTTYPE_EXAMPLE_1
int32_t Value1
int32_t Value2
int32_t Value3
SNAPSHOTTYPE_EXAMPLE_2
int64_t Value1
int64_t Value2
int64_t Value3
If we gonna read that:

Quote:
2 Bytes
4 Bytes
4 Bytes
4 Bytes
-------
2 Bytes
8 Bytes
8 Bytes
8 Bytes
So now if you gonna read it in the first snapshot like that:

Quote:
2 Bytes
4 Bytes
4 Bytes
8 Bytes (Example as int64_t)
-------
6 Bytes
8 Bytes
8 Bytes
Now you already see what happens, the first snapshot should have no real issue except for value3 what might be wrong, we don't care about that at first. The next snapshot would try to fetch the next 2 bytes, what is a broken value1, that result in a kinda ****** number.

You maybe know what i wanna tell you by now.
Wanetrain is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Project Issue / Sro_client Issue / Help if you can!!
09/08/2019 - SRO Private Server - 7 Replies
There's thousands of edits i want to make on the sro_client.exe but i don't want to regret later because i choosed the wrong sro_client.exe to build in, so help me guys with a good sro_client.exe to build my project on I see many servers with virusless sro_client.exe that i prefer to use, but i with no knowledge of what did they edit on it, i can't use it So i need a Sro_client.exe with 3 conditions 1. No Edits 2. No Virus 3. Fit with vsro 1.88 The answers will be really...
Strange issue with mbot crack , looking if any people had similar issue
04/29/2017 - Silkroad Online - 1 Replies
After many years without playing any silkroad private servers i ended come back, but after download mbot to run it, i tried run the cracked vesion download directly from joysro forum , but when i run that i get blue screen. Was looking if someone had simillar issue since nowadays i'm using W10 , in the build 15063.138 , so i was wondering if it could be a issue with the softwere or related to hardwere since i'm using a laptop nowadays.
Updating issue "Failed to extract patch file"
06/29/2016 - S4 League - 6 Replies
Hi, today when i started s4 it was supposed to patch/Update but suddenly after few sec....Shit occurs. Does anyone have a solve to this shitty patch? when i run s4 it patches for a sec and says "Failed to extract patch file" wtf.....?
During updating the new spawn packet 5623.
08/18/2012 - CO2 Private Server - 2 Replies
Heya guys During updating the new spawn packet 5623. 1-first acc sees second acc however second acc can't see first acc. 2-when acc login the flower icon appears next his name. 3- name is fucked for chars



All times are GMT +2. The time now is 21:23.


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.