Mind Reader

Search, find and discuss about Mutators!

Mind Reader

Postby dot » Fri Nov 23, 2018 12:03 pm

Tool for debug bot and pathes.

Original source: http://www.uncommonplace.com/games/mindreader.html (dead)
Description on wiki: https://wiki.beyondunreal.com/Legacy:Mind_Reader

Uploaded here because source site die.

Spoiler: show
Mind Reader 1.1 - by David Catmull - uncommon@uncommonplace.com - http://www.uncommonplace.com/

What's it all about?
Ever wonder why bots do what they do? Especially when you think they should be doing something else? This mutator will allow you to explore the inner workings of a bot's mind. Such as it is.

The best way to use this mutator is as a spectator.. because otherwise you'll be too busy shooting to make use of it. You can use it in the regular flying-camera mode, or by switching to spy on individual bots. If you do the flying-camera thing, then you'll get data on whatever bot you're looking at, as an extension of the player name that always pops up when you look at someone.

The readout is as follows:
  • State: Every object in UnrealScript has states; bots have states like "Fallback", "Retreat", "Falling", and "Dying".
  • Move Target: This is usually the nearest pathnode that the bot is moving towards, and it can also be an item that the bot is about to pick up.
  • Enemy: Whoever the bot's designated target is.
  • Orders: Defending, Attacking, Following, etc.
  • Real Orders: The actual orders that have been given to a bot. This can sometimes be different from its working orders, above. For example, if it's told to defend, but there's nothing to defend, it may decide to do something else for the time being.
  • Order Object: The thing or player the bot was told to defend, or follow, or whatever.
  • Alternate Path: The marker that helps bots vary their attack routes in CTF
  • Goal: This text string is updated sporadically as a general indicator of what the bot is doing. It often becomes obsolete long before it gets updated, but it still can be useful.

Also, you will see frames appearing around certain objects:

  • Red crosshairs:
    Enemy.

  • Green box:
    Order Object - remember, could be a player, could be a thing.

  • Blue box:
    Move Target - this is usually a pathnode, which you otherwise can't see. It may also be an item that the bot wants to pick up, or the player that the bot is following.

  • Blue cross:
    Destination - the location that the bot is trying to reach. Usually the location of the Move Target, unless the bot is doing evasive/tactical maneuvers, wandering, or trying to find its way back to the path node network.

  • Yellow boxes:
    Route Cache - the pathnodes that make up the route that the bot is following.

  • Magenta crosshairs:
    The bot's current chosen AlternatePath.

  • Inverted boxes:
    Team-colored identifiers for flags in a CTF game. If the flag is being carried then a cross is drawn in the color of the carrier. This currently only works in CTF-based games.


Mutate commands

Bind these commands (like "mutate MRDetachCam") to a key for easy access.

  • MRDetachCam:
    If you are spectating and tracking another player (when it says "Live feed from..." at the bottom), this command will stop your camera right where it is so that you can move it freely from there. This is better than (or different from) hitting the altfire button, which will take you back to where you were before you started tracking people.

  • MRNextFlag and MRPrevFlag:
    These commands will cycle through viewing the flags in the game, just as the fire button cycles through the players. This will appear a bit erratic because of the fact that the flag isn't always where it appears to be: when you see a player carrying a flag, it's really an illusion. So the mutator has to do some extra work to match that illusion. Also, there is no way to distinguish between watching a flag that is being carried, and watching a player who is carrying a flag. "Next" and "previous" do not necessarily go by the team order red-blue-green-gold (if you're playing CTF4 or CTF+), depending on how the map was constructed. These commands also work in Flag Domination, and should work in Scavenger Hunt though I have not tested it.

  • MRToggle:
    Toggles the Mind Reader display on and off.


Why is it cool?
This thing can be very useful when you're trying to tweak bot behavior in mods and maps. It lets you discover things like, are they picking the right spots to defend? Why do they go there? How are my paths working? Junk like that.


More to come
I plan to add a few more fancy things, like locking on to a bot in free camera mode (so the data doesn't fade out when you're not looking at the bot).


Incompatibility
Mind Reader doesn't work if you also have the Relic mutators enabled. What's really happening is that the Relic mutators don't work with any other HUD mutators, and I don't thing there's anything I can do about it.


Thanks
The frames were accomplished by copying code from ITSHUD from Unrealistic (http://www.planetunreal.com/unrealistic).


New this version
  • Mutate commands
  • Health is shown regardless of team
  • AlternatePath display
  • Flags are always marked


scr_1542970438.jpg


mindreader.zip
(13.72 KiB) Downloaded 24 times

Alternative download: https://web.archive.org/web/20160407004 ... reader.zip

Another useful tools:
Bot Path Node Usage Beta
MindReader2 - for monsters
Last edited by dot on Fri Nov 23, 2018 10:15 pm, edited 1 time in total.
dot
Average
 
Posts: 53
Joined: Tue Oct 30, 2018 3:41 am

Re: Mind Reader

Postby Krull0r » Fri Nov 23, 2018 12:17 pm

This tool is awesome! It helped me alot to fix strange AI behavior!
User avatar
Krull0r
Novice
 
Posts: 25
Joined: Fri Oct 19, 2018 10:31 am
Personal rank: 227 Emitter Expert

Re: Mind Reader

Postby JackGriffin » Fri Nov 23, 2018 4:08 pm

I made a mindreader2 out of this for scripted pawns. I spoke with the original author and he gave full permissions to do anything with this we wanted. It's really an overlooked and very useful little tool. I use the scriptedpawn one now and again to find out where I fucked up my coding on them.
"You damn kids, back in my time we made the items, maps and games ourselves with an unwieldy engine using counter-intuitive crash-prone tools and we liked it so much we built communities around this which nowadays look like cults because they're quasi-parallel societies based on the same old games." -Hellkeeper
User avatar
JackGriffin
Godlike
 
Posts: 3723
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: Hack coder

Re: Mind Reader

Postby dot » Fri Nov 23, 2018 9:42 pm

v1.2

scr_1543005446.jpg


  • Added draw cached path.
  • Added Focus.
  • Added labels for Destination and Focus.
  • Better name for InventorySpots.
  • Added last point for the cached path.
  • Added FaceTarget.

MindReader-1.2.zip
(14.89 KiB) Downloaded 24 times
dot
Average
 
Posts: 53
Joined: Tue Oct 30, 2018 3:41 am

Re: Mind Reader

Postby JackGriffin » Fri Nov 23, 2018 10:23 pm

Dot, I can't remember if I used the better overlay code for mindreader2 or not but you might see if the data displayed doesn't slide around on the second version versus this one. If it does grab the way mine does it and it will improve this one quite a lot.
"You damn kids, back in my time we made the items, maps and games ourselves with an unwieldy engine using counter-intuitive crash-prone tools and we liked it so much we built communities around this which nowadays look like cults because they're quasi-parallel societies based on the same old games." -Hellkeeper
User avatar
JackGriffin
Godlike
 
Posts: 3723
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: Hack coder

Re: Mind Reader

Postby dot » Fri Nov 23, 2018 10:35 pm

You mean viewtopic.php?p=109191#p109191 ?
Here were simple code.

If you mean another mutator - post on forum or provide link.
dot
Average
 
Posts: 53
Joined: Tue Oct 30, 2018 3:41 am

Re: Mind Reader

Postby JackGriffin » Fri Nov 23, 2018 10:59 pm

Yeah, that's the one. I just looked because I couldn't remember if I used the better code or not. I didn't.

If you really want to improve both of these mods greatly you could take the "simulated function DrawMonsterName(Canvas C)" function from Monsterhunt2Gold and use it in place of this simpler drawing. It works WAY better and sticks to the target. I just uploaded a video demonstration of how much better the information is displayed even at very high Z angle:


That's what I was talking about.
"You damn kids, back in my time we made the items, maps and games ourselves with an unwieldy engine using counter-intuitive crash-prone tools and we liked it so much we built communities around this which nowadays look like cults because they're quasi-parallel societies based on the same old games." -Hellkeeper
User avatar
JackGriffin
Godlike
 
Posts: 3723
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: Hack coder

Re: Mind Reader

Postby dot » Fri Nov 23, 2018 11:07 pm

v1.3

scr_1543010758.jpg

scr_1543010309.jpg


  • Added support for any Pawns.
  • Added support for ScriptedPawns.

MindReader-1.3.zip
(15.35 KiB) Downloaded 29 times
dot
Average
 
Posts: 53
Joined: Tue Oct 30, 2018 3:41 am


Return to Mutators

Who is online

Users browsing this forum: No registered users and 1 guest