mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-05 15:18:47 +00:00
Update README.md
This commit is contained in:
@@ -31,23 +31,34 @@ Displays the gameplay abilities of the selected actor.
|
|||||||
### Actions
|
### Actions
|
||||||
Displays the state of Input Action.
|
Displays the state of Input Action.
|
||||||
|
|
||||||

|

|
||||||
- Can be used to inject inputs to help debugging.
|
- Can be used to inject inputs to help debugging.
|
||||||
- The display input action are read from a Input Mapping Context defined in a Data Asset.
|
- The display input action are read from a Input Mapping Context defined in a Data Asset.
|
||||||
|
|
||||||
### Attributes
|
### Attributes
|
||||||
Displays the gameplay attributes of the selected actor.
|
Displays the gameplay attributes of the selected actor.
|
||||||
|
|
||||||

|

|
||||||
- Attributes can be sorted by name, category or attribute set.
|
- Attributes can be sorted by name, category or attribute set.
|
||||||
- Attributes with the Current value greater than the Base value are displayed in green.
|
- Attributes with the Current value greater than the Base value are displayed in green.
|
||||||
- Attributes with the Current value lower than the Base value are displayed in red.
|
- Attributes with the Current value lower than the Base value are displayed in red.
|
||||||
- Use the options 'Show Only Modified' to only show the attributes that have modifiers.
|
- Use the options 'Show Only Modified' to only show the attributes that have modifiers.
|
||||||
|
|
||||||
|
### Behavior Tree
|
||||||
|
Displays the behavior tree of the selected actor.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### Blackboard
|
||||||
|
Displays the blackboard of the selected actor.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
### Cheats
|
### Cheats
|
||||||
Used to apply cheats to the selected actor.
|
Used to apply cheats to the selected actor.
|
||||||
|
|
||||||

|

|
||||||
- The cheats are gameplay effects configured in a data asset.
|
- The cheats are gameplay effects configured in a data asset.
|
||||||
- Key modifiers can be used to change which actor should be affected by the cheat:
|
- Key modifiers can be used to change which actor should be affected by the cheat:
|
||||||
- [CTRL] apply the cheat to the controlled actor
|
- [CTRL] apply the cheat to the controlled actor
|
||||||
@@ -57,7 +68,7 @@ Used to apply cheats to the selected actor.
|
|||||||
### Collisions
|
### Collisions
|
||||||
Used to inspect collisions by performing a collision query with the selected channels.
|
Used to inspect collisions by performing a collision query with the selected channels.
|
||||||
|
|
||||||

|

|
||||||
- The query can be configured in the options.
|
- The query can be configured in the options.
|
||||||
- The displayed collision channels can be configured in a Data Asset.
|
- The displayed collision channels can be configured in a Data Asset.
|
||||||
- It can be used to better understand what object collisions are blocking a raycast.
|
- It can be used to better understand what object collisions are blocking a raycast.
|
||||||
@@ -65,24 +76,25 @@ Used to inspect collisions by performing a collision query with the selected cha
|
|||||||
### Debug Settings
|
### Debug Settings
|
||||||
Used to tweak how the debug display is drawn.
|
Used to tweak how the debug display is drawn.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Effects
|
### Effects
|
||||||
Displays the gameplay effects of the selected actor.
|
Displays the gameplay effects of the selected actor.
|
||||||
|
|
||||||

|

|
||||||
- Mouse over an effect to see its details such as its modifiers, the gameplay tags it grants, the remaining time, etc.
|
- Mouse over an effect to see its details such as its modifiers, the gameplay tags it grants, the remaining time, etc.
|
||||||
|
|
||||||
### Gamepad
|
### Gamepad
|
||||||
Display the state of the gamepad
|
Display the state of the gamepad
|
||||||
|
|
||||||

|

|
||||||
|
- Can be displayed as an overlay
|
||||||
- Can be used to inject inputs to help debugging, as loosing window focus when breaking in the code doesn't affect the state of injected inputs unlike real inputs.
|
- Can be used to inject inputs to help debugging, as loosing window focus when breaking in the code doesn't affect the state of injected inputs unlike real inputs.
|
||||||
|
|
||||||
### Inspector
|
### Inspector
|
||||||
Used to inspect and modify an Object properties
|
Used to inspect and modify an Object properties
|
||||||
|
|
||||||

|

|
||||||
- Inspect the selected actor by default
|
- Inspect the selected actor by default
|
||||||
- Favorites can be added with a custom function defining what happens when the user press the Apply button (typically this can be used to modify and apply the Game User Settings)
|
- Favorites can be added with a custom function defining what happens when the user press the Apply button (typically this can be used to modify and apply the Game User Settings)
|
||||||
- Manage a history of inspected objects.
|
- Manage a history of inspected objects.
|
||||||
@@ -90,7 +102,7 @@ Used to inspect and modify an Object properties
|
|||||||
### Log Categories
|
### Log Categories
|
||||||
Can be used to activate and deactivate log categories
|
Can be used to activate and deactivate log categories
|
||||||
|
|
||||||

|

|
||||||
- Activating a log category set its verbosity to VeryVerbose.
|
- Activating a log category set its verbosity to VeryVerbose.
|
||||||
- Deactivating a log category set its verbosity to Warning.
|
- Deactivating a log category set its verbosity to Warning.
|
||||||
- The detailed verbosity of each log category can be shown by using the Option menu.
|
- The detailed verbosity of each log category can be shown by using the Option menu.
|
||||||
@@ -100,39 +112,57 @@ Can be used to activate and deactivate log categories
|
|||||||
### Metric
|
### Metric
|
||||||
Gather various values sent by the selected actor and compte their rate per second. This is typically useful to compute the damage dealt or received per second.
|
Gather various values sent by the selected actor and compte their rate per second. This is typically useful to compute the damage dealt or received per second.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Net Emulation
|
### Net Emulation
|
||||||
Used to configure the network emulation
|
Used to configure the network emulation
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Output Log
|
### Output Log
|
||||||
Display the output log based on each log categories verbosity.
|
Display the output log based on each log categories verbosity.
|
||||||
|
|
||||||

|

|
||||||
- The verbosity of each log category can be configured in the 'Log Categories' window.
|
- The verbosity of each log category can be configured in the 'Log Categories' window.
|
||||||
|
|
||||||
### Pools
|
### Pools
|
||||||
Displays attributes of the selected actor as pools.
|
Displays attributes of the selected actor as pools.
|
||||||
|
|
||||||

|

|
||||||
- The pools can be configured in a data asset.
|
- The pools can be configured in a data asset.
|
||||||
|
|
||||||
### Plots
|
### Plots
|
||||||
Plots values overtime. When applicable, only the values of the selected actor are displayed.
|
Plots values overtime. When applicable, only the values of the selected actor are displayed.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
- Handle both float values and discrete events.
|
||||||
|
- Here is an exemple to push a float values:
|
||||||
|
```cpp
|
||||||
|
#if ENABLE_COG
|
||||||
|
FCogDebugPlot::PlotValue(Character, "Speed", Velocity.Length());
|
||||||
|
#endif //ENABLE_COG
|
||||||
|
```
|
||||||
|
- Here is an exemple to push an event:
|
||||||
|
```cpp
|
||||||
|
#if ENABLE_COG
|
||||||
|
FCogDebugPlot::PlotEvent(this, "Effects", GameplayEffectSpec.Def->GetFName(), GameplayEffectSpec.GetDuration() == 0.0f)
|
||||||
|
.AddParam("Name", AbilitySystemComponent->CleanupName(GetNameSafe(GameplayEffectSpec.Def)))
|
||||||
|
.AddParam("Effect Instigator", GetNameSafe(GameplayEffectSpec.GetEffectContext().GetInstigator()))
|
||||||
|
.AddParam("Effect Level", GameplayEffectSpec.GetLevel())
|
||||||
|
.AddParam("Effect Duration", GameplayEffectSpec.GetDuration());
|
||||||
|
#endif //ENABLE_COG
|
||||||
|
```
|
||||||
|
|
||||||
### Scalability
|
### Scalability
|
||||||
Used to configure the rendering quality.
|
Used to configure the rendering quality.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Skeleton
|
### Skeleton
|
||||||
Display the bone hierarchy and the skeleton debug draw of the selected actor if it has a Skeletal Mesh.
|
Display the bone hierarchy and the skeleton debug draw of the selected actor if it has a Skeletal Mesh.
|
||||||
|
|
||||||

|

|
||||||
- Mouse over a bone to highlight it.
|
- Mouse over a bone to highlight it.
|
||||||
- Right click a bone to access more debug display.
|
- Right click a bone to access more debug display.
|
||||||
- Use the [Ctrl] key to toggle the bone debug draw recursively.
|
- Use the [Ctrl] key to toggle the bone debug draw recursively.
|
||||||
@@ -140,42 +170,42 @@ Display the bone hierarchy and the skeleton debug draw of the selected actor if
|
|||||||
### Selection
|
### Selection
|
||||||
Used to select an actor either by picking an actor in the world or by selecting an actor in the actor list.
|
Used to select an actor either by picking an actor in the world or by selecting an actor in the actor list.
|
||||||
|
|
||||||

|

|
||||||
- The actor list can be filtered by actor type (Actor, Character, etc).
|
- The actor list can be filtered by actor type (Actor, Character, etc).
|
||||||
- The current selection is used by various debug windows to filter out their content.
|
- The current selection is used by various debug windows to filter out their content.
|
||||||
|
|
||||||
### Settings
|
### Settings
|
||||||
Configure the settings of Cog Windows.
|
Configure the settings of Cog Windows.
|
||||||
|
|
||||||

|

|
||||||
- Can configure the input key to toggle the input focus between the game and imgui
|
- Can configure the input key to toggle the input focus between the game and imgui
|
||||||
- Can change the DPI Scaling
|
- Can change the DPI Scaling
|
||||||
|
|
||||||
### Spawn
|
### Spawn
|
||||||
Used to spawn new actors in the world. The spawn list can be configured in a Data Asset.
|
Used to spawn new actors in the world. The spawn list can be configured in a Data Asset.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Stats
|
### Stats
|
||||||
Displays engine stats such as FPS, Ping, Packet Loss.
|
Displays engine stats such as FPS, Ping, Packet Loss.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Tags
|
### Tags
|
||||||
Displays the gameplay tags of the selected actor.
|
Displays the gameplay tags of the selected actor.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Time Scale
|
### Time Scale
|
||||||
Used to change the game global time scale.
|
Used to change the game global time scale.
|
||||||
|
|
||||||

|

|
||||||
- If changed on a client the time scale is also modified on the game server, and replicated to the other clients.
|
- If changed on a client the time scale is also modified on the game server, and replicated to the other clients.
|
||||||
|
|
||||||
### Tweaks
|
### Tweaks
|
||||||
Used to apply tweaks to all the spawned actors
|
Used to apply tweaks to all the spawned actors
|
||||||
|
|
||||||

|

|
||||||
- The tweaks are used to test various gameplay settings by actor category
|
- The tweaks are used to test various gameplay settings by actor category
|
||||||
- The tweaks can be configured in a data asset.
|
- The tweaks can be configured in a data asset.
|
||||||
|
|
||||||
@@ -183,11 +213,11 @@ Used to apply tweaks to all the spawned actors
|
|||||||
|
|
||||||
Cog provides C++ and Blueprint functions to log and debug draw within Log Categories.
|
Cog provides C++ and Blueprint functions to log and debug draw within Log Categories.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Log and debug draw functions can be filtered by the selected actor.
|
Log and debug draw functions can be filtered by the selected actor.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user