Jump to content
  • 0

Map Crash Issue on Happy Hour / Floating rates.


GMH

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

Good day, I always got map crash issues during @reloadmobdb on my happy hour script. I tried to search but i cannot find the answer that related to this issue. Hoping that you guys could help me to figure out the map crash issue on happy hour or floating rates. 

I have the screenshot of crash log from "gdb map-server map-server.core".

By the way, i am using latest rAthena-rev62532.

I also enabled the mobs_level_up: yes in conf/battle/monster.conf so the monster will level up each time a player is killed.

This is the Happy Hour script i've been using:

Spoiler

-    script    HappyHourAuto    -1,{
 
OnClock0200:
OnClock0800:
OnClock1400:
OnClock2000:
    set $@brate,1000;
    set $@jrate,1000;
    set $@drate,500;
    setbattleflag("base_exp_rate",$@brate);
    setbattleflag("job_exp_rate",$@jrate);
    setbattleflag("item_rate_common",$@drate);
    setbattleflag("item_rate_heal",$@drate);
    setbattleflag("item_rate_use",$@drate);
    setbattleflag("item_rate_equip",$@drate);
    announce "Happy Hour Time!!!",bc_all,0xB6FF00;
    sleep 1500;
    announce "Happy Hour has started for 2 hour's and the new rates will be these: Base:"+($@brate/100)+"x, Job:"+($@jrate/100)+"x, Drop:"+($@drate/100)+"x, card not included.",bc_all,0xB6FF00;
    initnpctimer;
    set .HHAuto,1;
    sleep 1000;
    atcommand "@reloadmobdb";
    sleep 10000;
end;

OnTimer7200000:
    set .HHAuto,0;
    setbattleflag("base_exp_rate",$defaultbrate);
    setbattleflag("job_exp_rate",$defaultjrate);
    setbattleflag("item_rate_common",$defaultdrate);
    setbattleflag("item_rate_heal",$defaultdrate);
    setbattleflag("item_rate_use",$defaultdrate);
    setbattleflag("item_rate_equip",$defaultdrate);
    sleep 1000;
    atcommand "@reloadmobdb";
    sleep 10000;
    announce "Happy Hour Event has ended. Rates have returned to normal.",bc_all,0xB6FF00;
end;

OnPcLoginEvent:
    if (.HHAuto == 1) announce "Happy Hour Event currently active!",bc_self,0xB6FF00;
end;

OnInit:
    set $defaultbrate,700;
    set $defaultjrate,700;
    set $defaultdrate,300;
end;
}

Thanks in advance and more power.

 

map crash error.png

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  248
  • Reputation:   34
  • Joined:  11/19/11
  • Last Seen:  

1 hour ago, GMH said:

Good day, I always got map crash issues during @reloadmobdb on my happy hour script. I tried to search but i cannot find the answer that related to this issue. Hoping that you guys could help me to figure out the map crash issue on happy hour or floating rates. 

I have the screenshot of crash log from "gdb map-server map-server.core".

By the way, i am using latest rAthena-rev62532.

I also enabled the mobs_level_up: yes in conf/battle/monster.conf so the monster will level up each time a player is killed.

This is the Happy Hour script i've been using:

  Reveal hidden contents

-    script    HappyHourAuto    -1,{
 
OnClock0200:
OnClock0800:
OnClock1400:
OnClock2000:
    set $@brate,1000;
    set $@jrate,1000;
    set $@drate,500;
    setbattleflag("base_exp_rate",$@brate);
    setbattleflag("job_exp_rate",$@jrate);
    setbattleflag("item_rate_common",$@drate);
    setbattleflag("item_rate_heal",$@drate);
    setbattleflag("item_rate_use",$@drate);
    setbattleflag("item_rate_equip",$@drate);
    announce "Happy Hour Time!!!",bc_all,0xB6FF00;
    sleep 1500;
    announce "Happy Hour has started for 2 hour's and the new rates will be these: Base:"+($@brate/100)+"x, Job:"+($@jrate/100)+"x, Drop:"+($@drate/100)+"x, card not included.",bc_all,0xB6FF00;
    initnpctimer;
    set .HHAuto,1;
    sleep 1000;
    atcommand "@reloadmobdb";
    sleep 10000;
end;

OnTimer7200000:
    set .HHAuto,0;
    setbattleflag("base_exp_rate",$defaultbrate);
    setbattleflag("job_exp_rate",$defaultjrate);
    setbattleflag("item_rate_common",$defaultdrate);
    setbattleflag("item_rate_heal",$defaultdrate);
    setbattleflag("item_rate_use",$defaultdrate);
    setbattleflag("item_rate_equip",$defaultdrate);
    sleep 1000;
    atcommand "@reloadmobdb";
    sleep 10000;
    announce "Happy Hour Event has ended. Rates have returned to normal.",bc_all,0xB6FF00;
end;

OnPcLoginEvent:
    if (.HHAuto == 1) announce "Happy Hour Event currently active!",bc_self,0xB6FF00;
end;

OnInit:
    set $defaultbrate,700;
    set $defaultjrate,700;
    set $defaultdrate,300;
end;
}

Thanks in advance and more power.

 

map crash error.png

you can check it at line 3031 at status.ccp.  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

17 hours ago, shatowolf said:

you can check it at line 3031 at status.ccp.  

Upon checking the line 3031 at status.ccp

 
 
 
Spoiler

    // Check if we need custom base-status
    if (battle_config.mobs_level_up && md->level > md->db->lv)
        flag|=1;

Pardon me, I have no idea how to fix. Can you help me Sir shatowolf to find in line 3031 that trigger to map server crash during happy hour event?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.02
  • Content Count:  113
  • Reputation:   1
  • Joined:  12/15/18
  • Last Seen:  

I have this issue too, then I get ride of this script, I made an npc to give double exp stats to solve this problem. Haven't test double exp script on the lastest RA thought.

Edited by Surefirer
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

9 hours ago, Surefirer said:

I have this issue too, then I get ride of this script, I made an npc to give double exp stats to solve this problem. Haven't test double exp script on the lastest RA thought.

I also have made an NPC happy hour script to give double exp but still the map server crash during @reloadmobdb run on the script even if I added sleep after and before @reloadmobdb. As of now, I temporary disabled the happy hour script and doesn't experiences map crashes. Hoping this issue will resolve as soon as possible so I can implement again the happy hour event.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.02
  • Content Count:  113
  • Reputation:   1
  • Joined:  12/15/18
  • Last Seen:  

2 hours ago, GMH said:

I also have made an NPC happy hour script to give double exp but still the map server crash during @reloadmobdb run on the script even if I added sleep after and before @reloadmobdb. As of now, I temporary disabled the happy hour script and doesn't experiences map crashes. Hoping this issue will resolve as soon as possible so I can implement again the happy hour event.

prontera,145,182,6	script	doubleExp	4W_F_KAFRA2,{

	.@Price = 10000;	// Zeny required for heal
	.@expeventBuffs = 0;	// Also buff players? (1: yes / 0: no)
	.@Delay = 3600;	// Heal delay, in seconds
	
	if (@EB > gettimetick(2))
		end;
	if (.@Price) {
		message strcharinfo(0), "Cost " + callfunc("F_InsertComma",.@Price) + " Zeny.";
		if (Zeny < .@Price)
			end;
		if (select("^0055FFUes it^000000:^777777Cancel^000000") == 2)
			end;
		Zeny -= .@Price;
	}
	specialeffect2 EF_HEAL2;
	percentheal 100,100;
	if (.@expeventBuffs) {
		sc_start SC_EXPBOOST,3600000,50;
		sc_start SC_JEXPBOOST,3600000,50;
	}
	if (.@Delay)
		@EB = gettimetick(2) + .@Delay;
	end;
	
}

try this one, don't use @reloadmobdb

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

12 hours ago, Surefirer said:

prontera,145,182,6	script	doubleExp	4W_F_KAFRA2,{

	.@Price = 10000;	// Zeny required for heal
	.@expeventBuffs = 0;	// Also buff players? (1: yes / 0: no)
	.@Delay = 3600;	// Heal delay, in seconds
	
	if (@EB > gettimetick(2))
		end;
	if (.@Price) {
		message strcharinfo(0), "Cost " + callfunc("F_InsertComma",.@Price) + " Zeny.";
		if (Zeny < .@Price)
			end;
		if (select("^0055FFUes it^000000:^777777Cancel^000000") == 2)
			end;
		Zeny -= .@Price;
	}
	specialeffect2 EF_HEAL2;
	percentheal 100,100;
	if (.@expeventBuffs) {
		sc_start SC_EXPBOOST,3600000,50;
		sc_start SC_JEXPBOOST,3600000,50;
	}
	if (.@Delay)
		@EB = gettimetick(2) + .@Delay;
	end;
	
}

try this one, don't use @reloadmobdb

Thank for the reply Sir Surefirer. But it will cancel the item effect of Bubble Gum and Job Battle Manual on the player when I use the SC_EXPBOOST and SC_JEXPBOOST on NPC script.

Edited by GMH
update
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.02
  • Content Count:  113
  • Reputation:   1
  • Joined:  12/15/18
  • Last Seen:  

11 hours ago, GMH said:

Thank for the reply Sir Surefirer. But it will cancel the item effect of Bubble Gum and Job Battle Manual on the player when I use the SC_EXPBOOST and SC_JEXPBOOST on NPC script.

this is true. maybe you can open an issue on github. I remember that RA dev they tested once before, and they can not reproduce this issue, but I could be wrong.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

Forgot to provide the bt full log.

Spoiler

#0  status_calc_bl_main (bl=bl@entry=0x7fffeb6eaccc,
    flag=flag@entry=1073741823) at status.cpp:5276
        b_status = 0x14c
        status = 0x7fffeb6eb668
        sd = 0x0
        temp = <optimized out>
#1  0x000000000062a85b in status_calc_bl_ (bl=0x7fffeb6eaccc, flag=SCB_ALL,
    opt=<optimized out>) at status.cpp:5776
        b_status = {hp = 17442, sp = 1181, max_hp = 17442, max_sp = 1181,
          str = 101, agi = 100, vit = 100, int_ = 99, dex = 99, luk = 99,
          eatk = 0, batk = 239, matk_min = 295, matk_max = 460, speed = 20,
          amotion = 301, adelay = 602, dmotion = 400,
          mode = (MD_CANMOVE | MD_AGGRESSIVE | MD_ASSIST | MD_CASTSENSOR_IDLE | MD_NORANDOM_WALK | MD_NOCAST_SKILL | MD_CANATTACK | MD_CASTSENSOR_CHASE | MD_CHANGECHASE | MD_CHANGETARGET_MELEE | MD_CHANGETARGET_CHASE | MD_RANDOMTARGET | unknown: 256), hit = 198, flee = 199, cri = 340, flee2 = 109, def2 = 100,
          mdef2 = 149, aspd_rate = 950, def = 8 '\b', mdef = 5 '\005',
          def_ele = 0 '\000', ele_lv = 1 '\001', size = 1 '\001',
          race = 10 '\n', class_ = 0 '\000', rhw = {atk = 99, atk2 = 249,
            range = 3, ele = 6 '\006'}, lhw = {atk = 0, atk2 = 0, range = 1,
            ele = 0 '\000'}}
        status = 0x7fffeb6eb668
#2  0x00000000004e9c52 in mob_reload_sub(mob_data *, typedef __va_list_tag __va_---Type <return> to continue, or q <return> to quit---


 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  102
  • Reputation:   2
  • Joined:  02/24/17
  • Last Seen:  

On 8/5/2020 at 8:35 PM, GMH said:

Good day, I always got map crash issues during @reloadmobdb on my happy hour script. I tried to search but i cannot find the answer that related to this issue. Hoping that you guys could help me to figure out the map crash issue on happy hour or floating rates. 

I have the screenshot of crash log from "gdb map-server map-server.core".

By the way, i am using latest rAthena-rev62532.

I also enabled the mobs_level_up: yes in conf/battle/monster.conf so the monster will level up each time a player is killed.

This is the Happy Hour script i've been using:

  Reveal hidden contents

-    script    HappyHourAuto    -1,{
 
OnClock0200:
OnClock0800:
OnClock1400:
OnClock2000:
    set $@brate,1000;
    set $@jrate,1000;
    set $@drate,500;
    setbattleflag("base_exp_rate",$@brate);
    setbattleflag("job_exp_rate",$@jrate);
    setbattleflag("item_rate_common",$@drate);
    setbattleflag("item_rate_heal",$@drate);
    setbattleflag("item_rate_use",$@drate);
    setbattleflag("item_rate_equip",$@drate);
    announce "Happy Hour Time!!!",bc_all,0xB6FF00;
    sleep 1500;
    announce "Happy Hour has started for 2 hour's and the new rates will be these: Base:"+($@brate/100)+"x, Job:"+($@jrate/100)+"x, Drop:"+($@drate/100)+"x, card not included.",bc_all,0xB6FF00;
    initnpctimer;
    set .HHAuto,1;
    sleep 1000;
    atcommand "@reloadmobdb";
    sleep 10000;
end;

OnTimer7200000:
    set .HHAuto,0;
    setbattleflag("base_exp_rate",$defaultbrate);
    setbattleflag("job_exp_rate",$defaultjrate);
    setbattleflag("item_rate_common",$defaultdrate);
    setbattleflag("item_rate_heal",$defaultdrate);
    setbattleflag("item_rate_use",$defaultdrate);
    setbattleflag("item_rate_equip",$defaultdrate);
    sleep 1000;
    atcommand "@reloadmobdb";
    sleep 10000;
    announce "Happy Hour Event has ended. Rates have returned to normal.",bc_all,0xB6FF00;
end;

OnPcLoginEvent:
    if (.HHAuto == 1) announce "Happy Hour Event currently active!",bc_self,0xB6FF00;
end;

OnInit:
    set $defaultbrate,700;
    set $defaultjrate,700;
    set $defaultdrate,300;
end;
}

Thanks in advance and more power.

 

map crash error.png

Change atcommand , dont use @reloadmobdb.

 

Or You can check here https://rathena.org/board/topic/125470-automatic-happy-hour/

 

Edited by behemothcze
Using phone sry.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   2
  • Joined:  10/15/13
  • Last Seen:  

20 hours ago, behemothcze said:

Change atcommand , dont use @reloadmobdb.

 

Or You can check here https://rathena.org/board/topic/125470-automatic-happy-hour/

 

Thanks for the reply. But the mob drop rates percentage doesn't change when I don't use @reloadmobdb on the script. I always checking the mobs drop item percentage using @mi command, e.g @mi <poporing>.

Another option is to remove the drop rates  and @reloadmobdb and on happy hour script.

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...