Print a message to the console if GZDoom stuff is being used

Moderator: GZDoom Developers

Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Post by Gez »

What about something like a browser's useragent? A string constant that is equal to the name of the port, and a floating point constant for the version number.

Then mods could use script with pseudocode such as

Code: Select all

if (SOURCEPORTNAME == "GZDoom" && SOURCEPORTVERSION >= 1.024)
{
   print_relevant_message_or_do_other_relevant_stuff;
}
elseif // ZDoom
{
   print_relevant_message_or_do_other_relevant_stuff;
}
elseif // Skulltag
{
   print_relevant_message_or_do_other_relevant_stuff;
}
else
{
  crash;
}


Of course, something like that may already exist, I don't know. If so, what was the point of the feature request?
User avatar
rivecoder
Posts: 32
Joined: Thu Aug 31, 2006 7:55 pm
Location: Texas, USA

Post by rivecoder »

The version and engine name should already be in version.h as constants. The simplest route would be to detect this information and feed it to ACS. This might also be backwards-compatible.

This avoids the problem of actually detecting each unsupported feature and gives the map author freedom as to what to do - exit map, warp to alternate area, etc.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Except ACS doesn't do dynamic strings.
User avatar
rivecoder
Posts: 32
Joined: Thu Aug 31, 2006 7:55 pm
Location: Texas, USA

Post by rivecoder »

Oh, right. Forgive my ACS ignorance, it's been a while.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

I see this has already been [No]'d, but even being able to check what ZDoom version is running would be helpful.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

I think something like the Mac's Gestalt Manager would be far more useful than a version check. Then you could query for the specific features you're interested in without making the fallacy that features unique to one port will always be unique to it.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

A better option for sure, but the time involved in developing it sounds much more extensive, and the benefit is really for lazy people who don't read the docs. I wasn't sure any of the coders would want to put in that much effort.
User avatar
Macil
Posts: 2529
Joined: Mon Mar 22, 2004 7:00 pm
Preferred Pronouns: He/Him
Location: California, USA. Previously known as "Agent ME".
Contact:

Post by Macil »

A simple solution to 3d floors and someone running in zdoom - in an unavoidable area near the beginning, make a 3d floor 1 unit above the normal floor that looks just like it. And set a sector action for player hits floor to start a script telling the user to play in gzdoom in opengl.

EDIT: Portal didn't use 3d floors... I think I would've noticed them by now when I worked on adding in multiple portal guns for online?
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Agent ME wrote:EDIT: Portal didn't use 3d floors... I think I would've noticed them by now when I worked on adding in multiple portal guns for online?
Not the original demo map, no, but the one that is in development right now does.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”