I use sm 3.95 on mac with a really broken but nonetheless working ITG2 theme. In the results screen, i'd like to show (above the banner) the name of the song, and if possible, the pack name. Can anyone help?
Help me add folder title and song title to the results menu in stepmania
Collapse
X
-
Tags: None
-
Re: Help me add folder title and song title to the results menu in stepmania
why 3.95
https://soundcloud.com/djbdock acapellas over my beats
http://tuneport.com/profile/bdockbeats my beats for yall to rap onComment
-
Re: Help me add folder title and song title to the results menu in stepmania
because sm5 sucks for me and i want to play files with rolls


Comment
-
Re: Help me add folder title and song title to the results menu in stepmania
I know there are people here who know how to do this. Can you at least give me a hint of where i should look?


Comment
-
Re: Help me add folder title and song title to the results menu in stepmania
If Sidek didn't send you anything, I can help you with this.

(just did this.)Comment
-
Re: Help me add folder title and song title to the results menu in stepmania
what i did was not quite working with ITG theme :/ actually this installment of ITG overrides the default theme folder so i'm not sure how to get around it. maybe i should copy the line from openITG? but then, where do i put it? aaaah it sucks to be a coding noob


Comment
-
Re: Help me add folder title and song title to the results menu in stepmania
In your theme, do you have a ScreenEvaluationStage overlay folder or .xml file?Comment
-
Re: Help me add folder title and song title to the results menu in stepmania
yes, it's this one:
it's called ScreenEvaluation overlay.xml
Code:ActorFrame> <children> <ActorFrame Condition="GAMESTATE:IsPlayerEnabled(PLAYER_1)" OnCommand="x,SCREEN_CENTER_X-240;y,SCREEN_CENTER_Y-95;difficultyoffset;addx,-SCREEN_WIDTH/2;sleep,3;decelerate,0.3;addx,+SCREEN_WIDTH/2" OffCommand="accelerate,0.3;addx,-SCREEN_WIDTH/2" > <children> <Actor File="@THEME:GetPath(EC_GRAPHICS,'','_difficulty icons')" OnCommand="animate,0;playcommand,Update" UpdateCommand="%function(self,parent) SetDifficultyFrameFromGameState(self, PLAYER_1) end" /> <Actor Class="DifficultyMeter" Type="ScreenGameplay DifficultyMeterP1" OnCommand="playcommand,Update" UpdateCommand="%function(self) if GAMESTATE:GetCurrentTrail(PLAYER_1) then self:SetFromTrail(GAMESTATE:GetCurrentTrail(PLAYER_1)) else self:SetFromSteps(GAMESTATE:GetCurrentSteps(PLAYER_1)) end end" /> </children> </ActorFrame> <ActorFrame Condition="GAMESTATE:IsPlayerEnabled(PLAYER_2)" OnCommand="x,SCREEN_CENTER_X+238;y,SCREEN_CENTER_Y-95;difficultyoffset;addx,+SCREEN_WIDTH/2;sleep,3;decelerate,0.3;addx,-SCREEN_WIDTH/2" OffCommand="accelerate,0.3;addx,+SCREEN_WIDTH/2" > <children> <Actor File="@THEME:GetPath(EC_GRAPHICS,'','_difficulty icons')" OnCommand="animate,0;playcommand,Update" UpdateCommand="%function(self,parent) SetDifficultyFrameFromGameState(self, PLAYER_2) end" /> <Actor Class="DifficultyMeter" Type="ScreenGameplay DifficultyMeterP2" OnCommand="playcommand,Update" UpdateCommand="%function(self) if GAMESTATE:GetCurrentTrail(PLAYER_2) then self:SetFromTrail(GAMESTATE:GetCurrentTrail(PLAYER_2)) else self:SetFromSteps(GAMESTATE:GetCurrentSteps(PLAYER_2)) end end" /> </children> </ActorFrame> <Layer Type="ActorFrame" OnCommand='@"x,SCREEN_CENTER_X;y,SCREEN_BOTTOM-61;" .. GetUnlockCommand()' > <children> <BitmapText Text="text" File="Common Normal" UnlockSongCommand="settext,Unlocked a new song!" UnlockCourseCommand="settext,Unlocked a new course!" UnlockModifierCommand="settext,Unlocked a new modifier!" OnCommand="ZoomX,0;sleep,1.0;ZoomY,6;BounceEnd,.3;Zoom,1;sleep,1.6;playcommand,Off" OffCommand="Accelerate,.2;ZoomX,2;ZoomY,0;DiffuseAlpha,0" NoUnlockCommand="hidden,1" /> </children> </Layer> </children> </ActorFrame>



Comment
-
Re: Help me add folder title and song title to the results menu in stepmania
Alright, perfect. This should work as long as you're using Stepmania 3.95 CVS like you said.
I created a file in the Scripts folder called Gameplay.lua; the second part of the code in my file, listed below, is what you want:
(note, you can copy this script and save it as a .lua file with the name of your choice, or you can append it to an old one, that's entirely your choice)
Then, in ScreenEvaluation Overlay.xml, you'll want this:-- Song directory listing in results screen.
function SetSongDirectory ( actor )
Trace ( "SetSongDirectory" )
local songstate = GAMESTATE:GetCurrentSong();
local coursestate = GAMESTATE:GetCurrentCourse();
local text = ""
if songstate then
text = songstate:GetSongDir();
end
if coursestate then
text = coursestate:GetDisplayFullTitle() .. " - " .. text;
end
actor:settext ( text )
end
NOTE: If you're using the default ITG theme, you won't have the same font in your fonts folder. Use Common Normal inside of the quotes of the red area of the code, and see if it does anything. Feel free to play with the values inside of the OnCommand -- they determine the placement of the font. Right now, y is set to 3 pixels from the top of the screen, and x is set to the center point of the x axis. The zoom value being set at .4 means that the font is set to 40% of the normal size as shown in the images. You can set this back to 1 if you'd like.<ActorFrame>
<children>
<BitmapText
Font="_Arial 14 Shadow"
Text=""
OnCommand="y,3;x,SCREEN_CENTER_X;zoom,.4;shadowlength,0;vertalign,top"
InitCommand="playcommand,Update"
UpdateCommand="%SetSongDirectory"
/>
</children>
</ActorFrame>
Comment
-
Re: Help me add folder title and song title to the results menu in stepmania
i did as you said, we're getting closer i think but i got this:
Code:StepMania 3.9 SMO CVS 06-18-2005 crash report (build 6) -------------------------------------- Crash reason: Compiling "return function(self,parent) self:y(3) self:x(SCREEN_CENTER_X) self:zoom(.4) self:shadowlen gth(0) self:vertalign('top') end


Comment
-
Re: Help me add folder title and song title to the results menu in stepmania
make sure the space in "shadowlen gth" isn't there. hopefully that will fix it but I'm not 100% certain
@ssc_kki on Twitter
StepMania 5 Themes available from spinal shark collective. Might also want to check the SM5 Theme Update.Comment
-
Re: Help me add folder title and song title to the results menu in stepmania
Damn, i didn't notice that. Trying when i get home!


Comment
-
Re: Help me add folder title and song title to the results menu in stepmania
we are now down to this after fixing what AIJ mantioned.
Code:StepMania 3.9 SMO CVS 06-18-2005 crash report (build 6) -------------------------------------- Crash reason: Assertion '!lua_isnil(L, -1)' failed Crashed thread: Main thread



Comment




Comment