PockyQueen Posted June 23, 2014 Share Posted June 23, 2014 Hello, I was following a tutorial on how to make a character today. I got to the end, ran my mod, and got this:Hi, I hope I'm not bringing back a bad fourm, but I get this error message: Please help? I really have no idea about coding and such, so please be some-what specific. Thanks a lot!! Link to comment Share on other sites More sharing options...
Minik435 Posted June 23, 2014 Share Posted June 23, 2014 It means at line 70 there's missing "end".If you can't do that, maybe you will send to me Wha.lua? I'll fix it... probably... I will contact through PM with fixed version.I will be able to do that in next 16 hours (or lesser). Link to comment Share on other sites More sharing options...
PockyQueen Posted June 23, 2014 Author Share Posted June 23, 2014 It means at line 70 there's missing "end".If you can't do that, maybe you will send to me Wha.lua? I'll fix it... probably... I will contact through PM with fixed version.I will be able to do that in next 16 hours (or lesser).I may be able to do it, all that means is to open it with my text editor and add 'end'? Or is it something else? My Wha.Lau doesn't even make it past line 65, I'm not very sure why it needs an 'end' at 70 though (Not an expert at this though, so...) . I'll message you the file it you still would like it thanks a lot. Link to comment Share on other sites More sharing options...
Rincevvind Posted June 26, 2014 Share Posted June 26, 2014 error message is pretty clear : "end" expected to close function at line 52 Link to comment Share on other sites More sharing options...
PockyQueen Posted June 27, 2014 Author Share Posted June 27, 2014 error message is pretty clear : "end" expected to close function at line 52Hi!~ For some reason, when I added 'end' it still didn't work.... No error page this time; now it just exits. Thanks for your help though!~ Link to comment Share on other sites More sharing options...
Rincevvind Posted June 28, 2014 Share Posted June 28, 2014 post your code Link to comment Share on other sites More sharing options...
PockyQueen Posted June 29, 2014 Author Share Posted June 29, 2014 post your code 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/Wha.zip" ),}local prefabs = {}local fn = function(inst) -- choose which sounds this character will play inst.soundsname = "wendy" -- a minimap icon must be specified inst.MiniMapEntity:SetIcon( "wilson.png" ) -- todo: Add an example special power here. inst.components.health.maxhealth = 150 inst.components.combat.damagemultiplier = (TUNING.WILSON_DAMAGE_MULT * .75) inst.components.sanity.self.max = 85 inst.componets.health.vulnerabletoheatdamage = falseend function if self.inst.brain then self.inst.brain:Start() end return MakePlayerCharacter("Wha", prefabs, assets, fn)endHope this helps, Link to comment Share on other sites More sharing options...
Rincevvind Posted June 30, 2014 Share Posted June 30, 2014 wtf is thisfunction if self.inst.brain then self.inst.brain:Start() end return MakePlayerCharacter("Wha", prefabs, assets, fn)endremove it and just postreturn MakePlayerCharacter("Wha", prefabs, assets, fn) Link to comment Share on other sites More sharing options...
PockyQueen Posted July 2, 2014 Author Share Posted July 2, 2014 wtf is thisfunction if self.inst.brain then self.inst.brain:Start() end return MakePlayerCharacter("Wha", prefabs, assets, fn)endremove it and just postreturn MakePlayerCharacter("Wha", prefabs, assets, fn)Thanks,I have no idea to be honest, I just did what the tutorial told me to do D: 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.