Cheats

**Cheats** override some aspects of the game to facilitate testing, whether by a mod developer or by a player trying to skip ahead and look into more of the game. The main in-game method is using the console command, but it is also possible to use methods like datafile editing (effectively a hard-mod), save editing, and even by changing the program's RAM.

## Console commands

The console commands will, from time to time, come in handy for testing. Press "~" to show the console. Note that commands are case-sensitive!

AddCaptives

Bomb

* Bomb the selected target.

Break

* Cracks hull of selected unit

Broadphase [float]

Budget [integer]

* Add money.

Campaign

Compensate

Damage

* Damage a random part of the u-boat.

Detect {[integer]/All/All Constantly}

* Detect given number of groups, prioritizing these that are closest.

DrawGroupRoute [Sandbox Group Name]

* Traces a course of the Sandbox Spawner used by Group

ElevationEdit

EntityInfo

Explosives

GroupsStressTest

Infect

* Infects a random sailor.

Install

Kill

LaRochelleStressTest

Leak

* Create a random leak on the ship.

LeakDetection

Memory {Profile/Collect/TextureStats}

* Create Memory Profile file in Uboat AppData Directory

Mission

PerformanceTest

Print

Promote

Rebase

RefreshPortraits

Reputation [integer]

* Add reputation.

Scenario

SimulateProgress

Skip [number]

* Skip days of in-game time.

Spawn {[Spawn Type] / [Class]}

* Spawn a specific Class of Ship

* Spawn a group of the given type nearby. Possible values:

* + Warships

* + Convoy

* + Transport

* + Submarine

* + Aircraft

Teleport [Dec Latitude] [Dec Longitude]

* teleports player's u-boat to a designated coordinates or to mouse location in map mode

* Teleport to the given location. Both values are to be written as decimal, and N/E are positive numbers. For example, to teleport to 51 30N 3 0W, the command would be "Teleport 51.5 -3".

Torpedo

* Launches a torpedo to the selected target. If no targets are selected, a torpedo is launched to your ship.

Trauma

* Causes a random sailor to panic.

Travel

Voice

Weather [Weather]

* Changes Weather. Possible values:
	+ Calm
	+ Fog
	+ Storm
	+ Cloudy
	+ Reset (reverts back to generated weather)

WeatherUpdate

* Force refresh of weather generation usually following 'Weather Reset'

Wolfpack

Wound

* Injures a random sailor

XP [Integer]

* Assign the given number of XP to the selected character, if none is selected XP is applied to all officers

See also GKV2403's console help.

## Data editing

The game data can be edited to change the stats of many in-game objects. For an exploit-y example, the AA gun can be changed to have much more explosive power, to the point that the blast will actually damage the sub itself.

The files are simple .xlsx files, the format used by Microsoft Office Excel. There are quite a bunch of other tools to edit them, from LibreOffice, to Google Docs, to Microsoft's own Office Online service.

It is a much better idea to make a proper mod when you do this, as the changes can be turned on or off more easily. See ossi's xlsx guide on what to mess about.

## Save editing

Game saves are serialized data files containing a snapshot of the current unity game state.

The majority of game data is stored in the save file template (Sandbox.xlsx, Entities.xlsx, Crew.xlsx, etc ); this is a major reason for non-save-compatible mods.

## RAM editing

In theory, you could throw some really ridiculous things at the game this way and see how it acts. However, not many people write memory-location tables for this game, probably because Unity is better debugged via a .NET tool.