[SVN 2801+] Alchemist on AI freezes game with ammo

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
complexityQuantifier
Higher
Posts: 56
Joined: Sun Jan 16, 2011 2:52 pm

[SVN 2801+] Alchemist on AI freezes game with ammo

#1 Post by complexityQuantifier »

If you put your alchemist on AI control (by controlling your golem, for example), you get an infinite number of these errors:

Eridan 5269 tactical ai talents testing Shockwave Bomb T_SHOCKWAVE_BOMB
Lua Error: /data/talents/spells/explosives.lua:194: attempt to index global 'ammo' (a nil value)
At [C]:-1
At /data/talents/spells/explosives.lua:194
At (tail call):-1
At /mod/ai//tactical.lua:17
At (tail call):-1
At /mod/ai//tactical.lua:272
At (tail call):-1
At /mod/ai//party.lua:34
At (tail call):-1
At (tail call):-1
At /mod/class/NPC.lua:47 act
At /engine/GameEnergyBased.lua:73 tick
At /engine/GameTurnBased.lua:44 tick
At /mod/class/Game.lua:655

complexityQuantifier
Higher
Posts: 56
Joined: Sun Jan 16, 2011 2:52 pm

Re: [SVN 2801+] Alchemist on AI freezes game with ammo

#2 Post by complexityQuantifier »

Oops, no, turns out to be any attempt to use Shockwave Bomb (including from the AI) that runs into problems.

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: [SVN 2801+] Alchemist on AI freezes game with ammo

#3 Post by yufra »

Thanks for finding that, (untested) fix attached. Can you apply it and check?
Attachments
shockwave_bomb_fix.txt
(1.33 KiB) Downloaded 127 times
<DarkGod> lets say it's intended

complexityQuantifier
Higher
Posts: 56
Joined: Sun Jan 16, 2011 2:52 pm

Re: [SVN 2801+] Alchemist on AI freezes game with ammo

#4 Post by complexityQuantifier »

That fixes all of the crashes I could find, and everything seems to work.

Post Reply