improved the cheats docs

This commit is contained in:
Ell 2022-02-28 11:26:46 +01:00
parent 8daa2300bb
commit 91cf0df721
2 changed files with 30 additions and 27 deletions

View file

@ -1,28 +1,31 @@
# Testing Cheats # Testing Cheats
You can open up the game's cheat menu by pressing the `F1` key. Here is a list of some of the more useful cheats for mod development and testing. Keep in mind that `[arguments]` need to be replaced with your custom value. You can open up the game's cheat menu by pressing the `F1` key. Here is a list of some of the more useful cheats for mod development and testing. Keep in mind that `[arguments]` need to be replaced with your custom value, and the brackets `[]` need to be omitted.
- `ShowNonBuyable` allows you to buy plates, pots and the like
- `Need [name] [percentage <= 1]` changes the current person's needs ## In-game cheats
- `NoNeed` stops need reduction for everyone - `ShowNonBuyable` allows you to buy plates, pots and the like.
- `Needless` fills all needs back up - `Need [name] [percentage <= 1]` changes the current person's needs.
- `Needy` reduces all needs to zero - `NoNeed` stops need reduction for everyone.
- `EditWorld` allows you to place things outside of lots - `Needless` fills all needs back up for the current person.
- `IgnorePlacementRules` allows you to place colliding furniture - `IgnorePlacementRules` allows you to place colliding furniture. Note that, in this mode, it is very easy to place furniture in a way that looks incorrect or overlaps when rotating the camera.
- `EditPerson` opens a character editor with all functionality enabled - `EditPerson` opens a character editor for the current household, with all functionality enabled.
- `Gib` gives you 10,000 tiny bucks - `Gib` gives you 10,000 tiny bucks.
- `ExtremelyFast` allows you to select the 15x speed option all the time - `ExtremelyFast` allows you to select the 15x speed option all the time, regardless of whether people in the active household are sleeping or out of town.
- `Skill [name] [level]` sets the current person's skill level - `Skill [name] [level]` changes the current person's skill level. You can find a list of all skill names [in the API docs](xref:TinyLife.Skills.SkillType).
- `Held [object name or null]` sets the current person's held object - `Job [name] [level]` stes the current person's job and job level.
- `Job [name] [level]` stes the current person's job and job level - `Die` kills the current person.
- `Die` kills the current person - `Emotion [modifier name] [level] [seconds]` adds an emotion modifier to the current person. You can find a list of all emotion modifiers [in the API docs](xref:TinyLife.Emotions.EmotionModifier).
- `Emotion [modifier name] [level] [seconds]` adds an emotion modifier to the current person - `Friendship [name without spaces] [percentage <= 1]` sets the friendship level between the named partner and the current person to the given percentage.
- `Friendship [name without spaces] [percentage <= 1]` sets the friendship level between the named partner and the current person - `Romance [name without spaces] [percentage <= 1]` sets the romance level between the named partner and the current person to the given percentage.
- `Romance [name without spaces] [percentage <= 1]` sets the romance level between the named partner and the current person - `Forget [name without spaces]` deletes any active relationships between the named partner and the current person.
- `Forget [name without spaces]` deletes any active relationships between the named partner and the current person - `FreeLots` makes creating and importing households onto lots free.
- `EditCurrentActionSpot` turns on action spot edit mode, which allows you to easily edit the properties of the selected person's current action spot - `BigScreenshot` takes a full-size screenshot of the entire map, which might take a few seconds to save, during which the game will be stalled.
- The person's animation stops, but they are drawn on all surrounding objects of the same type instead, which makes it easier to ensure that the offset looks correct in multiple rotations and positions
## Modding and debug cheats
- `EditWorld` allows you to place things outside of lots and adds the ability to add new lots to the world. Lots can be added using the Lots tool, and removed by clicking on them using the Remove tool.
- `Held [object name or null]` sets the current person's held object. You can find a list of all object names [in the API docs](xref:TinyLife.Objects.FurnitureType).
- `EditCurrentActionSpot` turns on action spot edit mode, which allows you to easily edit the properties of the selected person's current action spot.
- The person's animation stops, but they are drawn on all surrounding objects of the same type instead, which makes it easier to ensure that the offset looks correct in multiple rotations and positions.
- Pressing the up, down, left and right keys moves the current action spot's position and holding shift moves the spot's visual position instead - Pressing the up, down, left and right keys moves the current action spot's position and holding shift moves the spot's visual position instead
- Pressing the page up and page down keys moves the spot's y offset - Pressing the page up and page down keys moves the spot's y offset.
- The resulting values are printed to the console every time a modification is made, so you can copy them and paste them into your action spot code - The resulting values are printed to the console every time a modification is made, so you can copy them and paste them into your action spot code.
- `DumpTexture` saves the game's texture packer's entire texture into the Tiny Life directory (which can be accessed through the options menu) as `_Packed.png` - `DumpTexture` saves the game's texture packer's entire texture into the Tiny Life directory (which can be accessed through the options menu) as `_Packed.png`.
- `FreeLots` makes creating and importing households onto lots free
- `BigScreenshot` to take a full-size screenshot of the entire map (which takes a few seconds)

View file

@ -2,7 +2,7 @@
If you're interested in contributing new languages to Tiny Life's localization or editing the text of existing translations, it is greatly appreciated! Sadly, I don't have the ability to pay translators right now, so any work you do will be volunteer-based. That being said, you will, of course, be credited in the game's Credits Menu with a link to a social media profile of your choice, and you will greatly contribute to the community of people who play the game in the language you work on! If you're interested in contributing new languages to Tiny Life's localization or editing the text of existing translations, it is greatly appreciated! Sadly, I don't have the ability to pay translators right now, so any work you do will be volunteer-based. That being said, you will, of course, be credited in the game's Credits Menu with a link to a social media profile of your choice, and you will greatly contribute to the community of people who play the game in the language you work on!
If you want to join the team of translators, the first step is to message Ellpeck, either privately after joining [the Discord server](), or in the `#tinylife` channel. You'll also need an account on [the translation site](https://translate.ellpeck.de/), where you can log in directly with a GitHub or Discord account. If you want to join the team of translators, the first step is to message Ellpeck, either privately after joining [the Discord server](https://ellpeck.de/discord), or in the `#tinylife` channel. You'll also need an account on [the translation site](https://translate.ellpeck.de/), where you can log in directly with a GitHub or Discord account.
The following list contains a few bits of additional information that you should keep in mind when translating: The following list contains a few bits of additional information that you should keep in mind when translating:
- You don't need any kind of programming or advanced file editing experience, since you'll be translating on the previously mentioned translation site. When translating, you should set an existing language as your `reference locale` (preferably English), since most of the term names don't give much information about the actual content of the text they represent. - You don't need any kind of programming or advanced file editing experience, since you'll be translating on the previously mentioned translation site. When translating, you should set an existing language as your `reference locale` (preferably English), since most of the term names don't give much information about the actual content of the text they represent.