[General] - Crash when monkey throw a projectile


ZupaleX

Recommended Posts

Bug Submission:

Category: General

Issue Title: Crash when monkey throw a projectile

Issue Description: Hello, I know hat monkey are not supposed to be in the game yet, but with the caves coming I decided that maybe you will be interested in the crash log when a monkey throw a projectile at the player

[00:03:26]: [string "scripts/components/combat.lua"]:640: variable 'weaponrange' is not declared

LUA ERROR stack traceback:

=[C]:-1 in (global) error © <-1--1>

scripts/strict.lua:23 in () ? (Lua) <21-26>

t = table: 05F7F768

n = weaponrange

scripts/components/combat.lua:640 in (method) GetHitRange (Lua) <637-643>

self =

hiteffectsymbol = marker

defaultdamage = 0

keeptargetfn = function - scripts/prefabs/monkey.lua:171

forcefacing = true

inst = 100057 - monkey (valid:true)

retargetperiod = 1

hitrange = 3

lastwasattackedtime = 59.600003108382

playerdamagepercent = 1

nextbattlecrytime = 76.777267402948

pvp_damagemod = 1

keeptargettimeout = 0.86666665971279

laststartattacktime = 0

retargettask = PERIODIC 100057: 1.000000

lastattacker = 108681 - wes (valid:true)

losetargetcallback = function - scripts/components/combat.lua:254

battlecryenabled = true

_ = table: 15961388

targetfn = function - scripts/prefabs/monkey.lua:159

weapon = 100058 - (LIMBO) (valid:true)

scripts/components/combat.lua:647 in (method) CalcHitRangeSq (Lua) <645-649>

self =

hiteffectsymbol = marker

defaultdamage = 0

keeptargetfn = function - scripts/prefabs/monkey.lua:171

forcefacing = true

inst = 100057 - monkey (valid:true)

retargetperiod = 1

hitrange = 3

lastwasattackedtime = 59.600003108382

playerdamagepercent = 1

nextbattlecrytime = 76.777267402948

pvp_damagemod = 1

keeptargettimeout = 0.86666665971279

laststartattacktime = 0

retargettask = PERIODIC 100057: 1.000000

lastattacker = 108681 - wes (valid:true)

losetargetcallback = function - scripts/components/combat.lua:254

battlecryenabled = true

_ = table: 15961388

targetfn = function - scripts/prefabs/monkey.lua:159

target = 108681 - wes (valid:true)

scripts/components/combat.lua:668 in (method) CanHitTarget (Lua) <651-677>

self =

hiteffectsymbol = marker

defaultdamage = 0

keeptargetfn = function - scripts/prefabs/monkey.lua:171

forcefacing = true

inst = 100057 - monkey (valid:true)

retargetperiod = 1

hitrange = 3

lastwasattackedtime = 59.600003108382

playerdamagepercent = 1

nextbattlecrytime = 76.777267402948

pvp_damagemod = 1

keeptargettimeout = 0.86666665971279

laststartattacktime = 0

retargettask = PERIODIC 100057: 1.000000

lastattacker = 108681 - wes (valid:true)

losetargetcallback = function - scripts/components/combat.lua:254

battlecryenabled = true

_ = table: 15961388

targetfn = function - scripts/prefabs/monkey.lua:159

target = 108681 - wes (valid:true)

weapon = 100058 - (LIMBO) (valid:true)

specialcase_target = false

targetpos = (15.72, -0.00, 113.79)

scripts/components/combat.lua:683 in (method) DoAttack (Lua) <679-732>

self =

hiteffectsymbol = marker

defaultdamage = 0

keeptargetfn = function - scripts/prefabs/monkey.lua:171

forcefacing = true

inst = 100057 - monkey (valid:true)

retargetperiod = 1

hitrange = 3

lastwasattackedtime = 59.600003108382

playerdamagepercent = 1

nextbattlecrytime = 76.777267402948

pvp_damagemod = 1

keeptargettimeout = 0.86666665971279

laststartattacktime = 0

retargettask = PERIODIC 100057: 1.000000

lastattacker = 108681 - wes (valid:true)

losetargetcallback = function - scripts/components/combat.lua:254

battlecryenabled = true

_ = table: 15961388

targetfn = function - scripts/prefabs/monkey.lua:159

target_override = nil

weapon = nil

projectile = nil

stimuli = nil

instancemult = nil

targ = 108681 - wes (valid:true)

weapon = 100058 - (LIMBO) (valid:true)

scripts/stategraphs/SGmonkey.lua:169 in (field) fn (Lua) <169-170>

inst = 100057 - monkey (valid:true)

scripts/stategraph.lua:562 in (method) UpdateState (Lua) <530-574>

self =

tags = table: 1EB87FE8

[00:03:26]: [string "scripts/components/combat.lua"]:640: variable 'weaponrange' is not declared

LUA ERROR stack traceback:

=[C]:-1 in (global) error © <-1--1>

scripts/strict.lua:23 in () ? (Lua) <21-26>

scripts/components/combat.lua:640 in (method) GetHitRange (Lua) <637-643>

scripts/components/combat.lua:647 in (method) CalcHitRangeSq (Lua) <645-649>

scripts/components/combat.lua:668 in (method) CanHitTarget (Lua) <651-677>

scripts/components/combat.lua:683 in (method) DoAttack (Lua) <679-732>

scripts/stategraphs/SGmonkey.lua:169 in (field) fn (Lua) <169-170>

scripts/stategraph.lua:562 in (method) UpdateState (Lua) <530-574>

scripts/stategraph.lua:601 in (method) Update (Lua) <593-621>

scripts/stategraph.lua:123 in (method) Update (Lua) <107-146>

scripts/update.lua:205 in () ? (Lua) <146-219>

[00:03:26]: SCRIPT ERROR! Showing error screen

Steps to Reproduce: Spawn a monkey, attack it and wait for him to throw something at the player.

Link to comment
Share on other sites

Same:

 [00:13:08]: [string "scripts/components/combat.lua"]:640: variable 'weaponrange' is not declaredLUA ERROR stack traceback:    =[C]:-1 in (global) error (C) <-1--1>    scripts/strict.lua:23 in () ? (Lua) <21-26>    scripts/components/combat.lua:640 in (method) GetHitRange (Lua) <637-643>    scripts/components/combat.lua:647 in (method) CalcHitRangeSq (Lua) <645-649>    scripts/components/combat.lua:668 in (method) CanHitTarget (Lua) <651-677>    scripts/components/combat.lua:683 in (method) DoAttack (Lua) <679-732>    scripts/stategraphs/SGmonkey.lua:217 in (field) fn (Lua) <217-218>    scripts/stategraph.lua:562 in (method) UpdateState (Lua) <530-574>    scripts/stategraph.lua:601 in (method) Update (Lua) <593-621>    scripts/stategraph.lua:123 in (method) Update (Lua) <107-146>    scripts/update.lua:205 in () ? (Lua) <146-219>

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.