Bug in inf supply in 3523 (morgenrote test build)


#1

[f=0004310] Error: LuaRules::RunCallIn: error = 2, GameFrame, [string “LuaRules/Gadgets/game_infsupply.lua”]:159: attempt to index field ‘?’ (a nil value)
stack traceback:
[string “LuaRules/Gadgets/game_infsupply.lua”]:159: in function ‘ProcessUnit’
[string “LuaRules/Gadgets/game_infsupply.lua”]:209: in function ‘GameFrame’
[string “luagadgets/gadgets.lua”]:942: in function <[string “luagadgets/gadgets.lua”]:940>
(tail call): ?

Likely tied to infantry death.


#2

Fail :cry:

edit: try r3535


#3

Assuming you meant 3525 :stuck_out_tongue:

played against craig (who works!):

[f=0016900] Error: LuaRules::RunCallIn: error = 2, GameFrame, [string “LuaRules/Gadgets/game_infsupply.lua”]:70: attempt to compare nil with number
stack traceback:
[string “LuaRules/Gadgets/game_infsupply.lua”]:70: in function ‘FindSupplier’
[string “LuaRules/Gadgets/game_infsupply.lua”]:172: in function ‘ProcessUnit’
[string “LuaRules/Gadgets/game_infsupply.lua”]:210: in function ‘GameFrame’
[string “luagadgets/gadgets.lua”]:942: in function <[string “luagadgets/gadgets.lua”]:940>
(tail call): ?

demo attached (SVN 3525, 1944_red_planet)


#4

Fixed r3530


#5

Note to myself to remove the sensors modoption before making a release build.


#6

Spot the mistake

spring1944.svn.sourceforge.net/v … threv=3521

edit:

Fixed:

spring1944.svn.sourceforge.net/v … threv=3542


#7

Damnit, thank you :stuck_out_tongue: clearly wasn’t thinking.


#8

MORE BUG.

brens and other crawling gunners don’t actually stand up and run when ordered if there’s something they can shoot at in range. which is immensely annoying.


#9

Maybe those types of infantry should not even attempt to fire (and thus go prone) while moving? Should be easy enough to add a check for current speed > 0 before triggering the animation I suppose. Might break them in other ways however.


#10

I gave brens a forward facing firing cone like other infantry.
And they only seem to crawl when they have an enemy in the firing cone which means they should be able to retreat much more easily atleast.
I couldn’t notice any new sideeffects.