Post #1 · Posted at 2017-09-24 03:52:24pm 6.5 years ago
MadkaT | |
---|---|
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:
In the crashlog I get an Acces Violation, but is strange that thisonly happens when I've played a song considered long version
If someone could help be would be nice
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
If someone could help be would be nice
Post #2 · Posted at 2017-09-27 12:47:09am 6.5 years ago
FlameyBoy | |
---|---|
Member | |
335 Posts | |
Reg. 2011-03-09 | |
Does it happen in event mode?
Post #3 · Posted at 2017-09-28 05:35:20am 6.5 years ago
MadkaT | |
---|---|
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
Jousway | |
---|---|
Member | |
137 Posts | |
Reg. 2011-07-12 | |
"Noteskins !== Quality " |
time to make a custom music wheel boiiiiiiiiiiiiiiiii
Post #5 · Posted at 2017-09-28 06:22:50pm 6.5 years ago
FlameyBoy | |
---|---|
Member | |
335 Posts | |
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
MadkaT | |
---|---|
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
C'mon boiii, you could teach me later