Logo

[Help] SM5 Trouble theming music wheel

Register Log In Back To Forums

Post #1 · Posted at 2017-09-24 03:52:24pm 6.5 years ago

Offline MadkaT
MadkaT Avatar Member
820 Posts
Not Set
Reg. 2009-11-24

Hello friends, I've done a custom banner object via lua, that loads an anim into an actor when the user is selecting the roulete, the code is working nice, but if I've passed a long version song, stepmania crashes when entering again into the select music screen. But if I've passed a regular song, it works normally.

The code that checks if the selected item is a roulette is triggered by the currentsongchangedmessage command, is not called from another command like init, on, begin, etc.

Also, the line that is crashing stepmania is this:
Quote
local mType = MusicWheel:GetSelectedType();

In the crashlog I get an Acces Violation, but is strange that thisonly happens when I've played a song considered long version Dead

If someone could help be would be nice Very Happy

Post #2 · Posted at 2017-09-27 12:47:09am 6.5 years ago

Offline FlameyBoy
FlameyBoy Avatar Member
335 Posts
United States
Reg. 2011-03-09

Does it happen in event mode?

Post #3 · Posted at 2017-09-28 05:35:20am 6.5 years ago

Offline MadkaT
MadkaT Avatar Member
820 Posts
Not Set
Reg. 2009-11-24

Nope, is just when you don't have enough stages to play and stepmania reposition the music wheel cursor to a single stage song

Post #4 · Posted at 2017-09-28 04:21:24pm 6.5 years ago

Offline Jousway
Jousway Avatar Member
137 Posts
Netherlands
Reg. 2011-07-12

"Noteskins !== Quality "
time to make a custom music wheel boiiiiiiiiiiiiiiiii Tongue
Its not a bug its a FEATURE!
http://i.imgur.com/AnyqNAJ.gif?1

Post #5 · Posted at 2017-09-28 06:22:50pm 6.5 years ago

Offline FlameyBoy
FlameyBoy Avatar Member
335 Posts
United States
Reg. 2011-03-09

There's a WheelBase function called GetSelectedIndex or something like that, see if it returns nil or -1 or something under these conditions (if so that’s probably a good place to start)

Post #6 · Posted at 2017-09-29 12:42:44am 6.4 years ago

Offline MadkaT
MadkaT Avatar Member
820 Posts
Not Set
Reg. 2009-11-24

I've debugged and it returned 0, I've conditioned the line for a value different from zero, and it works. Is so weird, but at least is solved. Thanks Tertu!

Quote: Jousway
time to make a custom music wheel boiiiiiiiiiiiiiiiii Tongue
C'mon boiii, you could teach me later Laughing Out Loud
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: 3% · Database: 4% · Server Time: 2024-03-28 09:38:52
This page took 0.006 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language