Help me add folder title and song title to the results menu in stepmania

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mollocephalus
    Custom User Title
    • Jul 2009
    • 2608

    #1

    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?
  • Xiz
    TWG Chaos
    FFR Simfile Author
    • Feb 2012
    • 3399

    #2
    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

    Comment

    • firemon22
      Forum User
      • Oct 2004
      • 636

      #3
      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

      Comment

      • Mollocephalus
        Custom User Title
        • Jul 2009
        • 2608

        #4
        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

        • Mollocephalus
          Custom User Title
          • Jul 2009
          • 2608

          #5
          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

          • Sidek
            FFR Player
            • Nov 2010
            • 777

            #6
            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.

            Comment

            • TC_Halogen
              Rhythm game specialist.
              FFR Simfile Author
              FFR Music Producer
              • Feb 2008
              • 19376

              #7
              Re: Help me add folder title and song title to the results menu in stepmania

              Originally posted by Mollocephalus
              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.)

              Comment

              • Mollocephalus
                Custom User Title
                • Jul 2009
                • 2608

                #8
                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

                • TC_Halogen
                  Rhythm game specialist.
                  FFR Simfile Author
                  FFR Music Producer
                  • Feb 2008
                  • 19376

                  #9
                  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

                  • Mollocephalus
                    Custom User Title
                    • Jul 2009
                    • 2608

                    #10
                    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

                    • TC_Halogen
                      Rhythm game specialist.
                      FFR Simfile Author
                      FFR Music Producer
                      • Feb 2008
                      • 19376

                      #11
                      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)

                      -- 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:
                      <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.

                      Comment

                      • Mollocephalus
                        Custom User Title
                        • Jul 2009
                        • 2608

                        #12
                        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

                        • aj187
                          FFR Player
                          • Dec 2002
                          • 74

                          #13
                          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

                          • Mollocephalus
                            Custom User Title
                            • Jul 2009
                            • 2608

                            #14
                            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

                            • Mollocephalus
                              Custom User Title
                              • Jul 2009
                              • 2608

                              #15
                              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

                              Working...