Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Desync Bug, Help Please
Desync Bug, Help Please
Sep 11 2016, 5:46 pm
By: Excalibur  

Sep 11 2016, 5:46 pm Excalibur Post #1

The sword and the faith

All,
My Galactic Conquest map has had a desync bug for some time now. I thought I had fixed it by doing a safe create for my unit morphs but evidently this is not the case. Strange things noted so far:
-SCV lost its shadow around time of desync.
-Sometimes coincides with a Cannot Create Unit (Not Cannot Create More Units.) error.

Any help would be appreciated. The map can be downloaded here. I can provide an open copy to anyone who needs one.




SEN Global Moderator and Resident Zealot
-------------------------
The sword and the faith.

:ex:
Sector 12
My stream, live PC building and tech discussion.

Sep 11 2016, 7:37 pm jjf28 Post #2

Cartography Artisan

Can this bug be reproduced on demand?
Does it happen at a specific time/only after a certain point?

Have you tried removing all doodads and sprites? While deafeningly unintuitive I have found some to cause desyncs. Also try cutting any oddities you can (extended units/players, EUDs, any sounds, cloak hacks, etc.) to check if they are responsible.



Rs_yes-im4real - Clan Aura - jjf28.net84.net

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

Sep 11 2016, 8:00 pm Excalibur Post #3

The sword and the faith

Quote from jjf28
Can this bug be reproduced on demand?
Does it happen at a specific time/only after a certain point?

Have you tried removing all doodads and sprites? While deafeningly unintuitive I have found some to cause desyncs. Also try cutting any oddities you can (extended units/players, EUDs, any sounds, cloak hacks, etc.) to check if they are responsible.
No doodads or sprites. No cloaks, no EUDs, no sounds.

Bug happens about 30mins in to a given game as players are massing flying units that are morphing from other units.

Happens late game every game but cannot be reproduced on demand exactly.




SEN Global Moderator and Resident Zealot
-------------------------
The sword and the faith.

:ex:
Sector 12
My stream, live PC building and tech discussion.

Sep 11 2016, 9:36 pm Zoan Post #4

Math + Physics + StarCraft = Zoan

Have you changed any of the player or computer colors?



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

Sep 11 2016, 9:59 pm NudeRaider Post #5

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

Not causing desyncs but crashes: Do you have build or morph times 0 or almost 0?




Sep 11 2016, 11:32 pm Dem0n Post #6

ᕕ( ᐛ )ᕗ

I think by morphing he means switching units. There are only air units to play with, so any ground units get turned into air units.



Memes gather, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the memer on the walls. I am the shield that guards the realms of memes. I pledge my life and honor to the Meme's Watch, for this meme and all the memes to come.

Sep 16 2016, 11:41 pm Excalibur Post #7

The sword and the faith

Quote from Dem0n
I think by morphing he means switching units. There are only air units to play with, so any ground units get turned into air units.
This is correct.

Quote from Zoan
Have you changed any of the player or computer colors?
Yes and I'm also using randomize start location for force 1. Does this cause issues?




SEN Global Moderator and Resident Zealot
-------------------------
The sword and the faith.

:ex:
Sector 12
My stream, live PC building and tech discussion.

Sep 17 2016, 2:58 am jjf28 Post #8

Cartography Artisan

You've observed it being related to CCMU, so try confirming or ruling this out by enforcing a unit cap (something like 1650) within triggers, see if that stops the desyncs.




Sorry I don't have any more specific insight, but how I typically solve such problems (mostly a matter of effort):

Divide and conquer as much as possible, rule out absolutely everything you can by clearing all upgrades/unit settings/tech settings/player settings, blank the terrain into generic dirt/walkable tiles, remove any pure sprites, and try the map like this.

Play and if it doesn't desync anymore (**you can't reliably reproduce so you can't be certain, but with a few extra tests you should be able to get some level of certainty) it was somehow related to one of the above categories, if so, add back in categories till you've found a likely culprit.

Otherwise if it's somehow related to units/triggers/(locations? doubtful but I've seen StarCraft crash due to changes purely to MRGN - the locations section in CHKs) you'd probably be best off rebuilding the map through a new file, copying and testing one system at a time - if you did the step above you should be fine copying in your terrain/graphical stuff without concern (I can guide you through copying ISOM if you wish to preserve that info).


If you happen find an offending layer report it here and we can give more specific advice.



Rs_yes-im4real - Clan Aura - jjf28.net84.net

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

Sep 17 2016, 1:00 pm Neiv Post #9



The map is reaching bw's image limit, 5000, which causes things such as shadows not appearing and units not spawning. The reason why it desyncs is that fog-of-war sprites, which are not synchronized, also use available images. So a person with more fogged buildings in their game will hit the image limit earlier than someone who has most of the map visible.

I don't really know if there's really a good way to solve the issue, but it seems like that your map is running into this problem since it has a lot of vespene geysers. Geysers/gas buildings use easily 4-5 images (The unit itself, shadow, and the random smokes), which get duplicated in the fog sprite.

(I'll attach a proof-of-concept map if anyone wants to see how to consistently desync: The map is just barely below image limit, and one player sees an additional fog sprite, which causes them to hit the cap before the second player)

Attachments:
fowdesync.scm
Hits: 13 Size: 55.84kb



None.

May 7 2017, 6:17 pm Veta Post #10



So, I have confirmed this is what's causing desync for me.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:06 pm]
Generalpie -- Ah.
[03:03 pm]
jjf28 -- both
[03:01 pm]
GGmano -- Is there a forum for All players to chat at same time or You just send private messages?
[02:45 pm]
jjf28 -- ya
[08:59 am]
Corbo -- cause we mainly use discord now
[08:14 am]
Generalpie -- Why doesn't the shoutbox get used as much as it used to anyways?
[08:13 am]
Generalpie -- rekt
[07:59 am]
TF- -- 👊
[02:05 am]
KrayZee -- Vrael
Vrael shouted: depends on what we're talking, 2012 dark knight rises obviously Anne Hathaway/selina kyle, but if we're going 90's The Animated Series Talia all the way
I'm talking about the one you're married to, is it Hathaway or Pfeiffer catwoman?
Please log in to shout.


Members Online: Roy, Lost_Angel, Zincoshine, Generalpie