MU Online Coding - What Are The Basic Requirements?

Results 1 to 7 of 7
  1. #1
    Coolest-Guy-Ever That-Cool-Guy is offline
    True MemberRank
    May 2005 Join Date
    FerrariLocation
    353Posts

    note MU Online Coding - What Are The Basic Requirements?

    MU Online Coding - What Are The Basic Requirements?
    For those of you guys who code for MU, what are some of the requirements that must be learned to code for MU?

    Lets say you want to do add features to your server files like custom events, party matching, customized commands etc.

    What are some things that must be learned? C++, scripting? Also what are some good server files that are good to experiment and tweak around with to learn? I know only basic programming like javascript, java and some python, what else will be useful knowledge?

    Incredible MonsterSetBase.txt for 1.02D
    http://forum.ragezone.com/releases/r...ml#post1190064
    Awesome MonsterSetBase For 97d+99:-
    http://forum.ragezone.com/releases/r...ml#post1146085


  2. #2
    Darkness Member Kiosani is offline
    True MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,264Posts

    Re: MU Online Coding - What Are The Basic Requirements?

    Programming languages knowledge... For Server side is necesary C++ and for Client side ASM/C++/OpenGL

  3. #3
    Account Upgraded | Title Enabled! zipper20032 is offline
    True MemberRank
    Oct 2006 Join Date
    0x198837ADLocation
    238Posts

    Re: MU Online Coding - What Are The Basic Requirements?

    The Mu Server sources are pure C/C++. What I've learnt along these years, like Kiosani said, you need to learn OOP for C/C++, Assembly, OpenGL and you need a lot of patience as the sources can be very tricky to be understand. Use breakpoints to see the live data in functions and variables and run your compiled build in Debug mode. Of course, take a look into the files and try understanding what those functions are doing and play with the data and see the results.
    Last edited by zipper20032; 16-02-21 at 12:37 AM.

  4. #4
    Registered volchok is offline
    MemberRank
    Feb 2021 Join Date
    17Posts

    Re: MU Online Coding - What Are The Basic Requirements?

    @zipper20032 so it's possible to run GameServer source in Debug in VS, then connect to the server and use breakpoints?
    Did not have time to try this yet but I assumed that could be possible )) can you confirm?

  5. #5
    Account Upgraded | Title Enabled! zipper20032 is offline
    True MemberRank
    Oct 2006 Join Date
    0x198837ADLocation
    238Posts

    Re: MU Online Coding - What Are The Basic Requirements?

    Quote Originally Posted by volchok View Post
    @zipper20032 so it's possible to run GameServer source in Debug in VS, then connect to the server and use breakpoints?Did not have time to try this yet but I assumed that could be possible )) can you confirm?
    Yes, yes. It is possible. I'm doing this all the time when I wanna see the data from specific variables. Just change the VS to Debug mode and make sure you edit project settings in General tab to make the executable inside the GameServer folder in Mu Server Files so it can compile, build and start the built executable with the configs inside the folder. Also, I think the General tab in Linker must point to the same directory as the executable path, where you build it, for symbol files.

  6. #6
    Coolest-Guy-Ever That-Cool-Guy is offline
    True MemberRank
    May 2005 Join Date
    FerrariLocation
    353Posts

    Re: MU Online Coding - What Are The Basic Requirements?

    Thank you so much for responses everyone!!

    So from my understanding C and C++ are basically the same thing but C++ implements OOP while C does not? But its the same syntax etc?

    Incredible MonsterSetBase.txt for 1.02D
    http://forum.ragezone.com/releases/r...ml#post1190064
    Awesome MonsterSetBase For 97d+99:-
    http://forum.ragezone.com/releases/r...ml#post1146085

  7. #7
    Account Upgraded | Title Enabled! zipper20032 is offline
    True MemberRank
    Oct 2006 Join Date
    0x198837ADLocation
    238Posts

    Re: MU Online Coding - What Are The Basic Requirements?

    Yeah. C is a procedural programming language while C++ is a combination actually of both procedural and object oriented.
    C does support "classes", but those are called "struct" and you can't inherit the struct or anything similar to classes in C++, but you can do a struct of struct.

    Exemple:
    Code:
    //This is C
    //Base struct
    struct Game{
        int player_id;
        int player_hp;
    
    }
    
    //Child struct
    struct AnotherGame{
       Game anotherGame;
    }
    which is "similar" to this

    Code:
    // This is C++ 
    //Base class
    class Game
    {
       public:
                int player_id;
                int player_hp;
    }
    
    //Child class
    class AnotherGame : public Game
    {
           public:
                   int player_id_anotherGame;
    }
    You can access Game class from the AnotherGame class, cause the Child class(AnotherGame) is inheriting the Base class(Game).
    That's the closest you can get in C to inheritance of classes.



Advertisement