Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Protecting Mac Players
Protecting Mac Players
Apr 4 2011, 7:58 am
By: jjf28  

Apr 4 2011, 7:58 am jjf28 Post #1

Cartography Artisan

Is their any simple way to detect if a player is using Mac without either platforms dysncing?
ex: a overlapping memory location that has constant memory value for mac but one windows never reacches

Would ideally want to detect this in the first 3 seconds


Just some notes on my situation...
- You can play through without the EUD's but its uses are important
- Refund energy for "Swarm Glitches", previously a major problem threatening balance of the map
- Drop players when banned (Using text detection for "B A N N E D"), important for lag finding, common stay alive hack
- Refund Energy applys to one player olny, so you can play other slots just fine
- As none of the "Pro" players run Macs, the benifits to most players of the map outwiegh desyncs

Post has been edited 2 time(s), last time on Apr 4 2011, 10:29 pm by jjf28.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 4 2011, 8:19 am Roy Post #2

An artist's depiction of an Extended Unit Death

No, I don't believe you can prevent desync from Mac/PC players when using EUDs unless your EUDs are handled locally (i.e. display text), in which case, it will run for PC users and do nothing for Mac users.

However, if your EUD triggers are running global actions (i.e. creating units), then it's going to run for PC players and fail for Mac players, causing a desync. I don't believe there's any global address you can check to determine a player's OS, and any local-dependent checks won't help at all.

A possible solution to this, if you have the time and resources, is to write the triggers for both PC and Mac computers. There is a chance that a trigger may misfire because of these duplications checking various addresses, but it would be your best bet.

On a side note, somebody could spoof their name as "B A N N E D" and drop everyone by talking. When I drop via display text, I like to use a series of colors (which would show up as a blank line to players). I doubt someone would spoof as "B A N N E D," but it's something to think about.




Apr 4 2011, 8:31 am O)FaRTy1billion[MM] Post #3

👻 👾 👽 💪

You can make EUDs for both platforms. You just have to make the action Set Switch, and then if the switch is set at the end of the trigger cycle (like a p8 computer) do the actions.

Without EUDs for both platforms, anyone on a mac using EUDs will desync.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Apr 4 2011, 8:38 am jjf28 Post #4

Cartography Artisan

From that i gather that you can have either platform check the address, but as long as it doesen't run a action it wont desync the player?

edit: seems i may have miscommunicated, am olny using EUD Conditions

Post has been edited 1 time(s), last time on Apr 4 2011, 8:45 am by jjf28.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 4 2011, 1:35 pm rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

Trigger : detect if playing on mac
*some eud condition detecting mac*
-
set switch "mac"

Trigger: generic eud trigger
switch "mac" is not set
*some eud condition*
-
set switch eud1

Trigger: mac generic eud trigger
switch "mac" is set
*the same eud condition, but for mac*
-
set switch eud1

Trigger: actual eud trigger owned by player 8, or have it run on the next trigger run
switch eud1 is set
-
do the action

You'll need 3 triggers for each and one trigger to detect mac players, which only runs once at the beginning of the game. You'll notice the first 2 eud triggers only store local variables (switches) and the last one uses the (hopefully) identical variables to run the action, so nobody runs a desyncing action on just one computer.



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

Apr 4 2011, 6:16 pm jjf28 Post #6

Cartography Artisan

Anyone per-chance know a map currently using EUD's for Mac?



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 4 2011, 6:51 pm DevliN Post #7

OVERWATCH STATUS GO

I was under the impression that EUDs didn't work on Macs. Is this not the case? Or maybe I'm just thinking of all the extra player effects that didn't work on them.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

Apr 4 2011, 7:22 pm Roy Post #8

An artist's depiction of an Extended Unit Death

EUDs work for Macs in the same way as they work for PCs; by overflowing, you can access memory you couldn't normally access. The problem is that the Mac version of SC's memory is not structured the same as the PC version, so an EUD designed for PC would be reading something completely different for Mac.

For example, an EUD could be checking the HP of a unit on a PC, but for a Mac, that same EUD condition would be checking something else, like screen position.




Apr 4 2011, 9:43 pm iCCup.xboi209 Post #9



Well I had an idea that you have a square of dirt with a p12 flag on it and another square of dirt with another flag. Then use eud conditions to detect that if the player selected one flag, it means they have a windows machine and vise versa. But in 3 seconds, I don't think this option is a good one.



None.

Apr 4 2011, 11:38 pm Roy Post #10

An artist's depiction of an Extended Unit Death

You can determine it instantly by checking a constant address for PC where the Mac address holds some different value. Then use the method Farty/rockz mentioned.




Apr 5 2011, 2:08 am jjf28 Post #11

Cartography Artisan

yea yea, methodology simple enough, its a memory location i'm really fishin for

will go to visit my friend with a Mac soon, anyone know of a ram reader for Macs, or if not, if Macs run C++?



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 5 2011, 2:19 am jjf28 Post #12

Cartography Artisan

if i can't find a single constant condition memory, will probably do something like detect abstract health amounts in 3 invincible units in the map locally, if they're correct the rest of the EUD's run



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 5 2011, 4:03 am Heinermann Post #13

SDE, BWAPI owner, hacker.

There are thousands of constants that don't change. Don't make it more complicated than it needs to be.




Apr 5 2011, 5:16 am jjf28 Post #14

Cartography Artisan

mm, predicting whether macs can hit it is more difficult

Post has been edited 1 time(s), last time on Apr 5 2011, 5:29 am by jjf28.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
Please log in to shout.


Members Online: Oh_Man, Roy