GameMode.dat

From Pokémon 3D Wiki
Jump to navigation Jump to search

Every Game Mode file must contain a GameMode.dat file which Gives the player details about the Mode, Gives the game directions for finding files, Defines the rules of the Gamemode, and creates the start up of the game.

Example

The following example is made by the game after the game has been started once.

Name|Pokemon 3D
Description|The normal game mode.
Version|0.57.1
Author|Kolben Games
MapPath|\Content\Data\maps\
ScriptPath|\Content\Data\Scripts\
PokeFilePath|\Content\Data\maps\poke\
PokemonDataPath|\Content\Pokemon\Data\
ContentPath|\Content\
LocalizationsPath|\Content\Localization\
Gamerules|(MaxLevel|100)(OnlyCaptureFirst|0)(ForceRename|0)(DeathInsteadOfFaint|0)(CanUseHealItems|1)(Difficulty|0)(LockDifficulty|0)(GameOverAt0Pokemon|0)(CanGetAchievements|1)(ShowFollowPokemon|1)
StartMap|newgame\intro0.dat
StartPosition|1,0.1,3
StartRotation|1.570796
StartScript|
StartLocationName|Your Room
StartDialogue|
StartColor|59,123,165
PokemonAppear|0
IntroMusic|welcome
SkinColors|248;176;32,248;216;88,56;88;200,216;96;112,56;88;152,239;90;156
SkinFiles|Ethan,Lyra,Nate,Rosa,Hilbert,Hilda
SkinNames|Ethan,Lyra,Nate,Rosa,Hilbert,Hilda

Explanation

Line Description
Name| The name to be listed in info portion of the 'New Game' menu.
Description| A brief description of the GameMode. Displays in the info portion of the 'New Game' menu.
Version| Lists the current version of the GameMode. Displays in the info portion of the 'New Game' menu.
Author| Lists the Author of the GameMode. Displays in the info portion of the 'New Game' menu.
MapPath| The location the game should look in for map files.
ScriptPath| The Location the game should look in for script files.
PokeFilePath| The location the game should look in for the Poke files.
PokemonDataPath| The Location the Game should look in for the Pokemon data files.
ContentPath| The location the game should look in for the General content files.
Gamerules| Specific rules used in this GameMode. See below for a list of all possible Game Rules.
StartMap| The Map the game should place the player in to start the game.
StartPosition| The Position in the start map the game should place the player in to start the game.
StartRotation| The Rotation of the player at the start of the game.
StartLocationName| The name that displays in the top left corner at the start of the game.
StartDialogue| The dialogue during the introduction with Prof Oak. Leaving it blank uses the normal dialogue.
StartColor| The color of the background during the intro.
PokemonAppear| The Pokemon to appear during the intro. 0 = random.
IntroMusic| Name of the music file to play during the intro.
SkinColors| The backgrounds to display for each skin. Semicolons(;) split parts of colors and comas(,) split separate backgrounds.
SkinFiles| The file names of the skins a player can choose from.
SkinNames| Display names of the skins a player can choose from.

Putting $Mode into a file path will include the file path of GameMode.dat

example:

GameMode.dat is in \GameMode\Example\
The content for the Game Mode 'Example' is in /GameMode/Example/Contents/
To have the Game Mode work properly you must Put this line in for 'ContentPath|'
ContentPath|$Mode\Contents\

Game Rules

Multiple different Game Rules can be activated or deactivated to change the game play.

'0 = off, 1 = on'

Code Description
(MaxLevel|100) Sets the maximum level a Pokemon can reach.
(OnlyCaptureFirst|0) Allows a player to catch only the first pokemon the trainer encounters on a route.
(ForceRename|0) Forces the player to rename their Pokemon.
(DeathInsteadOfFaint|0) Pokemon that 'Faint' in battle are removed from the party.
(CanUseHealItems|1) Allows the player to use heal Items.
(Difficulty|0) Sets the default difficulty of the game.
(LockDifficulty|0) Locks the difficulty to the value in the 'Difficulty' Game Rule.
(CanGetAchievements|1) Turns Achievements on and off.
(ShowFollowPokemon|1) Turns following Pokemon on and off.
(GameOverAt0Pokemon|0) Ends the game if a player has no Pokemon.

GameMode.png

If an image is included with the GameMode in the same location as the GameMode.dat and named GameMode.png it will display in the background when the GameMode is selected in the 'New Game' menu.

Game Folder
Pokemon Folder Launcher
Content ContentPacks GameModes Saves Screenshots Version History
Pokemon Data GameMode.dat Save Folder
Data maps Scripts Party.dat Player.dat Options.dat
poke V1 V2 trainer map