Logo

[Help] SM5 Trouble theming music wheel

登録 ログイン フォーラム戻る

ポスト #1 · 2017-09-24 03:52:24pmにポスト 6.5年前

Offline MadkaT
MadkaT Avatar Member
820 ポスト
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

ポスト #2 · 2017-09-27 12:47:09amにポスト 6.5年前

Offline FlameyBoy
FlameyBoy Avatar Member
335 ポスト
United States
Reg. 2011-03-09

Does it happen in event mode?

ポスト #3 · 2017-09-28 05:35:20amにポスト 6.5年前

Offline MadkaT
MadkaT Avatar Member
820 ポスト
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

ポスト #4 · 2017-09-28 04:21:24pmにポスト 6.5年前

Offline Jousway
Jousway Avatar Member
137 ポスト
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

ポスト #5 · 2017-09-28 06:22:50pmにポスト 6.5年前

Offline FlameyBoy
FlameyBoy Avatar Member
335 ポスト
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)

ポスト #6 · 2017-09-29 12:42:44amにポスト 6.5年前

Offline MadkaT
MadkaT Avatar Member
820 ポスト
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
登録 ログイン フォーラム戻る

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

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 5% · Database: 4% · Server Time: 2024-04-28 17:01:11
このページは0.006秒サーバータイム使用する。
Theme: starlight · Language: japanese
Reset Theme & Language