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.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: Vrael