Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: [EUD] Using inverse system time to play BGM continuously regardl
[EUD] Using inverse system time to play BGM continuously regardl
Feb 10 2018, 7:28 am
By: trgk  

Feb 10 2018, 7:28 am trgk Post #1



Basically, Inverse System Time is a value that decreases 1000 every second.
For example, if its value is 10000000, its value will be 9999000 after a second. We can use this as a timer for background music.
This timer is irrelevant to game speed, lagging, or any unfortunate circumstances. So we can use this value as a music counter.

Code
1. Read the value of 0x0051CE8C and store that on DC of Teran Marine. This DC holds the last time music is played.
2. Play the music.

3. With preserve trigger:
   3-1. Read the value of 0x0051CE8C and store that on DC of Terran Firebat.
   3-2. Compare that value with DC of Terran Marine.
   3-3. If the difference is larger or equal to the length of the music in milliseconds:
       3-3-1. Copy DC of Terran Firebat to DC of Terran Marine.
       3-3-2. Play the music again.


TrigEditPlus code



euddraft code


Post has been edited 1 time(s), last time on Feb 10 2018, 7:41 am by trgk.



EUD

Feb 10 2018, 9:23 pm Butch Post #2

PROFESSIONAL MAP MAKER

incredibly useful. Thanks for the post



None.

Feb 11 2018, 12:32 am Lanthanide Post #3



What is TrigEditPlus?



None.

Feb 11 2018, 9:04 am trgk Post #4



Alternate triggrr editor for scmdraft2.
Includes a basic macrotrigger-like functionallity.

http://www.staredit.net/sc1db/file/2989/



EUD

May 22 2020, 8:12 pm Draelren Post #5



Been trying to play around with this, but keep getting compile errors; has there been changes to the syntax since this was written out?




May 31 2020, 3:29 am trgk Post #6



Quote from Draelren
Been trying to play around with this, but keep getting compile errors; has there been changes to the syntax since this was written out?
I don't think there is any. Note that euddraft code should be in ".eps" extension.



EUD

May 31 2020, 9:26 am Oh_Man Post #7

Find Me On Discord (Brood War UMS Community & Staredit Network)

One problem I always had with sound was not being able to stop it once the sound had been started. Have EUDs made any developments on this front?




Jun 9 2020, 3:00 am trgk Post #8



Quote from Oh_Man
One problem I always had with sound was not being able to stop it once the sound had been started. Have EUDs made any developments on this front?

There was a way to stop music during play on 1.16.1, but I don't think they've been implemented on SC:R. Meanwhile devs developed a tool called bgmplayer, which auto-splits music in some predefined interval and plays them. Split BGMs are stoppable as you might know.



EUD

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: MetalGear