[c++] pangya th developement

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Valued Member top1 is offline
    MemberRank
    Apr 2006 Join Date
    THAILANDLocation
    128Posts

    [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:
    Github
    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
    Last edited by top1; 01-11-18 at 08:09 AM.


  2. #2
    Valued Member Luizinrc is offline
    MemberRank
    Jun 2015 Join Date
    Ice SpaLocation
    131Posts

    Re: [c++] pangya th developement

    very good friend, I hope other developers enjoy and work on it

  3. #3
    French Dev jtb1 is offline
    MemberRank
    Apr 2010 Join Date
    France/GermanyLocation
    276Posts

    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 :)

  4. #4
    Valued Member top1 is offline
    MemberRank
    Apr 2006 Join Date
    THAILANDLocation
    128Posts

    Re: [c++] pangya th developement

    Actually encrypt/decrypt part. I've done it in Delphi and release the DLL to use with C++

  5. #5
    Valued Member Luizinrc is offline
    MemberRank
    Jun 2015 Join Date
    Ice SpaLocation
    131Posts

    Re: [c++] pangya th developement

    would be a start of the DLL

    - - - Updated - - -

    Quote Originally Posted by jtb1 View Post
    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?

  6. #6
    French Dev jtb1 is offline
    MemberRank
    Apr 2010 Join Date
    France/GermanyLocation
    276Posts

    Re: [c++] pangya th developement

    Quote Originally Posted by top1 View Post
    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 :)

  7. #7
    Valued Member Luizinrc is offline
    MemberRank
    Jun 2015 Join Date
    Ice SpaLocation
    131Posts

    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

    Last edited by Luizinrc; 24-08-18 at 01:32 PM. Reason: update, and report

  8. #8
    Valued Member top1 is offline
    MemberRank
    Apr 2006 Join Date
    THAILANDLocation
    128Posts

    Re: [c++] pangya th developement

    UPDATE !! How's it going


  9. #9
    Valued Member Luizinrc is offline
    MemberRank
    Jun 2015 Join Date
    Ice SpaLocation
    131Posts

    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

  10. #10
    Valued Member top1 is offline
    MemberRank
    Apr 2006 Join Date
    THAILANDLocation
    128Posts

    Re: [c++] pangya th developement

    I just push game server to github.
    check it out!

  11. #11
    Valued Member Luizinrc is offline
    MemberRank
    Jun 2015 Join Date
    Ice SpaLocation
    131Posts

    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
    Last edited by Luizinrc; 24-08-18 at 03:58 PM. Reason: update, and report

  12. #12
    Valued Member top1 is offline
    MemberRank
    Apr 2006 Join Date
    THAILANDLocation
    128Posts

    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.

  13. #13
    Valued Member Luizinrc is offline
    MemberRank
    Jun 2015 Join Date
    Ice SpaLocation
    131Posts

    Re: [c++] pangya th developement

    Quote Originally Posted by top1 View Post
    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

  14. #14
    Apprentice blood444 is offline
    MemberRank
    Feb 2017 Join Date
    20Posts

    Re: [c++] pangya th developement

    hello top1 can you help me on the 4.9 i have login server is down thank you before

  15. #15
    Valued Member top1 is offline
    MemberRank
    Apr 2006 Join Date
    THAILANDLocation
    128Posts

    Re: [c++] pangya th developement

    I think, it's not associated with what i'm doing



Page 1 of 2 12 LastLast

Advertisement