A TOGAthering of Utilities

[Open Assets] A TOGAthering of Utilities Dr. Watson 32 (1.21b) - MB fix 2

I have been out of practice with Lua coding... and Kart in general. So, I feel like making these Open Assets couldn't hurt.

Thank you for using my scripts. :sadthumbsup:
SOCGen was referring to a variable that was there at some point, but is just two letters away from the actual thing as well. Oops 2.
...I have actually forgot to include SOCGen as a separate download for the original 1.21b post, oops.
Minor revision again. a3
  • SkInfo:
    • Fixed oversight when all character slots are used and listing of skins is attempted.
    • Improved Restat detection when inspecting.
a2
  • SkInfo
    • Fixed oversight with potential console spam for dedicated servers per each use of skinfo skin.
The rest is same as 1.21.
a
  • MapUtils
    • Added NoClippy compatibility when using coordinate teleports, saving and loading.
  • SkInfo
    • Added skinfo inspect.
      • When executed, every player that isn't spectating and/or has a valid player object will have details listed about them, such as:
        • Current skin.
        • Speed stat.
        • Weight stat.
      • Speed & weight stat listed defaults to the player's current value for each, not skins. This is controlled by skinfoinspecttype. skin/0 & player/1 are valid values for the CVar.
        • Players using Restat will have their stats highlighted in purple.
        • Also supports Ditto-transformed players.
  • SOCGen
    • Split off from the main .pk3 as it's not necessary to have around active 24/7.
    • Will, however, still require MapUtils to be loaded to function.
  • PluginExample
    • The plugins have been moved to their respective scripts, removing the need for this being separately loaded.
As usual, report bugs if you notice 'em. :blink:
Grab some steel, boys, they're comin'!
  • MapUtils
    • Reworked base functionality for modularity like SkInfo had.
    • Writing to file will now mention plugins loaded at the time.
    • Added converstion between integer and extended map numbers.
    • Positional stuff added: mu pos
      • List your current map position as X, Y, Z.
        • The values given have been >>FRACBITS for ease of use.
      • Save/load your location on the map.
      • Teleport to desired coordinates.
        • mu pos teleport [destx] [desty] [destz]
        • Use the coordinates given by the listing command above or <<FRACBITS them beforehand.
      • May be of use during map development.
    • ...map ZZ/1035 is back to being accessible.
  • SkInfo
    • Spectators attempting to view their skin information will not display an error warning, just a normal warning.
    • Ensured command execution for local user only.
    • Writing to file will now mention plugins loaded at the time.
  • NEW: SOCGen
    • Takes a "snapshot" of current SOC information of maps and writes it to socgen.txt, writing using the expected SOC structure.
      • By default, only "basic" information is written. However, you can make it write out a more detailed version as well that includes most of the default mapheader_t userdata and its' variables.
    • Built off of MapInfo, this supports searching of maps to list as well.
    • Like MapInfo and SkInfo, this also has modularity. Writing the file will mention loaded plugins.
    • Usage: socgen [race/battle/singleplayer/all] [searchname] [detailed]
      • [race/battle/singleplayer/all] - gametype selection. Alternatively, if plugins is given, it will list plugins loaded.
      • [searchname] - search term that is passed to MapUtils.
      • [detailed] - toggle verbose output.
  • PluginExample
    • Formerly known as SkInfoPluginExample.lua, this now includes example plugin scripts for all 3 utility scripts.
    • The "structure" of them are slightly different, keep this in mind.
This is a small update. 'nuff said.
  • MapUtils & SkInfo
    • Fixed and added some shortcuts for arguments to main commands.
    • Scrapped grabbing servername string.
      • Final filenames are maplist.txt or skinlist.txt respectively instead.
  • MapUtils-specific
    • Fixed an oversight - now the searching is done in these parts of mapheaderinfo:
      • .lvlttl
      • .subttl
      • .zonttl
      • .actnum
    • Now listing a map's TypeOfLevel as well.
As this had been in the approval for so long, I've already made slight updates to both scripts.
  • MapUtils wasn't changed too much, primarily focusing on a better string display method.
  • SkInfo, however, had a partial rewrite due to deciding to add modularity in a similiar fashion to how I did it for Windows for SRB2 - external scripts can add additional information to be displayed for a particular skin. To coincide with this, skpluginrun exists for a player to toggle on or off whether the extra skin information is generated at all.
    • To add your own character-specific information, please view the SkInfoPluginExample.lua script in the .pk3.

Both scripts have their string generation functions exposed.
Back
Top