Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new unit-related development tips #6616

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions docs/development/developmentEnviroment.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,17 @@ Where the addition operator should be interpreted as appending one text (source)

Helpful hotkeys and resource you can use in game

- <kbd>Alt</kbd> + <kbd>F2</kbd> to invoke the unit spawning page, great for making units for free or taking control of an AI.
- <kbd>Alt</kbd> + <kbd>F2</kbd> to show the unit creation dialog, great for cheating in units or taking control of an AI.
- <kbd>F9</kbd> to open the log window if you close it or it's not open for whatever reason.
- <kbd>~</kbd> to Open the Console
- In the Console run `ren_ShowNetworkStats` for the sim rate / package drops, on the top right
- In the Console run `ShowStats` for engine stats, on the left
- <kbd>~</kbd> to Open the Console.
- In the Console run `ren_ShowNetworkStats` for the sim rate / package drops, on the top right.
- In the Console run `ShowStats` for engine stats, on the left.
- Use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>C</kbd> to copy selected units to the clipboard, so that you can spawn them again ("paste" them) with <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>V</kbd>.
- In general, <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>V</kbd> runs Lua UI code from your clipboard.
- In the Console run `SimLua` with Lua code to test Sim code, and `UI_Lua` to test UI code.
- The Sim-side global function `SelectUnit()` gives the sim-side of the currently selected unit; useful for testing scripts or logging information.
- In the Console run `ui_SelectAnything` to be able to select enemy units; useful for copying test scenarios or debugging selected units.
- In the Console run `ui_DebugAltClick` to be able to quickly switch armies by <kbd>Alt</kbd> + left-clicking a unit in the army you want to switch to.

## Frequently asked Questions (FAQ)

Expand Down
16 changes: 11 additions & 5 deletions setup/setup-english.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,17 @@ Tips

Helpful hotkeys and resource you can use in game

* <kbd>Alt</kbd> + <kbd>F2</kbd> to invoke the unit spawning page, great for making units for free or taking control of an AI.
* <kbd>F9</kbd> to open the log window if you close it or it's not open for whatever reason.
* <kbd>~</kbd> to Open the Console
* In the Console run `ren_ShowNetworkStats` for the sim rate / package drops, on the top right
* In the Console run `ShowStats` for engine stats, on the left
- <kbd>Alt</kbd> + <kbd>F2</kbd> to show the unit creation dialog, great for cheating in units or taking control of an AI.
- <kbd>F9</kbd> to open the log window if you close it or it's not open for whatever reason.
- <kbd>~</kbd> to Open the Console.
- In the Console run `ren_ShowNetworkStats` for the sim rate / package drops, on the top right.
- In the Console run `ShowStats` for engine stats, on the left.
- Use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>C</kbd> to copy selected units to the clipboard, so that you can spawn them again ("paste" them) with <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>V</kbd>.
- In general, <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>V</kbd> runs Lua UI code from your clipboard.
- In the Console run `SimLua` with Lua code to test Sim code, and `UI_Lua` to test UI code.
- The Sim-side global function `SelectUnit()` gives the sim-side of the currently selected unit; useful for testing scripts or logging information.
- In the Console run `ui_SelectAnything` to be able to select enemy units; useful for copying test scenarios or debugging selected units.
- In the Console run `ui_DebugAltClick` to be able to quickly switch armies by <kbd>Alt</kbd> + left-clicking a unit in the army you want to switch to.

Frequently asked Questions (FAQ)
--------------------------------
Expand Down
Loading