NoNamedEnderMan Posted September 15, 2015 Share Posted September 15, 2015 Ehm, I got an error whilst loading my game up, its a simple character mod and its my first time coding, so Im not very experienced with it.The crash I get is this:The following mod(s) have caused a failure: Echo[string "scripts/mainfunctions.lua"]:92: Error loading file prefabs/o90[string "../mods/EchoMod/scripts/prefabs/o90.lua"]:40: unexpected symbol near 'local'LUA ERROR stack traceback: =[C] in function 'assert' scripts/mainfunctions.lua(92,1) =(tail call) ? =[C] in function 'xpcall' scripts/mods.lua(144,1) And here is my o90.lua file from the prefabs folder:local MakePlayerCharacter = require "prefabs/player_common"local assets = { Asset( "ANIM", "anim/player_basic.zip" ), Asset( "ANIM", "anim/player_idles_shiver.zip" ), Asset( "ANIM", "anim/player_actions.zip" ), Asset( "ANIM", "anim/player_actions_axe.zip" ), Asset( "ANIM", "anim/player_actions_pickaxe.zip" ), Asset( "ANIM", "anim/player_actions_shovel.zip" ), Asset( "ANIM", "anim/player_actions_blowdart.zip" ), Asset( "ANIM", "anim/player_actions_eat.zip" ), Asset( "ANIM", "anim/player_actions_item.zip" ), Asset( "ANIM", "anim/player_actions_uniqueitem.zip" ), Asset( "ANIM", "anim/player_actions_bugnet.zip" ), Asset( "ANIM", "anim/player_actions_fishing.zip" ), Asset( "ANIM", "anim/player_actions_boomerang.zip" ), Asset( "ANIM", "anim/player_bush_hat.zip" ), Asset( "ANIM", "anim/player_attacks.zip" ), Asset( "ANIM", "anim/player_idles.zip" ), Asset( "ANIM", "anim/player_rebirth.zip" ), Asset( "ANIM", "anim/player_jump.zip" ), Asset( "ANIM", "anim/player_amulet_resurrect.zip" ), Asset( "ANIM", "anim/player_teleport.zip" ), Asset( "ANIM", "anim/wilson_fx.zip" ), Asset( "ANIM", "anim/player_one_man_band.zip" ), Asset( "ANIM", "anim/shadow_hands.zip" ), Asset( "SOUND", "sound/sfx.fsb" ), Asset( "SOUND", "sound/wilson.fsb" ), Asset( "ANIM", "anim/beard.zip" ), -- Don't forget to include your character's custom assets! Asset( "ANIM", "anim/o90.zip" ),local prefabs = {}local start_inv ={ "sanespear"}local player = GLOBAL.GetPlayer()local fn = function(inst) return inst.soundsname = "webber" inst.MiniMapEntity:SetIcon( "wilson.png" ) inst.components.health:SetMaxHealth(250) inst.components.hunger:SetMax(TUNING.WILSON_HUNGER * .65) inst.components.combat.damagemultiplier = .85 inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE * 1.25) inst.components.sanity:SetMax(50) inst.components.sanity.night_drain_mult = 0.2 inst.components.self.walkspeed = TUNING.WILSON_WALK_SPEED -- 5 inst.components.self.runspeed = TUNING.WILSON_RUN_SPEED -- 3 return instendreturn MakePlayerCharacter("o90", prefabs, assets, fn, start_inv)If anyone could help me, thanks a lot! Link to comment Share on other sites More sharing options...
jacklul Posted September 15, 2015 Share Posted September 15, 2015 assets is not closed, you're missing } here: [...]-- Don't forget to include your character's custom assets!Asset( "ANIM", "anim/o90.zip" ),}local prefabs = {} [...] Link to comment Share on other sites More sharing options...
keraunoscopia Posted September 16, 2015 Share Posted September 16, 2015 prefabs is not closed, you're missing } here: [...]-- Don't forget to include your character's custom assets!Asset( "ANIM", "anim/o90.zip" ),}local prefabs = {} [...]Good catch, but I think you mean "assets" is missing a closing "}" symbol? Link to comment Share on other sites More sharing options...
jacklul Posted September 16, 2015 Share Posted September 16, 2015 Good catch, but I think you mean "assets" is missing a closing "}" symbol?Whooops, I had to be tired Link to comment Share on other sites More sharing options...
Recommended Posts
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.