[c++] Pangya TH Development
As everyone knows I did for delphi side but no one was interested because i think it's not a popular language to do so I just move to C++ because I think. It'd be a top of the most popular languages and need help from everyone
The tools that I'm using for dev right now
- Visual Studio 2017
- Spdlog for Console log
- Boost for asynchronous TCP Socket
- Poco for Client SQL Server
Code:
UPDATE !!
26/8/18 Merge game and login into one project for easily dev.
22/8/18 - Prepare for cardpack system.
18/8/18 - You can now buy card and item from game shop.
All you have to do is crypt dll as below
Code:
void cdecl __encrypt(char* data, int key, int size, char** dataout, int newSize); /* We use dataout variable */
void cdecl __decrypt(char* data, int key, int size); /* We use data variable because the size is static */
Hopefully, Everyone will go for this development together
Re: [c++] pangya th developement
very good friend, I hope other developers enjoy and work on it
Re: [c++] pangya th developement
Good begin ! Cpp is more know and more clean for do emulator
I have take a look into you project it's a begin , but code look clean and that is good ;)
The missing part for me it's do not make encrypt/decrypt in clean cpp but i understend !
Good luck for your project :)
By the way for people -> if you use this project for stay private for you server YOU CANT it's GPL3 so source edit need to be release :)
Re: [c++] pangya th developement
Actually encrypt/decrypt part. I've done it in Delphi and release the DLL to use with C++
Re: [c++] pangya th developement
would be a start of the DLL :$:
- - - Updated - - -
Quote:
Originally Posted by
jtb1
Good begin ! Cpp is more know and more clean for do emulator
I have take a look into you project it's a begin , but code look clean and that is good ;)
The missing part for me it's do not make encrypt/decrypt in clean cpp but i understend !
Good luck for your project :)
By the way for people -> if you use this project for stay private for you server YOU CANT it's GPL3 so source edit need to be release :)
What are you looking for? :blink:
Re: [c++] pangya th developement
Quote:
Originally Posted by
top1
Actually encrypt/decrypt part. I've done it in Delphi and release the DLL to use with C++
Yes , i just say maybe a cpp clean version will be good to do :)
Re: [c++] pangya th developement
Exemplo: GameServer List USA (usa uma base top1)
packet.write_string (rs ["nome"], 10); packet.write_null (18); packet.write <uint32> (2015031200); //packet version packet.write_null (8); packet.write <uint32> (rs ["server_id"]); packet.write <uint32> (5000); // max player packet.write <uint32> (0); // player online packet.write_string (rs ["ip"], 9); packet.write_null (2); packet.write <uint16> (rs ["porta"]); packet.write_null (3); packet.write <uint8> (8); // image grandprix = 8, # 64 apenas novato, 128 erro
packet.write_null(2); packet.write <uint32> (1); // evento do número angélico packet.write <uint16> (rs ["img_event"]); // ícone do evento packet.write_null (6); // aqui parece que tem algo, precisa rever esses bytes vazios! packet.write <uint16> (rs ["img_no"]); // ícone de servidor
https://image.ibb.co/h4hrdz/image.png
Re: [c++] pangya th developement
Re: [c++] pangya th developement
[QUOTE = top1; 8894100] ATUALIZAÇÃO !! Como está indo
[video = youtube; q0yV3lTx2gg] https://www.youtube.com/watch?v=q0yV...ature=youtu.be [/ video] [/ QUOTE]
very good, once again exceeded. continue you can :ott:
Re: [c++] pangya th developement
I just push game server to github.
check it out!
Re: [c++] pangya th developement
[QUOTE = top1; 8895600] Eu apenas empurro o servidor do jogo para o github.
confira! [/ QUOTE]
void ChannelManager :: send_channel (pc * pc) {
pacote de pacotes;
packet.write <uint16> (0x4d);
packet.write <uint8> ((uint8) channel_list.size ()); //this is a channel list counter
para (auto ele: channel_list) {
packet.write_string (it-> nome, 20); //width is 20, rather than 10
packet.write
(
0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x08, 0x10, 0x06, 0x07, 0x1A, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x01, 0x14, 0x00, 0x00, 0x64, 0x02, 0x00, 0x1A, 0x00, 0x00, 0x00, 0x00
); //unknown, I still do not know what can be
packet.write <uint16> (it-> maxplayer);
packet.write <uint16> (it-> pc_count ());
packet.write <uint8> (it-> id);
packet.write <uint8> (0);
packet.write <uint8> (1); // pode ser do tipo: byte, 1 =free, any player can enter , 64 = somente Rookie F, 10 = input somente begginer
packet.write(0x00, 0x00) ;
packet.write <uint8> (0);
packet.write<uint8>(10); ////blocks in-game functions, 10 = blocks scratch card, ticker, 90 = block ticker
packe.write(0x00, 0x00); }
pc->
}
dentro do projeto HSREINA tem algumas dicas sobre isso
If you find out more things let me know
Obrigado por compartilhar seu projeto, aguardando MSG Server e AuthServer
Re: [c++] pangya th developement
thanks for informations
- - - Updated - - -
I'll keep update this thread for what I've done
And hopefully, one of you would help me thou.
Re: [c++] pangya th developement
Quote:
Originally Posted by
top1
thanks for informations
- - - Updated - - -
I'll keep update this thread for what I've done
And hopefully, one of you would help me thou.
nice dev :thumbup1:
Re: [c++] pangya th developement
hello top1 can you help me on the 4.9 i have login server is down thank you before
Re: [c++] pangya th developement
I think, it's not associated with what i'm doing
Re: [c++] pangya th developement
could you make an example of the DLL used in the project?it would be better for other people to be able to use the project as well
Re: [c++] pangya th developement
Hello everyone just want to ask if you can help me to filter !@#$%^&*() in dll make some logs.txt on it .I will use this dll for " Tantra Online "
Thank you so much Everyone !!
Re: [c++] pangya th developement
excellent work, can't wait to see final result!
Re: [c++] pangya th developement