Staredit Network > Forums > Modding Discussion > Topic: Aiscript debug plugin
Aiscript debug plugin
Mar 17 2018, 1:12 pm
By: Neiv  

Mar 17 2018, 1:12 pm Neiv Post #1



The limit plugin I had written has some aiscript debugging features, so I took them out to a separate plugin that should work fine with nearly every other plugin/vanilla 1.16.1.

Screenshots:

Guards (show ai, show ai guards)


A massive 3-dragoon attack by Blizzard AI (show ai player, show ai units, show regions)


Showing which town buildings belong to (show ai units)


The AI determined that those resources are a expansion location (show resareas)

The debug info is controlled through console that can be opened with the ~ key, with following commands:

show ai (Abbreviation sai)
Toggles the main debug output on/off. Shows the request queue of AI players in topleft corner, the AI will always only look at the first request on the queue until it can start working on it, or discard it completely.

show ai guards (Abbreviation saig)
Shows guard positions, for both alive guards and ones that the AI tries to build.

show ai units (Abbreviation saiu)
Draws lines from each AI unit to their related location. For workers and buildings the line shows their town, for military it shows the current region they are allocated to, and guards show their home point.

show ai player <player id> (Abbreviation saip <player id>)
Limits debug info to specific player and shows region info of a player. The player-id is 0-based, you can also use `player` command to show what player owns the currently selected unit.

show ai player all
Reverts `show ai player <n>`

show resareas
Shows the base resource areas, which are locations the AI will be able to expand to.

show regions
Shows the pathfinding regions. Useful with `show ai player <n>`, which shows extra info for each region.

show collision
Shows unit collision boxes.

show range
Shows an *approximation* of unit range. BW's distance algorithm causes the range to be more of a
12-gon than a circle, so the shown circle is not perfect representation.

show locations
Draws location borders on screen.

gsw <n>
Sets the game to wait *about* <n> milliseconds between frames. Slowest working value is around 150, holding down the + key will go even faster than `gsw 0`


Download:
https://github.com/neivv/ai_debug_1161/releases/tag/v3


And yes, I know the info text often overlaps/covers things, and may go off screen. I don't think I'm going to ever fix it though.

Edit 26th May: Added abbreviations and regions show their defense priority.

Post has been edited 2 time(s), last time on May 26 2018, 7:25 pm by Neiv.



None.

Mar 17 2018, 5:40 pm Pr0nogo Post #2



An amazing tool I've used for quite a while now with great results. Endlessly helpful, and even more so now that it can be hotswapped without removing GPTP plugins.

Does `gsw n` still work for setting a specific speed?




Mar 17 2018, 5:54 pm Neiv Post #3



Yes.



None.

Jan 15 2024, 10:38 pm moataz Post #4



Does this work with ChaosLauncher? I tried to rename the .qdp file to .bwl or .dll but CL doesn't want to load it, this version worked with me though:
http://www.staredit.net/topic/18441/#9

Any idea ?



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Roy