Currently, this map fails to load with mod: ZK lobby: ZKL Something to do with units.
I went into the units folder and replaced the alltreeunits.lua file with individual unit files for the trees and it now works. - Although the trees cause Chilli Cursortip to crash, which I am not qualified to fix
Joined: 17 Nov 2005, 02:43 Location: Raegquitting Spring on 04/24/12
jseah wrote:
Currently, this map fails to load with mod: ZK lobby: ZKL Something to do with units.
I went into the units folder and replaced the alltreeunits.lua file with individual unit files for the trees and it now works. - Although the trees cause Chilli Cursortip to crash, which I am not qualified to fix
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
Quote:
Yar, don't use one file for multiple featuredefs. It causes issues.
it is not that. is not even featuredef but unitdef.
jseah wrote:
Currently, this map fails to load with mod: ZK lobby: ZKL Something to do with units.
it works with spring.exe (though the trees did not wiggle then like with ba.) It fails when trying in lobby:
[f=0000000] Failed to load unitDefs [f=0000000] Error: 2, gamedata/defs.lua, [string "gamedata/defs.lua"]:37: [string "gamedata/defs.lua"]:25: error = 2, gamedata/unitDefs.lua, error = 2, gamedata/unitdefs_post.lua, [string "gamedata/unitdefs_post.lua"]:351: attempt to index field 'unitname' (a nil value)
[f=0000000] Game::LoadDefs (GameData): 458 ms [f=0000000] Warning: UnsyncedGameCommands singleton was not initialized or is already destroyed [f=0000000] Warning: SyncedGameCommands singleton was not initialized or is already destroyed [f=0000000] Warning: CWordCompletion singleton was not initialized or is already destroyed [f=0000000] Statistics for local connection: Received: 727 bytes Sent: 8 bytes
Error: Spring: Incorrect/Missing content: Error in main(): Defs-Parser: [string "gamedata/defs.lua"]:37: [string "gamedata/defs.lua"]:25: error = 2, gamedata/unitDefs.lua, error = 2, gamedata/unitdefs_post.lua, [string "gamedata/unitdefs_post.lua"]:351: attempt to index field 'unitname' (a nil value)
from zk's unitdefs_post.lua:
Code:
if (modOptions and modOptions.factorycostmult) then for name, def in pairs(UnitDefs) do if def.unitname:find("factory") or def.unitname == "corsy" or def.unitname == "armcsa" or def.unitname == "striderhub" then
removing that made it load. (with spring.exe there are no modoptions that it works there)
Quote:
- Although the trees cause Chilli Cursortip to crash, which I am not qualified to fix
Error in Update(): [string "LuaUI/Widgets/gui_chili_selections_and_curs..."]:1394: attempt to index field '?' (a nil value) [f=0000059] Removed widget: Chili Selections & CursorTip [f=0000868] Error in MousePress(): [string "LuaUI/Widgets/gui_contextmenu.lua"]:425: attempt to index field '?' (a nil value)
Code:
and icontypes[(ud and ud.iconType or "default")].bitmap
and
Code:
file=icontypes and icontypes[(ud and ud.iconType or "default")].bitmap
unit has no icon assigned?
tl;dr There are some ways to make working units/features but zK will fail to load with them. zK assumes some tags for units to be present and when maps add extra units, sometimes those are missing. (the unit is perfectly fine, just some luas in zK try to read stuff that does not necessarily exist) At least it seems so.
iirc this line 123 in unitdefs_post.lua
Code:
if (ud.maxvelocity and ud.maxvelocity > 0) or ud.customparams.mobilebuilding then
crashed with this unit: http://pastebin.com/492yNaUp (didnt bother with it because was old file. not sure if crash because maxvelocity, customparams or .fbi)
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum