Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Disable Computers from Leaderboard
Disable Computers from Leaderboard
May 13 2014, 12:36 pm
By: sethmachine  

May 13 2014, 12:36 pm sethmachine Post #1



Hi,

Is there a single, global, boolean variable that decides whether computer players are shown in leaderboards?

As a follow-up, when one disables computer players from leaderboards, how do conditions like "Highest Score" behave?

Suppose this happened:

1. Disable computers from leaderboards
2. Give Computer A a custom score of 100
3. Give Human Player 1 a custom score of 50

1. End scenario in victory for player with highest custom score

And the winner is?



None.

May 13 2014, 12:56 pm Roy Post #2

An artist's depiction of an Extended Unit Death

Quote from sethmachine
Is there a single, global, boolean variable that decides whether computer players are shown in leaderboards?
Not sure what you're asking for here, so here's a couple answers:

1) You can detect with EUDs if computers are disabled from the leaderboard, though I don't see why one would ever resort to that when you can keep track of it with a switch yourself.

2) Disabling computers from the leaderboard does more work than just hiding it from the current player's leaderboard display; in fact, it affects game state, which leads to your follow-up question.


Quote from sethmachine
As a follow-up, when one disables computer players from leaderboards, how do conditions like "Highest Score" behave?

Suppose this happened:

1. Disable computers from leaderboards
2. Give Computer A a custom score of 100
3. Give Human Player 1 a custom score of 50

1. End scenario in victory for player with highest custom score

And the winner is?
The winner is Player 1: by disabling the computer player from the leaderboard, its score is discluded from these calculations.
The winner is Computer A.

Post has been edited 2 time(s), last time on May 15 2014, 12:32 am by Roy. Reason: I'm committing extended unit seppuku now




May 13 2014, 6:49 pm sethmachine Post #3



If it affects the game state can it cause a desynch then?

e.g. a local memory condition flips the state each time.

But it would only matter if a condition actually used that data (e.g. highest score)? Otherwise it would stay synchronous?



None.

May 13 2014, 7:17 pm Roy Post #4

An artist's depiction of an Extended Unit Death

It causes a desync immediately. See the list of actions in the collapse box in this post: http://www.staredit.net/topic/14226/#304566

However, you're free to experiment with this for yourself if you believe it to be incorrect.

Post has been edited 1 time(s), last time on May 15 2014, 12:29 am by Roy. Reason: I was the opposite of right




May 14 2014, 6:28 am sethmachine Post #5



It causes a desynch immediately? So if I had a leaderboard cycled through by Fkeys, it would desynch once a player called the action "Disable use of computer players in leaderboard?"

If I use a local memory condition to set a player's deaths to some value (say by pressing an Fkey), but I never actually reference that value or use it for any computations, what does it matter if that variable is not synchronized?



None.

May 14 2014, 7:06 am Wormer Post #6



Quote from Roy
The winner is Player 1: by disabling the computer player from the leaderboard, its score is discluded from these calculations.
Never knew this one! It's exiting how you find out new SC quirks after years... this one is a good candidate for quirks and nuances, if it's not already there.

Quote from sethmachine
It causes a desynch immediately? So if I had a leaderboard cycled through by Fkeys, it would desynch once a player called the action "Disable use of computer players in leaderboard?"
It's a yes from what I read.

Quote from sethmachine
If I use a local memory condition to set a player's deaths to some value (say by pressing an Fkey), but I never actually reference that value or use it for any computations, what does it matter if that variable is not synchronized?
Unfortunatelly yes, deaths are indirectly synchronized from time to time. This won't be an instant desynch, but I had problems with this in the past. Eventually figured out it was deaths causing the problem. It's not logic but it's the way SC works.



Some.

May 15 2014, 12:28 am Roy Post #7

An artist's depiction of an Extended Unit Death

Well, I decided to fact-check myself on this, and apparently I'm 100% wrong about everything.

1) The conditions checking for highest/lowest are disjoint from the leaderboard, so regardless of whether or not you're enabling computers on the leaderboard, computers are considered in these conditions. In fact, there is no condition in SC that pertains to or relies on the leaderboard or its trigger actions.

2) Following this, I tested whether or not enabling computers on the leaderboard is a global action. It is not.

I have some posts to edit and people to yell at for this (mostly myself). Attached are the test maps I used for checking the above behaviors.

Attachments:
TestLeaderboardConditions.scx
Hits: 0 Size: 51.05kb
TestLeaderboardLocality.scx
Hits: 0 Size: 51.08kb




May 15 2014, 6:56 am Wormer Post #8



Okay, thanks alot for correction, but toggling computers leaderboard might have non-instant global effect like with deaths (though it's not really logic to think so).



Some.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: Lost_Angel, Roy, NudeRaider