Amalleus Posted July 1, 2015 Share Posted July 1, 2015 Hello.I have 2 custom items, difference is just in OnAttack event and tags. Here is the code of one:local assets={ Asset("ANIM", "anim/geralt_sword.zip"), Asset("ANIM", "anim/swap_geralt_sword.zip"), Asset("ATLAS", "images/inventoryimages/geralt_sword.xml"), Asset("IMAGE", "images/inventoryimages/geralt_sword.tex"),}local function OnAttack(inst, attacker, target) if target then local damage = attacker.components.combat:CalcDamage(target, inst, 2) if not target:HasTag("monster") then if attacker and attacker.components.sanity then target.components.combat:GetAttacked(inst, damage) end end endendlocal function OnEquip(inst, owner) owner.AnimState:OverrideSymbol("swap_object", "swap_geralt_sword", "geralt_sword") owner.AnimState:Show("ARM_carry") owner.AnimState:Hide("ARM_normal") endlocal function OnUnequip(inst, owner) owner.AnimState:Hide("ARM_carry") owner.AnimState:Show("ARM_normal") endlocal function fn(colour) local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddAnimState() inst.entity:AddNetwork() MakeInventoryPhysics(inst) inst.AnimState:SetBank("geralt_sword") inst.AnimState:SetBuild("geralt_sword") inst.AnimState:PlayAnimation("idle") inst:AddTag("sword") inst:AddTag("steel") if not TheWorld.ismastersim then return inst end inst.entity:SetPristine() inst:AddComponent("inventoryitem") inst.components.inventoryitem.imagename = "geralt_sword" inst.components.inventoryitem.atlasname = "images/inventoryimages/geralt_sword.xml" inst:AddComponent("equippable") inst.components.equippable:SetOnEquip( OnEquip ) inst.components.equippable:SetOnUnequip( OnUnequip ) --inst.components.equippable.walkspeedmult = 1.10 inst:AddComponent("inspectable") inst:AddComponent("weapon") inst.components.weapon:SetDamage(GERALT_SWORD_DAMAGE) inst.components.weapon:SetRange(0.15, 0.15) inst.components.weapon:SetOnAttack(OnAttack) inst:AddComponent("finiteuses") inst.components.finiteuses:SetMaxUses(200) inst.components.finiteuses:SetUses(200) inst.components.finiteuses:SetOnFinished(inst.Remove) --[[if not inst.components.characterspecific then inst:AddComponent("characterspecific") end inst.components.characterspecific:SetOwner("geralt") inst.components.characterspecific:SetStorable(true) inst.components.characterspecific:SetComment("I don't know how to use it")]] return instendreturn Prefab("common/inventory/geralt_sword", fn, assets) So, about the problem. This item was put in Chester. After about one day, my friend opened chester and got error:[00:04:50]: Reconstructing topology [00:04:50]: ...Sorting points [00:04:50]: ...Sorting edges [00:04:50]: ...Connecting nodes [00:04:50]: ...Validating connections [00:04:50]: ...Housekeeping [00:04:50]: ...Done! [00:04:50]: ModIndex: Load sequence finished successfully. [00:04:50]: Reset() returning[00:04:52]: Attempting to send resume request[00:04:52]: ReceiveResumeNotification[00:04:52]: Movement prediction enabled [00:04:52]: Could not find anim build OUTOFSPACE[00:04:52]: Could not find anim bank [OUTOFSPACE][00:04:53]: Loading minimap from session/0B900006B339B87F/KU_gOWVCta1_/minimap[00:04:53]: Deserializing cached icon data: 3421[00:04:53]: Deserializing tile data (425 x 425)[00:06:10]: Watching world state, isfullmoon: true [00:07:40]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[00:07:40]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[00:07:40]: Watching world state, isfullmoon: false [00:08:52]: WARNING! Could not find region 'geralt_wsword.tex' from atlas 'images/inventoryimages.xml'. Is the region specified in the atlas?[00:08:52]: Looking for default texture '(null)' from atlas 'images/inventoryimages.xml'.[00:08:52]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/containerwidget.lua(132,1) in function 'Refresh' scripts/widgets/containerwidget.lua(120,1) in function 'Open' scripts/screens/playerhud.lua(181,1) in function 'OpenContainer' scripts/components/container_replica.lua(204,1) in function 'Open' scripts/components/container_replica.lua(58,1) in function 'fn' scripts/scheduler.lua(187,1) in function 'OnTick' scripts/scheduler.lua(398,1) in function 'RunScheduler' scripts/update.lua(162,1)[00:08:52]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/containerwidget.lua(132,1) in function 'Refresh' scripts/widgets/containerwidget.lua(120,1) in function 'Open' scripts/screens/playerhud.lua(181,1) in function 'OpenContainer' scripts/components/container_replica.lua(204,1) in function 'Open' scripts/components/container_replica.lua(58,1) in function 'fn' scripts/scheduler.lua(187,1) in function 'OnTick' scripts/scheduler.lua(398,1) in function 'RunScheduler' scripts/update.lua(162,1)[00:08:52]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/containerwidget.lua(132,1) in function 'Refresh' scripts/widgets/containerwidget.lua(120,1) in function 'Open' scripts/screens/playerhud.lua(181,1) in function 'OpenContainer' scripts/components/container_replica.lua(204,1) in function 'Open' scripts/components/container_replica.lua(58,1) in function 'fn' scripts/scheduler.lua(187,1) in function 'OnTick' scripts/scheduler.lua(398,1) in function 'RunScheduler' scripts/update.lua(162,1) [00:08:52]: SCRIPT ERROR! Showing error screen [00:08:52]: WARNING! Could not find region 'geralt_sword.tex' from atlas 'images/inventoryimages.xml'. Is the region specified in the atlas?[00:08:52]: Looking for default texture '(null)' from atlas 'images/inventoryimages.xml'.[00:08:52]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/containerwidget.lua(132,1) in function 'Refresh' scripts/widgets/containerwidget.lua(120,1) in function 'Open' scripts/screens/playerhud.lua(181,1) in function 'OpenContainer' scripts/components/container_replica.lua(204,1) in function 'Open' scripts/components/container_replica.lua(58,1) in function 'fn' scripts/scheduler.lua(187,1) in function 'OnTick' scripts/scheduler.lua(398,1) in function 'RunScheduler' scripts/update.lua(162,1)[00:08:52]: RakNet detected a missing replica (45298)[00:08:52]: RakNet detected a missing replica (25600)[00:08:52]: RakNet detected a missing replica (5757)[00:08:52]: RakNet detected a missing replica (184356)[00:08:52]: RakNet detected a missing replica (137473)[00:08:52]: RakNet detected a missing replica (100)[00:08:52]: RakNet detected a missing replica (66064)[00:08:52]: RakNet detected a missing replica (12864)[00:08:52]: RakNet detected a missing replica (253150)[00:08:52]: RakNet detected a missing replica (170915)[00:08:52]: RakNet detected a missing replica (77452)[00:08:52]: RakNet detected a missing replica (143931)[00:08:52]: RakNet detected a missing replica (252510)[00:08:52]: RakNet detected a missing replica (45947)[00:08:52]: RakNet detected a missing replica (175277)[00:08:52]: RakNet detected a missing replica (15031)[00:08:52]: RakNet detected a missing replica (257630)[00:08:52]: RakNet detected a missing replica (90891)[00:08:52]: RakNet detected a missing replica (126059)[00:08:52]: RakNet detected a missing replica (47536)[00:08:52]: RakNet detected a missing replica (248544)[00:08:52]: RakNet detected a missing replica (195490)[00:08:52]: RakNet detected a missing replica (44141)[00:08:52]: RakNet detected a missing replica (14006)[00:08:53]: RakNet detected a missing replica (45299)[00:08:53]: RakNet detected a missing replica (25600)[00:08:53]: RakNet detected a missing replica (148265)[00:08:53]: RakNet detected a missing replica (131104)[00:08:53]: RakNet detected a missing replica (7287)[00:08:53]: RakNet detected a missing replica (194435)[00:08:53]: RakNet detected a missing replica (110353)[00:08:53]: RakNet detected a missing replica (131316)[00:08:53]: RakNet detected a missing replica (67072)[00:08:53]: RakNet detected a missing replica (11132)[00:08:53]: RakNet detected a missing replica (168901)[00:08:53]: RakNet detected a missing replica (64112)[00:08:53]: RakNet detected a missing replica (182954)[00:08:53]: RakNet detected a missing replica (1924) - this happen if somebody open Chester with this custom item, but not host. Host is fine. Sometimes this error not appear. F.e. if i reload server after this crash, guys can easily open and close chester with item. Anybody knows, why it can't find texture/atlas ? And yes, i have all .tex and .xml Link to comment https://forums.kleientertainment.com/forums/topic/55799-crash-on-open/ Share on other sites More sharing options...
przemolsz Posted July 1, 2015 Share Posted July 1, 2015 Shouldn't the "SetPristine" line be before "if not TheWorld.ismastersim"? Link to comment https://forums.kleientertainment.com/forums/topic/55799-crash-on-open/#findComment-651185 Share on other sites More sharing options...
Amalleus Posted July 1, 2015 Author Share Posted July 1, 2015 (edited) Shouldn't the "SetPristine" line be before "if not TheWorld.ismastersim"?I doubt that the error because of this. But i will try to change and test. Any other thoughts? or only thisEDIT: Still crashing, even after posting it before. error as previous, no atlas/texture :[00:04:52]: Reconstructing topology [00:04:52]: ...Sorting points [00:04:52]: ...Sorting edges [00:04:52]: ...Connecting nodes [00:04:52]: ...Validating connections [00:04:52]: ...Housekeeping [00:04:52]: ...Done! [00:04:52]: ModIndex: Load sequence finished successfully. [00:04:52]: Reset() returning[00:04:55]: Attempting to send resume request[00:04:55]: ReceiveResumeNotification[00:04:55]: Movement prediction enabled [00:04:55]: Could not find anim build temperature[00:04:55]: Could not find anim bank [temperature][00:04:55]: Loading minimap from session/0B900006B339B87F/KU_gOWVCta1_/minimap[00:04:56]: Deserializing cached icon data: 3468[00:04:56]: Deserializing tile data (425 x 425)[00:05:20]: Error deserializing lua state for entity deciduoustree[100104] - Failed to read net var data[00:05:20]: Error deserializing lua state for entity deciduoustree[100112] - Failed to read net var data[00:05:22]: Error deserializing lua state for entity deciduoustree[100139] - Failed to read net var data[00:05:36]: FMOD Error: Can't play event dontstarve_DLC001/creatures/decidous/drake_run_rustle: An Event failed to be retrieved, most likely due to 'just fail' being specified as the max playbacks behavior. [00:08:27]: SAVING Morgue 9 [00:10:02]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[00:10:02]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[00:18:02]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[00:18:02]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[00:22:31]: [Physics] Error deserializing mass for entity chester_eyebone[122102][00:24:20]: [Physics] Error deserializing mass for entity chester_eyebone[123808][00:26:02]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[00:26:02]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[00:27:21]: [Physics] Error deserializing mass for entity chester_eyebone[125398][00:29:04]: [Physics] Error deserializing restitution for entity beefalo[127079][00:29:09]: [Physics] Error deserializing restitution for entity beefalo[127101][00:29:09]: [Physics] Error deserializing restitution for entity beefalo[127102][00:29:09]: [Physics] Error deserializing restitution for entity beefalo[127104][00:29:09]: [Physics] Error deserializing restitution for entity beefalo[127110][00:29:10]: [Physics] Error deserializing restitution for entity beefalo[127111][00:29:10]: [Physics] Error deserializing restitution for entity beefalo[127113][00:29:10]: [Physics] Error deserializing restitution for entity beefalo[127115][00:30:08]: [Physics] Error deserializing restitution for entity beefalo[127357][00:30:09]: [Physics] Error deserializing restitution for entity beefalo[127365][00:30:10]: [Physics] Error deserializing restitution for entity beefalo[127366][00:32:14]: [Physics] Error deserializing restitution for entity beefalo[127787][00:32:14]: [Physics] Error deserializing restitution for entity beefalo[127789][00:32:14]: [Physics] Error deserializing restitution for entity beefalo[127794][00:32:25]: [Physics] Error deserializing restitution for entity beefalo[127817][00:32:26]: [Physics] Error deserializing restitution for entity beefalo[127822][00:32:27]: [Physics] Error deserializing restitution for entity beefalo[127827][00:32:27]: [Physics] Error deserializing restitution for entity beefalo[127830][00:32:27]: [Physics] Error deserializing restitution for entity beefalo[127831][00:34:02]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[00:34:02]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[00:34:25]: [Physics] Error deserializing restitution for entity beefalo[128425][00:34:26]: [Physics] Error deserializing restitution for entity beefalo[128428][00:34:26]: [Physics] Error deserializing restitution for entity beefalo[128431][00:34:26]: [Physics] Error deserializing restitution for entity beefalo[128432][00:35:24]: [Physics] Error deserializing restitution for entity beefalo[128681][00:35:25]: [Physics] Error deserializing restitution for entity beefalo[128688][00:35:26]: [Physics] Error deserializing restitution for entity beefalo[128692][00:35:26]: [Physics] Error deserializing restitution for entity beefalo[128697][00:35:27]: [Physics] Error deserializing restitution for entity beefalo[128705][00:35:28]: [Physics] Error deserializing restitution for entity beefalo[128709][00:35:36]: [Physics] Error deserializing restitution for entity beefalo[128717][00:35:36]: [Physics] Error deserializing restitution for entity beefalo[128718][00:35:57]: [Physics] Error deserializing restitution for entity beefalo[128772][00:35:57]: [Physics] Error deserializing restitution for entity beefalo[128774][00:36:26]: [Physics] Error deserializing restitution for entity beefalo[128828][00:36:27]: [Physics] Error deserializing restitution for entity beefalo[128829][00:37:56]: [Physics] Error deserializing restitution for entity beefalo[128904][00:37:56]: [Physics] Error deserializing restitution for entity beefalo[128905][00:38:33]: [Physics] Error deserializing restitution for entity beefalo[129139][00:38:36]: [Physics] Error deserializing restitution for entity beefalo[129142][00:39:35]: [Physics] Error deserializing restitution for entity beefalo[129229][00:39:35]: [Physics] Error deserializing restitution for entity beefalo[129231][00:41:31]: [Physics] Error deserializing restitution for entity beefalo[129565][00:42:02]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[00:42:02]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[00:42:29]: [Physics] Error deserializing restitution for entity beefalo[129748][00:44:08]: [Physics] Error deserializing mass for entity chester_eyebone[130770][00:45:32]: [Physics] Error deserializing mass for entity chester_eyebone[131499][00:50:03]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[00:50:03]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[00:54:15]: [Physics] Error deserializing restitution for entity beefalo[137783][00:54:16]: [Physics] Error deserializing restitution for entity beefalo[137792][00:54:18]: [Physics] Error deserializing restitution for entity beefalo[137801][00:58:03]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[00:58:03]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[01:06:03]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[01:06:03]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[01:06:16]: [Physics] Error deserializing restitution for entity beefalo[140710][01:06:16]: [Physics] Error deserializing restitution for entity beefalo[140712][01:14:03]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[01:14:03]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[01:14:46]: [Physics] Error deserializing mass for entity chester_eyebone[147795][01:22:04]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[01:22:04]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[01:25:18]: Stale Component Reference: GUID 154568, scripts/widgets/text.lua:55[01:29:12]: MemberJoinedRoom: Member named -=ED=- and ID 76561198186313990 joined room with ID 109775242159693270[01:29:13]: Friend renamed to -=ED=- with ID 76561198186313990[01:30:04]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[01:30:04]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[01:30:29]: Member left Steam Room: -=ED=-[01:32:33]: FMOD Error: Can't play event dontstarve/creatures/pengull/splash: An Event failed to be retrieved, most likely due to 'just fail' being specified as the max playbacks behavior. [01:34:00]: [Physics] Error deserializing collision radius for entity koalefant_winter[162664][01:38:04]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[01:38:04]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[01:40:47]: [Physics] Error deserializing mass for entity chester_eyebone[174654][01:41:27]: [Physics] Error deserializing mass for entity chester_eyebone[174911][01:46:04]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[01:46:04]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[01:48:09]: SAVING Morgue 10 [01:54:04]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[01:54:04]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[02:02:05]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[02:02:05]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[02:03:16]: MemberJoinedRoom: Member named SexMafia and ID 76561198056356091 joined room with ID 109775242159693270[02:03:16]: Friend renamed to SexMafia with ID 76561198056356091[02:05:10]: Member left Steam Room: SexMafia[02:10:05]: Serializing user minimap to session/0B900006B339B87F/KU_gOWVCta1_/minimap[02:10:05]: Serializing user session to session/0B900006B339B87F/KU_gOWVCta1_/0000000001[02:13:03]: WARNING! Could not find region 'geralt_sword.tex' from atlas 'images/inventoryimages.xml'. Is the region specified in the atlas?[02:13:03]: Looking for default texture '(null)' from atlas 'images/inventoryimages.xml'.[02:13:03]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/containerwidget.lua(132,1) in function 'Refresh' scripts/widgets/containerwidget.lua(120,1) in function 'Open' scripts/screens/playerhud.lua(181,1) in function 'OpenContainer' scripts/components/container_replica.lua(204,1) in function 'Open' scripts/components/container_replica.lua(58,1) in function 'fn' scripts/scheduler.lua(187,1) in function 'OnTick' scripts/scheduler.lua(398,1) in function 'RunScheduler' scripts/update.lua(162,1)[02:13:03]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/containerwidget.lua(132,1) in function 'Refresh' scripts/widgets/containerwidget.lua(120,1) in function 'Open' scripts/screens/playerhud.lua(181,1) in function 'OpenContainer' scripts/components/container_replica.lua(204,1) in function 'Open' scripts/components/container_replica.lua(58,1) in function 'fn' scripts/scheduler.lua(187,1) in function 'OnTick' scripts/scheduler.lua(398,1) in function 'RunScheduler' scripts/update.lua(162,1)[02:13:03]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/containerwidget.lua(132,1) in function 'Refresh' scripts/widgets/containerwidget.lua(120,1) in function 'Open' scripts/screens/playerhud.lua(181,1) in function 'OpenContainer' scripts/components/container_replica.lua(204,1) in function 'Open' scripts/components/container_replica.lua(58,1) in function 'fn' scripts/scheduler.lua(187,1) in function 'OnTick' scripts/scheduler.lua(398,1) in function 'RunScheduler' scripts/update.lua(162,1) [02:13:03]: SCRIPT ERROR! Showing error screen [02:13:09]: Stale Component Reference: GUID 100407, scripts/widgets/text.lua:60[02:13:09]: Stale Component Reference: GUID 100404, scripts/widgets/text.lua:55[02:13:09]: Stale Component Reference: GUID 100408, scripts/widgets/text.lua:60[02:13:09]: Stale Component Reference: GUID 100405, scripts/widgets/text.lua:55[02:13:09]: Stale Component Reference: GUID 100405, scripts/widgets/text.lua:50[02:13:34]: Force aborting... Edited July 1, 2015 by Amalleus Link to comment https://forums.kleientertainment.com/forums/topic/55799-crash-on-open/#findComment-651187 Share on other sites More sharing options...
Seiai Posted July 1, 2015 Share Posted July 1, 2015 (edited) @Amalleus, so did u manage to make the error replicable now? also, try to comment out this line: inst.components.inventoryitem.imagename = "geralt_sword" if this doesnt fix it, attach the whole current version of the mod. Edited July 1, 2015 by Seiai Link to comment https://forums.kleientertainment.com/forums/topic/55799-crash-on-open/#findComment-651268 Share on other sites More sharing options...
Amalleus Posted July 1, 2015 Author Share Posted July 1, 2015 (edited) @Amalleus,so did u manage to make the error replicable now?also, try to comment out this line:inst.components.inventoryitem.imagename = "geralt_sword"if this doesnt fix it, attach the whole current version of the mod.another crash without this line.I thought if client can't find .tex or/and .xml of swords then i will add them to Assets in modmain.lua(I don't yet know if it will fix the problem), have no time to test right nowEDIT: attached fileDST_geralt.zip Edited July 1, 2015 by Amalleus Link to comment https://forums.kleientertainment.com/forums/topic/55799-crash-on-open/#findComment-651294 Share on other sites More sharing options...
Lumina Posted July 2, 2015 Share Posted July 2, 2015 Got a similar issue with a custom item and a backpack. If you find how to fix it, i would be happy to know, maybe it could help for my crash. (If i could and if you agree, i'll try to post more info, maybe it could help you too ?) Link to comment https://forums.kleientertainment.com/forums/topic/55799-crash-on-open/#findComment-651511 Share on other sites More sharing options...
Amalleus Posted July 2, 2015 Author Share Posted July 2, 2015 Got a similar issue with a custom item and a backpack. If you find how to fix it, i would be happy to know, maybe it could help for my crash. (If i could and if you agree, i'll try to post more info, maybe it could help you too ?)Crash doesn't appear yet. Probably it is fixed, but ofcourse i not sure, because it appears randomly. But still, after adding lines to modmain no crashes happen Link to comment https://forums.kleientertainment.com/forums/topic/55799-crash-on-open/#findComment-651539 Share on other sites More sharing options...
Lumina Posted July 5, 2015 Share Posted July 5, 2015 For me, the bug is still happening. I got the assets, but game crash sometime when i take a backpack with this item. Error log[00:46:32]: WARNING! Could not find region 'merm_scale.tex' from atlas 'images/inventoryimages.xml'. Is the region specified in the atlas?[00:46:32]: Looking for default texture '(null)' from atlas 'images/inventoryimages.xml'.[00:46:32]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/containerwidget.lua(132,1) in function 'Refresh' scripts/widgets/containerwidget.lua(120,1) in function 'Open' scripts/screens/playerhud.lua(181,1) in function 'OpenContainer' scripts/components/container_replica.lua(204,1) in function 'Open' scripts/components/container_replica.lua(58,1) in function 'fn' scripts/scheduler.lua(187,1) in function 'OnTick' scripts/scheduler.lua(398,1) in function 'RunScheduler' scripts/update.lua(162,1)[00:46:32]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/containerwidget.lua(132,1) in function 'Refresh' scripts/widgets/containerwidget.lua(120,1) in function 'Open' scripts/screens/playerhud.lua(181,1) in function 'OpenContainer' scripts/components/container_replica.lua(204,1) in function 'Open' scripts/components/container_replica.lua(58,1) in function 'fn' scripts/scheduler.lua(187,1) in function 'OnTick' scripts/scheduler.lua(398,1) in function 'RunScheduler' scripts/update.lua(162,1)[00:46:32]: images/inventoryimages.xmlLUA ERROR stack traceback: scripts/widgets/image.lua(30,1) in function 'SetTexture' scripts/widgets/image.lua(11,1) in function '_ctor' scripts/class.lua(181,1) in function 'Image' scripts/widgets/itemtile.lua(45,1) in function '_ctor' scripts/class.lua(181,1) in function 'ItemTile' scripts/widgets/containerwidget.lua(132,1) in function 'Refresh' scripts/widgets/containerwidget.lua(120,1) in function 'Open' scripts/screens/playerhud.lua(181,1) in function 'OpenContainer' scripts/components/container_replica.lua(204,1) in function 'Open' scripts/components/container_replica.lua(58,1) in function 'fn' scripts/scheduler.lua(187,1) in function 'OnTick' scripts/scheduler.lua(398,1) in function 'RunScheduler' scripts/update.lua(162,1) [00:46:32]: SCRIPT ERROR! Showing error screen Here the file : MermAndWarg.zipmodmain.luamerm_scale.lua Files and assets exist, it's work fine when in inventory, but i got very rare crash with backpack. Any idea why ? Do i have forgot something ? As far as i can see i got all the line suggested here. Link to comment https://forums.kleientertainment.com/forums/topic/55799-crash-on-open/#findComment-651979 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now