Sign in to follow this  
Andreasgamming

Help Making a Custom Character

Recommended Posts

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.  sacascz_by_andreas_moon-dbgo6d9.png

 

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.

Share this post


Link to post
Share on other sites

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

 

 

Share this post


Link to post
Share on other sites
ZupaleX    270

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.

Share this post


Link to post
Share on other sites

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.

error23_by_andreas_moon-dbh6nqp.png

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
ZupaleX    270

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"

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
ZupaleX    270

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this