Create an account

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[NEED HELP] Gametype Invasion, Playermodel Bots

Hi all!
I consider myself a heavy user in terms of tweaking and so on (i was a hobby programmer long ago)
The last days i managed to create a separate /data_xxx/ sub directory, use it as "game" and with it's own default.cfg, maps and so on...
And now my question - is there any autoload.cfg that will be run each time a map is loaded? - until now i was unable to "fix" the invasion gametype, i always have to set g_invation to 1 and restart with every new map.
Question 2: i managed to download a lot of player models from the repository, pack them together in 1 pk3, can choose them as player model, but on bots approx 80% of them only "show up" while "show all players as my model" and not via the bot text setting - only ubot, renamon and the ponies work as expected... Any idea how tho fix that?
Question 3: The Invasion-Monsters (although as dumb as a brick) can "navigate" in unknown terrain, while ai bots are glued in place while missing waypoints, this is really looking ridiculous alltogether,
can't the monsters moving code not be used as fallback level for moving?
Greets, Dan

Bots and monsters use completely different algorithm of navigation. Ths is extremely stupid but 99% of stuff in Xonotic code is stupid. There were plans to fix this but it would require a lot of work and I myself don't have mental health to write QuakeC anymore.

Game types supported by a map are defined in mapname.mapinfo files. If a map does not have it then Xonotic autogenerates the file with this content:

title Diesel Power
description <DESCRIPTION>
author <AUTHOR>
cdtrack 4
has weapons
// uncomment this if you added turrets: has turrets
// uncomment this if you added vehicles: has vehicles
gametype dm // defaults: timelimit=20 pointlimit=30 leadlimit=0
gametype lms // defaults: timelimit=20 lives=9 leadlimit=0
gametype tdm // defaults: timelimit=20 pointlimit=50 teams=2 leadlimit=0
gametype ca // defaults: timelimit=20 pointlimit=10 teams=2 leadlimit=0
gametype dom // defaults: timelimit=20 pointlimit=200 teams=2 leadlimit=0
gametype kh // defaults: timelimit=20 pointlimit=1000 teams=3 leadlimit=0
gametype ft // defaults: timelimit=20 pointlimit=10 teams=2 leadlimit=0
gametype ka // defaults: timelimit=20 pointlimit=30
// optional: fog density red green blue alpha mindist maxdist
// optional: settemp_for_type (all|gametypename) cvarname value
// optional: clientsettemp_for_type (all|gametypename) cvarname value
// optional: size mins_x mins_y mins_z maxs_x maxs_y maxs_z
// optional: hidden

Look at /home/username/.xonotic/data/data/maps/autogenerated

Surely you have there some autogenerated files, and nothing prevents you to modify existing ones or create your own files.

P.D: .mapinfo files are executed every time a map is loaded.

[Image: 62416.jpg]

Thank you for this hint,
But i am still a bit beyond that point, i use the
Cvar, and the game already starts with Invasion, when i put a random map in command line, but than reverts to deathmatch when the next one is loaded. Setting back to invasion via console as stated above works...
My aim is to play all that Q3 origin maps without waypoints as Kind of invasion Single Player campain, without having to change the mapinfo (that means to alter all the 50+ pk3 map packages and Up/download again)
I like to provide this "gamemode" as small mod to whoever wants to use it, and doesnt want to dig into command line console even as shallow as i did.
I only need a Hint for a Script (or trigger?) to repeat that 2 commands with every map loaded, when it is in "my" Q3 invasion game mode...

You can set cvars via QC or even hack the gamemode code to allow any gamemode on any map.

mapinfo files can be external to pk3 files, overriding the internal ones, and can contain commands:

// clientsettemp_for_type (all|gametypename) <cvarname> <value>
// settemp_for_type (all|gametypename) <cvarname> <value>
// settemp_for_type ctf g_balance_laser_primary_force 200
// settemp_for_type all g_start_weapon_shotgun 0
// settemp_for_type all g_start_weapon_uzi 1
// settemp_for_type all g_new_toys 1

settemp_for_type all g_mapinfo_allow_unsupported_modes_and_let_stuff_break "1"

Path is /home/username/.xonotic/data/maps

[Image: 62416.jpg]

still sticking, s###ks, there is really no (documented) posibility to define settings for start of the game...
i tried:
set sv_vote_gametype_options "inv dm ctf ca lms tdm ft dom"
set sv_vote_gametype_default_current 1 "keep the current gametype if no one votes"
set menu_loadmap_prepare set g_invasion 1; sv_cmd gametype inv; cl_hook_gamestart inv
set g_mapinfo_allow_unsupported_modes_and_let_stuff_break 1
set g_mapinfo_ignore_warnings 1
set g_invasion 1 
sv_cmd gametype inv
cl_hook_gamestart inv
working with the first map from command line, 
but all of that useless when a new map is loaded, game type is deathmatch, g_invasion is zero again!
(btw: my only linux machine is a raspberry pi 3, nexuiz runs with lowest settings at 3 to 10 fps, havent tried xonotic)

Possibly Related Threads...
Thread Author Replies Views Last Post
  GunGame gametype Lyberta 6 1,156 09-24-2017, 08:12 PM
Last Post: BuddyFriendGuy
  Survival gametype Lyberta 0 943 03-25-2017, 09:29 AM
Last Post: Lyberta
  Bots get stuck Lyberta 4 1,270 02-27-2017, 06:10 PM
Last Post: martin-t
  Playermodel - UBot MirceaKitsune 13 8,100 12-30-2015, 01:28 AM
Last Post: Beagle
  Getting Position of Other Players/Bots Client-Side ehrenbrav 7 4,392 05-10-2015, 12:42 PM
Last Post: ehrenbrav
  Playermodel - Terminus MirceaKitsune 28 16,885 10-08-2013, 03:40 AM
Last Post: MirceaKitsune
  Bug: Bots don't move from spawn unless there is a waypoint at their spawn, even when May Epper 0 1,766 04-19-2012, 08:21 PM
Last Post: May Epper
  More bots perredition 9 5,486 08-16-2011, 03:12 PM
Last Post: perredition
  New gametype: "Tag" FruitieX 16 10,164 01-07-2011, 10:27 AM
Last Post: nowego4

Forum Jump:

Users browsing this thread:
1 Guest(s)

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