Jump to content

Cant find prefab


Recommended Posts

For some reason my weapon mod isn't working. I made a mod for a weapon i'm calling 'Gladius' problem is the game cant find the prefab. What should I do to fix it?

 

 

 

Log:

[00:00:00]: Starting Up[00:00:00]: Version: 145705[00:00:00]: Current time: Tue Aug 11 23:16:56 2015[00:00:00]: Don't Starve Together: 145705 WIN32_STEAMNNN Build Date: 2015-08-05_13-41-50[00:00:00]: Parsing command line[00:00:00]: Command Line Arguments: [00:00:00]: Initializing Minidump handler[00:00:00]: ....Done[00:00:00]: Initializing Steam[00:00:00]: Steam AppBuildID: 722192[00:00:00]: Steam BetaName(Branch): [][00:00:00]: ....Done[00:00:00]: Fixing DPI[00:00:00]: ...Done[00:00:00]: THREAD - started 'GAClient' (12092)[00:00:00]: HttpClient::ClientThread::Main()[00:00:05]: ProfileIndex:5.01[00:00:05]: Network tick rate: U=15(2), D=0[00:00:05]: THREAD - started 'GAClient' (2004)[00:00:05]: THREAD - started 'GAClient' (908)[00:00:05]: HttpClient::ClientThread::Main()[00:00:05]: HttpClient::ClientThread::Main()[00:00:05]: Network tick rate: U=15(2), D=0[00:00:05]: Authorized application C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_steam.exe is enabled in the firewall.[00:00:05]: WindowsFirewall - Application already authorized[00:00:05]: loaded ping_cache[00:00:05]: OnLoadPermissionList: APP:Klei/DoNotStarveTogether/save/blocklist.txt (Failure)[00:00:05]: OnLoadPermissionList: APP:Klei/DoNotStarveTogether/save/adminlist.txt (Failure)[00:00:05]: OnLoadUserIdList: APP:Klei/DoNotStarveTogether/save/whitelist.txt (Failure)[00:00:05]: Offline user name: OU_76561198052254189[00:00:05]: SteamID: 76561198052254189[00:00:05]: cGame::InitializeOnMainThread[00:00:05]: THREAD - started 'GAClient' (11808)[00:00:05]: WindowManager::Initialize[00:00:05]: THREAD - started 'GAClient' (7392)[00:00:05]: HttpClient::ClientThread::Main()[00:00:05]: CreateWindow: Requesting 1920,1080 - 5/6/5 - -1/-1/-1 - 0[00:00:05]: HttpClient::ClientThread::Main()[00:00:05]: CreateEGLContext: 12 configs found[00:00:05]:      0: 8/8/8 -  0/ 0/ 0 - 0[00:00:05]:      1: 8/8/8 -  0/16/ 0 - 0[00:00:05]:      2: 8/8/8 -  0/24/ 0 - 0[00:00:05]:      3: 8/8/8 -  0/24/ 8 - 0[00:00:05]:      4: 5/5/5 -  0/ 0/ 0 - 0[00:00:05]:      5: 5/5/5 -  0/16/ 0 - 0[00:00:05]:      6: 5/5/5 -  0/24/ 0 - 0[00:00:05]:      7: 5/5/5 -  0/24/ 8 - 0[00:00:05]:      8: 8/8/8 -  8/ 0/ 0 - 0[00:00:05]:      9: 8/8/8 -  8/16/ 0 - 0[00:00:05]:     10: 8/8/8 -  8/24/ 0 - 0[00:00:05]:     11: 8/8/8 -  8/24/ 8 - 0[00:00:05]: WindowManager::SetFullscreen(0, 1920, 1080, 60)[00:00:07]: GLInfo[00:00:07]: ~~~~~~[00:00:07]: GL_VENDOR: Google Inc.[00:00:07]: GL_RENDERER: ANGLE (NVIDIA GeForce GT 730M      )[00:00:07]: GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)[00:00:07]: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)[00:00:07]: OpenGL extensions (19, 19):[00:00:07]: GL_ANGLE_depth_texture[00:00:07]: GL_ANGLE_framebuffer_blit[00:00:07]: GL_ANGLE_framebuffer_multisample[00:00:07]: GL_ANGLE_instanced_arrays[00:00:07]: GL_ANGLE_pack_reverse_row_order[00:00:07]: GL_ANGLE_texture_compression_dxt3[00:00:07]: GL_ANGLE_texture_compression_dxt5[00:00:07]: GL_ANGLE_texture_usage[00:00:07]: GL_ANGLE_translated_shader_source[00:00:07]: GL_EXT_read_format_bgra[00:00:07]: GL_EXT_robustness[00:00:07]: GL_EXT_texture_compression_dxt1[00:00:07]: GL_EXT_texture_format_BGRA8888[00:00:07]: GL_EXT_texture_storage[00:00:07]: GL_OES_get_program_binary[00:00:07]: GL_OES_packed_depth_stencil[00:00:07]: GL_OES_rgb8_rgba8[00:00:07]: GL_OES_standard_derivatives[00:00:07]: GL_OES_texture_npot[00:00:07]: GL_MAX_TEXTURE_SIZE = 16384[00:00:07]: GL_MAX_TEXTURE_IMAGE_UNITS = 16[00:00:07]: GL_MAX_RENDERBUFFER_SIZE = 16384[00:00:07]: GL_MAX_VIEWPORT_DIMS = 16384, 16384[00:00:07]: GL_MAX_VARYING_VECTORS = 10[00:00:07]: GL_MAX_VERTEX_ATTRIBS = 16[00:00:07]: GL_MAX_VERTEX_UNIFORM_VECTORS = 254[00:00:07]: GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4[00:00:07]: GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221[00:00:07]: 4 compressed texture formats[00:00:07]: texture format 0x83f0[00:00:07]: texture format 0x83f1[00:00:07]: texture format 0x83f2[00:00:07]: texture format 0x83f3[00:00:07]: THREAD - started 'WindowsInputManager' (11932)[00:00:07]: Renderer initialize: Okay[00:00:08]: AnimManager initialize: Okay[00:00:08]: Buffers initialize: Okay[00:00:08]: cDontStarveGame::DoGameSpecificInitialize()[00:00:08]: GameSpecific initialize: Okay[00:00:08]: cGame::StartPlaying[00:00:08]: LOADING LUA[00:00:08]: DoLuaFile scripts/main.lua[00:00:08]: DoLuaFile loading buffer scripts/main.lua[00:00:08]: scripts/main.lua(169,1) running main.lua	[00:00:08]: loaded modindex	[00:00:08]: ModIndex: Beginning normal load sequence.	[00:00:08]: WARNING: icon paths for mod Structure (A Sample Structure) are not valid. Got icon_atlas="images/modicon.xml" and icon="modicon.tex".Please ensure that these point to valid files in your mod folder, or else comment out those lines from your modinfo.lua.	[00:00:09]: LOADING LUA SUCCESS[00:00:10]: PlayerDeaths loaded morgue	4720	[00:00:10]: PlayerHistory loaded player_history	379	[00:00:10]: loaded profile	[00:00:10]: bloom_enabled	false	[00:00:10]: loaded saveindex	[00:00:10]: OnFilesLoaded()	[00:00:10]: OnUpdatePurchaseStateComplete	[00:00:10]: 	Load FE	[00:00:10]: 	Load FE: done	[00:00:10]: SimLuaProxy::QueryServer()[00:00:10]: SimLuaProxy::QueryServer()[00:00:10]: ModIndex: Load sequence finished successfully.	[00:00:10]: Reset() returning[00:00:13]: [200] Account Communication Success (6)[00:00:13]: [ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_a9t-zOV3[00:00:13]: [Steam] Auth Session Ticket requested...[00:00:13]: [Steam] Got Auth Session Ticket[00:00:14]: SimLuaProxy::QueryServer()[00:00:14]: SimLuaProxy::QueryServer()[00:00:15]: QueryStats: { "req":"modrank", "field":"Session.Loads.Mods.list", "fieldop":"unwind", "linkpref":"external", "limit": 20}[00:00:15]: ../mods/workshop-362175979/wormhole_marks.tex is 200x200 but compressed textures must have power of 2 dimensions.[00:00:18]: Network tick rate: U=15(2), D=0[00:00:18]: [Warning] Could not confirm port 10999 is open in the firewall. [00:00:18]: Setting up socket descriptors[00:00:18]: Online Server Started on port: 10999[00:00:19]: Could not load mod_config_data/modconfiguration_Gladius	[00:00:20]: Collecting garbage...[00:00:20]: lua_gc took 0.02 seconds[00:00:20]: ~NetworkLuaProxy()[00:00:20]: ~SimLuaProxy()[00:00:20]: SteamWorkshop::CancelDownloads clearing all unfinished downloads[00:00:20]: lua_close took 0.03 seconds[00:00:20]: ReleaseAll[00:00:20]: ReleaseAll Finished[00:00:20]: cGame::StartPlaying[00:00:20]: LOADING LUA[00:00:20]: DoLuaFile scripts/main.lua[00:00:20]: DoLuaFile loading buffer scripts/main.lua[00:00:20]: scripts/main.lua(169,1) running main.lua	[00:00:20]: loaded modindex	[00:00:20]: ModIndex: Beginning normal load sequence.	[00:00:20]: WARNING: icon paths for mod Structure (A Sample Structure) are not valid. Got icon_atlas="images/modicon.xml" and icon="modicon.tex".Please ensure that these point to valid files in your mod folder, or else comment out those lines from your modinfo.lua.	[00:00:20]: ModIndex:GetModsToLoad inserting moddir, 	Gladius	[00:00:20]: Could not load mod_config_data/modconfiguration_Gladius	[00:00:20]: Loading mod: Gladius Version:0.8	[00:00:20]: Mod: Gladius	Loading modworldgenmain.lua	[00:00:20]: Mod: Gladius	  Mod had no modworldgenmain.lua. Skipping.	[00:00:20]: Mod: Gladius	Loading modmain.lua	[00:00:20]: LOADING LUA SUCCESS[00:00:20]: PlayerDeaths loaded morgue	4720	[00:00:20]: PlayerHistory loaded player_history	379	[00:00:20]: loaded profile	[00:00:20]: bloom_enabled	false	[00:00:20]: loaded saveindex	[00:00:20]: OnFilesLoaded()	[00:00:20]: OnUpdatePurchaseStateComplete	[00:00:20]: 	Unload FE	[00:00:20]: 	Unload FE done	[00:00:20]: Mod: Gladius	Registering prefabs	[00:00:20]: Mod: Gladius	  Registering default mod prefab	[00:00:20]: 	LOAD BE	[00:00:22]: 	LOAD BE: done	[00:00:22]: Deserialize world session from session/06E00029A08EA998/0000000016	[00:00:22]: Save file is at version 1	[00:00:22]: Begin Session: 06E00029A08EA998[00:00:23]: saving to server_temp/server_save	[00:00:23]: MiniMapComponent::AddAtlas( minimap/minimap_data.xml )[00:00:23]: Loading Nav Grid	[00:00:23]: setting 	summerlength	15	[00:00:23]: setting 	elapseddaysinseason	3	[00:00:23]: setting 	isfullmoon	false	[00:00:23]: setting 	moisture	437.45913696289	[00:00:23]: setting 	springlength	20	[00:00:23]: setting 	moonphase	quarter	[00:00:23]: setting 	precipitationrate	0	[00:00:23]: setting 	iswet	false	[00:00:23]: setting 	winterlength	15	[00:00:23]: setting 	iswinter	false	[00:00:23]: setting 	issummer	false	[00:00:23]: setting 	moistureceil	621.65472412109	[00:00:23]: setting 	isday	false	[00:00:23]: setting 	wetness	0	[00:00:23]: setting 	isnight	false	[00:00:23]: setting 	isdusk	true	[00:00:23]: setting 	isspring	false	[00:00:23]: setting 	isautumn	true	[00:00:23]: setting 	issnowing	false	[00:00:23]: setting 	snowlevel	0	[00:00:23]: setting 	issnowcovered	false	[00:00:23]: setting 	autumnlength	20	[00:00:23]: setting 	phase	dusk	[00:00:23]: setting 	temperature	29.715998178968	[00:00:23]: setting 	pop	0.70370113825062	[00:00:23]: setting 	season	autumn	[00:00:23]: setting 	israining	false	[00:00:23]: setting 	remainingdaysinseason	17	[00:00:23]: setting 	time	0.55400314331055	[00:00:23]: setting 	cycles	3	[00:00:23]: setting 	precipitation	none	[00:00:23]: setting 	timeinphase	0.14400838216146	[00:00:26]: Reconstructing topology	[00:00:26]: 	...Sorting points	[00:00:26]: 	...Sorting edges	[00:00:26]: 	...Connecting nodes	[00:00:26]: 	...Validating connections	[00:00:26]: 	...Housekeeping	[00:00:26]: 	...Done!	[00:00:26]: 1 uploads added to server. From server_temp[00:00:26]: Telling Client our new session identifier: 06E00029A08EA998[00:00:26]: ModIndex: Load sequence finished successfully.	[00:00:26]: Reset() returning[00:00:27]: Creating Steam Room[00:00:27]: Attempting to send resume request[00:00:27]: ReceiveResumeRequest[00:00:27]: Received request to resume from: session/06E00029A08EA998/KU_a9t-zOV3_/0000000016[00:00:27]: OnResumeRequestLoadComplete - UserID KU_a9t-zOV3[00:00:27]: [Load] SPAWNING PLAYER AT: (172.54, 0.00, -71.73)	[00:00:27]: ReceiveResumeNotification[00:00:27]: Console_CreateRoom: roomName Commex's World created for id 109775242267105259[00:00:27]: Loading minimap from session/06E00029A08EA998/KU_a9t-zOV3_/minimap[00:00:27]: Deserializing cached icon data: 25[00:00:27]: Deserializing tile data (373 x 373)[00:00:43]: attempt to call a nil value[00:00:54]: giving 	108479 - grass	[00:00:54]: Warning: Can't give item because it's not the correct prefab.	[00:00:58]: giving 	108488 - grass	[00:00:58]: Warning: Can't give item because it's not the correct prefab.	[00:01:07]: Could not preload undefined prefab 0xa361ff9f (gladius)[00:01:07]: Can't find prefab gladius	[00:01:16]: attempt to call a nil value[00:01:31]: DoRestart:	true	[00:01:32]: Serializing user minimap to session/06E00029A08EA998/KU_a9t-zOV3_/minimap[00:01:32]: Serializing user session to session/06E00029A08EA998/KU_a9t-zOV3_/0000000017[00:01:32]: Serializing world session to session/06E00029A08EA998/0000000017[00:01:32]: Truncating to snapshot #17...[00:01:32]:  - session/06E00029A08EA998/0000000011[00:01:32]:  - session/06E00029A08EA998/KU_a9t-zOV3_/0000000011[00:01:32]:    2 file(s) removed[00:01:32]: Left room 109775242267105259[00:01:32]: unloading prefabs for mod MOD_Gladius	[00:01:32]: Collecting garbage...[00:01:33]: lua_gc took 0.14 seconds[00:01:33]: ~NetworkLuaProxy()[00:01:33]: ~SimLuaProxy()[00:01:33]: SteamWorkshop::CancelDownloads clearing all unfinished downloads[00:01:33]: lua_close took 0.17 seconds[00:01:33]: ReleaseAll[00:01:33]: ReleaseAll Finished[00:01:33]: cGame::StartPlaying[00:01:33]: LOADING LUA[00:01:33]: DoLuaFile scripts/main.lua[00:01:33]: DoLuaFile loading buffer scripts/main.lua[00:01:33]: scripts/main.lua(169,1) running main.lua	[00:01:33]: loaded modindex	[00:01:33]: ModIndex: Beginning normal load sequence.	[00:01:33]: WARNING: icon paths for mod Structure (A Sample Structure) are not valid. Got icon_atlas="images/modicon.xml" and icon="modicon.tex".Please ensure that these point to valid files in your mod folder, or else comment out those lines from your modinfo.lua.	[00:01:33]: LOADING LUA SUCCESS[00:01:33]: PlayerDeaths loaded morgue	4720	[00:01:33]: PlayerHistory loaded player_history	379	[00:01:33]: loaded profile	[00:01:33]: bloom_enabled	false	[00:01:33]: loaded saveindex	[00:01:33]: OnFilesLoaded()	[00:01:33]: OnUpdatePurchaseStateComplete	[00:01:33]: 	Unload BE	[00:01:33]: 	Unload BE done	[00:01:33]: Could not unload undefined prefab 0x359da624 (log)[00:01:33]: Could not unload undefined prefab 0x29ad5029 (spoiled_food)[00:01:33]: Could not unload undefined prefab 0x29d8efdb (red_leaves_chop)[00:01:33]: Could not unload undefined prefab 0x39590c78 (orange_leaves_chop)[00:01:33]: Could not unload undefined prefab 0x2d1c40c (deciduous_root)[00:01:33]: Could not unload undefined prefab 0x41ba89b5 (nightmarefuel)[00:01:33]: Could not unload undefined prefab 0x29ad5029 (spoiled_food)[00:01:33]: Could not unload undefined prefab 0x235a9a90 (birchnutdrake)[00:01:33]: Could not unload undefined prefab 0x359da624 (log)[00:01:33]: Could not unload undefined prefab 0x9be18af2 (twigs)[00:01:33]: Could not unload undefined prefab 0x184178b (meat)[00:01:33]: Could not unload undefined prefab 0x359da624 (log)[00:01:33]: Could not unload undefined prefab 0x1078732c (character_fire)[00:01:33]: Could not unload undefined prefab 0x184178b (meat)[00:01:33]: Could not unload undefined prefab 0x359da624 (log)[00:01:33]: Could not unload undefined prefab 0x1078732c (character_fire)[00:01:34]: 	Load FE	[00:01:34]: 	Load FE: done	[00:01:34]: SimLuaProxy::QueryServer()[00:01:34]: SimLuaProxy::QueryServer()[00:01:34]: ModIndex: Load sequence finished successfully.	[00:01:34]: Reset() returning[00:01:36]: Collecting garbage...[00:01:36]: lua_gc took 0.01 seconds[00:01:36]: ~NetworkLuaProxy()[00:01:36]: ~SimLuaProxy()[00:01:36]: SteamWorkshop::CancelDownloads clearing all unfinished downloads[00:01:36]: lua_close took 0.02 seconds[00:01:36]: HttpClient::ClientThread::Main() complete[00:01:36]: HttpClient::ClientThread::Main() complete[00:01:36]: [Steam] Auth ticket cancelled[00:01:36]: HttpClient::ClientThread::Main() complete[00:01:36]: HttpClient::ClientThread::Main() complete[00:01:36]:  Manager - ORPHANED UNKNOWN RESOURCES:[00:01:36]: anim/grass1.zip - 1[00:01:36]: anim/batwing.zip - 1[00:01:36]: anim/meat.zip - 1[00:01:36]: anim/meat_human.zip - 1[00:01:36]: anim/spoiled_food.zip - 1[00:01:36]: anim/log.zip - 1[00:01:36]: anim/fire_large_character.zip - 1[00:01:36]: anim/grass.zip - 1[00:01:36]: anim/meat_small.zip - 1[00:01:36]: anim/meat_rack_food.zip - 1[00:01:36]: anim/plant_meat.zip - 1[00:01:36]: anim/drumstick.zip - 1[00:01:36]: anim/meat_monster.zip - 1[00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. [00:01:36]:  Manager - ORPHANED UNKNOWN RESOURCES:[00:01:36]: anim/fire_large_character.zip:fire_large_character--atlas-0.tex - 1[00:01:36]: anim/meat_rack_food.zip:meat_rack_food--atlas-0.tex - 1[00:01:36]: anim/fire_large_character.zip:fire_large_character--atlas-1.tex - 1[00:01:36]: anim/grass1.zip:grass1--atlas-0.tex - 1[00:01:36]: anim/meat_human.zip:meat_human--atlas-0.tex - 1[00:01:36]: anim/meat_small.zip:meat_small--atlas-0.tex - 1[00:01:36]: anim/drumstick.zip:drumstick--atlas-0.tex - 1[00:01:36]: anim/meat.zip:meat--atlas-0.tex - 1[00:01:36]: anim/batwing.zip:batwing--atlas-0.tex - 1[00:01:36]: anim/log.zip:log--atlas-0.tex - 1[00:01:36]: anim/plant_meat.zip:plant_meat--atlas-0.tex - 1[00:01:36]: anim/spoiled_food.zip:spoiled_food--atlas-0.tex - 1[00:01:36]: anim/batwing.zip:batwing--atlas-1.tex - 1[00:01:36]: anim/meat_monster.zip:meat_monster--atlas-0.tex - 1[00:01:36]: HttpClient::ClientThread::Main() complete[00:01:36]: Shutting down

Main Lua:

local assets={    Asset("ANIM", "anim/gladius.zip"),    Asset("ANIM", "anim/swap_gladius.zip"),    Asset("ATLAS", "images/inventoryimages/gladius.xml"),    Asset("IMAGE", "images/inventoryimages/gladius.tex"),}prefabfiles = {    "gladius",}local function fn()    local function OnEquip(inst, owner)        owner.AnimState:OverrideSymbol("swap_object", "swap_gladius", "swap_gladius")        owner.AnimState:Show("ARM_carry")        owner.AnimState:Hide("ARM_normal")    end    local function OnUnequip(inst, owner)        owner.AnimState:Hide("ARM_carry")        owner.AnimState:Show("ARM_normal")    end    local inst = CreateEntity()    local trans = inst.entity:AddTransform()    local anim = inst.entity:AddAnimState()    local sound = inst.entity:AddSoundEmitter()    MakeInventoryPhysics(inst)    anim:SetBank("gladius")    anim:SetBuild("gladius")    anim:PlayAnimation("idle")    inst:AddComponent("inspectable")    inst:AddComponent("inventoryitem")    inst.components.inventoryitem.imagename = "gladius"    inst.components.inventoryitem.atlasname = "images/inventoryimages/gladius.xml"    inst:AddComponent("weapon")    inst.components.weapon.imagename = "gladius"    inst.components.weapon.atlasname = "images/inventoryimages/gladius.xml"    return inst  endreturn Prefab("common/inventory/gladius", fn, assets, prefabs)

Not quite sure what the issue is.

modmain.lua : modmain.lua

modinfo.lua : modinfo.lua

gladius.lua (prefab) : gladius.lua

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...