-
-
Notifications
You must be signed in to change notification settings - Fork 399
Closed
Labels
Priority: LowMinor impactMinor impactStaleStatus: Pending TestThis PR or Issue requires more testingThis PR or Issue requires more testingType: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.
Description
Priority
Low
Area
- Data
- Source
- Docker
- Other
What happened?
Using spells from Dawnport throw errors in console. I have no problem with other spells like exura or utevo lux.
https://tibia.fandom.com/wiki/Dawnport#Spells
Spells I tested:
- exura infir
- exori infir tera
- exevo infir frigo hur
ERROR: Lua exception: /game_actionbar/game_actionbar.lua:931: attempt to index local 'spell' (a nil value)
stack traceback:
[C]: in function '__index'
/game_actionbar/game_actionbar.lua:931: in function </game_actionbar/game_actionbar.lua:927>
ERROR: protected lua call failed: LUA ERROR:
/game_actionbar/game_actionbar.lua:931: attempt to index local 'spell' (a nil value)
stack traceback:
[C]: in function '__index'
/game_actionbar/game_actionbar.lua:931: in function </game_actionbar/game_actionbar.lua:927>
On server side I use TFS 1.4, client version 10.98, OTC commit 3282896 with default spells.
Here is spells.xml part for one spelll:
<instant group="healing" spellid="174" name="Magic Patch" words="exura infir" level="1" mana="6" aggressive="0" selftarget="1" cooldown="1000" groupcooldown="1000" needlearn="0" script="healing/magic_patch.lua">
<vocation name="Sorcerer" />
<vocation name="Druid" />
<vocation name="Paladin" />
<vocation name="Master Sorcerer" />
<vocation name="Elder Druid" />
<vocation name="Royal Paladin" />
</instant>
Spell id for those spells based on TFS 1.4 spells.xml
- Magic Patch - 174
- Mud Attack - 172
- Chill Out - 173
- Lightest Missile Rune - ??? (7)
- Light Stone Shower Rune - ??? (116)
- Buzz - 177
- Scorch - 178
- Arrow Call - 176
- Bruise Bane - 175
There is 126 graphics for spells in data/images/game/spells/defaultspells.png
I can get rid of this error message adding after line 930 local spell, profile, spellName = Spells.getSpellByIcon(spellId) in modules/game_actionbar/game_actionbar.lua
if not spell then
return true
end
But I guess it's not proper fix. Propably there is missing spell cooldown icon?
What OS are you seeing the problem on?
Linux
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Priority: LowMinor impactMinor impactStaleStatus: Pending TestThis PR or Issue requires more testingThis PR or Issue requires more testingType: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.