SECTINFO: Need Review

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Tiger
Retired Staff / Community Team Member
Posts: 381
Joined: Thu May 31, 2012 6:21 am
Location: United States
Contact:

SECTINFO: Need Review

#1

Post by Tiger » Mon May 30, 2016 4:22 am

Hallo,

I am trying to setup a domination game mode, but I am not exactly sure if I am setting up the SECTINFO lump correctly. I have looked at the SECTINFO on the ZDoom wiki aswell as on Zandronum's wiki and immediately got lost and confused. Would someone kindly review my test file and let me know what changes must be done along with the code snippet of necessary changes.
Domination_Test.7z
Thanks in advanced.
Nicholas Gautier

User avatar
Tiger
Retired Staff / Community Team Member
Posts: 381
Joined: Thu May 31, 2012 6:21 am
Location: United States
Contact:

Re: SECTINFO: Need Review

#2

Post by Tiger » Mon May 30, 2016 11:48 am

I was able to find some useful information about the SECTINFO lump on the ZDaemon forums, mainly on "The New SECTINFO Lump - What it does and how to use it" topic. So based on the information I gathered from that post alone, I removed the 'base0' and the 'names' properties. So in order to use the SECTINFO lump for the Domination GameMode, I presume that all I really need is the 'Points' property?

Code: Select all

[MAP01]
points = {
	"Test Sector" = {1}
}
Nicholas Gautier

User avatar
Tiger
Retired Staff / Community Team Member
Posts: 381
Joined: Thu May 31, 2012 6:21 am
Location: United States
Contact:

Re: SECTINFO: Need Review

#3

Post by Tiger » Mon May 30, 2016 12:28 pm

I might have figured it out; I'll leave the posts here incase someone else needs them.

Going by the SkullTag version history log for 98D:

Code: Select all

+	- Extended the chat substitution by $location, the name of the current player position as specified by SECTINFO. [Torr Samaho]
In order to use this feature, you must have the 'names' property as well as the 'points'. Without the names property, you can't use the '$location' chat substitution, and without the points property - the Domination game mode is essentially useless.

Thus, I need to have the SECTINFO lump to have exactly this:

Code: Select all

[MAP01]
names = {
	"Test Sector" = {1}
}

points = {
	"Test Sector" = {1}
}
Nicholas Gautier

jwaffe
Forum Regular
Posts: 219
Joined: Sun Jun 03, 2012 11:45 pm
Location: Just beyond the line horizon

Re: SECTINFO: Need Review

#4

Post by jwaffe » Mon May 30, 2016 2:20 pm

Hi Tiger,

New SECTINFO code:

Code: Select all

[MAP01]
points =
{
  "Northwest" = {2},
  "Northeast" = {3},
  "Southwest" = {4},
  "Southeast" = {5}
}
- I've never used Names, MAPINFO isn't required for Domination, you just need these 8 lines in SECTINFO and the map data in your wad.
- The number in the brackets in SECTINFO is the sector INDEX, not the sector tag; tags are not used at all in Domination
- Remember to launch the game with +Domination true, or you could start the game, then type Domination True then Map Map01 to restart the map.
You do not have the required permissions to view the files attached to this post.
Image

User avatar
Combinebobnt
Retired Staff / Community Team Member
Posts: 1905
Joined: Mon Jun 04, 2012 3:37 am
Location: Earth
Contact:

Re: SECTINFO: Need Review

#5

Post by Combinebobnt » Mon May 30, 2016 2:39 pm

You don't need names for domination to work, only points. And yes the number is the sector number, NOT the sector tag.

Names just shows where they are in coopinfo, useful for showing if they are in the "blue base" or "center tunnel" or whatever. You will need to put like 500 sector numbers if your map has detail above greenwar level.

Also aligning the domination point names on the hud can quickly become a pain in the ass, prepare for a lot of testing.

User avatar
Tiger
Retired Staff / Community Team Member
Posts: 381
Joined: Thu May 31, 2012 6:21 am
Location: United States
Contact:

Re: SECTINFO: Need Review

#6

Post by Tiger » Mon May 30, 2016 7:23 pm

Hallo,
jwaffe wrote:- I've never used Names, MAPINFO isn't required for Domination, you just need these 8 lines in SECTINFO and the map data in your wad.
- The number in the brackets in SECTINFO is the sector INDEX, not the sector tag; tags are not used at all in Domination
Thanks for the feedback, so it looks like I was headed in the right direction in the end. Though, I needed the Sector index 1 to be the only sector reference to have that Point system :P

Combinebobnt wrote:You don't need names for domination to work, only points.
I tested this before I came to the conclusion that they are both necessary to fully support the Domination game mode. With just having the 'Points' property, the Hud message and the score board does infact contain the proper name of the referenced base sector, but the chat substitution will not work properly. In order to have the chat substitution to work, you will need to also include the 'Names' property aswell. However, you're right that the main functionality of the Domination game mode relies more on 'Points' property.
Combinebobnt wrote:Also aligning the domination point names on the hud can quickly become a pain in the ass, prepare for a lot of testing.
When I tested this out, - I didn't have to worry about the HUD at all; everything seems to be working out of the box for me, which is great! The only issue I have is that the Team HUD is overlapping the ZDoom HUD, I'll make a new ticket on this after I feel more rested.
Nicholas Gautier

Post Reply