Was there ever...

General discussion of the port and Doom-related chat.
Post Reply
User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

Was there ever...

#1

Post by DevilHunter » Tue Jul 17, 2012 3:04 pm

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.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Was there ever...

#2

Post by Torr Samaho » Tue Jul 17, 2012 7:56 pm

AFAIR sbarinfo can't directly display wins, but the ACS functions BlueTeamScore/RedTeamScore/GetTeamScore should return the wins of a team in TLMS.

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Was there ever...

#3

Post by DevilHunter » Thu Jul 19, 2012 8:24 pm

Well atm, It does not do anything. I have Frags: and Scores: showing when TeamLMS is the gamemode as seen here..
Spoiler: Did this cause its alot of lines (Open)

Code: Select all

// FRAGS - Deathmatch, Teamgame
    	gamemode deathmatch, teamgame
    {
        DrawNumber 3, SMALLFONT, orange, frags, 65, -40;
		DrawString SMALLFONT, red, "Frags:", 45, -40;
	}

// SCORES - CTF, OneFlagCTF, Skulltag, TeamPossession, TeamLMS
        gamemode ctf, oneflagctf, skulltag, teampossession, teamlms
    {
		DrawNumber 1, SMALLFONT, brick, teamscore "red", -35, -40;
		DrawString SMALLFONT, white, "-", -45, -40;
		DrawNumber 1, SMALLFONT, lightblue, teamscore "blue", -53, -40;
		DrawString SMALLFONT, red, "Scores:", -68, -40;
	}
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)
This one is from Skulltag.
Image

This one is from Zandronum.
Image
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.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Was there ever...

#4

Post by Torr Samaho » Fri Jul 20, 2012 6:36 am

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?
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.

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Was there ever...

#5

Post by DevilHunter » Fri Jul 20, 2012 6:40 am

Hmm, well I don't know much about all that stuff. Have to explain it to me, I'll look more into it later.

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Was there ever...

#6

Post by DevilHunter » Fri Jul 27, 2012 10:06 am

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.

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: Was there ever...

#7

Post by Llewellyn » Fri Jul 27, 2012 11:05 am

Here is some ACS, you would need to load the ACS of course but:

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;
}
Then in SBARINFO you do one of these:

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.

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Was there ever...

#8

Post by DevilHunter » Fri Jul 27, 2012 11:41 am

I have no clue what I'm doing wrong, but When I post those things into Slade, then try to Compile it says this...

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.
You gots to remember.. I'm a newbie to acs

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: Was there ever...

#9

Post by Llewellyn » Fri Jul 27, 2012 11:49 am

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...

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.
You gots to remember.. I'm a newbie to acs
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...
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;
}
Remember to change the 98 and 99 in the sbarinfo to 9 and 8.
Last edited by Llewellyn on Fri Jul 27, 2012 11:53 am, edited 1 time in total.

User avatar
DevilHunter
Zandronum Tester
Posts: 635
Joined: Sun Jun 17, 2012 12:58 am
Location: Alaska, USA
Contact:

RE: Was there ever...

#10

Post by DevilHunter » Fri Jul 27, 2012 12:29 pm

Eh.. I dunno what im doing wrong.. Now I'm getting...

Code: Select all

execution can not continue

Script error, "XenHud-V4CTWTest.pk3:sbarinfo" line 143:
Expected "," but got identifier 'DrawNumber' instead.
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.
Last edited by DevilHunter on Sat Jul 28, 2012 3:52 am, edited 1 time in total.

Post Reply