Game State Visualizer

The perfect tool to debug server data and find differences with client and UI.

Setup

Add the following text on ServerManagerLocal.cs to allow GSV to get server data and compare with client data.

public GameServer GameServer { get { return server; } }

Remember to add using GSV;of top files to be able to use Attributes.

Attributes

  • GSVField:

    • Description: set special name to override field's name, also could be used as header of arrays/lists.

    • MaxWidth: set max width to make room for more fields in lines.

    • CompareField: set the field used to compare object from server and client data.

    • StripeLines: enable stripe lines for specific list.

    • CompareUI: set the field on CardUI to find respective object.

You must run the game to the tool get game data. After it was started once, it will keep the last updated data.

Examples

Game.cs

Player.cs

Card.cs

The following code was added on Slot.cs to make it show a better value at GSV.

Last updated