Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] Trigger cycles
[SOLVED] Trigger cycles
This topic is locked. You can no longer write replies here.
Nov 9 2011, 12:46 am
By: MetalGear  

Nov 9 2011, 12:46 am MetalGear Post #1



I'm creating a map at the moment where I have to really think about the trigger structure to avoid lag issues. So I have a simple question that I need answering...

WHAT HUMAN PLAYERS PROCESS THE COMPUTER-PLAYER TRIGGERS?

I've had a few thoughts, and I'm guessing that only 1 human player (i.e. the host) processes the computer-player triggers, because surely they only have to be processed by 1 player? Let me clarify this some more... If player 1, 2, & 3 are human players, and player 4 is a computer player, then does only player 1 process the triggers for player 4 in each trigger cycle, or do players 1, 2, and 3 all have to process triggers for player 4?

Sorry for the newbness, but I need to know this!




None.

Nov 9 2011, 12:49 am Azrael Post #2



All triggers are processed by all players equally. If only one player processed them and then shared the result, it'd be way too exploitable. With the current system, every computer figures out independently what should be happening, and those that disagree are desynced.




Nov 9 2011, 1:18 am Lanthanide Post #3



Confirm what Azrael said. I tested this out empirically when I was doing my PC - mac EUD triggers. Each computer will process all triggers for all players in the game.



None.

Nov 9 2011, 1:26 am Vrael Post #4



Only player input data is transferred on b.net between trigger cycles, like mouse clicks or keyboard presses, in order to reduce the load on the network. Remember SC1 was developed for like 32kbit modems lol. Everything else is calculated on each PC independantly.

If you're asking how trigger cycles work, read the article, located here: http://www.staredit.net/starcraft/Triggers



None.

Nov 9 2011, 1:29 am ubermctastic Post #5



Yeah, each computer processes them seperately, because they should always get the same result.
If they don't get the same result, there's something different in the data of one of the computers, and they desync.
Also, it would be more ineficcient for one computer to process all the triggers, and then share the results with the others, because the information would have to be sent over bnet.

It's not the internet that is causing the lag when triggers are lagging, it's the computer itself, more specifically starcraft, which wasn't designed for the triggers used in some maps nowadays.

There are two possibilities

The speed of the computer used by the player is to blame.
(They are probably still running microsoft 95)
OR
Starcraft can't handle the load of triggers?
(it's such an old game that computer speed isn't a factor)
OR
The player lagging is using dialup, or some other crappy internet, or a crappy router, or is sharing said crappy router/internet with someone else, or is downloading movies.



None.

Nov 9 2011, 2:01 am Lanthanide Post #6



Quote from Vrael
Only player input data is transferred on b.net between trigger cycles, like mouse clicks or keyboard presses, in order to reduce the load on the network. Remember SC1 was developed for like 32kbit modems lol. Everything else is calculated on each PC independantly.
Most networked games try and transmit as little as possible between the player and the server (or each other player).

WoW uses about 10mb of bandwidth per hour. That's really not very much at all.



None.

Nov 9 2011, 7:30 am MetalGear Post #7



well that pretty much sums it up for me. thank you very much.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
Please log in to shout.


Members Online: Roy