Error Message? Char. Creation


PockyQueen

Recommended Posts

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:

 

error_by_thepockyqueen-d7nnlrx.jpg

 

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

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

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

error message is pretty clear : "end" expected to close function at line 52

Hi!~ 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

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)end

Hope this helps, :D

Link to comment
Share on other sites

wtf is this

function               if self.inst.brain then            self.inst.brain:Start()        end   return MakePlayerCharacter("Wha", prefabs, assets, fn)end
remove it and just post

return 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

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.