How to change Stepmania's arrow speed mods

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

    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, 03:03 PM.

    Comment

    • #77
      FFR Player
      OuterSpace
      • Mar 2006
      • 40

      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

      • #78
        Snek
        FFR Simfile Author
        Izzy
        • Jan 2003
        • 9195

        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

        • #79
          FFR Player
          OuterSpace
          • Mar 2006
          • 40

          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

          • #80
            FFR Player
            OuterSpace
            • Mar 2006
            • 40

            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

            • #81
              FFR Player
              dreamxtoxnightmare
              • Apr 2009
              • 1

              Re: How to change Stepmania's arrow speed mods

              Show me how you have it set up.

              Comment

              • #82
                Snek
                FFR Simfile Author
                Izzy
                • Jan 2003
                • 9195

                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

                • #83
                  Dreamer
                  JackieMedan
                  • Dec 2005
                  • 14

                  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

                  • #84
                    FFR Player
                    TheLaughingSpaz
                    • Apr 2006
                    • 7

                    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

                    • #85
                      FFR Player
                      OuterSpace
                      • Mar 2006
                      • 40

                      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

                      • #86
                        FFR Player
                        ddrxero64
                        • Nov 2008
                        • 790

                        Re: How to change Stepmania's arrow speed mods

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

                        Comment

                        • #87
                          Banned
                          hXcalltheway
                          • Sep 2007
                          • 550

                          Re: How to change Stepmania's arrow speed mods

                          How to change Cmods on SM5p4?

                          Comment

                          • #88
                            FFR Player
                            Yesssss
                            • Jul 2005
                            • 2522

                            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

                            • #89
                              FFR Veteran
                              Mike Weedmark
                              • Aug 2009
                              • 1196

                              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

                              • #90
                                FFR Player
                                Javege
                                • Oct 2011
                                • 7

                                Re: How to change Stepmania's arrow speed mods

                                Thanks! this is good program

                                Comment

                                Working...