Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Altering Unit Colors With EUDs Causes Desynchronization
Altering Unit Colors With EUDs Causes Desynchronization
Dec 1 2019, 6:52 am
By: TheSophomancer  

Dec 1 2019, 6:52 am TheSophomancer Post #1



Hey everyone,

I'm working on a defense map where a player's unit color changes depending on the main hero they select at the beginning of the game. Players choose heroes by mind-controlling the unit they wish to have, and then all of their units subsequently change color once mind control is cast. For example, if a player mind controls a dragoon hero, all of their units become blue. Also, just to clarify, I only want the player's unit color in-game to change, not the player's mini-map color (the map is team-based, so I want team 1's minimap color to always be red and team 2's minimap color always being blue, with the player's own units obviously showing up as green). The triggers for changing unit color that I'm currently using are simple and look like this:


Change Player Color to Blue
Players

  • Player 1
  • Conditions

  • Current player brings at least 1 (Dragoon hero) to anywhere
  • Actions

  • Modify memory at death table (string of important numbers that correlates with unit color that I looked up on Farty1billion's sweet database)



  • In single player (or when playing by myself online) these triggers work perfectly. Unfortunately, when I go online with other players desynchronization occurs and everyone gets dropped from the game. I've read up about EUDs (including Roy's extremely helpful topic here: http://www.staredit.net/topic/14226/#6) and understand that this has to do with local vs global addresses and actions, so I'm pretty sure that I'm being a n00b by using an unviable combination of local addresses and global actions. However, I'm pretty sure that what I'm trying to do is possible. Is there a way that I can configure my triggers to prevent desynchronization from occurring while achieving my desired effects? For example, if I make the trigger apply for all players instead of individual players, would that solve the issue?

    By the way, I'm aware that the EPD editor exists which can (theoretically) change player colors within the game. However, when I tried to do this with the EPD editor, I got an "invalid scenario file" error in Starcraft. Additionally, I would prefer to solve this issue using SCMDraft 2's regular trigger editor and the use of manual EUDs/memory modification, as I want more experience as to how global/local addresses/actions work and manual triggering in general.

    Thanks for checking out this topic, and any suggestions or advice regarding this issue would be most appreciated! ^-^




    Dec 1 2019, 8:18 am Zoan Post #2

    Math + Physics + StarCraft = Zoan

    Changing player color will not cause desyncronisation, as it is a local not a global address. global not a local address. (my bad on getting the terms backwards)

    What address are you changing and how are you changing it?

    Post has been edited 1 time(s), last time on Dec 2 2019, 1:22 am by Zoan.



    \:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

    Dec 1 2019, 9:30 pm TheSophomancer Post #3



    Quote from Zoan
    Changing player color will not cause desyncronisation, as it is a local not a global address.

    What address are you changing and how are you changing it?


    For my triggers, I'm using the unit color table addresses starting at 00581D76 (-8572). So for example, to change player 1's color to orange, I'm using this trigger:

    Change Player 1's Color to Orange
    Players

  • Player 1
  • Conditions

  • Player 1 brings at least 1 (Dark Archon) to anywhere
  • Actions

  • Modify memory at death table + -8572 (==0x00581D74): Set to 10223616





  • Dec 2 2019, 1:23 am Zoan Post #4

    Math + Physics + StarCraft = Zoan

    That should work and not cause any desyncs (that is actually exactly what I use too). Are there any other EUD triggers in your map?

    Edit: I have not tried this on the current patch though. Maybe the new patch screwed everything up, idk.



    \:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

    Dec 2 2019, 10:47 pm TheSophomancer Post #5



    Quote from Zoan
    That should work and not cause any desyncs (that is actually exactly what I use too). Are there any other EUD triggers in your map?

    Edit: I have not tried this on the current patch though. Maybe the new patch screwed everything up, idk.


    Aside from my color-changing triggers, the only EUDs currently in my map are basic graphical/button changes through EUD Editor 2, which shouldn't cause any issues (and didn't seem to cause any desync problems before I added in the color triggers.) As you mentioned, I'm wondering if a recent patch made color altering triggers not work anymore... do you happen to know of or have any maps containing color-changing triggers (that used to work previously) that I can try online to test this theory?




    Dec 3 2019, 3:08 am Zoan Post #6

    Math + Physics + StarCraft = Zoan

    Here, this worked before.

    Attachments:
    The Thing EUD Version 0.08.scx
    Hits: 3 Size: 1644.74kb



    \:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [06:51 pm]
    Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
    [06:50 pm]
    NudeRaider -- Vrael
    Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
    sounds like moisture control is often a pressing concern in your city
    [06:50 pm]
    Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
    [06:49 pm]
    Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
    [06:48 pm]
    Vrael -- On this Topic, I could definitely use some Introductions.
    [06:48 pm]
    Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
    [06:47 pm]
    Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
    [06:45 pm]
    NudeRaider -- Vrael
    Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
    beats me, but I'd make sure to pick the epitome of excellence and nothing less.
    [06:41 pm]
    Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
    [06:38 pm]
    Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
    Please log in to shout.


    Members Online: Vrael, Roy, NudeRaider