Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: A leaderboard shows supply how players see?
A leaderboard shows supply how players see?
May 14 2010, 12:33 am
By: Apocalypse535  

May 14 2010, 12:33 am Apocalypse535 Post #1



my leaderboard for supply shows number of men. which leaderboard shows the supply used up and limit?

like 175/200

they did it in this map as an observer you see resources and supply of the players.

and i unprotected it to be looked at.

Attachments:
[AH v2.0] Python 1.3.scx
Hits: 2 Size: 65.75kb

Post has been edited 7 time(s), last time on Jul 1 2010, 8:32 pm by Apocalypse535.



None.

May 14 2010, 3:07 am Lanthanide Post #2



I'm at work so can't look at the maps. But there is no leaderboard that does this by default.

Most likely they are using the Custom leaderboard, and counting up all the units of each type a player has an adding the appropriate supply to the Custom Score, and then displaying that. They would do this for both units and supply buildings.

This would be quite tedious to implement from scratch, so the best bet would be to copy their triggers over to your map.

Eg, Player 1 commands exactly 1 Protoss Archon: Add 4 to custom score
Player 1 commands exactly 2 Protoss Archon: Add 8 to custom score
...
Player 1 commands exactly 50 Protoss Archon: Add 200 to custom score

Repeat triggers for all units for all races.

To get the total supply showing as / x on the leaderboard text, you would have triggers like:
Player 1 commands exactly 1 Protoss Pylon: Add 8 to Cave
Player 1 commands exactly 2 Protoss Pylon: Add 16 to Cave
...
Player 1 Commands at least 25 Protoss Pylon: Add 200 to Cave

Player 1 Commands at least 1 Terran Supply Depot: Add 8 to Cave
...

Then:
Player 1 Cave deaths exactly 8
Show Custom Leader board text "/8"
Player 1 Cave deaths exactly 16
Show Custom Leader board text "/16"
...
Player 1 Cave deaths at least 200
Show Custom Leader board text "/200"

Note that you would actually need to have 201 of these triggers for supply ranging from 0 to 200, because Zerg hatcheries give 1 supply, so odd values like 9, 10, 11, 12 etc are easily possible. Also Command Centers give 10 supply.

Note that this approach will give odd results for players controlling multiple races, eg Protoss who MC'd a drone/SCV, as you could get displays like 150/250, with the total supply coming from supply depots and pylons. So further trickiness could be considered to handle these cases, if you really cared.

Post has been edited 2 time(s), last time on May 14 2010, 3:16 am by Lanthanide.



None.

May 14 2010, 4:17 am rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

Explain to me via picture and/or paragraph on exactly how you know what both the resources of a specific player and supply of specific player are.

Right now, I only see resources.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

May 14 2010, 6:47 pm Cinolt Post #4



There's definitely EUDs going on in that map. Not sure exactly what it's detecting, though.



None.

May 14 2010, 8:36 pm rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

It's a bunch of antihacks. Since I can't reproduce what he's seeing, I can't help, though I might try to figure out how to view supply if unitID is signed.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jul 1 2010, 4:41 am Apocalypse535 Post #6



so no one knows the UED to see supply?



None.

Jul 1 2010, 8:37 am NudeRaider Post #7

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from Apocalypse535
so no one knows the UED to see supply?
Yes, I know the United Earth Directorate.

But if you want help you need to help us help you. If you ignore questions/requests there's not much we can do.
Quote from rockz
Explain to me via picture and/or paragraph on exactly how you know what both the resources of a specific player and supply of specific player are.

Right now, I only see resources.





Jul 2 2010, 12:56 am Apocalypse535 Post #8



i just tested the map and it doesnt show supply anymore...maybe it was a eud for a previous patch idk how old the map is..also it did show supply before but i guess it doesnt anymore.



None.

Jul 2 2010, 2:38 am Cinolt Post #9



Addresses (Potential / Current):
Zerg - 0x582144 / 0x582174
Terran - 0x5821D4 / 0x582204
Protoss - 0x582264 / 0x582294

They're int[12] arrays so it'd work nicely.

Kill table start - 0x5878A4

UnitID for Leaderboard is 2 bytes.

0x582144 - 0x5878A4 = -0x5760 / 48 = -466 = (in binary representation) 0xFE2E = 65070

However, Leaderboard (Kills) for most kills of UnitID: 65070 is not working. I'm only left to assume that the UnitID is unsigned. Leaderboard table for Control is after the supply table as well. Leaderboard for most points (I tried buildings) is before supplies, perhaps that can be overflowed in some way?

tl;dr: It's probably not possible.



None.

Jul 2 2010, 2:57 am Aristocrat Post #10



Quote from Apocalypse535
my leaderboard for supply shows number of men. which leaderboard shows the supply used up and limit?

like 175/200

they did it in this map as an observer you see resources and supply of the players.

and i unprotected it to be looked at.

Get Chaoslauncher.

Install OBSMode.

PROFIT.

There's a reason people don't bother making obs maps that do this: plugins for Chaos will do it for you.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:59 am]
NudeRaider -- *is
[05:17 am]
NudeRaider -- despite all its flaws the sound design its fantastic
[10:29 pm]
Oh_Man -- homeworld 3 = massive disappointment
[10:05 am]
Moose -- ya
[2024-5-14. : 5:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
[2024-5-12. : 8:44 pm]
l)ark_ssj9kevin -- Hi Brusilov
[2024-5-12. : 4:35 pm]
O)FaRTy1billion[MM] -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
my server that was hosting it died
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
Please log in to shout.


Members Online: kailynlrosario, Roy