ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to create and use SECTINFO

 
Post new topic   Reply to topic    ZDaemon Forum Index -> ZDaemon Articles and Guides
View previous topic :: View next topic  
Author Message
Oxyde
God like!


Joined: 01 Feb 2012
Location: France (67) Host: Zero Dawn

PostPosted: Sat Apr 06, 2019 11:16 pm    Post subject: How to create and use SECTINFO Reply with quote

With the release ZDaemon 1.08.06 a few years back, a feature called SECTINFO, along with the client command SITREP and chat variables %L, %H and %A, was added in order to help promote teamplay and allow for easy to read information on screen.

In order to generate a SECTINFO lump and make extensive use of these features, the tools needed are listed below.

What is SECTINFO?
SECTINFO is a text format lump to be added in any wad that allows to define a name for each and every sector in any level.
Additionally, for team play game modes, SECTINFO allows to define the boundaries of each team, allowing for ZDaemon's scoring system to determine weither kills occur offensively or defensively.

How do I build a SECTINFO for my wad?
Making a SECTINFO lump is surprisingly easy, and takes only little to no knowledge of Doom editing!
Sector definitions use sector numbers, instead of sector tags. This makes tracking extremely easy and less taxing on the author's end. Any lump should follow the standard formatting as shown below.
Code:
[map01]
names = {
   "Area name #01" = { sectors, numbers, go, here },
   "Area name #02" = { some, more, numbers, there },
}


Should many sector numbers follow up each others, you can use hyphens to link them together. This prevents you from having to write down every single number individually, and allows for mass production. See this example:
Code:
   "Laboratory" = { 17-28, 35-43 },


Should your level be a team play oriented one, you will find it useful to be able to define the boundaries of each base. To do so, start your lump in a similar approach to sector definition, except your are not using quotation marks this time around. Base definitions follow the same order that the client variable "team" does, which means:
  • Base0 is the Red team
  • Base1 is the Blue team
  • Base2 is the Green team
  • Base3 is the White team
Code:
[map09]

base0 = { 0-136 }
base1 = { 137-292 }


In case a sector is defined twice in the same level, instead of crashing, ZDaemon will ignore the rest of the lump, allowing you to easily fix the error. Once you are done writing, simply import the file into your wad and name it SECTINFO. ZDaemon will automatically read it on start, no further action is required.

See a full scale live example of the famous map "Frozen" by AlexMax from the ZDCTFMP pack.
Code:
//-----------------------------------------
// ZDaemon Community SECTINFO Project - ZDCTFMP Series
// MAP09 (Frozen) of ZDCTFMP.wad, by Oxyde (updated 28/05/08)
//-----------------------------------------

[map09]

base0 = { 0-136 }
base1 = { 137-292 }

names =  {
      "Red Base" = { 0, 1, 4, 8, 9, 10-22, 23-27, 28-30, 32-35, 48, 49, 73, 81, 82, 92, 111, 129, 130 },
      "Red Hangar/Base Crate Intersection" = { 2, 64 },
      "Red Hangar" = { 39, 40-47, 50-56, 59-63, 67, 68 },
      "Red Base Stairs" = { 6, 36-38, 65, 66, 69, 70-72, 74, 77-80 },
      "Red Heliport" = { 5, 83-90, 93, 94, 106-108, 112, 113 },
      "Red Rocket Launcher" = { 124, 125 },
      "Red Right Entrance" = { 115-123, 133 },
      "Red Backzone Stairs" = { 95-103, 131 },
      "Red Snowfield" = { 109, 135 },
      "Red Middle cave" = { 132 },
      "Middle Cave" = { 273, 274 },
      "BFG Pillar" = { 276, 277 },
      "Blue Base" = { 137, 138, 140-144, 146-149, 152, 154, 155, 160-165, 167-179, 186, 188, 224-227, 270, 271 },
      "Blue Hangar/Base Crate Intersection" = { 145, 209 },
      "Blue Hangar" = { 150, 151, 157, 158, 187, 189, 190-202, 205-208 },
      "Blue Base Stairs" = { 166, 180-185, 210-212, 217-221  },
      "Blue Heliport" = { 222, 223, 228-237, 239, 242, 243, 255 },
      "Blue Rocket Launcher" = { 240, 241 },
      "Blue Right Entrance" = { 159, 214, 259-266 },
      "Blue Backzone Stairs" = { 213, 238, 244-251 },
      "Blue Snowfield" = { 153, 156 },
      "Blue Middle Cave" = { 252 },
}


Using the GZDoom Builder Plugin
In order to make use of the (GZ)Doom Builder Plugin, you must first install "SectInfo.dll" and place it within the \Plugins\ folder of the GZDB installation directory. The folder structure is identical for all versions of DB2 and it's forks. You can perform this operation while Builder is running, but the program should be restarted for the Plugin to be available.
Now to start working with the plugin, launch the software and open any map.
  1. Select the sectors you want to start defining in "Sectors" mode, then click on "Mode" and select "SectInfo". A small window will appear:
  2. Type the name you wish to give to the sectors you selected in the "Name of area" field.
  3. In the "File" field, click on the "..." icon and locate the text file you just created.
  4. For the first definition of your map, make sure you select "New File".
  5. Then, input the level number you are working on.
  6. Finish by clicking "Write" !
  7. You can now go and check the file you created in order to make sure it's been written properly. Should there be an error, try and repeat previous steps.
  8. Now, click on "Done" to close the window.
  9. Repeat the selection process mentionned in step #1.
  10. Now, select "Append to existing" and make sure it says selected for each subsequent addition to your lump.
  11. When you reach the final definition, simply check "Last Entry" and click "Write" which automatically will close the definitions list.
You are now free to import your definition into your wad using any lump editor you like.

With your lump now ready, you can move on to the next fun part, using it in SITREP!


Last edited by Oxyde on Sun Apr 07, 2019 6:24 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> ZDaemon Articles and Guides All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group