[Solved] how to run the server arena?

Results 1 to 11 of 11
  1. #1
    Member vasyater2 is offline
    MemberRank
    May 2012 Join Date
    RussiaLocation
    73Posts

    idea [Solved] how to run the server arena?

    how to run the server arena?
    what should be the macro. I did work on creating areny.No launch arena occurs with errors. I think it is wrong to compile.


  2. #2
    Proficient Member WarriorSW is offline
    MemberRank
    Oct 2013 Join Date
    162Posts

    Re: how to run the server arena?

    use compiled mainsrv bins just edit map.cfg to amap.cfg and put there arena maps(infinity ,arena and cities) and global.cfg to aglobal.cfg with arenaserver flag and other MGamesrvid

  3. #3
    Guss decarvk is offline
    MemberRank
    Jul 2008 Join Date
    /home/bed/Location
    381Posts

    Re: how to run the server arena?

    by default arena bin's cant run on same server as normal server you have to add some macro to change some value to make diference between normal server and arena one, on other case, arena and normal server are differencied by config file.

    so too way add some word in source code, or run on 2 different server.

    or get the arena bin of killburne ;)

    good luck for this little dev (follow the start of the field server to understand what happen on start. and add the same piece of code in log server, npc server, im server.

  4. #4
    Proficient Member WarriorSW is offline
    MemberRank
    Oct 2013 Join Date
    162Posts

    Re: how to run the server arena?

    Quote Originally Posted by decarvk View Post
    by default arena bin's cant run on same server as normal server you have to add some macro to change some value to make diference between normal server and arena one, on other case, arena and normal server are differencied by config file.

    so too way add some word in source code, or run on 2 different server.

    or get the arena bin of killburne ;)

    good luck for this little dev (follow the start of the field server to understand what happen on start. and add the same piece of code in log server, npc server, im server.
    Its case of FIELD SERVER

    Yes, use HEX editor, search for global.cfg first, change it to for ex. aglobal.cfg and create that file in config/ folder.
    Then search for map.cfg and change it to for ex. amap.cfg and do the same as in global.cfg case.

    Now search for Field Server - use brain here - in hex it will looks like '00 HEX CODE OF FIELD SERVER STRING 00'and change it to for ex ArenaField.

    Now search for FieldSystem (It's prefix of log file) and just change it for ex to ArenaField

    Do the same for rest of bins and it will be ok
    For no-brain idiots - just make backup copies

  5. #5
    Guss decarvk is offline
    MemberRank
    Jul 2008 Join Date
    /home/bed/Location
    381Posts

    Re: how to run the server arena?

    he have server source code (from what he said on his thread), so it's more easier to add 3 define line than compile bin to hex edit them at each build ;)


    but each people do what he want ;)

  6. #6
    Proficient Member WarriorSW is offline
    MemberRank
    Oct 2013 Join Date
    162Posts

    Re: how to run the server arena?

    add ARENA definition in Contents.h

  7. #7
    Member vasyater2 is offline
    MemberRank
    May 2012 Join Date
    RussiaLocation
    73Posts

    Re: how to run the server arena?

    Quote Originally Posted by WarriorSW View Post
    add ARENA definition in Contents.h
    ok
    as?

  8. #8
    Proficient Member WarriorSW is offline
    MemberRank
    Oct 2013 Join Date
    162Posts

    Re: how to run the server arena?

    not as, just pre-processor definition
    Code:
    #define ARENA
    them compile (im, log,field,npc) and it will read cfg of arena (amap,aglobal) if you have that in your source setted up.
    dont forget to comment this line before you want to compile main server ;)
    Last edited by WarriorSW; 01-05-14 at 10:46 AM.

  9. #9
    Member vasyater2 is offline
    MemberRank
    May 2012 Join Date
    RussiaLocation
    73Posts

    Re: how to run the server arena?

    #if defined(WIKIGAMES_ENG)
    #define ARENA
    #endif

  10. #10
    Proficient Member WarriorSW is offline
    MemberRank
    Oct 2013 Join Date
    162Posts

    Re: how to run the server arena?

    smth like that or just add it on the top of the file before localization (build type) definitions

  11. #11
    Guss decarvk is offline
    MemberRank
    Jul 2008 Join Date
    /home/bed/Location
    381Posts

    Re: how to run the server arena?

    just add:

    #ifdef ARENA
    //code for arena here
    #else
    //code
    #endif

    on the cfg loading, and on the shared memory part ;)

    do this on source if you don't use one with that already done.



Advertisement