Jump to content

we need help character modding, got stuck on white screen. (link to original reddit post included)


Recommended Posts

hey there Klei, and DST modders. i posted this on reddit about a week ago, and so far i haven't really heard back. can someone help me and my sister?

 

we're still stuck in the same place and i would love to move on and do the art and animations... but i really can't until this part works.

thank you!

Link to comment
Share on other sites

The character name is dot, if that's what you mean by prefab.

i can upload all the files on google drive and give a shareable link here, as i think that'll be easier. i'll need a minute for that.
thank you so much for the fast reply!

Link to comment
Share on other sites

Just now, chazcat124 said:

The character name is dot, if that's what you mean by prefab.

i can upload all the files on google drive and give a shareable link here, as i think that'll be easier. i'll need a minute for that.
thank you so much for the fast reply!

You can just give me the files right here. When typing a comment you can see 

Quote

At the bottom.

Also your prefab needs to be in the prefabs folder which is in the scripts folder, Just saying this since you don't seem to know what a prefab is.

Link to comment
Share on other sites

Just now, chazcat124 said:

https://drive.google.com/drive/folders/1UMju_BktFt07jsXlaF589deQ304zljkn?usp=sharing

well... um... they are on drive now... i can do that if this doesn't work.

Quote

local assets = {
    Asset("SCRIPT", "scripts/prefabs/player_common.lua"),
}

First thing I noticed right of that bat, It seems like your not referencing any ANIM for the player to use,

Put this inside your prefab file

 

Quote

local assets = {
    Asset("SCRIPT", "scripts/prefabs/player_common.lua"),

      Asset("ANIM", "anim/Dot.zip"),
}

Come back to me and see how that works.

Link to comment
Share on other sites

local MakePlayerCharacter = require "prefabs/player_common"


local assets = {
 Asset("SCRIPT", "scripts/prefabs/player_common.lua"),

      Asset("ANIM", "anim/Dot.zip"),
}
}
local prefabs = {}

-- Custom starting inventory
local start_inv = {
}

i copied and pasted it, i hope in the right spot.

wait, is it because there's 2 '}'s?!

Link to comment
Share on other sites

2 minutes ago, chazcat124 said:

local MakePlayerCharacter = require "prefabs/player_common"


local assets = {
 Asset("SCRIPT", "scripts/prefabs/player_common.lua"),

      Asset("ANIM", "anim/Dot.zip"),
}
}
local prefabs = {}

-- Custom starting inventory
local start_inv = {
}

i copied and pasted it, i hope in the right spot.

wait, is it because there's 2 '}'s?!

yes 

Link to comment
Share on other sites

Just now, chazcat124 said:

local MakePlayerCharacter = require "prefabs/player_common"


local assets = {
 Asset("SCRIPT", "scripts/prefabs/player_common.lua"),

      Asset("ANIM", "anim/Dot.zip"),
}
}
local prefabs = {}

-- Custom starting inventory
local start_inv = {
}

i copied and pasted it, i hope in the right spot.

Why do you have a 2nd '}' there?

Edit: Looks like you found the problem yourself, Carry on.

Edited by Omaremad74
Link to comment
Share on other sites

9 minutes ago, chazcat124 said:

whoops

mb

image.thumb.png.6b8b7d8559a904ad7db78afe2303ade0.png

*screams out in pain*

this is where we left off... hello whitescreen my old friend....

For future reference, even without the "code" showing on the screen when an error occurs, 99% of the time, the game has some error in the log.txt in your documents/klei/dontstarvetogether folders. 
I'm assuming something failed to load/was not found, which I can check for you in a sec

^ and maybe in the serverlog.txt if something happens when you're hosting a world

Edited by patdogr
Link to comment
Share on other sites

4 minutes ago, chazcat124 said:

whoops

mb

image.thumb.png.6b8b7d8559a904ad7db78afe2303ade0.png

*screams out in pain*

this is where we left off... hello whitescreen my old friend....

Quote

inst.soundsname = "webber"
    
    -- Uncomment if "wathgrithr"(Wigfrid) or "webber" voice is used
    --inst.talker_path_override = "dontstarve_DLC001/characters/"

I found this, It seems you didn't uncomment it despite you using webbers voice. If you want just use willow or wilsons voice for now and see how it goes.

Link to comment
Share on other sites

Just now, chazcat124 said:

what does it mean to uncomment?

See those lil 2 '--'? When you put that in it takes the line out of the code but keeps it in text. Developers and modders use it to keep code they don't wanna use for that moment or to keep reminders or even to keep lil messages from charlie as easter eggs in the developers case.

Link to comment
Share on other sites

Just now, chazcat124 said:

what does it mean to uncomment?

In LUA you can add "--" before a line of code and it will be skipped.
The problem seems to be 
[00:01:26]: Can't find prefab dot    
therefore, preventing the player from being able to spawn as Dot

Link to comment
Share on other sites

A bit strange. Never ran into that problem, Are your prefabs in the correct folder?

They should be in the prefabs folder which is in the scripts folder which is in the mod itself.

 


         

Edited by Omaremad74
Link to comment
Share on other sites

1 minute ago, chazcat124 said:

they are in the exact order they where in on the google drive file.

Honestly, modding can be so frustrating sometimes...

image.thumb.png.7eac2e47a6b746a1d47005802ad02cf6.png

Here's what happens if I rename "Dot.lua" to "dot.lua"
image.thumb.png.511ef3f4a7fa6edae7e48249d1bfada6.png

So I'm kinda thinking it's a mistype of "dot" instead of "Dot" somewhere, since the log said "dot" 

Link to comment
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
 Share

×
  • Create New...