Jump to content

Recommended Posts

So, I'm trying to add a new sugarwood forest biome to DST, obviously using the new stuff added to The Gorge, but I'm running into a problem that i'm not sure how to solve.

If I start up a normal game i can enter into the console

c_spawn("quagmire_sugarwoodtree_small")
c_spawn("quagmire_sugarwoodtree_normal")
c_spawn("quagmire_sugarwoodtree_tall")
c_spawn("quagmire_sugarwoodtree")

All 4 of these commands work, and they all spawn a sugarwood tee.

However, when I modify a room and add quagmire_sugarwoodtree to the distributeprefabs and generate a new world, I can collide with the trees, their icons appear on the map in the correct place, but in game I cannot see them at all. They're like invisbile or something. And I can still spawn them in with the console and they work.

 

So what is happening differently between spawning them in with the console vs spawning them into the world when it generates?

I don't think that's the same issue, but I read somewhere that since The Forge, animations are now "dynamically loaded" as opposite to most of the old prefabs, and that it is impossible to spawn them in game. My suggestion is that you take a look at how the mod "Green World" did it since he managed to make the Forge lizard spawn.

Edited by Saiph

You need to put in the anim in the asset table somewhere else other than the default prefab file, since Forge they have it set up where assets are only loaded in their respective gamemodes.

 

like so:

local assets = 
{
    Asset("ANIM", "anim/quagmire_goatkid_basic.zip"),
}

Edited by DarkKingBoo

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
×
  • Create New...