what-will-become-2.1 (svn) | Crash on offensive action

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

Alphaman
Noob
Noob
Posts: 5
Joined: 29 Jul 2009, 13:55
Noob?: No

what-will-become-2.1 (svn) | Crash on offensive action

#1 Post by Alphaman »

I sure hope continuously reporting bugs doesn't give me a bad rep, but here it goes. The server's type is once again "kRO_RagexeRE_2010_03_03a".

Today I updated Openkore to its latest version. This made some foreign characters appear on the screen instead of the usual skill, item, monster, or map names in English. Upon visiting Openkore's sourceforge page, I found all that was needed to fix this was to add the line "addTableFolders tables/translated/kRO_english" to the server info block.

All was fine and well, Openkore followed and used skills as usual, and then it simply crashed when (I believe) he was about to use Lex Aeterna on a monster (it was a slave priest, and no other attacks were defined).

Fast forward a few hours, and my sniper was farming as usual. It attacked and used Double Strafing on a number of occasions. Then I set my sights higher, and tried to get it to kill stronger monsters. A simple attack caused Openkore to crash yet again. This time, I tried restarting it numerous times. As soon as he was starting its attack, it crashed once more. This went on and on no matter how many times I restarted it.

This is the information that was present in errors.txt:

Code: Select all

OpenKore version what-will-become-2.1
@ai_seq = attack route
Network state = 5
Network handler = Network::DirectConnection
SVN revision: unknown
Loaded plugins:
  plugins/autotalk.pl (autotalk)
  plugins/macro.pl (macro)
  plugins/Sound.pl (alertsound)

Error message:
Assertion failed!
 at D:/PRRO Openkore/src/deps/Carp/Assert.pm line 271
	Carp::Assert::assert('') called at src/Skill.pm line 205
	Skill::getSP('Skill=HASH(0x820e09c)', undef) called at src/Misc.pm line 3713
	Misc::checkSelfCondition('attackSkillSlot_0') called at src/AI/Attack.pm line 356
	AI::Attack::main() called at src/AI/Attack.pm line 97
	AI::Attack::process() called at src/AI/CoreLogic.pm line 77
	AI::CoreLogic::iterate() called at src/functions.pl line 748
	main::mainLoop_initialized() called at src/functions.pl line 69
	main::mainLoop() called at src/Interface/Wx.pm line 188
	Interface::Wx::__ANON__('Interface::Wx=HASH(0x354c44c)', 'Wx::TimerEvent=SCALAR(0x871cddc)') called at src/Interface/Wx.pm line 161
	eval {...} called at src/Interface/Wx.pm line 161
	Interface::Wx::mainLoop('Interface::Wx=HASH(0x354c44c)') called at openkore.pl line 96
	main::__start() called at start.pl line 125

Stack trace:
Assertion failed!
 at D:/PRRO Openkore/src/deps/Carp/Assert.pm line 271
	Carp::Assert::assert('') called at src/Skill.pm line 205
	Skill::getSP('Skill=HASH(0x820e09c)', undef) called at src/Misc.pm line 3713
	Misc::checkSelfCondition('attackSkillSlot_0') called at src/AI/Attack.pm line 356
	AI::Attack::main() called at src/AI/Attack.pm line 97
	AI::Attack::process() called at src/AI/CoreLogic.pm line 77
	AI::CoreLogic::iterate() called at src/functions.pl line 748
	main::mainLoop_initialized() called at src/functions.pl line 69
	main::mainLoop() called at src/Interface/Wx.pm line 188
	Interface::Wx::__ANON__('Interface::Wx=HASH(0x354c44c)', 'Wx::TimerEvent=SCALAR(0x871cddc)') called at src/Interface/Wx.pm line 161
	eval {...} called at src/Interface/Wx.pm line 161
	Interface::Wx::mainLoop('Interface::Wx=HASH(0x354c44c)') called at openkore.pl line 96
	main::__start() called at start.pl line 125
 at src/Interface/Wx.pm line 161
	Interface::Wx::mainLoop('Interface::Wx=HASH(0x354c44c)') called at openkore.pl line 96
	main::__start() called at start.pl line 125
I don't believe any other information I have is relevant at this point. If you have any questions please ask, and I will try my best to answer.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: what-will-become-2.1 (svn) | Crash on offensive action

#2 Post by EternalHarvest »

Post your attackSkillSlot block.
Alphaman
Noob
Noob
Posts: 5
Joined: 29 Jul 2009, 13:55
Noob?: No

Re: what-will-become-2.1 (svn) | Crash on offensive action

#3 Post by Alphaman »

This is the priest's Lex block:

Code: Select all

attackSkillSlot Lex Aeterna {
	dist 9
	whenFollowing 1
	monsters Morroc's Shadow
}
And these are the sniper's attack blocks

Code: Select all

attackSkillSlot Charge Arrow {
	target_dist 6
	sp > 16
}

Code: Select all

attackSkillSlot Double Strafing {
	lvl 10
	dist 15
	sp > 13
	monsters Hillslion, Centipede
}

Code: Select all

attackSkillSlot Double Strafing {
	lvl 10
	dist 15
	maxCastTime 0
	minCastTime 0
	hp < 50%
	sp > 13
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	previousDamage
	stopWhenHit 0
	inLockOnly 1
	notInTown 0
	timeout 0
	disabled 0
	monsters
	notMonsters
	maxAttempts 0
	maxUses 0
	target_whenStatusActive
	target_whenStatusInactive
	target_deltaHp
	inInventory
	isSelfSkill 0
	equip_topHead
	equip_midHead
	equip_lowHead
	equip_leftHand
	equip_rightHand
	equip_leftAccessory
	equip_rightAccessory
	equip_robe
	equip_armor
	equip_shoes
	equip_arrow
	manualAI 0
}

Code: Select all

attackSkillSlot Sharpshooting {
	lvl 5
	dist 20
	maxCastTime 0
	minCastTime 0
	hp
	sp > 82
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives > 5
	previousDamage
	stopWhenHit 0
	inLockOnly 1
	notInTown 0
	timeout 0
	disabled 0
	monsters
	notMonsters Orc Warrior
	maxAttempts 0
	maxUses 0
	target_whenStatusActive
	target_whenStatusInactive
	target_deltaHp
	inInventory
	isSelfSkill 0
	equip_topHead
	equip_midHead
	equip_lowHead
	equip_leftHand
	equip_rightHand
	equip_leftAccessory
	equip_rightAccessory
	equip_robe
	equip_armor
	equip_shoes
	equip_arrow
	manualAI 2
}
I do apologize for those last two blocks' lengths. They're remnants from my early Openkore times, and I haven't deleted the extra fields. I've kept all the unused fields, so as not to risk deleting the line which causes the error to happen.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: what-will-become-2.1 (svn) | Crash on offensive action

#4 Post by EternalHarvest »

Try to add "lvl" option to all blocks.
Alphaman
Noob
Noob
Posts: 5
Joined: 29 Jul 2009, 13:55
Noob?: No

Re: what-will-become-2.1 (svn) | Crash on offensive action

#5 Post by Alphaman »

Will do. I'll post results in a minute or 2


--------------------------------------------------------------------------
UPDATE
--------------------------------------------------------------------------

It seems to be working fine. I am not too sure, but I do believe I had the "lvl" value there before during the first crashes, I just deleted it because it didn't seem to be necessary. I'll try it once more without the lvl value, please give me 2 more minutes.

--------------------------------------------------------------------------
UPDATE 2
--------------------------------------------------------------------------

It did crash once the lvl value was deleted. I can't say for sure, but I think that I haven't changed my priest's lex block. Would it be possible that the updates made it necessary for the lvl value to be set?

If not, then I'm very sorry for wasting your time with an issue that clearly did not belong in this section.

--------------------------------------------------------------------------
FINAL EDIT
--------------------------------------------------------------------------

From http://wiki.openkore.com/index.php?title=Lvl
This option sets the skill level to use for the skill block. This option is required.
My apologies.
User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: what-will-become-2.1 (svn) | Crash on offensive action

#6 Post by kLabMouse »

Closed.