Mutators
Back
This is a feature for
version 1.01.31 of the game.
Other resources
See the Creation Manual for how to
create starting configuration files.
These are found in WorldNodes/StartingConfig.
The Goal
The goal is to be able to create parameters
(bool, int, float, and string) that the user can set
when creating a new game.
These parameters are passed to the new game.
We call these parameters
mutators.
Starting Config Files
A package can have multiple starting configuration files.
The user selects one when creating a new game with that package.
Assume that there is only one starting configuration file
WorldNodes/StartingConfig/default_config.txt
which reads as follows:
description "Default configuration"
# Because is_default is defined here
# (and hopefully in no other config file
# in this directory), the following will happen:
# when the player is selecting a new game
# of this package, this config will be highlighted.
is_default
# The node __FBW_DEFAULT__ is special
# because it refers to the root built-in
# world node root for the Xar universe.
root_node __FBW_DEFAULT__
player_offset 7.5 3 7.5
chunk_path EMPTY_PATH
# The seed is the default seed used to generate the world.
# If seed_allow_any is set to true, then the user can
# choose a non-default seed (either randomly or by typing it in)
# when creating a new game.
seed 0
seed_allow_any true
#Setting mutators:
#WE WILL ADD MORE HERE LATER!!!
Again, see the creation manual for more on
these starting configuration files.