Create an account


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bot waypoints tutorial

#1
I started editing Runningman CTF to add some waypoints but I don't have much free time now (this week is a Performous one), so even if it's unfinished here is what I understood.


When creating a map bots will most likely stay still. To make a map compatible with bots waypoints must be added.

Waypoints editing

( Some info grabbed from here: http://www.nexuizninjaz.com/forum/Thread...still.html )

Enable waypoints editor: Open the command console and type "g_waypointeditor 1". Some colored balls will appear around the map, the editor is on.

Set some custom keyboard shortcuts to edit waypoints. On the bottom of the shortcut list are empty slot to edit. Choose the name you want and add a command on key press
g_waypointeditor_spawn: add a waypoint where you are standing
g_waypointeditor_remove: remove the currently active waypoint
g_waypointeditor_relinkall: recompute all pathes (not always usefull)
g_waypointeditor_saveall: save the waypoints in your home data/maps directory in a file named <map>.waypoints

How waypoint works

There are multiple kind of waypoints. Yellow and red balls are added automatically and cannot be removed. They are set on items and objectives like warp, jump pad and its target… White balls are added manually.

The editor doesn't work while being spectating. When you get close to a waypoints lightrays pops to link to nearby points and yourself if reachable. When adding points a network is created and bots will move from a point to an other.

How bots move

Bots wander around more or less randomly from a waypoint to an other linked one. Once it has reached a waypoint it start collecting nearby weapons and mega health/armor by going back and forth even if there is no waypoint on them. When there is nothing interesting around, it moves to an other waypoint, preferrably in the approximate direction of the last "return to current waypoint".

If it sees an opponent, it will start fighting.

Tips and tricks

Load a map without any bot to make your edit quietly. To test it turn to spectator (f3 by default) and add a single bot (higher difficulties will make it move faster). Run after it to check if it is not going stuck in a corner.
Remove the bot and join to fix things.

Do never add a point while jumping! You may not be able to select it and delete it if it is misplaced. It is also pain in the ass in water.

Currently when reloading a map with new waypoints only the white balls may appear, even if the links to other balls are shown. To make them appear again, delete the according .waypoints.cache in your data dir

Bots don't jump or at least not as you may expect. Zones with high steps may require a lot of attention to have a good network. Move away from the path and check if the balls are well connected. If not check from where the link breaks by following the path while watching the nearby waypoints until the lightray stops connecting you.

Bots don't bother with ammo, health and armor expect mega-size. I'd rather think it is a lack in AI that should be fixed in code (some day), not with artificial waypoints that can make strange things when the AI is modified.
Reply

#2
Thanks very much for this! Very useful!
Reply

#3
This small tutorial is very outdated, please take a look at https://gitlab.com/xonotic/xonotic/-/wik...-waypoints for a more complete and updated guide.
Reply

#4
Quote:Do never add a point while jumping! You may not be able to select it and delete it if it is misplaced. It is also pain in the ass in water.
You can now safely create a waypoint while jumping, although is not recommended. And you can safely create waypoints in the water too without any trouble.

Quote:Currently when reloading a map with new waypoints only the white balls may appear, even if the links to other balls are shown. To make them appear again, delete the according .waypoints.cache in your data dir
This bug doesn't exist anymore.

Quote:Bots don't jump or at least not as you may expect.
Bots can now jump gaps, provided you add jump waypoints for it.

Quote:Bots don't bother with ammo, health and armor expect mega-size. I'd rather think it is a lack in AI that should be fixed in code (some day), not with artificial waypoints that can make strange things when the AI is modified.
This is fixed, bots now get ammo and small health/armor packs as well if needed.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Xonotic custom icon for profile users - editing image tutorial LegendGuard 4 3,065 12-14-2020, 12:16 PM
Last Post: Julius
  Bot Waypoints - tips and tricks? munyul 15 10,512 07-16-2020, 04:48 PM
Last Post: LegendGuard
  Waypoints Help TapX 10 8,083 08-07-2018, 06:59 AM
Last Post: TapX
Information Progress tracking: getting a new playermodel into Xonotic (tutorial) poVoq 23 36,036 01-29-2017, 06:07 PM
Last Post: Sharoun
  [Discussion] Tutorial and Training maps -z- 41 37,123 01-28-2016, 07:19 AM
Last Post: Mario
Video A Video Tutorial for Mappers: Modular Geometry unfa 23 29,535 11-03-2013, 09:41 AM
Last Post: aa
  Tutorial (basics) - Howto edit a playerskin/texture. paperclips 0 4,068 03-23-2013, 12:46 PM
Last Post: paperclips
  Vertex color texture blending tutorial. tZork 19 35,786 08-13-2012, 04:33 PM
Last Post: Rudi
  Change models, help or a tutorial needed bigdilliams 4 7,114 02-27-2012, 07:33 AM
Last Post: nifrek
  Tutorial models wishlist Minkovsky 1 4,948 04-04-2011, 04:02 PM
Last Post: nowego4

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-