Extended debugging

by Leosky·v1·Updated 2019-02-06

Help manage logs and add some functionality to aid modifications.

About this mod Machine translation

Help manage logs and add some functionality to aid modifications.

Using some of the following features in your mod may add some issues if players also use this mod or if other mods import them, then you need to make sure your mod is used with script merging.

This is a preliminary version and I will revise it later, I may add features or change what some users return.

The mod adds a lot of basic script changes, so it can create a lot of confusion with your mod, but Script Merge will make it easy to get rid of them. It is based on the 'Unified Patch for 1.31 and 1.31GOTY Game Edition' script.

Record

The main purpose of this mod is to enable/disable the default log channel. All channels are disabled unless a fact is added.

Use the following console command to perform enabling/disabling the channel:

addfact(ed_log_c_CHANNEL)

removefact(ed_log_c_CHANNEL)

where CHANNEL is the channel you want to enable. For unchanneled logs you must add the 'ed_log_all' fact.

For example: 'addfact(ed_log_c_Haggling)' will add all log entries related to contract haggling.

In the mod, if you want to use management functions, you can use the following functions:

LogChannelManaged(channel:name,text:string)

LogManaged(text: string)

LogConsole (channel: name, text: string, optional showNotification: bool, optional duration: int)

This command will add a log entry and display it as a notification (default: showNotification = false, duration = 4).

But you need to add the 'modExtendedDebug\content\scripts\log\log_utils.ws' file to your mod and give credit to this mod in your mod description.

console

The following console commands may be helpful in your modification efforts.

listEntities (optional distance: int, optional maxResults: int, optional className: name)

This console command will list all entities within a given (or not) scope. The default will list the first 15 entities that are 25 units away but away from the player.

Install & use Install: follow the bundled instructions

  1. Unzip the archive from playbuff and read the bundled readme / instructions first.
  2. There is no universal mod manager for this game: some mods replace game files directly, some go into a game-specific Mods folder, and some need a game-specific community loader or tool first — follow the bundled readme.
  3. Place the files exactly as the readme says; mods with listed dependencies need those installed too.
  4. Launch the game to confirm it loaded; some games require enabling mods in settings or an in-game mod menu.

Install locations vary a lot between games and mods — the bundled readme is the most reliable guide.

File & checksum

Filename
扩展调试
File size
690.0 KiB