Logo

More lua questions

Register Log In Back To Forums

Post #1 · Posted at 2016-12-03 06:34:51pm 7.3 years ago

Offline ZTS
ZTS Avatar Member
138 Posts
Not Set
Reg. 2015-01-13

"But enough talk! Have at you!"

Last updated: 2016-12-03 06:39pm
1. I want to play a random song preview on the title screen and have the effectclock synced up (so some graphics pulse with the beat), but I can't seem to get it working.
Code: https://github.com/ARCofSpada/SM-osu-theme/blob/master/BGAnimations/ScreenTitleJoin%20background.lua#L31-L44

2. I replaced common start in Sounds with lua, but now ScreenSelectProfile is complaining that a table is being returned.
This is what I have: return THEME:GetPathG("", "_skin/click-short.wav")

3. How do I make the song wheel smaller?
Get Rave It Out! https://sites.google.com/view/riodevs/home
Want your theme made? I take commissions, PM for details.

Post #2 · Posted at 2016-12-03 08:18:25pm 7.3 years ago

Offline dbk2
dbk2 Avatar Member
332 Posts
Not Set
Reg. 2012-04-30


Last updated: 2016-12-03 08:18pm
Quote: ZTS
1. I want to play a random song preview on the title screen and have the effectclock synced up (so some graphics pulse with the beat), but I can't seem to get it working.
Code: https://github.com/ARCofSpada/SM-osu-theme/blob/master/BGAnimations/ScreenTitleJoin%20background.lua#L31-L44
Can you be more specific as to what you can't get working?

Quote: ZTS
I replaced common start in Sounds with lua, but now ScreenSelectProfile is complaining that a table is being returned.
This is what I have: return THEME:GetPathG("", "_skin/click-short.wav")
The example you gave only tries to directly load a single wav file (there's no conditional logic to load one of several files, for example). Why not just use a .redir file.?


Quote: ZTS
3. How do I make the song wheel smaller?
You'll need to be more specific with what you mean by "smaller" but you might start by poking at the MusicWheelItem files under ./Graphics.

Post #3 · Posted at 2016-12-03 09:10:30pm 7.3 years ago

Offline ZTS
ZTS Avatar Member
138 Posts
Not Set
Reg. 2015-01-13

"But enough talk! Have at you!"

Last updated: 2016-12-03 09:12pm
Quote: dbk2
Can you be more specific as to what you can't get working?
SOUNDTonguelayMusicPart doesn't do anything.

Quote: dbk2
The example you gave only tries to directly load a single wav file (there's no conditional logic to load one of several files, for example). Why not just use a .redir file.?
It was just an example, the actual logic is "return loadOsuSound("click-short");", which checks if the file exists in the folder or returns something else if it doesn't. https://github.com/ARCofSpada/SM-osu-theme/blob/master/Scripts/SpriteUtil.lua#L18-L29
Get Rave It Out! https://sites.google.com/view/riodevs/home
Want your theme made? I take commissions, PM for details.

Post #4 · Posted at 2016-12-03 11:33:28pm 7.3 years ago

Offline dbk2
dbk2 Avatar Member
332 Posts
Not Set
Reg. 2012-04-30


Last updated: 2016-12-03 11:42pm
I took a look at your code/theme in StepMania. I'm not sure why SOUND:PlayMusicPart() wasn't doing anything for you.

I tried calling your playSample() function from the OnCommand of an Actor and it seems to work fine. http://pastie.org/10975892
Register Log In Back To Forums

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 4% · Database: 4% · Server Time: 2024-03-28 11:01:02
This page took 0.005 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language