ZSDF optional page "names"

Moderator: GZDoom Developers

Post Reply
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

ZSDF optional page "names"

Post by Nash »

Currently, all references to pages are in integers. Consider the following script (sorry, it's a little long, but the full thing has to be shown to demonstrate my case). Don't have to follow and read the whole thing; I will explain in more detail after the code snippet.
Spoiler:
Currently, there are 7 pages. Every time I add pages in the middle, I now have to keep track and update every page number because the links would be off by now. As characters grow more complex with more rich dialog and choices, this is going to be a maintenance nightmare. So what I'm proposing is the optional ability to use strings to name the pages something more useful.

Code: Select all

conversation
{
    page
    {
        // Assigns a name to the current page
        pagename = <string>;

        // Name of page to jump to if all ifitem conditions are satisfied
        linkname = <string>; 

        choice
        {
            // Name of the next page.
            nextpagename = <string>; 
        }
    }
}
 
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: ZSDF optional page "names"

Post by Nash »

Sorry for the perceived impatience but I need a clear answer as soon as possible, as this is currently used for a large-scale commercial project, already in production. The amount of work here on the scripting/content side (from me) has the potential to blow up exponentially because of this limitation with using integers as page numbers.

Is there any chance of this even being considered, or will it be outright no'd because of breaking UDMF specifications or any non-code-related issue like that?

Going back to the first example, I added 2 new "greeting" pages (the NPC's greeting can change depending on whether they like you or not), and guess what? The entire conversation tree got completely obliterated because the page number references are no longer correct. Going through every page number to fix the links is clumsy, error-prone and non-intuitive. And this is only a simple test NPC with about 10 pages worth of dialogue!

I don't expect an immediate reply, feel free to take your time, but if this is not ever going to happen, then kindly shut this idea down soon, so that I do not waste my time trying to work with the Strife dialog system, and perhaps consider spending my time crafting a homebrew dialog system instead.

But to be honest, the Strife dialog system is already good enough for 95% of what my project needs so I'd rather not re-invent the wheel. Everything else about the built-in conversation menu is already perfect!
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ZSDF optional page "names"

Post by Graf Zahl »

Nash wrote:as this is currently used for a large-scale commercial project,

Thanks for that piece of info. This is not anywhere near the top of my list of things to do, so if you absolutely want it you may pay for it so I can shift priorities.
I am most certainly not diverting my spare time to do stuff where others may make money from and I don't.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: ZSDF optional page "names"

Post by Nash »

I apologize for the rude nature of the post, now that I re-read it, yes, it does look ridiculous. I haven't been running on enough sleep and I was excited to proceed with whatever is already available, then I discovered that adding dialogue pages forced me to go through the entire script to fix the page numbers. I might have gotten a little too frustrated and didn't word my post carefully, so, again, sorry about that. Did not mean to be rude.

That said, now that I think about this more, I think I can write an external editor that uses names for pages, and then it automatically outputs the ZSDF file automatically. Therefore, feel free to close this suggestion. Thanks and sorry again. :(
User avatar
Rachael
Posts: 13555
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: ZSDF optional page "names"

Post by Rachael »

Please allow me to remind you again: reports are useless on dev threads unless they need actual moderator action. Developers do not have access to the reports system and moderators cannot attach tags, so if something needs closed, simply request it in the topic.
User avatar
Rachael
Posts: 13555
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: ZSDF optional page "names"

Post by Rachael »

@ Graf: If I implement this feature, what do I have to do to ensure that the spec is up to date? Do I need to worry about standards for other ports since this is exclusively meant for ZSDF?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ZSDF optional page "names"

Post by Graf Zahl »

Rachael wrote:@ Graf: If I implement this feature, what do I have to do to ensure that the spec is up to date?
As this is a pretty big deviation from the standard I'd suggest a new namespace. Since Zandronum also uses ZSDF we cannot just make the spec incompatible.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”