Go Back   Flash Flash Revolution > Gaming > Stepmania
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 12-11-2013, 02:08 PM   #1
Mollocephalus
Custom User Title
FFR Veteran
 
Mollocephalus's Avatar
 
Join Date: Jul 2009
Location: Italy
Age: 35
Posts: 2,601
Send a message via Skype™ to Mollocephalus
Default Help me add folder title and song title to the results menu in stepmania

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?
__________________
Mollocephalus is offline   Reply With Quote
Old 12-11-2013, 02:19 PM   #2
Xiz
TWG Chaos
FFR Simfile AuthorFFR Veteran
 
Xiz's Avatar
 
Join Date: Feb 2012
Location: Cali4nia
Age: 32
Posts: 3,399
Send a message via Skype™ to Xiz
Default Re: Help me add folder title and song title to the results menu in stepmania

I can't even get 3.95 to work on my mac, I gotta use 5 haha
__________________

Xiz is offline   Reply With Quote
Old 12-11-2013, 02:32 PM   #3
firemon22
Forum User
 
firemon22's Avatar
 
Join Date: Oct 2004
Location: pa
Age: 34
Posts: 636
Send a message via Skype™ to firemon22
Default 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 on
firemon22 is offline   Reply With Quote
Old 12-11-2013, 03:03 PM   #4
Mollocephalus
Custom User Title
FFR Veteran
 
Mollocephalus's Avatar
 
Join Date: Jul 2009
Location: Italy
Age: 35
Posts: 2,601
Send a message via Skype™ to Mollocephalus
Default 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
__________________
Mollocephalus is offline   Reply With Quote
Old 12-12-2013, 12:55 PM   #5
Mollocephalus
Custom User Title
FFR Veteran
 
Mollocephalus's Avatar
 
Join Date: Jul 2009
Location: Italy
Age: 35
Posts: 2,601
Send a message via Skype™ to Mollocephalus
Default 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?
__________________
Mollocephalus is offline   Reply With Quote
Old 12-12-2013, 03:54 PM   #6
Sidek
FFR Player
FFR Veteran
 
Sidek's Avatar
 
Join Date: Nov 2010
Age: 29
Posts: 777
Default Re: Help me add folder title and song title to the results menu in stepmania

im gonna sent to you something maybe can help to you..
__________________

Bye.
Sidek is offline   Reply With Quote
Old 12-12-2013, 06:18 PM   #7
TC_Halogen
Rhythm game specialist.
Retired StaffFFR Simfile AuthorFFR Music ProducerD8 Godly KeysmasherFFR Veteran
 
TC_Halogen's Avatar
 
Join Date: Feb 2008
Location: Bel Air, Maryland
Age: 32
Posts: 19,376
Send a message via AIM to TC_Halogen Send a message via Skype™ to TC_Halogen
Default Re: Help me add folder title and song title to the results menu in stepmania

Quote:
Originally Posted by Mollocephalus View Post
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?
If Sidek didn't send you anything, I can help you with this.


(just did this.)
TC_Halogen is offline   Reply With Quote
Old 12-12-2013, 07:53 PM   #8
Mollocephalus
Custom User Title
FFR Veteran
 
Mollocephalus's Avatar
 
Join Date: Jul 2009
Location: Italy
Age: 35
Posts: 2,601
Send a message via Skype™ to Mollocephalus
Default 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
__________________
Mollocephalus is offline   Reply With Quote
Old 12-12-2013, 08:03 PM   #9
TC_Halogen
Rhythm game specialist.
Retired StaffFFR Simfile AuthorFFR Music ProducerD8 Godly KeysmasherFFR Veteran
 
TC_Halogen's Avatar
 
Join Date: Feb 2008
Location: Bel Air, Maryland
Age: 32
Posts: 19,376
Send a message via AIM to TC_Halogen Send a message via Skype™ to TC_Halogen
Default 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?
TC_Halogen is offline   Reply With Quote
Old 12-12-2013, 08:06 PM   #10
Mollocephalus
Custom User Title
FFR Veteran
 
Mollocephalus's Avatar
 
Join Date: Jul 2009
Location: Italy
Age: 35
Posts: 2,601
Send a message via Skype™ to Mollocephalus
Default 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>
__________________
Mollocephalus is offline   Reply With Quote
Old 12-12-2013, 08:44 PM   #11
TC_Halogen
Rhythm game specialist.
Retired StaffFFR Simfile AuthorFFR Music ProducerD8 Godly KeysmasherFFR Veteran
 
TC_Halogen's Avatar
 
Join Date: Feb 2008
Location: Bel Air, Maryland
Age: 32
Posts: 19,376
Send a message via AIM to TC_Halogen Send a message via Skype™ to TC_Halogen
Default 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)

Quote:
-- 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
Then, in ScreenEvaluation Overlay.xml, you'll want this:
Quote:
<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>
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.
TC_Halogen is offline   Reply With Quote
Old 12-13-2013, 02:14 AM   #12
Mollocephalus
Custom User Title
FFR Veteran
 
Mollocephalus's Avatar
 
Join Date: Jul 2009
Location: Italy
Age: 35
Posts: 2,601
Send a message via Skype™ to Mollocephalus
Default 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
__________________
Mollocephalus is offline   Reply With Quote
Old 12-13-2013, 10:32 AM   #13
aj187
FFR Player
 
aj187's Avatar
 
Join Date: Dec 2002
Posts: 74
Default 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
aj187 is offline   Reply With Quote
Old 12-13-2013, 11:01 AM   #14
Mollocephalus
Custom User Title
FFR Veteran
 
Mollocephalus's Avatar
 
Join Date: Jul 2009
Location: Italy
Age: 35
Posts: 2,601
Send a message via Skype™ to Mollocephalus
Default 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!
__________________
Mollocephalus is offline   Reply With Quote
Old 12-13-2013, 01:25 PM   #15
Mollocephalus
Custom User Title
FFR Veteran
 
Mollocephalus's Avatar
 
Join Date: Jul 2009
Location: Italy
Age: 35
Posts: 2,601
Send a message via Skype™ to Mollocephalus
Default 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
__________________
Mollocephalus is offline   Reply With Quote
Old 12-13-2013, 04:49 PM   #16
Mollocephalus
Custom User Title
FFR Veteran
 
Mollocephalus's Avatar
 
Join Date: Jul 2009
Location: Italy
Age: 35
Posts: 2,601
Send a message via Skype™ to Mollocephalus
Default Re: Help me add folder title and song title to the results menu in stepmania

since the code wasn't working still, i decided to try copying the song credits which appear right before the song starts, and resize them to the top. In retrospective, i should have tried this from the start:



ScreenEvaluation overlay now looks like this:

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>
             <children>
<BitmapText
	Font="_eurostile normal"
	Text="@GetCreditsText()"
	InitCommand="horizalign,left;x,SCREEN_LEFT+32;y,SCREEN_BOTTOM-440;shadowlength,1;zoom,0.50"
/>
              </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>
now i'll figure out how to pull the pack name from the song select screen and then it will be perfect
__________________

Last edited by Mollocephalus; 12-13-2013 at 04:58 PM..
Mollocephalus is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 04:26 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution