Fidooop Posted February 3, 2014 Share Posted February 3, 2014 (edited) I am making a stick man character (because I don't know how to draw) and I am getting some unknown error... here's a picture of the error and here is my smiley.lua 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/smiley.zip" ),}local prefabs = {}local fn = function(inst)-- choose which sounds this character will playinst.soundsname = "willow"-- a minimap icon must be specifiedinst.MiniMapEntity:SetIcon( "wilson.png" )-- todo: Add an example special power here.inst.components.health:SetMaxHealth(120)inst.components.hunger:SetMax(150)inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE * 1)inst.components.sanity:SetMax(170)inst.components.combat.damagemultiplier = 0.9inst.components.locomotor.walkspeed = (TUNING.WILSON_WALK_SPEED * 1.1)inst.components.locomotor.runspeed = (TUNING.WILSON_RUN_SPEED * 1.1)inst.components.temperature:SetTemp( 9 )self.inherentinsulation = 4end)local Combat = Class(function(self, inst)inst.components.combat.attackrange = 5.1inst.components.combat.hitrange = 3.1inst.components.combat.min_attack_period = 3end)end-- The character select screen lines-- note: these are lower-case character nameSTRINGS.CHARACTER_TITLES.kta = "The Stick Man"STRINGS.CHARACTER_NAMES.kta = "Smiley"STRINGS.CHARACTER_DESCRIPTIONS.kta = "*Has no meat on his bones...\n*Actually he doesn't have bones either!\n*Do to his lack of a body he is weaker, faster, and gets colder faster!"STRINGS.CHARACTER_QUOTES.kta = "\"How am I alive?\""STRINGS.CHARACTERS.kta= require "speech_smiley"return MakePlayerCharacter("smiley", prefabs, assets, fn) (here is the lua in a zip smiley-lua.zip )it is telling me that on line 57 there is an unexpected symbol near ')' line 57 is the first 'end)' under the '-- todo: Add an example special power here.' any help will be greatly appreciated! thx in advanced Edited February 3, 2014 by Fidooop Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/ Share on other sites More sharing options...
kaysik Posted February 3, 2014 Share Posted February 3, 2014 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/smiley.zip" ),}local prefabs = {} local fn = function(inst) -- choose which sounds this character will play inst.soundsname = "willow" -- a minimap icon must be specified inst.MiniMapEntity:SetIcon( "wilson.png" ) -- todo: Add an example special power here. inst.components.health:SetMaxHealth(120) inst.components.hunger:SetMax(150) inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE * 1) inst.components.sanity:SetMax(170) inst.components.combat.damagemultiplier = 0.9 inst.components.locomotor.walkspeed = (TUNING.WILSON_WALK_SPEED * 1.1) inst.components.locomotor.runspeed = (TUNING.WILSON_RUN_SPEED * 1.1) inst.components.temperature:SetTemp( 9 ) self.inherentinsulation = 4 local Combat = Class(function(self, inst) inst.components.combat.attackrange = 5.1 inst.components.combat.hitrange = 3.1 inst.components.combat.min_attack_period = 3 end)end-- The character select screen lines-- note: these are lower-case character nameSTRINGS.CHARACTER_TITLES.kta = "The Stick Man"STRINGS.CHARACTER_NAMES.kta = "Smiley"STRINGS.CHARACTER_DESCRIPTIONS.kta = "*Has no meat on his bones...\n*Actually he doesn't have bones either!\n*Do to his lack of a body he is weaker, faster, and gets colder faster!"STRINGS.CHARACTER_QUOTES.kta = "\"How am I alive?\""STRINGS.CHARACTERS.kta= require "speech_smiley" return MakePlayerCharacter("smiley", prefabs, assets, fn)try that Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-411900 Share on other sites More sharing options...
Fidooop Posted February 3, 2014 Author Share Posted February 3, 2014 sorry, it didn't fix it... just made it worse... no error at all the game just closed itself Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-411906 Share on other sites More sharing options...
Fidooop Posted February 3, 2014 Author Share Posted February 3, 2014 ok I figured out that I don't even need an end) at all! but now the game just crashes and closes itself when I select the mod and leave the mod screen.... if anyone knows what may cause this problem I'd greatly appreciate it! if I need to put in some more files let me know so that I can upload them Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-411913 Share on other sites More sharing options...
NikMik Posted February 3, 2014 Share Posted February 3, 2014 (edited) 1: You DO need the end).2: Change the "kta" to "smiley".3: Make sure you've changed the build.anim4: Make sure the xmls for the images have been changed to "smiley" as well. EDIT: Take out the:local Combat = Class(function(self, inst)inst.components.combat.attackrange = 5.1inst.components.combat.hitrange = 3.1inst.components.combat.min_attack_period = 3end)and make it:inst.components.combat.attackrange = 5.1inst.components.combat.hitrange = 3.1inst.components.combat.min_attack_period = 3That should fix some things. Edited February 3, 2014 by Mr. Tiddles Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-411914 Share on other sites More sharing options...
Fidooop Posted February 4, 2014 Author Share Posted February 4, 2014 (edited) same error... here is what I changed -- todo: Add an example special power here.inst.components.health:SetMaxHealth(120)inst.components.hunger:SetMax(150)inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE * 1)inst.components.sanity:SetMax(170)inst.components.combat.damagemultiplier = 0.9inst.components.locomotor.walkspeed = (TUNING.WILSON_WALK_SPEED * 1.1)inst.components.locomotor.runspeed = (TUNING.WILSON_RUN_SPEED * 1.1)inst.components.temperature:SetTemp( 9 )self.inherentinsulation = 4end)inst.components.combat.attackrange = 5.1inst.components.combat.hitrange = 3.1inst.components.combat.min_attack_period = 3end edit:(I also changed kta to smiley) build.anim or build.bin? Edited February 4, 2014 by Fidooop Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-412093 Share on other sites More sharing options...
NikMik Posted February 4, 2014 Share Posted February 4, 2014 Sent me the zip and I'll take a look. Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-412097 Share on other sites More sharing options...
Fidooop Posted February 4, 2014 Author Share Posted February 4, 2014 (edited) here, I put everything in there except the .zip with build.bin and atlas-0.texsmiley.zipthankyou so much for trying to help me out Edit: do you need that animation files? Edited February 4, 2014 by Fidooop Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-412115 Share on other sites More sharing options...
Fidooop Posted February 4, 2014 Author Share Posted February 4, 2014 @Mr. Tiddles if you figure out what is causing the problem would you mind terribly if I added you so that I could add you to the contributor list when I release the mod? Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-412135 Share on other sites More sharing options...
NikMik Posted February 4, 2014 Share Posted February 4, 2014 I don't mind. I do also need the animation file. Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-412137 Share on other sites More sharing options...
Fidooop Posted February 4, 2014 Author Share Posted February 4, 2014 cool! here is the file smiley-anim.zip(It was originally named smiley.zip I only renamed it so you can tell it apart from the first file) and also is this your steam?http://steamcommunity.com/profiles/76561198025944866 Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-412139 Share on other sites More sharing options...
NikMik Posted February 4, 2014 Share Posted February 4, 2014 cool! here is the file smiley-anim.zip(It was originally named smiley.zip I only renamed it so you can tell it apart from the first file) and also is this your steam?http://steamcommunity.com/profiles/76561198025944866Thank you.And yes, that's my steam. Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-412151 Share on other sites More sharing options...
NikMik Posted February 4, 2014 Share Posted February 4, 2014 There you go! smiley.zip Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-412181 Share on other sites More sharing options...
Fidooop Posted February 4, 2014 Author Share Posted February 4, 2014 thanks! Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-412191 Share on other sites More sharing options...
Fidooop Posted February 7, 2014 Author Share Posted February 7, 2014 (edited) heresmiley.zip Edited February 8, 2014 by Fidooop Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-413335 Share on other sites More sharing options...
NikMik Posted February 8, 2014 Share Posted February 8, 2014 (edited) Here's a really rough outline. You can colour it in and such. If you want me to, I can do the drawing soon. If you want me to, expect super high-resolution textures. Edited February 8, 2014 by Mr. Tiddles Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-413516 Share on other sites More sharing options...
Fidooop Posted February 8, 2014 Author Share Posted February 8, 2014 cool! you making the skeleton allowed me to make a semi ok looking baseball cap! baseballcap.zip Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-413547 Share on other sites More sharing options...
Fidooop Posted February 8, 2014 Author Share Posted February 8, 2014 this is the prefab imagesprefab inventory images.zip Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-413763 Share on other sites More sharing options...
Fidooop Posted February 9, 2014 Author Share Posted February 9, 2014 (for anyone reading this and doesn't know what going on with all these files I am posting it's just that I am putting them here because tiddles told me to on steam )Smiley broke.zip Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-413773 Share on other sites More sharing options...
NikMik Posted February 9, 2014 Share Posted February 9, 2014 GetPlayer = GLOBAL.GetPlayer GLOBAL.STRINGS.NAMES.BASEBALL_CAP_OF_AWESOMENESS = "Baseball Cap of Awesomeness"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.BASEBALL_CAP_OF_AWESOMENESS = "The one and only hat I will ever love!"GLOBAL.STRINGS.NAMES.BASEBALL_CAP_OF_EPICNESS = "Baseball Cap of Epicness"GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.BASEBALL_CAP_OF_EPICNESS = "I moustache you a question!" PrefabFiles = {"smiley","baseball_cap_of_awesomeness","baseball_cap_of_epicness",} Assets = { Asset( "IMAGE", "images/saveslot_portraits/smiley.tex" ), Asset( "ATLAS", "images/saveslot_portraits/smiley.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/smiley.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/smiley.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/smiley_silho.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/smiley_silho.xml" ), Asset( "IMAGE", "bigportraits/smiley.tex" ), Asset( "ATLAS", "bigportraits/smiley.xml" ), Asset( "IMAGE", "minimap/baseball_cap_of_awesomeness.tex" ),Asset( "ATLAS", "minimap/baseball_cap_of_awesomeness.xml" ), Asset( "IMAGE", "minimap/baseball_cap_of_epicness.tex" ),Asset( "ATLAS", "minimap/baseball_cap_of_epicness.xml" ),} AddMinimapAtlas("minimap/baseball_cap_of_awesomeness.xml")AddMinimapAtlas("minimap/baseball_cap_of_awesomeness.xml") function SmileyPostInit(smiley)local baseball_cap_of_awesomeness = Ingredient( "baseball_cap_of_awesomeness", 1)baseball_cap_of_awesomeness.atlas = "images/inventoryimages/baseball_cap_of_awesomeness.xml"local baseball_cap_of_epicness = Ingredient ( "baseball_cap_of_epicess", 1)baseball_cap_of_epicness.atlas = "images/inventoryimages/baseball_cap_of_epicness.xml" local baseball_cap_of_epicnessrecipe = GLOBAL.Recipe( ("baseball_cap_of_epicness"), {baseball_cap_of_awesomeness, Ingredient("silk", 8), Ingredient("froglegs", 5), Ingredient("sewing_kit", 1)}, RECIPETABS.DRESSUP, {SCIENCE = 1} ) baseball_cap_of_epicnessrecipe.atlas = "images/inventoryimages/baseball_cap_of_epicness.xml" end AddSimPostInit(function(inst) if inst.prefab == "smiley" then SmileyPostInit(inst) endend) table.insert(GLOBAL.CHARACTER_GENDERS.MALE, "smiley") ------------------------------------------------------------- AddModCharacter("smiley") Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-413789 Share on other sites More sharing options...
Fidooop Posted February 10, 2014 Author Share Posted February 10, 2014 here tiddlesbaseballcap-problem.zip Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-414068 Share on other sites More sharing options...
NikMik Posted February 13, 2014 Share Posted February 13, 2014 SAMPLES STUFF.zip Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-415078 Share on other sites More sharing options...
NikMik Posted February 13, 2014 Share Posted February 13, 2014 New version, including a stategraph.SAMPLES STUFF.zip Link to comment https://forums.kleientertainment.com/forums/topic/31345-mod-help-unknown-error/#findComment-415082 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now