How to change Stepmania's arrow speed mods

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Izzy
    Snek
    FFR Simfile Author
    • Jan 2003
    • 9195

    #76
    Re: How to change Stepmania's arrow speed mods

    Well the problem with that is different themes and modded themes. It would horribly screw things up, because peoples metrics really are different. Between stepmania 4.0 and 3.9 and 3.95 and all the themes from those.

    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    
    namespace WindowsFormsApplication1
    {
        public partial class Form1 : Form
        {
    
            
            public int xcount = 1;
            public int xxcount = 1;
            public int ccount = 1;
            public int cccount = 1;
            public double xstart = 0;
            public double xend = 0;
            public double xinc = 0;
            public int cstart = 0;
            public int cend = 0;
            public int cinc = 0;
    
            public Form1()
            {
                InitializeComponent();
            }
    
            private void pictureBox1_Click(object sender, EventArgs e)
            {
    
            }
    
            private void Go_Click(object sender, EventArgs e)
            {
                if (rad1.Checked == true)
                {
                    if (Xstart.Text == "" || Xend.Text == "" || Xinc.Text == "" || Cstart.Text == "" || Cend.Text == "" || Cinc.Text == "")
                    {
                        metrics.Text = "A field is empty";
                        Language.Text = "A field is empty";
                    }
                    else
                    {
                       
                        xstart = Convert.ToDouble(Xstart.Text);
                        xend = Convert.ToDouble(Xend.Text);
                        xinc = Convert.ToDouble(Xinc.Text);
                        cstart = Convert.ToInt32(Cstart.Text);
                        cend = Convert.ToInt32(Cend.Text);
                        cinc = Convert.ToInt32(Cinc.Text);
                        
                    
                        metrics.Text = "";
                        Language.Text = "";
    
                        for (double i = xstart; i <= xend; i = i + xinc)
                        {
    
                            xxcount += 1;
                        }
    
    
                        int cccount = xxcount;
                        for (int i = cstart; i < cend; i = i + cinc)
                        {
                            cccount += 1;
                        }
    
    
                        
                        metrics.Text = ("# Player options\r\n");
                        metrics.Text = metrics.Text + ("Speed=" + cccount + "\r\n");
                        metrics.Text = metrics.Text + ("SpeedDefault=mod, 1x\r\n");
    
                        for (double i = xstart; i <= xend; i = i + xinc)
                        {
                            metrics.Text = metrics.Text + ("Speed," + xcount + "=mod," + System.Math.Round(i, 3) + "x;name,x" + System.Math.Round(i, 3) + "\r\n");
                            xcount += 1;
                        }
    
                        int ccount = xcount;
                        for (int i = cstart; i <= cend; i = i + cinc)
                        {
                            metrics.Text = metrics.Text + ("Speed," + ccount + "=mod," + "C" + i + ";name,C" + i + "\r\n");
                            ccount += 1;
                        }
    
                        Language.Text = "";
                        for (double i = xstart; i <= xend; i = i + xinc)
                        {
    
                            Language.Text = Language.Text + ("x" + System.Math.Round(i, 3) + "=x" + System.Math.Round(i, 3) + "\r\n");
    
                        }
                        for (int i = cstart; i <= cend; i = i + cinc)
                        {
                            Language.Text = Language.Text + ("C" + i + "=C" + i + "\r\n");
    
                        }
    
                        xcount = 1;
                        xxcount = 1;
                        ccount = 1;
                        cccount = 1;
                        xstart = 0;
                        xend = 0;
                        xinc = 0;
                        cstart = 0;
                        cend = 0;
                        cinc = 0;
                    }
                }
                if (rad2.Checked == true)
                {
                    if (Xstart.Text == "" || Xend.Text == "" || Xinc.Text == "" || Cstart.Text == "" || Cend.Text == "" || Cinc.Text == "")
                    {
                        metrics.Text = "A field is empty";
                        Language.Text = "A field is empty";
                    }
                    else
                    {
                        xstart = Convert.ToDouble(Xstart.Text);
                        xend = Convert.ToDouble(Xend.Text);
                        xinc = Convert.ToDouble(Xinc.Text);
                        cstart = Convert.ToInt32(Cstart.Text);
                        cend = Convert.ToInt32(Cend.Text);
                        cinc = Convert.ToInt32(Cinc.Text);
                        metrics.Text = "";
                        Language.Text = "";
    
                        for (double i = xstart; i <= xend; i = i + xinc)
                        {
    
                            xxcount += 1;
                        }
    
    
                        int cccount = xxcount;
                        for (int i = cstart; i < cend; i = i + cinc)
                        {
                            cccount += 1;
                        }
    
    
    
                        metrics.Text = metrics.Text + ("# Player options\r\n");
                        metrics.Text = metrics.Text + ("Speed=\"" + (cccount +1) + "\"\r\n");
                        metrics.Text = metrics.Text + ("SpeedDefault=\"mod, 1x,no randomspeed\"\r\n");
    
                        for (double i = xstart; i <= xend; i = i + xinc)
                        {
                            metrics.Text = metrics.Text + ("Speed," + xcount + "=\"mod," + System.Math.Round(i, 3) + "x;name,x" + System.Math.Round(i, 3) +  "\"\r\n");
                            xcount += 1;
                        }
    
                        int ccount = xcount;
                        for (int i = cstart; i <= cend; i = i + cinc)
                        {
                            metrics.Text = metrics.Text + ("Speed," + ccount + "=\"mod," + "C" + i + ";name,C" + i + "\"\r\n");
                            ccount += 1;
                            if (i == cend)
                            {
                                metrics.Text = metrics.Text + ("Speed," + (ccount) + "=\"mod,1x,200% randomspeed;name,Random\"");
                            }
                        }
    
                        Language.Text = "";
                        for (double i = xstart; i <= xend; i = i + xinc)
                        {
    
                            Language.Text = Language.Text + ("x" + System.Math.Round(i, 3) + "=x" + System.Math.Round(i, 3) + "\r\n");
    
                        }
                        for (int i = cstart; i <= cend; i = i + cinc)
                        {
                            Language.Text = Language.Text + ("C" + i + "=C" + i + "\r\n");
    
                        }
    
                        xcount = 1;
                        xxcount = 1;
                        ccount = 1;
                        cccount = 1;
                        xstart = 0;
                        xend = 0;
                        xinc = 0;
                        cstart = 0;
                        cend = 0;
                        cinc = 0;
    
                    }
                }
                
            }
    
            private void metrics_TextChanged(object sender, EventArgs e)
            {
    
            }
    
            private void Clear_Click(object sender, EventArgs e)
            {
                Xstart.Text = "";
                Xend.Text = "";
                Xinc.Text = "";
                Cstart.Text = "";
                Cend.Text = "";
                Cinc.Text = "";
                metrics.Text = "";
                Language.Text = "";
            }
    
    
            private void Form1_Load(object sender, EventArgs e)
            {
                rad1.Checked = true;
            }
    
            private void rad1_Click(object sender, EventArgs e)
            {
                rad2.Checked = false;
                rad1.Checked = true;
            }
    
            private void rad2_Click(object sender, EventArgs e)
            {
                rad1.Checked = false;
                rad2.Checked = true;
            }
    
            private void Help_Click(object sender, EventArgs e)
            {
                metrics.Text = "";
                Language.Text = "";
                metrics.Text = "Created by: Izzy\r\n";
                metrics.Text = metrics.Text + "www.BlueXoon.com\r\n";
    
    
                Language.Text = "1) Don't leave any fields blank \r\n";
                Language.Text = Language.Text + ("2) Don't use any letters \r\n");
                Language.Text = Language.Text + ("3) Don't make the incriments bigger then the end value \r\n");
                Language.Text = Language.Text + ("4) It's a good idea to make your values pass through 1x \r\n");
            }    
        }
    }
    Heres my code. If anyone can guide me in the right direction of added the mods automatically that would be great.
    Last edited by Izzy; 02-24-2009, 02:03 PM.

    Comment

    • OuterSpace
      FFR Player
      • Mar 2006
      • 40

      #77
      Re: How to change Stepmania's arrow speed mods

      Hey, I recently re-downloaded Stepmania after a long while of not having it.
      I knew how to change the speed mods before. I always would.

      I changed my speedmods, and REMOVED C400.. I added C500, C550, and C450.

      I saved both files, numerous times. I restarted Stepmania, reloaded, everything.

      ...but on my stepmania screen it still shows the old ones, such as C400.
      :S Why? I don't even have that on there..

      Comment

      • Izzy
        Snek
        FFR Simfile Author
        • Jan 2003
        • 9195

        #78
        Re: How to change Stepmania's arrow speed mods

        because you didnt change english.ini in languages folder. At least that's my guess.

        Comment

        • OuterSpace
          FFR Player
          • Mar 2006
          • 40

          #79
          Re: How to change Stepmania's arrow speed mods

          No, I changed both.
          I think it has to do with Vista.
          Anyone know the solution?

          Comment

          • OuterSpace
            FFR Player
            • Mar 2006
            • 40

            #80
            Re: How to change Stepmania's arrow speed mods

            Bump!
            My Stepmania is still saying c400 even though I removed that from the files and replaced it.

            I'm still looking for a solution if anyone has one.

            Comment

            • dreamxtoxnightmare
              FFR Player
              • Apr 2009
              • 1

              #81
              Re: How to change Stepmania's arrow speed mods

              Show me how you have it set up.

              Comment

              • Izzy
                Snek
                FFR Simfile Author
                • Jan 2003
                • 9195

                #82
                Re: How to change Stepmania's arrow speed mods

                Move your stepmania folder out of programs files and put it in into my documents. The Vista UAC doesn't like you to change files within the programs folder. You can move stepmania only because it doesn't write anything to the registry.

                Comment

                • JackieMedan
                  Dreamer
                  • Dec 2005
                  • 14

                  #83
                  Re: How to change Stepmania's arrow speed mods

                  How on earth do you even use the speed mods in game? I've just installed stepmania, so I'm not so familiar with it yet.. I've searched the whole options section and I can't find anything regarding speed mods..

                  .::I find new methods to pretend that this is not reality::.

                  Comment

                  • TheLaughingSpaz
                    FFR Player
                    • Apr 2006
                    • 7

                    #84
                    Re: How to change Stepmania's arrow speed mods

                    Originally posted by JackieMedan
                    How on earth do you even use the speed mods in game? I've just installed stepmania, so I'm not so familiar with it yet.. I've searched the whole options section and I can't find anything regarding speed mods..
                    It's in the menu that you get to by pressing enter after you've selected a song but before it starts. I had a hard time finding that too when I started.

                    Comment

                    • OuterSpace
                      FFR Player
                      • Mar 2006
                      • 40

                      #85
                      Re: How to change Stepmania's arrow speed mods

                      Originally posted by Izzy
                      Move your stepmania folder out of programs files and put it in into my documents. The Vista UAC doesn't like you to change files within the programs folder. You can move stepmania only because it doesn't write anything to the registry.
                      FINALLY!
                      Thank youuuuu. It finally changed.

                      Comment

                      • ddrxero64
                        FFR Player
                        • Nov 2008
                        • 790

                        #86
                        Re: How to change Stepmania's arrow speed mods

                        Maybe this should be updated with sm-ssc details...

                        Comment

                        • hXcalltheway
                          Banned
                          • Sep 2007
                          • 550

                          #87
                          Re: How to change Stepmania's arrow speed mods

                          How to change Cmods on SM5p4?

                          Comment

                          • Yesssss
                            FFR Player
                            • Jul 2005
                            • 2522

                            #88
                            Re: How to change Stepmania's arrow speed mods

                            Originally posted by hXcalltheway
                            How to change Cmods on SM5p4?
                            Data/SpeedMods.txt

                            That's all you need to know.
                            YOU JUST WON THE GAME! CONGRATULATIONS!

                            Comment

                            • Mike Weedmark
                              FFR Veteran
                              • Aug 2009
                              • 1196

                              #89
                              Re: How to change Stepmania's arrow speed mods

                              Originally posted by Yesssss
                              Data/SpeedMods.txt

                              That's all you need to know.
                              Actually, that file is useless now: http://code.google.com/p/sm-ssc/wiki/CustomSpeedMods

                              That might help.

                              Comment

                              • Javege
                                FFR Player
                                • Oct 2011
                                • 7

                                #90
                                Re: How to change Stepmania's arrow speed mods

                                Thanks! this is good program

                                Comment

                                Working...