Andreasgamming Posted July 17, 2017 Share Posted July 17, 2017 I am remaking a custom character I had made in the past, I haven't tested it yet but I want to know one thing. How do I edit the animations or the placement of parts for the characters? I am completely reworking the artwork and sprites for the character and my major fear is this visual problem. I Don't know how Spriter Works And I was hoping someone had made a tutorial on creating a Custom DST character that included that aspect. Anyway, the Character I am working on is not the one in the picture it is my first character I have made, Andreas, I wanted to add more to her than a simple sanity boost during the night and figure out a way to make her sanity drain during the day. Here is a list of things I want to add to her. 1. A scythe that only she can use, it would deal a little less damage than the tentacle spike during the day, The same amount of damage at night and double the damage during the full moon. 2. I want to give her a transformation. Her transformation would trigger when her HP is low Maybe at 10% of her full health. 3. Give her a healing aura that heals .1 HP to surrounding players in a small radius. 4. Make it where she loses sanity when crowded by other players. To balance the healing aura a little more. 5. This one will most likely be more like a side mod, I want to add a new monster called the Night beast, A creature that lives in the caves. I also wanted a chance for them to emerge from the uncovered sink hole like the batalisks, 6. Give her a complete custom speech and Voice, I want her voice to be the sound of an Ocarina. I was hoping someone could help me code and put her together, her current sprites are not too good and I am re drawing them from scratch. Which is a pretty tedius process in it's self. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 Alrighty I got an error that I can't seem to figure out. [00:03:19]: error loading module 'speech_andreas' from file '../mods/Andreas Nylleri Moon\scripts\speech_andreas.lua': [string "cannot OLDFILEACCESSMETHOD @../mods/Andreas Nylleri Moon\script..."]:149: '}' expected (to close '{' at line 10) near '=' LUA ERROR stack traceback: =[C] ? =[C] in function 'require' ../mods/Andreas Nylleri Moon/modmain.lua(49,1) in main chunk =[C] in function 'xpcall' scripts/util.lua(630,1) in function 'RunInEnvironment' scripts/mods.lua(506,1) in function 'InitializeModMain' scripts/mods.lua(480,1) in function 'LoadMods' scripts/main.lua(254,1) in function 'ModSafeStartup' scripts/main.lua(309,1) =[C] in function 'SetPersistentString' scripts/mainfunctions.lua(22,1) in function 'SavePersistentString' scripts/modindex.lua(76,1) =[C] in function 'GetPersistentString' scripts/modindex.lua(63,1) in function 'BeginStartupSequence' scripts/main.lua(308,1) in function 'callback' scripts/modindex.lua(533,1) =[C] in function 'GetPersistentString' scripts/modindex.lua(507,1) in function 'Load' scripts/main.lua(307,1) in main chunk [00:03:19]: [string "scripts/mainfunctions.lua"]:992: variable 'global_error_widget' is not declared LUA ERROR stack traceback: =[C] in function 'error' scripts/strict.lua(23,1) scripts/mainfunctions.lua(992,1) =[C] in function 'SetPersistentString' scripts/mainfunctions.lua(22,1) in function 'SavePersistentString' scripts/modindex.lua(76,1) =[C] in function 'GetPersistentString' scripts/modindex.lua(63,1) in function 'BeginStartupSequence' scripts/main.lua(308,1) in function 'callback' scripts/modindex.lua(533,1) =[C] in function 'GetPersistentString' scripts/modindex.lua(507,1) in function 'Load' scripts/main.lua(307,1) in main chunk [00:03:19]: DoLuaFile Error: (null) [00:03:19]: LuaError but no error string [00:03:19]: Error loading main.lua [00:03:19]: Failed mSimulation->Reset() [00:03:19]: Error during game restart! [00:03:23]: ModWorkshop::CancelDownloads clearing all unfinished downloads [00:03:23]: Collecting garbage... [00:03:23]: lua_gc took 0.03 seconds [00:03:23]: ~ShardLuaProxy() [00:03:23]: ~ItemServerLuaProxy() [00:03:23]: ~InventoryLuaProxy() [00:03:23]: ~NetworkLuaProxy() [00:03:23]: ~SimLuaProxy() [00:03:23]: ModWorkshop::CancelDownloads clearing all unfinished downloads [00:03:23]: lua_close took 0.02 seconds [00:03:23]: ModWorkshop::CancelDownloads clearing all unfinished downloads [00:03:23]: [Steam] Auth ticket cancelled [00:03:23]: Manager - ORPHANED UNKNOWN RESOURCES: [00:03:23]: shaders/ui_yuv.ksh - 1 [00:03:23]: CurlRequestManager::ClientThread::Main() complete [00:03:23]: HttpClient2 discarded 0 callbacks. [00:03:24]: Shutting down Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 I may or may not have fixed it, I forgot to do quite a few important sprites. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 Alright here is my new error, Not exactly sure what line of code in modmain.lua it is referring too. Andreas Nylleri Moon.zip Link to comment Share on other sites More sharing options...
ZupaleX Posted July 21, 2017 Share Posted July 21, 2017 You have a lot of formatting issues. You should take a bit of time to read this before proceeding: https://www.lua.org/manual/5.3/manual.html Here is a fixed version of your modmain.lua Spoiler PrefabFiles = { "andreas", "andreas_none" } Assets = { Asset( "IMAGE", "images/saveslot_portraits/andreas.tex" ), Asset( "ATLAS", "images/saveslot_portraits/andreas.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/andreas.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/andreas.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/andreas_silho.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/andreas_silho.xml" ), Asset( "IMAGE", "bigportraits/andreas.tex" ), Asset( "ATLAS", "bigportraits/andreas.xml" ), Asset( "IMAGE", "images/map_icons/andreas.tex" ), Asset( "ATLAS", "images/map_icons/andreas.xml" ), Asset( "IMAGE", "images/avatars/avatar_andreas.tex" ), Asset( "ATLAS", "images/avatars/avatar_andreas.xml" ), Asset( "IMAGE", "images/avatars/avatar_ghost_andreas.tex" ), Asset( "ATLAS", "images/avatars/avatar_ghost_andreas.xml" ), Asset( "IMAGE", "images/avatars/self_inspect_andreas.tex" ), Asset( "ATLAS", "images/avatars/self_inspect_andreas.xml" ), Asset( "IMAGE", "images/names_andreas.tex" ), Asset( "ATLAS", "images/names_andreas.xml" ), Asset( "IMAGE", "bigportraits/andreas_none.tex" ), Asset( "ATLAS", "bigportraits/andreas_none.xml" ), Asset("SOUNDPACKAGE", "sound/andreas.fev"), Asset("SOUND", "sound/´andreas.fsb") } RemapSoundEvent( "dontstarve/characters/andreas/death_voice", "andreas/andreas/death_voice" ) RemapSoundEvent( "dontstarve/characters/andreas/hurt", "andreas/andreas/hurt" ) RemapSoundEvent( "dontstarve/characters/andreas/talk_LP", "andreas/andreas/talk_LP" ) local require = GLOBAL.require local STRINGS = GLOBAL.STRINGS -- The character select screen lines STRINGS.CHARACTER_TITLES.andreas = "The Rising Moon" STRINGS.CHARACTER_NAMES.andreas = "Andreas" STRINGS.CHARACTER_DESCRIPTIONS.andreas = "*Can hit hard\n*can regen at night\n*Has a regenerating Aura\n* Dislikes being crowded" STRINGS.CHARACTER_QUOTES.andreas = "\"The Moon Rises as well\"" -- Custom speech strings STRINGS.CHARACTERS.ANDREAS = require "speech_andreas" -- The character's name as appears in-game STRINGS.NAMES.ANDREAS = "Andreas" AddMinimapAtlas("images/map_icons/andreas.xml") -- Add mod character to mod character list. Also specify a gender. Possible genders are MALE, FEMALE, ROBOT, NEUTRAL, and PLURAL. AddModCharacter("andreas", "FEMALE") But you still have quite some job fixing the other files. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 The problem is, the older version of this mod works just fine, this is really just me re-drawing the sprites for her and giving her a custom voice. Link to comment Share on other sites More sharing options...
ZupaleX Posted July 21, 2017 Share Posted July 21, 2017 How old are we talking about? A lot of stuffs changed and keep on changing. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 Uhm, since before the heart of the ruins update, she still works too. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 I think it was just after the game was released. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 Here is the older mod that works. AndreasNylleriMoon.zip Link to comment Share on other sites More sharing options...
ZupaleX Posted July 21, 2017 Share Posted July 21, 2017 Did you update the modmain with the one I sent? What is the error now? Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 Yeah I did one little error was a ' on one of the assets that was still there which was causing one of the problems before. I was able to get to the character select this time, as I am uploading this I am hunting down the variable that isn't declared. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 I found it but I'm not really sure of how to fix it, the code that is commented out under the non declared variable has the same variable, this code I had gotten from a different thread and was an attempt for her to lose sanity during the day. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 I removed the line of code that had the variable testing if it works now. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 21, 2017 Author Share Posted July 21, 2017 Removing the code fixed it, Just now need to fix some of her sprites. -_- which requires me to go into the scml file... Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 22, 2017 Author Share Posted July 22, 2017 Alright I need help fixing some of her sprites, Spriter is a bit too complicated for me. Link to comment Share on other sites More sharing options...
ZupaleX Posted July 22, 2017 Share Posted July 22, 2017 What is the issue exactly with your sprites? Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 22, 2017 Author Share Posted July 22, 2017 What I want. My problem. Also her torso and waist didn't scale exactly right either and is too small. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 22, 2017 Author Share Posted July 22, 2017 Also if her back is facing the camera her torso and head didn't layer correctly.. Link to comment Share on other sites More sharing options...
ZupaleX Posted July 22, 2017 Share Posted July 22, 2017 It seems like you have issues with the pivots for the general positioning. For your other issue you mention I am not sure I understand what you mean by "layer correctly" Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 22, 2017 Author Share Posted July 22, 2017 It is really my OCD cause now that I think about it, most characters don't have long enough hair that covers the back an is how the game layers the pieces. I'll probably just re-draw her sprites to better fit the torso cause I noticed that those sprites are a bit too small. Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 23, 2017 Author Share Posted July 23, 2017 Does any one know how to make a character lose sanity during the day? I looked through the forums and I couldn't find any thing. Link to comment Share on other sites More sharing options...
ZupaleX Posted July 23, 2017 Share Posted July 23, 2017 Did you try to write something and it did not work? Link to comment Share on other sites More sharing options...
Andreasgamming Posted July 23, 2017 Author Share Posted July 23, 2017 Yeah... and it caused a lot of problems, when it comes to coding, I can read the scripts and know how to edit them but For the life of me I cannot write any lines of code. and the page you linked to me I had read twice now and still am having trouble writing code. Link to comment Share on other sites More sharing options...
ZupaleX Posted July 23, 2017 Share Posted July 23, 2017 Could you link your attempt so we have a base to work with? The link I sent you would not help for the DST API but it helps to understand how to properly format lua code and to get the basic knowledge to write something which actually makes sense Link to comment 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