Jump to content
  • 0
Sign in to follow this  
iskoy.flores

char-server.exe has stopped working

Question

Greetings Hercules community!
 
This is my first time trying to create my own private server and thus, a first time question from me.
 
As far as I know, I've been doing everything right step-by-step by following these guides: 
    Judas' Bible        http://supportmii.com/ro1/JudasBible.pdf
 
However, now I am stumped after finally trying to launch my server locally by getting this error:
 
+++++++++++++++++++++++++++++++++++++++++++++++++
 
1) The client date I have chosen is 2013-08-07.
 
#########################################################################
 
2) BELOW ARE THE CHANGES I HAVE APPLIED DURING patching/diff-ing the ragexe.exe
 
   

 

         [Custom]                Enable Mail Box for All Langtypes                Enable Monster tables            [Data]                Increase Headgear ViewID = ### 5000                Read Data Folder First                Read msgstringtable.txt (Recommended)                    Read questid2display.txt (Recommended)                    Use Plain Text Descriptions (Recommended)            [Fix]                Always Call SelectKoreaClientInfo() (Recommended)                Cancel to Login Window (Recommended)                Disable 1rag1 type parameters (Recommended)        ### Removes the need of Launchers                Disable 4 Letter UserCharacter Limit                Disable 4 Letter UserID Limit                Disable 4 Letter UserPassword Limit                Disable HShield (Recommended)                Disable Hallucination Wavy Screen (Recommended)                    Disable Ragexe Filename Check (Recommended)                Enable/showname (Recommended)                #Enable Proxy Support (Experimental)                Ignore Missing File Error                Ignore Missing Palette Error                    Restore Login Window (Recommended)                ### Removes the need of Launchers            [Packet]                Disable Nagle Algorithm (Recommended)                [User Interface]                @ Bug Fix (Recommended)                Allow space in guild name                Chat Flood Remove Limit                Custom Window Title = ### DynamicRO                                Disable Packet Encryption (Recommended)                    Disable Swear Filter                #Enable DNS Support (Recommended)                Enable Multiple GRFs (Recommended)                Enable Title Bar Menu                Extend Chat Box                Extend Chat Room Box                Extend Npc Dialog Box                Extend PM Box                Fix Tetra Vortex                Increase Screenshot Quality = ### 100                Remove Gravity Ads (Recommended)                Remove Gravity Logo (Recommended)                Remove Hourly Announce (Recommended)                Remove Quake Skill Effect                Remove Serial Display (Recommended)                                Skip License Screen                Translate Client In English                Use ASCII on All Langtypes (Recommended)                Use Normal Guild Brackets                Use Ragnarok Icon            [Others]                Load ItemInfo.lua before lub                eXtract MsgStringTable.txt                eXtract txt file strings            [Make sure the following are DISABLED]                        Enable 64k Hairstyle                Fix Camera Angles                Remove GM Sprites                Shared Body Palettes                Shared Head Palettes                Use SSO Login Packet            # Enable to fix langtype issues / But makes launchers a necessity.                HKLM To HKCU (Recommended)        # Causes launchers to keep launching setup software. 

 

 
 
#########################################################################
3) My ClientInfo.xml
 
   

 

        <?xml version="1.0"    encoding="euc-kr" ?>            <clientinfo>            <servicetype>America</servicetype>            <servertype>Primary</servertype>                <connection>                    <display>DynamicRO</display>         # Name of Server                    <balloon>Ragnarok Online</balloon>                        <desc>A Dynamic Experience</desc>                         <address>127.0.0.1</address>                         <port>6900</port>                         <version>46</version>                 ### 2013-08-07aRagexe # Change <version> to the one corresponding your client version. Refer to serverdbpacket_db.txt                                 <langtype>0</langtype>                         <registrationweb>flux.domain.com</registrationweb>    # Registration URL                     <aid>                        <yellow>                            <admin>2000000</admin>                                </yellow>                    </aid>                    <loading>                                    <image>loading00.jpg</image>                        <image>loading01.jpg</image>                        <image>loading02.jpg</image>                        <image>loading03.jpg</image>                        <image>loading04.jpg</image>                        <image>loading05.jpg</image>                        <image>loading06.jpg</image>                        <image>loading07.jpg</image>                        <image>loading08.jpg</image>                        <image>loading09.jpg</image>                        <image>loading10.jpg</image>                    </loading>                </connection>            </clientinfo> 

 

 
 
#########################################################################
4) For the server side, these are the changes/guide I made:
 
    1) Make the following changes in the following files:
        A. Serverconf
            a. inter_athena.conf or inter-server.conf
   

 

           i. Change the following:                    // Global SQL settings                    sql.db_username: root            # MySQL Account                    sql.db_password: root             # MySQL Account                    sql.db_database: "emulator"     # name of the database to be created later                                                // MySQL Character SQL server                    char_server_id: root             # MySQL Account                    char_server_pw: root             # MySQL Account                    char_server_db: "emulator"         # name of the database to be created later                                        // MySQL Map SQL Server                    map_server_id: root             # MySQL Account                    map_server_pw: root             # MySQL Account                    map_server_db: "emulator"         # name of the database to be created later                                        // MySQL Log SQL Database                    log_db_id: root                    log_db_pw: root                    log_db_db: log                    log_login_db: loginlog 

 

 
                 
            b. char_athena.conf or char-server.conf
   
   

 

             i. Change the following:                 // Server Communication username and password.                    userid:    admin                    # Inter-Server Communication Account                    passwd:    1or.)!LY                # Inter-Server Communication Account                    // Server name, use alternative character such as ASCII 160 for spaces.                    server_name: DynamicRO                                        // Amount of time in seconds by which the character deletion is delayed.                    char_del_delay: 86400 --> 60                                        // Pincode system                    pincode_enabled: 1 --> 0                                    ii. Remove "//" from the following lines:                    //login_ip: 127.0.0.1                    //char_ip: 127.0.0.1 

 

                 
            c. map_athena.conf or map-server.conf
   
   

 

          i. Change the following to chosen credentials:                    // Interserver communication passwords, set in account.txt (or equiv.)                    userid:    admin                    # Inter-Server Communication Account                    passwd:    1or.)!LY                # Inter-Server Communication Account                            ii. Remove "//" from the following lines:                    //char_ip: 127.0.0.1                    //map_ip: 127.0.0.1                        d. login-server.conf                   i. Change the following:                    //If new_account is enabled, minimum length to userid and passwords should be 4?                    //Must be 'Yes' unless your client uses both 'Disable 4 LetterUserID/Password' Diffs                    new_acc_length_limit: no                                        // Check The clientversion set in the clientinfo ?                    check_client_version: yes                    // What version we would allow to connect? (if the options above is enabled..)                    client_version_to_connect: 46 

 

 
         
            e. grf-files.txt        
   
 

 

            i. Change the following:                    // GRF Files                    grf: E:OnlineDynamicROdynamic.grf                    grf: E:OnlineDynamicROrdata.grf                    grf: E:OnlineDynamicROdata.grf                    // Data Directory                    data_dir: E:OnlineDynamicRO                

 

 
 
            f. groups.conf        
   
 

 

            i. Change the following:                    id: 0                        autoloot: true                        alootid: true                        autoloottype: true                        autotrade: true                        storage: true                        guildstorage: true                        warp: true                        go: true                        exp: true                        rates: true                        whodrops: true                        commands: true                        charcommands: true                        help: true                                            id: 99                                can_trade_bound: false --> true                        all_skill: false --> true                        all_equipment: false --> true                        skill_unconditional: false --> true 

 

         
        B. Serversrccommon

 

            a. mmo.h                   i. Change the following into the date of your chosen Client Version:                    #ifndef PACKETVER                        #define PACKETVER 20130807    ### 2013-08-07aRagexe                    #endif                ii. Add "//" to the following lines since we are using ragexe.exe not ragexeRE.exe:                    // Comment the following line if your client is NOT ragexeRE (required because of conflicting packets in ragexe vs ragexeRE).                    //#define PACKETVER_RE 

 

             
        C. Packets
 

 

          a. For rathena                Serverdbpacket_db.txt                    # Acquire Packets from here:                        http://rathena.org/board/topic/82726-2013-ragexe-and-diff-up-to-date-2013-07-03/            b. For Hercules                Serversrcmappackets.h                                        # Acquire Packets from here: 

 

 
         
    2) MySQL Server Settings
 
 

 

    A. Open MySQL Workbench.        B. Login by double-clicking "Local instance MySQL Server".            username: root                            # MySQL Account                password: root                            # MySQL Account        C. Create new Schemas:            a. "emulator"                Click on 'Create New Schema' and name it "emulator".                Double click "emulator" schema.                Click 'Open SQL Script' and open:                    Serversql-filesmain.sql                Click 'Execute' button (Lightning symbol).                Wait for it to finish.                Make "emulator" the default schema.            b.  logs                             Click on 'Create New Schema' and name it "log".                    ### NOTE: log not logs = with an 's'                Double click "logs" schema.                Click 'Open SQL Script' and open:                    Serversql-fileslogs.sql                Click 'Execute' button (Lightning symbol).                Wait for it to finish.                        D. Edit Schemas            a. Create Inter-Server Communication Account                Double click "emulator" schema.                Double click 'table'.                Find 'login' and right click it.                Choose select ‘Select Rows – Limit 1000’.                Select first row with 'account_id' = 1                Change 's1' and 'p1' or 'userid' and 'user_pass' on the right table by double clicking.                    username: admin                    # Inter-Server Communication Account                    password: 1or.)!LY                # Inter-Server Communication Account                Click 'Apply'. Click 'Finish'.                            b. Create Game Master Account                Go to Schema>"emulator">Table>Login>                Right click Login. Click 'Select Rows - Limit 1000'                Click "Edit" button to Create New Account.                Right click on a new row and click 'Add Row'.                Input "account ID" and press Enter.                Double Click 'userid' and 'user_pass' rows and enter your username and password.                Find 'group_id' table and edit it to 99.                    Simple mask: 0 - Simple User; 1 - Super User; 5 - Premium User; X - ......; 99 - Head Game Master (Administrator) 

 

 
    3) Compile the changes made in the server.
   
     

 

   A. Open Visual Studio.        B. Open Project: server-version.sln            "emulator" 9 = VS 2009            "emulator" 10 = VS 2010            "emulator" 11 = VS 2012             "emulator" 12 = VS 2013        C. Change 'Debug' into 'Release'.        D. Select the following:            char-server.sql            login-server.sql            map-server.sql            mapcache        E. Right click selection and click 'Build Selection'.        F. Wait to Finish.                ### WARNING: Everytime you change anything in src, you have to recompile. 

 

 
 
 
#########################################################################
 
5) Personalizations I chose to make:
 

 

    1) Serverconf or Serverconfimport        A. char-server.conf or char_conf.txt            // Start point, Map name followed by coordinates (x,y)            start_point: new_1-1,53,111 -->                // Starting items for new characters            start_items: 1201,1,0,2301,1,0 -->                        // Starting zeny for new characters            start_zeny: 0 --> 10000000                    B. inter-server.conf or inter_conf.txt            // Level range for sharing within a party            party_share_level: 15 --> 50     2)    Serverconfbattle or Serverconfimportbattle_conf.txt        A. battle.conf                undead_detect_type: 0 --> 2                    #Official formula            attribute_recover: no --> yes                #Pre-RE formula            agi_penalty_type: 1 --> 0                    #Pre-RE formula            vit_penalty_type: 1 --> 0                    #Pre-RE formula            equip_natural_break_rate: 0 --> 1            #0.01%            equip_self_break_rate: 100 --> 1            #1%            equip_skill_break_rate: 100    --> 1000        #1000%                    delay_battle_damage: yes --> no                #Improved performance            arrow_decrement: 1 --> 0                    #Unlimited Arrows        B. client.conf                max_lv: 99 --> 255            aura_lv: 99            wedding_modifydisplay: no --> yes            #Display wedding dress/tux when worn            display_hallucination: yes --> no            #Prevents lag        C. drops.conf            item_rate_common: 100 --> 5000                #x50            item_rate_common_boss: 100 --> 5000            #x50            item_rate_heal: 100 --> 5000                #X50            item_rate_heal_boss: 100 --> 5000            #x50            item_rate_use: 100 --> 5000                    #x50            item_rate_use_boss: 100 --> 5000            #x50            item_rate_equip: 100 --> 5000                #x50            item_rate_equip_boss: 100 --> 2500            #x25            item_rate_card: 100 --> 5000                #x50            item_rate_card_boss: 100 --> 2500            #x25            item_rate_mvp: 100 --> 2500                    #x25            item_rate_adddrop: 100 --> 5000                #x50            item_rate_treasure: 100    --> 5000            #x50            alchemist_summon_reward: 1 --> 2            #All alchemist summons drop items.        D. exp.conf            base_exp_rate: 100 --> 15000                #x150            job_exp_rate: 100 --> 15000                    #x150            multi_level_up: no --> yes                    #            mvp_exp_rate: 100 --> 15000                    #x150            quest_exp_rate: 100 --> 15000                #x150            heal_exp: 0    --> 150                            #1.5% Exp. from the skill            resurrection_exp: 0    --> 300                    #3.0% Exp. from the skill            shop_exp: 0    --> 450                            #4.5% Exp. from the skill        E. feature.conf            feature.atcommand_suggestions: off --> on            feature.auction: off --> on        F. guild.conf            guild_exp_limit: 50 --> 99                    #Enable 100% Guild tax            guild_notice_changemap: 2 --> 0                #Disable re-display of guild notice                    G. homunc.conf            hom_rename: no --> yes        H. items.conf            item_use_interval: 100 --> 0                #Removes delay            autospell_stacking: no --> yes                #Stacks effects of same skills            item_restricted_consumption_type:1 --> 0    #Unlimited consumables        I. misc.conf                pk_mode: 0 --> 2                            #Enables PK and Karma System            day_duration: 0 --> 7200000                    #Duration of days            night_duration: 0 --> 1800000                #Duration of nights            duel_autoleave_when_die: yes --> no            #Continuous Duel            duel_time_interval: 60 --> 3                #Duel delay            cashshop_show_points: no --> yes            #Display cash points            mail_show_status: 0 --> 2                    #Display mail box status        J. monster.conf                slaves_inherit_mode: 2 --> 3                #Slaves inherit master's traits            zeny_from_mobs: no --> yes                    #Gain zeny from kills            mobs_level_up: no --> yes                    #Monsters level-up            mobs_level_up_exp_rate: 0 --> 25        K. party.conf            party_item_share_type: 0 --> 2                #Round Robin Sharing            party_even_share_bonus: 0 --> 50            #Increased Bonus exp from party            display_party_name: no --> yes                #Display party name even if not in guild        L. pet.conf            pet_rename: no --> yes                        #Rename pets            pet_friendly_rate: 100 --> 5000            pet_hungry_friendly_decrease: 5 --> 0        #Pets don't run away                pet_equip_required: yes --> no                #Use pet skill even without equips            pet_attack_support: no --> yes                #Pets attack with master            pet_damage_support: no --> yes                #Pets attack when master is damaged            pet_support_min_friendly: 900 --> 0            #Pets support even when hungry            pet_equip_min_friendly: 900 --> 0            #Pets use ability even when hungry            pet_status_support: no --> yes                #Pets use skillspet_attack_exp_to_master: no --> yes  #Receive exp from pet's damage            pet_attack_exp_to_master: no --> yes        #Receive exp from pets            pet_attack_exp_rate: 100 --> 5000            #Receive 100% Exp from pets            pet_lv_rate: 0 --> 100                        #Enable pet levelling            pet_max_stats: 99 --> 255        M. player.conf            restart_hp_rate: 0 --> 50                    #Respawn with 50% HP            restart_sp_rate: 0 --> 50                    #Respawn with 50% SP            basic_skill_check: yes --> no                #Removes basic skill check            natural_heal_weight_rate: 50 --> 90            #Natural heal stops at 90% weight            max_aspd: 190 --> 195            max_third_aspd: 193 --> 199                    max_parameter: 99 -->             max_third_parameter: 130 --> 255            max_extended_parameter: 125 -->             max_baby_parameter: 80 -->             max_baby_third_parameter: 117 -->             max_cart_weight: 8000 --> 1000000            #Ultra-Cart            show_hp_sp_drain: no --> yes                #Show HP/SP drain            bone_drop: 0 --> 2                            #Drop skull when killed            character_size: 0 --> 3                        #Mounted characters increase size                        N. skill.conf            casting_rate: 100            delay_rate: 100 --> 0                        #Removes after-cast delay            delay_dependon_dex: no --> yes            delay_dependon_agi: no --> yes            min_skill_delay_limit: 100 --> 10            #Removes skill delay            castrate_dex_scale: 150            vcast_stat_scale: 530            skill_reiteration: 0 --> 1                    #Ground skill effects stack            skill_wall_check: yes --> no                #AOE skills affect other side of a wall            player_cloak_check_type: 1 --> 0            #Don't check for walls            sense_type: 1 --> 3                            #Sense Base Def and Vit/Int Def            devotion_level_difference: 10 --> 50        #Increase level difference            player_skill_partner_check: yes --> no        #Cast ensemble skills alone            skill_removetrap_type: 0 --> 1                #Returns all items            backstab_bow_penalty: yes --> no            #Remove penalty            copyskill_restrict: 2 --> 0                    #Remove restriction            skip_teleport_lv1_menu: no --> yes            #Skip teleport menu            allow_skill_without_day: no --> yes            #Remove Star Gladiator restriction            allow_es_magic_player: no --> yes                        dancing_weaponswitch_fix: yes --> no        #Cancel song by switching weapon    3) Serverdbpre-re        A. exp.txt            //Base - 3rd Jobs, Baby 3rds, Expanded Super Novice, and Kagerou/Oboro            99, // OTHERS //, --> 255, // OTHERS //,            //Job - 3rd Jobs, Baby 3rds, Expanded Super Novice, and Kagerou/Oboro            50, // OTHERS //, --> 100, // OTHERS //,                4) Serversrccommon        A. mmo.h                //Max amount of items in inventory            #define MAX_INVENTORY 100 --> 3000                                    //Max amount of a single stacked item            #define MAX_AMOUNT 30000 --> 100000                        //Max level attainable            #define MAX_LEVEL 175 --> 255                        //Max amount of items in cart            #define MAX_CART 100 --> 3000                        //Max amount of items in storage                                        #define MAX_STORAGE 600 --> 30000            #define MAX_GUILD_STORAGE 600 --> 30000            // NOTE: Make sure both are the same value to avoid any overflow errors.                            //Max number of people in parties            #define MAX_PARTY 12 --> 50                        //Max members in a guild            #define MAX_GUILD (16+10*6) --> (40+10*6)                5) Serversrcconfig        A. core.h            ///Comment to disable walkpath = Make the server move the character across obstacles            #define OFFICIAL_WALKPATH                        ///Comment to make @autoloot range unlimited            //#define AUTOLOOT_DISTANCE AREA_SIZE                        /// Comment to disable autotrade persistency (where autotrading merchants survive server restarts)            #define AUTOTRADE_PERSISTENCY                    B. renewal.h            ///Uncomment to disable renewal features            #define DISABLE_RENEWAL 

 

 
 
     
     
     
   
 
#########################################################################
 
Other Details are to Follow.
 
#########################################################################
 
Can anyone lend me a hand?
 
#########################################################################
 
BTW, I already updated my Hercules to latest SVN/Git Version available as of writing...
Edited by Dastgir
Added Codebox

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
3) My ClientInfo.xml
<servicetype>America</servicetype>
 
servicetype usually korea, because most client are kro :
<servicetype>korea</servicetype>

 

E. feature.conf

  feature.auction: off --> on

 

set auction on give me trouble.

becarefull with this option.

Share this post


Link to post
Share on other sites
  • 0

Thanks for the reply, but I'm still getting the same error. I tried implementing changes one by one and so far it seems that there is no problem in the conf folder. I'm thinking the problem has something to do with my changes inside src folder.

Can anyone else give more insights while I quest on pin-pointing the problem?

Share this post


Link to post
Share on other sites
  • 0

I was able to make it run already by setting the following to their defaults:
 

//Max amount of items in inventory
#define MAX_INVENTORY 100 --> 300
//What I found out: Can only be set to 740 safely. Must be set to the same value of MAX_CART
//Max amount of items in cart
#define MAX_CART 100 --> 300
//What I found out: Can only be set to 300 safely. Must be set to the same value of MAX_INVENTORY
//Max amount of a single stacked item
#define MAX_AMOUNT 30000 --> ??????
//What I found out: Above 30000 unexpected behaviour arises. SO not going to mess with this anymore.
 
//Max amount of items in storage
#define MAX_STORAGE 600 --> 30000
#define MAX_GUILD_STORAGE 600 --> 30000
// NOTE: Make sure both are the same value to avoid any overflow errors. Can anyone please clarify this? I've read in old forums that the max allowed is 731 due to packet problems. At the same time I also read that here in Hercules the said issue has been fixed. And that something about increments of 500 is allowed? Please enlighten me on this. What's the max storage you guys were able to go with? I'm asking because I'm planning to create a guildstorage shared by numerous accounts by the same person.
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.