#Modifying FloorMod

1 messages · Page 1 of 1 (latest)

fossil falcon
#

To better understand how to create a code mod, I was looking through the FloorMod example. Just to experiment, I tried adding another option that would allow the player to change the minimum floor value from default value of -1 to user defined (the idea, is that the player can build floors below ground). I got this error when i reloaded the game, but not sure how to resolve. below is snippet of the code for FloorBehavior.cs

#

@clever bobcat what am i doing wrong? lol

clever bobcat
#

GameSettings doesn't have a MinFloor variable

fossil falcon
#

ahh, so the Maxfloor is a vanilla variable gotcha

clever bobcat
#

Yes

fossil falcon
#

that makes sense, thats what i was thinking; bummer

fossil falcon
#

guess i'll have to petition kenneth to add a MinFloor variable lol

#

@clever bobcat is it possible to create new variables for GameSettigns with a code mod?

clever bobcat
#

What do you want to achieve with that?

fossil falcon
#

create a MinFloor variable for GameSettings lol

clever bobcat
#

But why?

fossil falcon
#

so i can build a multi-level bunker lol

fervent shore
#

I love this idea

fossil falcon
#

I forgot about this

uneven violet
#

its possible but not worth it lol

i did created a mod like this
its called basement floor

it does go beyond -1
up to how many player wants

the limitation here is you cant see the builds you build under -1

i tried creating this because of similar ideas you guys have, i wanna build underground server
but alas, a limitation is a limitation hahaha, i tried alternative but yeahhhh