Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[c++] pangya th developement

Junior Spellweaver
Joined
Apr 19, 2006
Messages
119
Reaction score
15
[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
  1. Visual Studio 2017
  2. Spdlog for Console log
  3. Boost for asynchronous TCP Socket
  4. Poco for Client SQL Server

Code:
[URL="https://github.com/topkung1/freshup"]Github[/URL]

Code:
UPDATE !!
[I]26/8/18 Merge game and login into one project for easily dev.[/I]
[I]22/8/18 - Prepare for cardpack system.[/I]
[I]18/8/18 - You can now buy card and item from game shop.[/I]

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
 
Last edited:
Experienced Elementalist
Joined
Apr 1, 2010
Messages
267
Reaction score
134
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 :)
 
Junior Spellweaver
Joined
Apr 19, 2006
Messages
119
Reaction score
15
Actually encrypt/decrypt part. I've done it in Delphi and release the DLL to use with C++
 
Junior Spellweaver
Joined
Jun 22, 2015
Messages
140
Reaction score
32
would be a start of the :$:



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:
 
Junior Spellweaver
Joined
Jun 22, 2015
Messages
140
Reaction score
32
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

top1 - [c++] pangya th developement - RaGEZONE Forums
 
Last edited:
Junior Spellweaver
Joined
Jun 22, 2015
Messages
140
Reaction score
32
[QUOTE = top1; 8894100] ATUALIZAÇÃO !! Como está indo

[video = youtube; q0yV3lTx2gg] [/ video] [/ QUOTE]

very good, once again exceeded. continue you can :eek:tt:
 
Junior Spellweaver
Joined
Jun 22, 2015
Messages
140
Reaction score
32
[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
 
Last edited:
Junior Spellweaver
Joined
Apr 19, 2006
Messages
119
Reaction score
15
thanks for informations



I'll keep update this thread for what I've done

And hopefully, one of you would help me thou.
 
Initiate Mage
Joined
Feb 27, 2017
Messages
20
Reaction score
1
hello top1 can you help me on the 4.9 i have login server is down thank you before
 
Junior Spellweaver
Joined
Apr 19, 2006
Messages
119
Reaction score
15
I think, it's not associated with what i'm doing
 
Junior Spellweaver
Joined
Jun 22, 2015
Messages
140
Reaction score
32
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
 
Initiate Mage
Joined
Aug 1, 2018
Messages
72
Reaction score
10
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 !!
 
Initiate Mage
Joined
May 15, 2016
Messages
21
Reaction score
2
excellent work, can't wait to see final result!
 
Back
Top