I'm currently learning and use Ketchup's source [V19] K18 since last year
and 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
[V19] K18 version of ar.h
compare to a newer version of [V22] K18 that can handle more of a variable type of data
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 [V22] K18 source?
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?
Thank for the help :
oh I'm so sorry, I just realized I'm posting in the wrong sub-forum.
big sorry to the moderator.
and 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
[V19] K18 version of ar.h
Code:
[COLOR=#D4D4D4][COLOR=#6a9955] // insertion operations[/COLOR]
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#4ec9b0]BYTE[/COLOR] [COLOR=#9cdcfe]by[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#4ec9b0]WORD[/COLOR] [COLOR=#9cdcfe]w[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#4ec9b0]LONG[/COLOR] [COLOR=#9cdcfe]l[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#4ec9b0]DWORD[/COLOR] [COLOR=#9cdcfe]dw[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#569cd6]float[/COLOR] [COLOR=#9cdcfe]f[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#569cd6]double[/COLOR] [COLOR=#9cdcfe]d[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#569cd6]int[/COLOR] [COLOR=#9cdcfe]i[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#569cd6]short[/COLOR] [COLOR=#9cdcfe]w[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#569cd6]char[/COLOR] [COLOR=#9cdcfe]ch[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#569cd6]unsigned[/COLOR] [COLOR=#9cdcfe]u[/COLOR]);
[COLOR=#6a9955] // extraction operations[/COLOR]
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#4ec9b0]BYTE[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#9cdcfe]by[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#4ec9b0]WORD[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#9cdcfe]w[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#4ec9b0]DWORD[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#9cdcfe]dw[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#4ec9b0]LONG[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#9cdcfe]l[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#569cd6]float&[/COLOR] [COLOR=#9cdcfe]f[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#569cd6]double&[/COLOR] [COLOR=#9cdcfe]d[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#569cd6]int&[/COLOR] [COLOR=#9cdcfe]i[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#569cd6]short&[/COLOR] [COLOR=#9cdcfe]w[/COLOR]);
[COLOR=#4ec9b0]CAr[/COLOR][COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#569cd6]char&[/COLOR] [COLOR=#9cdcfe]ch[/COLOR]);
[/COLOR][COLOR=#4EC9B0] CAr[/COLOR][COLOR=#569CD6]&[/COLOR][COLOR=#C586C0]operator>>[/COLOR][COLOR=#D4D4D4]([/COLOR][COLOR=#569CD6]unsigned&[/COLOR][COLOR=#9CDCFE]u[/COLOR][COLOR=#D4D4D4]);
[/COLOR]
compare to a newer version of [V22] K18 that can handle more of a variable type of data
Code:
[COLOR=#D4D4D4] [COLOR=#569cd6]template[/COLOR]<[COLOR=#569cd6]typename[/COLOR] [COLOR=#4ec9b0]T[/COLOR], [COLOR=#569cd6]size_t[/COLOR] [COLOR=#4ec9b0]N[/COLOR]>
[COLOR=#4ec9b0]CAr[/COLOR] [COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#569cd6]const[/COLOR] [COLOR=#4ec9b0]T[/COLOR]([COLOR=#569cd6]&[/COLOR][COLOR=#9cdcfe]t[/COLOR])[N]);
[COLOR=#569cd6]template[/COLOR]<[COLOR=#569cd6]typename[/COLOR] [COLOR=#4ec9b0]T[/COLOR]>
[COLOR=#4ec9b0]CAr[/COLOR] [COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#569cd6]const[/COLOR] [COLOR=#4ec9b0]T[/COLOR] [COLOR=#569cd6]&[/COLOR] [COLOR=#9cdcfe]t[/COLOR]);
[COLOR=#569cd6]template[/COLOR]<[COLOR=#569cd6]typename[/COLOR] [COLOR=#4ec9b0]T[/COLOR]>
[COLOR=#4ec9b0]CAr[/COLOR] [COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#569cd6]const[/COLOR] [COLOR=#4ec9b0]std[/COLOR]::[COLOR=#4ec9b0]vector[/COLOR]<[COLOR=#4ec9b0]T[/COLOR]> [COLOR=#569cd6]&[/COLOR] [COLOR=#9cdcfe]v[/COLOR]);
[COLOR=#569cd6]template[/COLOR]<[COLOR=#569cd6]typename[/COLOR] [COLOR=#4ec9b0]T[/COLOR], [COLOR=#569cd6]typename[/COLOR] [COLOR=#4ec9b0]U[/COLOR]>
[COLOR=#4ec9b0]CAr[/COLOR] [COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator<<[/COLOR]([COLOR=#569cd6]const[/COLOR] [COLOR=#4ec9b0]map[/COLOR]<[COLOR=#4ec9b0]T[/COLOR], [COLOR=#4ec9b0]U[/COLOR]> [COLOR=#569cd6]&[/COLOR] [COLOR=#9cdcfe]m[/COLOR]);
[COLOR=#569cd6]template[/COLOR]<[COLOR=#569cd6]typename[/COLOR] [COLOR=#4ec9b0]T[/COLOR], [COLOR=#569cd6]size_t[/COLOR] [COLOR=#4ec9b0]N[/COLOR]>
[COLOR=#4ec9b0]CAr[/COLOR] [COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#4ec9b0]T[/COLOR]([COLOR=#569cd6]&[/COLOR][COLOR=#9cdcfe]t[/COLOR])[N]);
[COLOR=#569cd6]template[/COLOR]<[COLOR=#569cd6]typename[/COLOR] [COLOR=#4ec9b0]T[/COLOR]>
[COLOR=#4ec9b0]CAr[/COLOR] [COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#4ec9b0]T[/COLOR] [COLOR=#569cd6]&[/COLOR] [COLOR=#9cdcfe]t[/COLOR]);
[COLOR=#569cd6]template[/COLOR]<[COLOR=#569cd6]typename[/COLOR] [COLOR=#4ec9b0]T[/COLOR]>
[COLOR=#4ec9b0]CAr[/COLOR] [COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#4ec9b0]vector[/COLOR]<[COLOR=#4ec9b0]T[/COLOR]> [COLOR=#569cd6]&[/COLOR] [COLOR=#9cdcfe]v[/COLOR]);
[COLOR=#569cd6]template[/COLOR]<[COLOR=#569cd6]typename[/COLOR] [COLOR=#4ec9b0]T[/COLOR], [COLOR=#569cd6]typename[/COLOR] [COLOR=#4ec9b0]U[/COLOR]>
[COLOR=#4ec9b0]CAr[/COLOR] [COLOR=#569cd6]&[/COLOR] [COLOR=#c586c0]operator>>[/COLOR]([COLOR=#4ec9b0]map[/COLOR]<[COLOR=#4ec9b0]T[/COLOR], [COLOR=#4ec9b0]U[/COLOR]> [COLOR=#569cd6]&[/COLOR] [COLOR=#9cdcfe]m[/COLOR]);[/COLOR]
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 [V22] K18 source?
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?
Thank for the help :
oh I'm so sorry, I just realized I'm posting in the wrong sub-forum.
big sorry to the moderator.