ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[ASC] GetTeamScore(team)/SetTeamScore(team, value)

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Rejected Bugs
View previous topic :: View next topic  
Author Message
Maikl_Russia
has entered the game!


Joined: 18 Jul 2005
Location: RU

PostPosted: Fri Dec 04, 2015 8:13 pm    Post subject: [ASC] GetTeamScore(team)/SetTeamScore(team, value) Reply with quote

Simple test wad SetTeamScore_test.wad for TeamDM.

SetTeamScore must increase teamscore when player picks up soulsphere too. But teamscore not changed. Also SetTeamScore returns FALSE every time. Confused

Meanwhile GetTeamScore always returns 0.

May be I do something wrong... But can't understand - what exactly Question
Back to top
View user's profile Send private message
Zedek
has entered the game!


Joined: 10 Mar 2013
Location: Tijuana, México

PostPosted: Sat Dec 05, 2015 8:29 am    Post subject: Reply with quote

i'm not sure, but i think that zspecial.acs has the wrong values for zdaemon
I tested your wad, and indeed, nothing happens.

Then i edited my zspecial.acs and recompiled the code and it worked as it should.
Back to top
View user's profile Send private message
Krawa
There is a limit


Joined: 23 Nov 2008
Location: #SDA

PostPosted: Sat Dec 05, 2015 1:33 pm    Post subject: Reply with quote

I tested a bit and SetTeamScore works in ZD. What's not working (or working in a different way) is the return value of SetTeamScore.
I modified the test wad and it counts now (without checking if it was successful). SetTeamScore_test2.wad

Here a link to all ZDaemon ACS Extensions: http://www.zdaemon.org/?CMD=info&NAME=acs
There is also a link to zdaemon.acs

ZDaemon configuration for Doom Builder 2
Back to top
View user's profile Send private message Visit poster's website
Maikl_Russia
has entered the game!


Joined: 18 Jul 2005
Location: RU

PostPosted: Sat Dec 05, 2015 5:56 pm    Post subject: Reply with quote

Oh, damn... yes... There is disorder of these functions in zspecial.acs and zdaemon.acs.

In zspecial.acs:
Code:
   // ZDaemon's
   -19260:GetTeamScore(1),
   -19261:SetTeamScore(2),


In zdaemon.acs:
Code:
//   -19620:GetTeamScore(1),         //already defined in zspecial.acs
//   -19621:SetTeamScore(2),         //already defined in zspecial.acs


Numbers 2 and 6 are reversed. Correct values are in zdaemon.acs.

Thanx guys. Now all works fine. And the return value of SetTeamScore too. Smile

The problem is solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Rejected Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group