It is currently Wed Sep 08, 2010 5:32 pm

All times are UTC - 6 hours







Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Fri Oct 02, 2009 10:25 pm 
Offline
User avatar
Skullstuff Reviewer

Joined: Sun Nov 26, 2006 2:24 pm
Posts: 2062
Location: D.C.
In addition to the anti-mong features that Rive advertised, 98a contains a ton of new additions that enable mappers to do new things in their mods! Here are two to get you started:

SBARINFO

SBARINFO allows you to create completely new HUDs that display whatever you want. The possibilities are (nearly) endless! Just work with SBARINFO, and you'll be able to create something like this...

[Reveal] Spoiler: Large Island HUD screenshot
Image


Return Scripts

Return scripts allow for more flexibility with Hub systems by allowing for certain scripts to only be executed when a player returns to the hub. Just create the script as usual, and set the type to RETURN, and it will only activate when you return to the hub map; no more requiring workarounds to do the same thing!


That's it for preview #3! There may not be much to say, but these two additions are quite helpful for projects.

_________________
Code:
<%Ralphis> Eruanna I like your assertive attitude
<%Ralphis> even if I think you're wrong, it's kind of sexy


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Fri Oct 02, 2009 11:26 pm 
Offline

Joined: Wed Sep 23, 2009 8:20 pm
Posts: 10
Wow, with these new features I can work on some projects I've been slacking on. Can't wait for the release!


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 12:42 am 
Chaingun Turret activated
Offline
User avatar

Joined: Mon Oct 27, 2008 4:07 pm
Posts: 665
Location: Fresno,CA
The ACS HUD is confusing, and I couldn't get SBARINFO working, but now I have the reason!

_________________
Projects:
(Stalled)AOW2 Omega
NLOWZSP
(Slow) Battlegrounds
Skulltag "Refreshment" mod
(Stalled) Jailbreak (continuation from latest version)

Green = self-projects


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 8:29 am 
Snake logan.
Offline
User avatar

Joined: Wed Nov 26, 2008 7:05 pm
Posts: 445

Clan: stay frosty Chaos League
*claps happily*
BRAVO! This is definitely a bigger update than 2, but well, I can safely say this is going to be the beginning of something pretty.

_________________
Projects: None
Quote from Cutman:
"And this is exactly why authors should stick to what they think is working best, and ignore unnecessary rants about detail (which could be summed up in a few words rather than a few lines)."


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 8:30 am 
SwordGrunt
Offline
User avatar

Joined: Sat Apr 25, 2009 8:28 pm
Posts: 1226
Location: Brazil
Cool, I never got how SBARINFO worked anyway, but I might try to learn (and to learn about PolyObjects as well... :()

_________________
Visit Game Ground, my gaming forum!


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 9:10 am 
Offline
User avatar

Joined: Wed Jul 16, 2008 1:57 am
Posts: 1259
Location: Ukraine

Clan: Demon RiderZ
Catman wrote:
Return Scripts

Return scripts allow for more flexibility with Hub systems by allowing for certain scripts to only be executed when a player returns to the hub. Just create the script as usual, and set the type to RETURN, and it will only activate when you return to the hub map; no more requiring workarounds to do the same thing!


That's it for preview #3! There may not be much to say, but these two additions are quite helpful for projects.


Does it mean that new ACC version will be released, or is the change included in latest SVN already?

_________________
IG name: <DRZ> HetOR
Currently working on st2irc


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 9:15 am 
Metal forever!
Offline
User avatar
Lead Developer

Joined: Fri Jan 12, 2007 2:40 am
Posts: 5447
Location: Germany

Clan: SkullTag
/-]etor wrote:
Does it mean that new ACC version will be released, or is the change included in latest SVN already?

These scripts are inherited from the ZDoom updates and are already supported by the ZDoom ACC for quite a while.


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 9:57 am 
Chaingun Turret activated
Offline
User avatar

Joined: Mon Oct 27, 2008 4:07 pm
Posts: 665
Location: Fresno,CA
Guigui wrote:
Cool, I never got how SBARINFO worked anyway, but I might try to learn (and to learn about PolyObjects as well... :()


I could help with that.

_________________
Projects:
(Stalled)AOW2 Omega
NLOWZSP
(Slow) Battlegrounds
Skulltag "Refreshment" mod
(Stalled) Jailbreak (continuation from latest version)

Green = self-projects


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 11:59 am 
The emcee funcrusher...
Offline
User avatar

Joined: Mon Mar 22, 2004 1:31 am
Posts: 492
Location: FUNCRUSHER+

Clan: Unidoom
What Catman did not mention is that SBARINFO is not sanity-checked by the server. So, if you put a WAD/PK3 with your own custom status bar in the skins folder, you can essentially create your own custom status bars for Skulltag that work...well...on any server.

Here is a quick proof of concept that I came up with a few months ago:
[Reveal] Spoiler: My HUD
Image


You can grab it here, if you want to test it out yourself with the latest 98a beta:

http://dl.getdropbox.com/u/1446507/doom/maxbar_a1.zip

With SBARINFO you can also put arbitrary graphics anywhere on the screen you like, so you can ALSO create a multicolored custom crosshair to go with your HUD as long as you're fine without the 'crosshair changes color' feature.

_________________
FUNCRUSHER+ NEW JERSEY
The home of DUEL32 and Private CTF.

#skullrant: The Forum
Code:
<&Mr_Person> it's fucking doom
<&Mr_Person> if you don't like what someone is doing maybe you should try shooting at them


Last edited by AlexMax on Sat Oct 03, 2009 12:06 pm, edited 1 time in total.

   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 12:00 pm 
is a somber hippie
Offline
User avatar

Joined: Fri Feb 06, 2009 11:48 pm
Posts: 89
Finally! My status bar for Death matches and LMS wads can be completed!

[Reveal] Spoiler: My status bar!
Image


When in versus mode, the "kills" ticker gets turned into a "FRAG!" ticker.

_________________
Like my avatar? Check out my deviantART!


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 12:05 pm 
Let's have a blast!
Online
User avatar

Joined: Sun Dec 21, 2003 12:01 pm
Posts: 3091
Location: Friday Night Fragfest

Clan: UniDoom
minigunner wrote:
The ACS HUD is confusing, and I couldn't get SBARINFO working, but now I have the reason!


Note that ACS huds are tricky to get to work online. It's why I <3 SBARINFO

_________________


[Reveal] Spoiler:
<ViciousPariah> I was about to play solo
<ViciousPariah> unless some noobs want to play
<Xenaero> did i hear the n word


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 12:05 pm 
Some people are just afraid of the..
Offline
User avatar
Skulltag.net Operator

Joined: Wed Apr 04, 2007 11:35 am
Posts: 1670
Location: Hell
While we are on the subject... Is it possible that someone already made, or able to make the statusbar text change from Blue, to Green, to Yellow, to Red like in the boom ports??

_________________
How to Register and Auto-Identify on IRC
My Xfire
My MediaFire
Doom Connector 3 Is back!!
SuperSkulltag (still in teh works)
BOOM HEADSHOT!!

[Reveal] Spoiler: The Truth Comes out :p
[02:44:24] [@Tiger] This is why I don't play AOW2 with these two girls, because I know I would be either raging or crying at the end of the game.


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 12:10 pm 
The emcee funcrusher...
Offline
User avatar

Joined: Mon Mar 22, 2004 1:31 am
Posts: 492
Location: FUNCRUSHER+

Clan: Unidoom
The_Devil_Hunter wrote:
While we are on the subject... Is it possible that someone already made, or able to make the statusbar text change from Blue, to Green, to Yellow, to Red like in the boom ports??


Last time I checked, this was not possible. In order to do this, you need to be able to do a conditional based on how much health or armor you have left, and then draw numbers (and the percent sign) colored according to the value, and SBARINFO as it stands does not support this.

It also doesn't support conditionals based on what armor type was last picked up either, (though it DOES support drawing a picture of the last armor type you picked up...wtf) which would be useful for armor.

You're welcome to ask Randy or Graf to add it upstream so Skulltag will get it eventually. Good luck with that though.

_________________
FUNCRUSHER+ NEW JERSEY
The home of DUEL32 and Private CTF.

#skullrant: The Forum
Code:
<&Mr_Person> it's fucking doom
<&Mr_Person> if you don't like what someone is doing maybe you should try shooting at them


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 1:58 pm 
Some people are just afraid of the..
Offline
User avatar
Skulltag.net Operator

Joined: Wed Apr 04, 2007 11:35 am
Posts: 1670
Location: Hell
AlexMax wrote:
The_Devil_Hunter wrote:
While we are on the subject... Is it possible that someone already made, or able to make the statusbar text change from Blue, to Green, to Yellow, to Red like in the boom ports??


Last time I checked, this was not possible. In order to do this, you need to be able to do a conditional based on how much health or armor you have left, and then draw numbers (and the percent sign) colored according to the value, and SBARINFO as it stands does not support this.

It also doesn't support conditionals based on what armor type was last picked up either, (though it DOES support drawing a picture of the last armor type you picked up...wtf) which would be useful for armor.

You're welcome to ask Randy or Graf to add it upstream so Skulltag will get it eventually. Good luck with that though.


Eh, yea... Seeing as I don't roam on the Zdoom Forums as much. I would just like to have something that would aid me, and seeing how much health/ammo/armor I have. Then again, I just now started to play with the statusbar more. heh.

_________________
How to Register and Auto-Identify on IRC
My Xfire
My MediaFire
Doom Connector 3 Is back!!
SuperSkulltag (still in teh works)
BOOM HEADSHOT!!

[Reveal] Spoiler: The Truth Comes out :p
[02:44:24] [@Tiger] This is why I don't play AOW2 with these two girls, because I know I would be either raging or crying at the end of the game.


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sat Oct 03, 2009 3:04 pm 
Offline

Joined: Wed May 16, 2007 7:42 am
Posts: 1279
AlexMax wrote:
It also doesn't support conditionals based on what armor type was last picked up either, (though it DOES support drawing a picture of the last armor type you picked up...wtf) which would be useful for armor.

That's for a simple reason. Use the "printinv" console command to know what's in your player inventory. You'll notice you have a BasicArmor (unless you play Hexen, then you'll have a HexenArmor). Pick up a GreenArmor, try printinv again, do you have a GreenArmor? No. You still have a BasicArmor. Pick up a BlueArmor, same thing -- you still only have a BasicArmor.

What's happening is that when you use an armor item, the BasicArmor in your inventory gets its properties updated to that of the armor you're using. The only time an armor is in your inventory is when it's an armor that can be stored in the inventory, like the Strife armors. (The armors from Doom and Heretic are automatically used when picked up.) The damage absorption system simply look for your BasicArmor (or HexenArmor when playing Hexen).

When I added the ACS and DECORATE commands dealing with armor, I did it by adding a new property to BasicArmor to keep track of the used armor's class name, a property that, like the icon, the savepercent, maxsavepercent, amount, maxamount, etc. is taken from the armor when it's used.

Anyway, the reason SBARINFO supports displaying the icon of the last armor you picked up used is simply that it doesn't display the icon of the last armor you used... It displays the icon of your BasicArmor. Nothing more, nothing less.

_________________
esselfortium wrote:
Also, learning to spell is a more important life skill than learning how to use 3D floors.


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sun Oct 04, 2009 8:53 am 
Let's have a blast!
Online
User avatar

Joined: Sun Dec 21, 2003 12:01 pm
Posts: 3091
Location: Friday Night Fragfest

Clan: UniDoom
The_Devil_Hunter wrote:
While we are on the subject... Is it possible that someone already made, or able to make the statusbar text change from Blue, to Green, to Yellow, to Red like in the boom ports??


It's possible. I've done it. Problem is, though, is that you have to use a global ACS script to calculate the amount of health/ammo/armor the player currently has (ammo is a bitch since you have to do it per-weapon) and in that script you alter the player's inventory, giving or taking away dummy inventory items such as ArmorCheck, AmmoCheck, HealthCheck, which you then check for in SBARINFO and render the properly colored digits.

It's way more pain than it's worth, has bugs, and since it's using ACS, you can't put it in your skins folder for use anywhere.

You could probably get around the armor and health parts, but weapons definitely need to be checked with ACS, since ammo amounts are dynamic per weapon. Like if I had a shotgun, I'd want the shell count to turn gold instead of green at the halfway point (25). Same with bullets (100) and plasma (150). Although I haven't tried nesting inventory checks in SBARINFO inside weapon checks...Hmm...

EDIT: Ah, nevermind. Don't need ACS at all.

_________________


[Reveal] Spoiler:
<ViciousPariah> I was about to play solo
<ViciousPariah> unless some noobs want to play
<Xenaero> did i hear the n word


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sun Oct 04, 2009 8:56 am 
Offline
User avatar

Joined: Wed Jul 16, 2008 1:57 am
Posts: 1259
Location: Ukraine

Clan: Demon RiderZ
Torr Samaho wrote:
/-]etor wrote:
Does it mean that new ACC version will be released, or is the change included in latest SVN already?

These scripts are inherited from the ZDoom updates and are already supported by the ZDoom ACC for quite a while.


Ah, that's good, so I don't have to recompile my ACC.

_________________
IG name: <DRZ> HetOR
Currently working on st2irc


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sun Oct 04, 2009 8:57 am 
Let's have a blast!
Online
User avatar

Joined: Sun Dec 21, 2003 12:01 pm
Posts: 3091
Location: Friday Night Fragfest

Clan: UniDoom
/-]etor wrote:
Torr Samaho wrote:
/-]etor wrote:
Does it mean that new ACC version will be released, or is the change included in latest SVN already?

These scripts are inherited from the ZDoom updates and are already supported by the ZDoom ACC for quite a while.


Ah, that's good, so I don't have to recompile my ACC.


You never had to in the first place, because I already did it for you! <3

_________________


[Reveal] Spoiler:
<ViciousPariah> I was about to play solo
<ViciousPariah> unless some noobs want to play
<Xenaero> did i hear the n word


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Sun Oct 04, 2009 9:16 am 
Offline
User avatar

Joined: Wed Jul 16, 2008 1:57 am
Posts: 1259
Location: Ukraine

Clan: Demon RiderZ
That's a windows binary, and I'm on Linux.

_________________
IG name: <DRZ> HetOR
Currently working on st2irc


   
 
 Post subject: Re: 98a preview #3: SBARINFO and RETURN scripts
PostPosted: Mon Oct 05, 2009 1:53 pm 
Damnit, i really cant wait for 98a. It all looks really awesome, good job guys!


   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours



Who is online

Users browsing this forum: Medic, Xenaero and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB phpBB Group, Skulltag Team
Karma functions powered by Karma MOD © 2007, 2009 m157y
[ Time : 0.780s | 15 Queries | GZIP : Off ]