Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000799sm-sscFeature Requestpublic2012-06-26 13:282012-06-27 05:54
Reporterjindev 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product VersionStepMania 5 alpha 2 
Target VersionFixed in Version 
Summary0000799: [LUA BINDING] IsLastNote(), LastNoteBeatSec()
Description- IsLastNote()function: a condition if the player reach the last note of any stepchart during gameplay
- LastNoteBeatSec(): return the time of the last note in any stepchart during gameplay.

reason: I want to use this to for Full Combo sound and animation using JudgmentMessageCommand instead of OffCommand, which will execute right after FC'ing and stepping the last note during gameplay. I dunno how to get the last note beat in seconds.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0001700)
AJ (administrator)
2012-06-26 15:18
edited on: 2012-06-26 22:38

Hopefully this is possible to do.

edit:
isn't the second request possible with GAMESTATE:GetCurrentSong():GetLastSecond()?
granted, that will get the last second of the song... looking into making it possible to get the last second for the current Steps object.

(0001705)
jindev (reporter)
2012-06-27 05:54
edited on: 2012-06-27 06:20

i tried to compare both (correct to 3 decimal digits)

GAMESTATE:GetCurrentSong():GetLastSecond()

and
 
pState = GAMESTATE:GetPlayerState(pn);
pState:GetSongPosition():GetSongBeat()

songPosition=string.format("%0.3f",pState:GetSongPosition():GetMusicSeconds());

in JudgmentMessageCommand. When it reaches the last note, they are not really equal.


- Issue History
Date Modified Username Field Change
2012-06-26 13:28 jindev New Issue
2012-06-26 15:18 AJ Note Added: 0001700
2012-06-26 15:18 AJ Status new => confirmed
2012-06-26 22:23 AJ Note Edited: 0001700 View Revisions
2012-06-26 22:38 AJ Note Edited: 0001700 View Revisions
2012-06-27 05:54 jindev Note Added: 0001705
2012-06-27 05:56 jindev Note Edited: 0001705 View Revisions
2012-06-27 05:56 jindev Note Edited: 0001705 View Revisions
2012-06-27 06:20 jindev Note Edited: 0001705 View Revisions


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker