Was there ever...
- DevilHunter
- Zandronum Tester
- Posts: 635
- Joined: Sun Jun 17, 2012 12:58 am
- Location: Alaska, USA
- Contact:
Was there ever...
Yea.. the Thread Subject sucks, but I kept running out of room. Anyhow, the question is.. Was there ever a thing coded in Skulltag/Zandro that display Team Wins?
I noticed TeamLMS was always coded to show Scores, but it never does. I know ST itself displays Wins by its default hud.. But I can't find the damn code, maybe its hardcoded I dunno.
I even went as far as putting TeamWins, or something similer in my hud for testing, but to no avail it don't work. If there was nothing in for it, maybe I should request it because.. The only way to check on Wins is by using the ST hud (somehow in xen's hud it displays when theres a winlimit) or looking a the scoreboard.
ATM, I'm just learning up on sbarinfo, and pretty much got a few good things going. This however, is just a fork in the road.
I noticed TeamLMS was always coded to show Scores, but it never does. I know ST itself displays Wins by its default hud.. But I can't find the damn code, maybe its hardcoded I dunno.
I even went as far as putting TeamWins, or something similer in my hud for testing, but to no avail it don't work. If there was nothing in for it, maybe I should request it because.. The only way to check on Wins is by using the ST hud (somehow in xen's hud it displays when theres a winlimit) or looking a the scoreboard.
ATM, I'm just learning up on sbarinfo, and pretty much got a few good things going. This however, is just a fork in the road.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: Was there ever...
AFAIR sbarinfo can't directly display wins, but the ACS functions BlueTeamScore/RedTeamScore/GetTeamScore should return the wins of a team in TLMS.
- DevilHunter
- Zandronum Tester
- Posts: 635
- Joined: Sun Jun 17, 2012 12:58 am
- Location: Alaska, USA
- Contact:
RE: Was there ever...
Well atm, It does not do anything. I have Frags: and Scores: showing when TeamLMS is the gamemode as seen here..
... And well, When either team makes a "Win".. the Counter for Scores never moves. And Yes, I'm using Red/Blue teams, putting Bots on the other end. (that shouldn't matter.. right?)
Here is two Screenshots... First one is from Skulltag, and the other is from Zandronum.
So.. I must be doing something wrong. Yet I look at the other HUD's out there, they all show TeamLMS under Scores.
Spoiler: Did this cause its alot of lines (Open)EDIT: Since you said ACS, does that mean, if I wanted a fully working TeamWins Display, it can never be played online, due to my hud needing ACS?
... And well, When either team makes a "Win".. the Counter for Scores never moves. And Yes, I'm using Red/Blue teams, putting Bots on the other end. (that shouldn't matter.. right?)
Here is two Screenshots... First one is from Skulltag, and the other is from Zandronum.
Spoiler: WARNING 1680x1050 (Open)As you can see, there is no Score to be seen. Instead, even though my team won.. (its hard playing bots on Nightmare lol), The scores still showed 0-0.
So.. I must be doing something wrong. Yet I look at the other HUD's out there, they all show TeamLMS under Scores.
Last edited by DevilHunter on Thu Jul 19, 2012 8:26 pm, edited 1 time in total.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: Was there ever...
No, you should be able to call the function in a CLIENTSIDE script, store its return value in a global ACS variable and draw the value of that variable with SBARINFO. I never tested this myself, so I can't guarantee that this works though. Blzut should know best, he wrote the SBARINFO code.DevilHunter wrote: EDIT: Since you said ACS, does that mean, if I wanted a fully working TeamWins Display, it can never be played online, due to my hud needing ACS?
- DevilHunter
- Zandronum Tester
- Posts: 635
- Joined: Sun Jun 17, 2012 12:58 am
- Location: Alaska, USA
- Contact:
RE: Was there ever...
Hmm, well I don't know much about all that stuff. Have to explain it to me, I'll look more into it later.
- DevilHunter
- Zandronum Tester
- Posts: 635
- Joined: Sun Jun 17, 2012 12:58 am
- Location: Alaska, USA
- Contact:
RE: Was there ever...
I know bumping is frowned apon but.. Seeing as there was new post...
I don't know jack about ACS, so if anyone could help me with this, please help. :\ I really like to see TeamWins being displayed.
I don't know jack about ACS, so if anyone could help me with this, please help. :\ I really like to see TeamWins being displayed.
RE: Was there ever...
Here is some ACS, you would need to load the ACS of course but:
Then in SBARINFO you do one of these:
Code: Select all
#include "zcommon.acs"
global int 99:BlueTScore;
global int 98:RedTScore;
#Define LoopTics 2
script 999 Open
{
BlueTScore = BlueTeamScore();
RedTScore = RedTeamScore();
Delay(LoopTics);
restart;
}
Code: Select all
DrawNumber 8, CONFONT, RED, GlobalVar 98, 20, 40
DrawNumber 8, CONFONT, BLUE, GlobalVar 99, 40, 40
Last edited by Llewellyn on Fri Jul 27, 2012 11:06 am, edited 1 time in total.
- DevilHunter
- Zandronum Tester
- Posts: 635
- Joined: Sun Jun 17, 2012 12:58 am
- Location: Alaska, USA
- Contact:
RE: Was there ever...
I have no clue what I'm doing wrong, but When I post those things into Slade, then try to Compile it says this...
You gots to remember.. I'm a newbie to acs
Code: Select all
Line 2 in file "D:\Doom Ports\ACC\ACS.acs" ...
D:\Doom Ports\ACC\ACS.acs:2: Missing colon in world variable declaration.
> global int 99:
> ^
D:\Doom Ports\ACC\ACS.acs:3: Missing colon in world variable declaration.
> global int 98:
> ^
D:\Doom Ports\ACC\ACS.acs:9: Function blueteamscore is used but not defined.
D:\Doom Ports\ACC\ACS.acs:10: Function redteamscore is used but not defined.
RE: Was there ever...
Any errors are my fault because its 6:48 am and I haven't slept all night... lemme look at what dumb thing I wrote...DevilHunter wrote: I have no clue what I'm doing wrong, but When I post those things into Slade, then try to Compile it says this...
You gots to remember.. I'm a newbie to acsCode: Select all
Line 2 in file "D:\Doom Ports\ACC\ACS.acs" ... D:\Doom Ports\ACC\ACS.acs:2: Missing colon in world variable declaration. > global int 99: > ^ D:\Doom Ports\ACC\ACS.acs:3: Missing colon in world variable declaration. > global int 98: > ^ D:\Doom Ports\ACC\ACS.acs:9: Function blueteamscore is used but not defined. D:\Doom Ports\ACC\ACS.acs:10: Function redteamscore is used but not defined.
Okay, turns out BlueTeamScore() and RedTeamScore() don't compile in ACC, you have to use BlueScore and RedScore, and that I for some reason did 99 and 98 instead of 9 and 8.
Code: Select all
#include "zcommon.acs"
global int 8:BlueTScore;
global int 9:RedTScore;
#Define LoopTics 2
script 999 Open
{
BlueTScore = BlueScore();
RedTScore = RedScore();
Delay(LoopTics);
restart;
}
Last edited by Llewellyn on Fri Jul 27, 2012 11:53 am, edited 1 time in total.
- DevilHunter
- Zandronum Tester
- Posts: 635
- Joined: Sun Jun 17, 2012 12:58 am
- Location: Alaska, USA
- Contact:
RE: Was there ever...
Eh.. I dunno what im doing wrong.. Now I'm getting...
I will pm you the wad, and see if you can figure it out.
Edit: ok I got it fixed.. However, I came to figure out there is a display of "wins" when you set cl_stfullscreenhud to False. It does overlap the Frags Text.
Thanks again Llewellyn :p
EDIT 2: also due to the hud having acs now.. It can't be played online.. That sucks really.. Would be nice if Zandronum would allow skins/huds to have ACS.. and Decorate.
Code: Select all
execution can not continue
Script error, "XenHud-V4CTWTest.pk3:sbarinfo" line 143:
Expected "," but got identifier 'DrawNumber' instead.
Edit: ok I got it fixed.. However, I came to figure out there is a display of "wins" when you set cl_stfullscreenhud to False. It does overlap the Frags Text.
Thanks again Llewellyn :p
EDIT 2: also due to the hud having acs now.. It can't be played online.. That sucks really.. Would be nice if Zandronum would allow skins/huds to have ACS.. and Decorate.
Last edited by DevilHunter on Sat Jul 28, 2012 3:52 am, edited 1 time in total.