Post #121 · Posted at 2015-06-28 05:23:48pm 8.8 years ago
Kyzentun | |
---|---|
Member | |
3,209 Posts | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
Quote: MadkaT
1. I've used a custom branch to show the special ending screen:
But I could get the special ending if I fail a song or course.
You're doing a lexical comparison between two strings. The string that come first alphabetically is considered less than the other string. So 'a' < 'b' evaluates to true. When you fail a song, GetBestFinalGrade returns the string "Grade_FAILED". F comes before T, so "Grade_FAILED" is less than "Grade_Tier03", so your check comes out true.Quote
function DDRCredits()
if GAMESTATE:IsEventMode() then
return SelectMusicOrCourse()
end
return STATSMAN:GetBestFinalGrade() <= 'Grade_Tier03' and "ScreenCredits" or "ScreenGameOver"
end
if GAMESTATE:IsEventMode() then
return SelectMusicOrCourse()
end
return STATSMAN:GetBestFinalGrade() <= 'Grade_Tier03' and "ScreenCredits" or "ScreenGameOver"
end
But I could get the special ending if I fail a song or course.
Stepmania actually provides a function for comparing strings that are used as enum values. It converts the strings to their number equivalents and returns the difference between them. Since you are using the Grade enum, you need to use the Grade:Compare function like this:
Grade:Compare(STATSMAN:GetBestFinalGrade(), 'Grade_Tier03') <= 0
Quote
2. I'm creating 2 endless courses a nonstop and an oni courses, I've added the #REPEAT:YES; parameter, but they only play the amount of songs in the course and finish, this is the correct mode to make an endless course?
That should work, post the text of the course file, maybe there's something else going wrong.Post #122 · Posted at 2015-06-28 06:18:08pm 8.8 years ago
kenny | |
---|---|
Member | |
572 Posts | |
Reg. 2014-06-14 | |
Quote: dbk2
Did you try the exact download I linked you to in my previous post?
Here is the link again: https://www.microsoft.com/en-us/download/details.aspx?id=40784
Here is the link again: https://www.microsoft.com/en-us/download/details.aspx?id=40784
Yeah I did imma try another computer later to see if it has the same problem
Post #123 · Posted at 2015-06-28 07:57:02pm 8.8 years ago
MadkaT | |
---|---|
Member | |
820 Posts | |
Not Set | |
Reg. 2009-11-24 | |
Thanks for the fix of the Credits screen Kyzentun, It worked!
And about the courses, those are the 2 endless courses that I'm creating:
I've played the endless nonstop, but before the 4th stage, it ends and don't repeat. Thanks for your atention.
And about the courses, those are the 2 endless courses that I'm creating:
Quote
#COURSE:ENDLESS;
#REPEAT:YES;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#REPEAT:YES;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
Quote
#COURSEURVIVAL;
#REPEAT:YES;
#COMBOERFECT;
#COMBOMODE:1;
#LIVES:4;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#REPEAT:YES;
#COMBOERFECT;
#COMBOMODE:1;
#LIVES:4;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
I've played the endless nonstop, but before the 4th stage, it ends and don't repeat. Thanks for your atention.
Post #124 · Posted at 2015-06-29 09:53:05am 8.8 years ago
Quickman | |
---|---|
Member+ | |
6,058 Posts | |
Reg. 2013-08-17 | |
"five minute white boy challenge" |
Quote: MadkaT
Thanks for the fix of the Credits screen Kyzentun, It worked! :green:
And about the courses, those are the 2 endless courses that I'm creating:
I've played the endless nonstop, but before the 4th stage, it ends and don't repeat. Thanks for your atention.
And about the courses, those are the 2 endless courses that I'm creating:
Quote
#COURSE:ENDLESS;
#REPEAT:YES;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#REPEAT:YES;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
Quote
#COURSE:SURVIVAL;
#REPEAT:YES;
#COMBO:PERFECT;
#COMBOMODE:1;
#LIVES:4;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#REPEAT:YES;
#COMBO:PERFECT;
#COMBOMODE:1;
#LIVES:4;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
#SONG:*:TRICK;
I've played the endless nonstop, but before the 4th stage, it ends and don't repeat. Thanks for your atention.
Disabled emoticons so the code is actually readable.
Post #125 · Posted at 2015-06-30 02:17:04am 8.8 years ago
Tyler | |
---|---|
Member | |
142 Posts | |
Not Set | |
Reg. 2015-05-06 | |
Cross post from r21freak
Out of curiosity, how easy would it be to implement video playback of videos encoded in x265? I know videos playback isn't really a popular thing to do as it is, but for those that would like HD videos in small file sizes, x265 would be the way to go.
Out of curiosity, how easy would it be to implement video playback of videos encoded in x265? I know videos playback isn't really a popular thing to do as it is, but for those that would like HD videos in small file sizes, x265 would be the way to go.
Post #126 · Posted at 2015-06-30 03:55:34am 8.8 years ago
Kyzentun | |
---|---|
Member | |
3,209 Posts | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
Last updated: 2015-06-30 03:55am
ffmpeg is the library that Stepmania uses to play videos.
I'm assuming that x265 is a fairly recent codec and would require a newer version of ffmpeg.
A long standing problem on Linux is that Stepmania will crash on videos if it is compiled with a newer version off ffmpeg than 2.1.3 (which the build process currently fetches and builds in unless told not to). Other platforms aren't aware of the problem because devs take care of making binaries for windows and mac.
Nobody has wanted to dig into the video code and update it to work with newer ffmpeg and build in a newer version.
I'm currently busy with my own areas of interest in Stepmania, and wolfman is busy working on using SDL2 to replace the current mess of platform-specific code for creating a window for the game to draw in. (which will replace rotting code that causes fullscreen problems on OS X if it's built with the wrong library)
tldr;
It's not going to happen unless some random programmer from the community steps up and does it. Which is what github is for.
That said, I do know exactly the one (not 6 anymore!) place in the code that lists the extensions that Stepmania looks for when looking for videos. So once the ffmpeg version is upgraded, making the rest of the code recognize the files is easy.
I'm assuming that x265 is a fairly recent codec and would require a newer version of ffmpeg.
A long standing problem on Linux is that Stepmania will crash on videos if it is compiled with a newer version off ffmpeg than 2.1.3 (which the build process currently fetches and builds in unless told not to). Other platforms aren't aware of the problem because devs take care of making binaries for windows and mac.
Nobody has wanted to dig into the video code and update it to work with newer ffmpeg and build in a newer version.
I'm currently busy with my own areas of interest in Stepmania, and wolfman is busy working on using SDL2 to replace the current mess of platform-specific code for creating a window for the game to draw in. (which will replace rotting code that causes fullscreen problems on OS X if it's built with the wrong library)
tldr;
It's not going to happen unless some random programmer from the community steps up and does it. Which is what github is for.
That said, I do know exactly the one (not 6 anymore!) place in the code that lists the extensions that Stepmania looks for when looking for videos. So once the ffmpeg version is upgraded, making the rest of the code recognize the files is easy.
Post #127 · Posted at 2015-07-05 07:25:28pm 8.8 years ago
I downloaded SM 5.0.9 and DDR X2 HD Theme and it worked nice, but when i put beware's DDR MAX/MAX2/EXTREME RandomMovies. They just don't loop. The movies after a few seconds froze and it's really annoying. Does anyone know how to fix this error?
I tried to fix it converting the files with another .AVI codec and other video format and it didn't work.
I tried to fix it converting the files with another .AVI codec and other video format and it didn't work.
Post #128 · Posted at 2015-07-06 05:33:09am 8.8 years ago
trav358 | |
---|---|
Member | |
115 Posts | |
Reg. 2009-10-19 | |
SimpleNick:
Check the #BGCHANGE lable in song sm/ssc file, there are short scripts look like:
16.000=XXX.avi=1.0=0=0=0,
Change
=0=0=0
to
=0=0=1.
and you will obtain a loop effect.
=A=B=C means
A: CrossFade is used if this is not 0.
B: Backward compatible effect flag. StretchRewind is used if this is not 0.
C: Backward compatible effect flag. StretchNoLoop is used if this is not 0.
Check the #BGCHANGE lable in song sm/ssc file, there are short scripts look like:
16.000=XXX.avi=1.0=0=0=0,
Change
=0=0=0
to
=0=0=1.
and you will obtain a loop effect.
=A=B=C means
A: CrossFade is used if this is not 0.
B: Backward compatible effect flag. StretchRewind is used if this is not 0.
C: Backward compatible effect flag. StretchNoLoop is used if this is not 0.
Post #129 · Posted at 2015-07-06 02:50:04pm 8.8 years ago
SimpleNick | |
---|---|
Member | |
381 Posts | |
Reg. 2009-08-18 | |
"DDR Lover ♪" |
Thank you so much! It worked perfectly.
Post #130 · Posted at 2015-07-07 04:14:29am 8.8 years ago
Musashi | |
---|---|
Member | |
108 Posts | |
Reg. 2014-05-03 | |
Beta 4 ran fine for me previously, but when I installed 5.0.9, I get: The application was unable to start correctly (0xc00007b).
There a fix for this?
There a fix for this?
Post #131 · Posted at 2015-07-07 01:01:50pm 8.8 years ago
What's your OS? If you're using Windows 64bit. The main reason of this error is that you are installing 64bit missing .dll files to StepMania when it actually works with 32bit .dll files. Put the missing 32bit .dll files in the "Program" folder it should work.
Post #132 · Posted at 2015-07-07 01:44:27pm 8.8 years ago
Hello, I have a trouble with SM5 and opensuse, when SM loads a vid, for example an intro, it closes, I have installed SM5 from the opensuse servers and executed the script to copy the folder to the user home. The video is encoded on DivX5 codec and mp4 format.
Post #133 · Posted at 2015-07-07 02:42:31pm 8.8 years ago
trav358 | |
---|---|
Member | |
115 Posts | |
Reg. 2009-10-19 | |
Musashi:
If you encounter (0xc00007b) error or msvcp120.dll missing error,
install Visual C++ Redistributable Packages for Visual Studio 2013.
Note that if you are X64 system, install both X86 and X64 pack.
If you encounter (0xc00007b) error or msvcp120.dll missing error,
install Visual C++ Redistributable Packages for Visual Studio 2013.
Note that if you are X64 system, install both X86 and X64 pack.
Post #134 · Posted at 2015-07-07 03:32:48pm 8.8 years ago
Kyzentun | |
---|---|
Member | |
3,209 Posts | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
Quote: MadkaT
Hello, I have a trouble with SM5 and opensuse, when SM loads a vid, for example an intro, it closes, I have installed SM5 from the opensuse servers and executed the script to copy the folder to the user home. The video is encoded on DivX5 codec and mp4 format.
Most likely reason for the crash is the packager making it use system ffmpeg, which crashes stepmania if it's not the right version.Also, the opensuse website says that "5.0a3" is the version in suse, so it's really outdated. Build stepmania from source.
Post #135 · Posted at 2015-07-07 04:10:09pm 8.8 years ago
MadkaT | |
---|---|
Member | |
820 Posts | |
Not Set | |
Reg. 2009-11-24 | |
The lastest build from the server is this:
I'll try to compile it to check if that fix the trouble. Thanks
I'll try to compile it to check if that fix the trouble. Thanks
Post #136 · Posted at 2015-07-07 06:09:16pm 8.8 years ago
Kyzentun | |
---|---|
Member | |
3,209 Posts | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
Quote: MadkaT
The lastest build from the server is this:
I'll try to compile it to check if that fix the trouble. Thanks
If the latest build from OpenSUSE is beta 2a, no bug reported from that build is valid. Too much has been fixed since then.I'll try to compile it to check if that fix the trouble. Thanks
Post #137 · Posted at 2015-07-08 04:34:20am 8.8 years ago
Musashi | |
---|---|
Member | |
108 Posts | |
Reg. 2014-05-03 | |
Quote: trav358
Musashi:
If you encounter (0xc00007b) error or msvcp120.dll missing error,
install Visual C++ Redistributable Packages for Visual Studio 2013.
Note that if you are X64 system, install both X86 and X64 pack.
If you encounter (0xc00007b) error or msvcp120.dll missing error,
install Visual C++ Redistributable Packages for Visual Studio 2013.
Note that if you are X64 system, install both X86 and X64 pack.
This has generated an improvement, but I'm still steps away from a working game.
I installed the C++ packages; now the game loads all the songs and courses but freezes at a blank screen immediately after.
Post #138 · Posted at 2015-07-08 05:21:29am 8.8 years ago
Kyzentun | |
---|---|
Member | |
3,209 Posts | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
Just to check: Is there anybody out there successfully running Stepmania on 64bit Windows?
If that is the source of the problem, it would be good to know.
If that is the source of the problem, it would be good to know.
Post #139 · Posted at 2015-07-08 05:42:16am 8.8 years ago
trav358 | |
---|---|
Member | |
115 Posts | |
Reg. 2009-10-19 | |
Musashi, Kyzentun:
I'm running it on 64 bit Windows 7.
Maybe the security (UAC) issue of windows 7 affects running, e.g. preferences.ini or profiles saving.
To avoid that, you can turn off Windows UAC, or change stepmania 5 into portable mode, just add an empty file named 'portable.ini' into stepmania root folder.
I'm running it on 64 bit Windows 7.
Maybe the security (UAC) issue of windows 7 affects running, e.g. preferences.ini or profiles saving.
To avoid that, you can turn off Windows UAC, or change stepmania 5 into portable mode, just add an empty file named 'portable.ini' into stepmania root folder.
Post #140 · Posted at 2015-07-08 06:16:22am 8.8 years ago
razorblade | |
---|---|
Member | |
1,099 Posts | |
Not Set | |
Reg. 2011-03-01 | |
I'm using Win8.1 Pro 64-bit and I have no problem w/ SM5. My last source pull update was 4 days ago.