Xonotic Forums

Full Version: how can i get defrag entities in netradiant?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I know, i'm asking about netradiant for the third time but i've been looking for a while for tutorials on defrag options in netradiant and i found no working way to get it. I'm using netradiant on linux, compiled from git. Can someone tell me what do i do?
Hi,
In order to create a Defrag map, all you need to do is a map with:
  • an info_player_deathmatch entity that serves as a spawnpoint.
  • trigger_race_checkpoint brushes for your checkpoints (each checkpoint brush has a number, starting with 0).
  • a .mapinfo file that specifies gametype cts
If in doubt, you can download other Xonotic Defrag maps and look how they are made (like the XDWC maps).

Once your map is compiled, first type g_cts 1 in the game console, then start your map.
(01-01-2020, 04:57 AM)SpiKe Wrote: [ -> ]Hi,
In order to create a Defrag map, all you need to do is a map with:
  • an info_player_deathmatch entity that serves as a spawnpoint.
  • trigger_race_checkpoint brushes for your checkpoints (each checkpoint brush has a number, starting with 0).
  • a .mapinfo file that specifies gametype cts
If in doubt, you can download other Xonotic Defrag maps and look how they are made (like the XDWC maps).

Once your map is compiled, first type g_cts 1 in the game console, then start your map.

Could you please clarify?
Where is the .mapinfo file supposed to be and how is it supposed to look?
How about "Project settings"? is it supposed to be xonotic or "custom xonotic modification" and "defrag"?
Should i pack all the map files into a pk3 file after compilation?
I did all that and it set the game type to deathmatch (i set checkpoint triggers and stuff), what am i doing wrong?
Where and how can i download maps?
Thanks in advance
EDIT: Should i merge the netradiant xonotic pack (https://gitlab.com/xonotic/netradiant-xonoticpack) with my netradiant directory?
Most answers to your questions should be on the wiki: https://gitlab.com/xonotic/xonotic/-/wik...ating-Maps (especially in the "Setup" and "Packaging and releasing" sections) :-)
The game type is set to deathmatch because the mapinfo file is missing (and g_cts 1 needs to be set regardless).

When you play a map online, it's downloaded in your Xonotic user directory, in data/dlcache. You can get it from here.
Alternatively, you can also download maps from http://xonotic.fps.gratis/
(01-01-2020, 12:08 PM)SpiKe Wrote: [ -> ]Most answers to your questions should be on the wiki: https://gitlab.com/xonotic/xonotic/-/wik...ating-Maps (especially in the "Setup" and "Packaging and releasing" sections) :-)
The game type is set to deathmatch because the mapinfo file is missing (and g_cts 1 needs to be set regardless).

When you play a map online, it's downloaded in your Xonotic user directory, in data/dlcache. You can get it from here.
Alternatively, you can also download maps from http://xonotic.fps.gratis/
Thanks, i made the files and ran the map but the trigger_race_checkpoint brush acted as both the start and the finish. How do i fix this?
(01-02-2020, 02:42 AM)bananovenc Wrote: [ -> ]Thanks, i made the files and ran the map but the trigger_race_checkpoint brush acted as both the start and the finish. How do i fix this?

Select the trigger_race_checkpoint that should be the finish, open the Entities window (N) then tick the "finish" box.
By default, the start brush also acts as a finish, unless you tick that box.