ZScript and its impact on SBARINFO

Here, developers communicate stuff that does not go onto the main News section or the front page of the site.
[Dev Blog] [Development Builds] [Git Change Log]

Moderator: GZDoom Developers

Re: ZScript and its impact on SBARINFO

Postby Major Cooke » Sat Jan 14, 2017 7:20 am

I am expecting you'll be doing it entirely your way -- a good thing too. I'm loving what we have so far for zscript. I'm just curious how it'll look like, though I reckon you don't have any plans down for it yet until after you start on it.
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: ZScript and its impact on SBARINFO

Postby ibm5155 » Sat Jan 14, 2017 8:09 am

To be honest I never liked and used sbar, I always make my hud with acs, its simple and it works just fine.


Maybe if sbar could be just pure acs I'd be happy ( but idc with some extra functions to scale stuff correctly and maybe some new types of script that are executed when you are viewing a specific class name
User avatar
ibm5155
Just Spooky
 
Joined: 20 Jul 2011

Re: ZScript and its impact on SBARINFO

Postby Graf Zahl » Sat Jan 14, 2017 8:25 am

ibm5155 wrote:its simple and it works just fine.


It's not simple and it doesn't work fine. ACS huds provide a suboptimal user experience because they are not part of normal engine flow.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: ZScript and its impact on SBARINFO

Postby Enjay » Sat Jan 14, 2017 8:44 am

I have found SBARINFO useful and produced some HUDs that I'm happy with and, clearly, some people have done some very advanced stuff with it. However, I have always found that it felt "non-standard". There's just something about the syntax and the way it hangs together that makes it feel unlike most of the other control lumps in ZDoom. So it would be nice to have a system that felt like a natural extension of the other systems rather than a stand-alone thing that you have to learn independently to the other ways of doing things.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: ZScript and its impact on SBARINFO

Postby Nash » Sat Jan 14, 2017 9:35 am

SBARINFO is/was perfect if you didn't mind sticking to a preset template or design... but if you wanted to do anything more personalized or to fit a certain look/aesthetic (like animated stuff, non-standard positioning, what-have-you), ACS and HudMessage abuse-fuckery was more preferable.

Hopefully with full scriptification of the status bar and 2D stuff, finally authors can do things the correct and elegant way, and have as much power as they'd need.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: ZScript and its impact on SBARINFO

Postby HavoX » Sat Jan 14, 2017 11:18 am

Does that mean I'll have to use ACS for custom HUDs in the meantime?* :-P

All joking aside, I can live with SBARINFO being replaced. Personally, it was a hell of a mess to deal with anyway.

*(or will that method become deprecated as well?)
HavoX
I don't post as often as I used to...
 
Joined: 11 Apr 2012
Location: St. Louis, MO

Re: ZScript and its impact on SBARINFO

Postby Major Cooke » Sat Jan 14, 2017 12:30 pm

Well, Graf is going to make HudMessage available from ACS sometime later down the road.
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: ZScript and its impact on SBARINFO

Postby Enjay » Sat Jan 14, 2017 12:46 pm

Some sort of improvement/alternative to the HUDMessage syntax would be nice too. I have to check the docs almost every time I use HUDMessage.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: ZScript and its impact on SBARINFO

Postby Graf Zahl » Sat Jan 14, 2017 1:39 pm

The HUDMessage stuff as implemented needs to be dumped in the deepest bowels of hell, it's the epitome of insanity. I hope I can figure out what to do with it later.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: ZScript and its impact on SBARINFO

Postby Major Cooke » Sat Jan 14, 2017 1:55 pm

Wouldn't be surprised if you actually made it part of the new ZSCRIPTBAR capabilities since that's where it seems most likely to belong.
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: ZScript and its impact on SBARINFO

Postby Blzut3 » Sat Jan 14, 2017 1:59 pm

For what it's worth, the plan from the beginning was to replace it with ZScript when the time came. For those looking for the simplicity offered it would be easy enough to make a library with a similar feature set.

I'm curious on how you would even attack cleaning the parser since I haven't had a whole lot of success on figuring that out, and I have thought about it quite a bit. I do have something in my git stash that simplified parsing of conditionals a little (recursion vs looping), which while a little more structured doesn't change much overall. I really didn't see SBarInfo being the long term solution that it became and it unfortunately shows.
Blzut3
Pronounced: B-l-zut
 
 
 
Joined: 24 Nov 2004

Re: ZScript and its impact on SBARINFO

Postby Graf Zahl » Sat Jan 14, 2017 2:25 pm

No idea yet, but I guess the best way would be prototyping the various commands and run them through a generic parser, something like the property parser for DECORATE.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: ZScript and its impact on SBARINFO

Postby jpalomo » Sat Jan 14, 2017 8:27 pm

Yes please! I'd like to stop using ACS for my HUDs because SBARINFO doesn't have the features I need.
User avatar
jpalomo
 
Joined: 17 May 2010

Re: ZScript and its impact on SBARINFO

Postby Kinsie » Sun Jan 15, 2017 12:31 am

Judging by the more recent replies to this thread, I'm looking forward to every mod that uses SBARINFO simultaneously breaking as one when the parser is inevitably taken to pasture.
User avatar
Kinsie
A Concept Utterly Obsolete
 
Joined: 22 Oct 2004
Location: MAP33
Discord: Find Me...
Twitch ID: thekinsie

Re: ZScript and its impact on SBARINFO

Postby kodi » Sun Jan 15, 2017 12:53 pm

Graf Zahl wrote:The HUDMessage stuff as implemented needs to be dumped in the deepest bowels of hell, it's the epitome of insanity. I hope I can figure out what to do with it later.

You have no idea how good this is to hear. I don't care if it'll take a long time, just that it's happening at some point is a huge relief.
User avatar
kodi
Proscrastinator
 
 
 
Joined: 06 May 2013

PreviousNext

Return to Developer Blog

Who is online

Users browsing this forum: No registered users and 1 guest