map server errors + Crash

Klutz

New member
Messages
87
Points
0
Hey,

Lately i am starting to get Errors regarding mapflags.

Not if i will restart the map server i won't get any errors, it only happens after some time period with @reloadscript

​(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=weapon_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=weapon_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=weapon_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=weapon_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=weapon_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=weapon_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=magic_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=magic_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=magic_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=magic_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=magic_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=magic_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=misc_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=misc_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=misc_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=misc_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=misc_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=misc_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=short_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=short_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=short_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=short_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=short_damage_rate
* w4=50
(05/05/2017 13:52:47) [ Error ] : npc_parse_mapflag: Invalid mapflag definition in file '', line '1'.
* w1=
* w2=
* w3=short_damage_rate
* w4=50




Any idea what cause it?

Regards,

Klutz

 
Last edited by a moderator:
Hey,

I am really worried about those errors, do you know what can cause them?

Regards,

Klutz

 
Server crashed today with this errors:

(05/08/2017 06:25:54) [ Error ] : --- nullpo info --------------------------------------------
(05/08/2017 06:25:54) [ Error ] : script.c:3161: 'sd' in function `script_array_src'
(05/08/2017 06:25:54) [ Error ] : ./map-server(assert_report+0x80) [0x6400e0]
(05/08/2017 06:25:54) [ Error ] : ./map-server(script_array_src+0x14c) [0x5685fc]
(05/08/2017 06:25:54) [ Error ] : ./map-server(script_cleararray_pc+0x44) [0x569f04]
(05/08/2017 06:25:54) [ Error ] : ./map-server(buildin_purchaseok+0x6e) [0x58ce6e]
(05/08/2017 06:25:54) [ Error ] : ./map-server(run_func+0x13a) [0x5a0fca]
(05/08/2017 06:25:54) [ Error ] : ./map-server(run_script_main+0x310) [0x5a6f60]
(05/08/2017 06:25:54) [ Error ] : ./map-server(npc_trader_pay+0x134) [0x530634]
(05/08/2017 06:25:54) [ Error ] : ./map-server(npc_cashshop_buylist+0x49d) [0x5300dd]
(05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse_cashshop_buy+0x1a8) [0x48f5f8]
(05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse+0x1a2) [0x48b3f2]
(05/08/2017 06:25:54) [ Error ] : --- end nullpo info ----------------------------------------
(05/08/2017 06:25:54) [ Error ] : --- nullpo info --------------------------------------------
(05/08/2017 06:25:54) [ Error ] : script.c:3161: 'sd' in function `script_array_src'
(05/08/2017 06:25:54) [ Error ] : ./map-server(assert_report+0x80) [0x6400e0]
(05/08/2017 06:25:54) [ Error ] : ./map-server(script_array_src+0x14c) [0x5685fc]
(05/08/2017 06:25:54) [ Error ] : ./map-server(script_cleararray_pc+0x44) [0x569f04]
(05/08/2017 06:25:54) [ Error ] : ./map-server(buildin_purchaseok+0x85) [0x58ce85]
(05/08/2017 06:25:54) [ Error ] : ./map-server(run_func+0x13a) [0x5a0fca]
(05/08/2017 06:25:54) [ Error ] : ./map-server(run_script_main+0x310) [0x5a6f60]
(05/08/2017 06:25:54) [ Error ] : ./map-server(npc_trader_pay+0x134) [0x530634]
(05/08/2017 06:25:54) [ Error ] : ./map-server(npc_cashshop_buylist+0x49d) [0x5300dd]
(05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse_cashshop_buy+0x1a8) [0x48f5f8]
(05/08/2017 06:25:54) [ Error ] : ./map-server(clif_parse+0x1a2) [0x48b3f2]
(05/08/2017 06:25:54) [ Error ] : --- end nullpo info ----------------------------------------
(05/08/2017 06:25:54) [ Error ] : Server received crash signal! Attempting to save all online characters!



Player tried to use Gold Shop (Dynamic Shop).

Code:
-    script    GoldShop    FAKE_NPC,{

OnInit:
    tradertype(NST_CUSTOM);
    sellitem 4441,50;
    sellitem 4408,25;
    end;
    
OnCountFunds:
    setcurrency(callfunc("GoldCoinCounter","None"));
    end;
    
OnPayFunds:
    if(callfunc("GoldCoinCounter","None") < @price-@points )
        end;
    set .@InventoryCheck,0;
    if (@price < 10)
    {
        if (@price >  (callfunc("GoldCoinCounter","Coins")))
            .@InventoryCheck = 10 - @price;
    }
    else
     {
        .@InventoryCheck = @price/10;
        .@InventoryCheck = @price - (.@InventoryCheck*10);
     }
    getinventorylist();
    if ((@inventorylist_count + .@InventoryCheck ) >= MAX_INVENTORY)
    {
        .@InventoryCheck = .@InventoryCheck + @inventorylist_count + 1;
        dispbottom "You will have "+ .@InventoryCheck +" items in your Inventory.";
        dispbottom "The Maxium number allowed is: "+ MAX_INVENTORY;
        dispbottom "Please clear some space in your Inventory";
        end;
    }
    callfunc("GoldCoinToDelete",@price);
    purchaseok();
    end;
}
 
Last edited by a moderator:
What changes you did in BUILDIN(purchaseok)?

because it cant call script_cleararray_pc

 
What changes you did in BUILDIN(purchaseok)?

because it cant call script_cleararray_pc
Nothing that's why i find it weird.

my shop calls functions to count items, and delete items.

gold_coin = 1

gold_bag = 10 gold_coins

GoldCoinCounter  - counts the total of Gold_coin+gold_bags

GoldCoinToDelete - delitem and give back change

 
Back
Top