You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is inside ScreenSelectMusic underlay. Right when you select the next course (ScreenSelectCourse falls back on ScreenSelectMusic), it crashes.
The lua is inside a for loop. Substitute 'i' for any digit beyond the number of course entries you have.
LoadFont("TextBanner text")..{
InitCommand=cmd(horizalign,left;settext,"test";addx,80;addy,-2;zoom,.75);
CurrentCourseChangedMessageCommand=function(self)
localcourse=GAMESTATE:GetCurrentCourse();
ifcoursethenlocalsong=course:GetCourseEntry(i):GetSong();
ifsongthenself:settext(song:GetDisplayMainTitle()); --The crash is triggered here, if you comment it out nothing happensend;
end;
end;
};
The text was updated successfully, but these errors were encountered:
RhythmLunatic
changed the title
Access Violation with font
Access Violation with course?
Jul 9, 2017
RhythmLunatic
changed the title
Access Violation with course?
Getting a course entry that doesn't exist causes an access violation
Jul 9, 2017
Additional problem: Course does not have a function for getting the number of entries. Just GetCourseEntry for getting one entry, and GetCourseEntries for getting all of them.
This is inside ScreenSelectMusic underlay. Right when you select the next course (ScreenSelectCourse falls back on ScreenSelectMusic), it crashes.
The lua is inside a for loop. Substitute 'i' for any digit beyond the number of course entries you have.
The text was updated successfully, but these errors were encountered: