Speedmod Generator v2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • #1
    Snek
    FFR Simfile Author
    Izzy
    • Jan 2003
    • 9195

    Speedmod Generator v2


    http://www.flashflashrevolution.com/...p?songid=34980
    Hightail Spaces lets you send unlimited files, of any size, to anyone. Collaborate with your team and evolve your work.


    Download it and tell me if it works correctly.
    Last edited by Izzy; 02-23-2009, 07:39 PM.
  • #2
    Snek
    FFR Simfile Author
    Izzy
    • Jan 2003
    • 9195

    Re: Speedmod Generator v2

    Link up. Soon ill put a download from bluexoon.

    Comment

    • #3
      moonchild~
      FFR Simfile Author
      cedolad
      • Jan 2007
      • 6899

      Re: Speedmod Generator v2

      Never mind, I get it.
      Last edited by cedolad; 02-23-2009, 04:09 PM.

      Comment

      • #4
        FFR Player
        who_cares973
        • Aug 2006
        • 15407

        Re: Speedmod Generator v2

        you should make it so it automatically adds the mods the to metrics and language.inis

        Comment

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

          Re: Speedmod Generator v2

          I should indeed. If i ever figure that out i will get back to you.

          I tried making a streamreader and writer but i couldn't figure out how to sort through the rest of the file to where i needed to write.

          Comment

          • #6
            FFR Veteran
            L0NEvvolf
            • Nov 2006
            • 2069

            Re: Speedmod Generator v2

            What exactly does it do and how does it work?

            Comment

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

              Re: Speedmod Generator v2

              You put in numbers and it gives you the speedmod metrics...


              It can take awhile if you put in large numbers.

              Comment

              • #8
                Threat Emulation
                FFR Simfile Author
                PsYcHoZeRoSk8eR
                • May 2004
                • 5184

                Re: Speedmod Generator v2

                This is pretty cool. If I had actually been paying attention in class these past few weeks I might have been able to help with the streamreader writer but alas, I don't. I might just have to get this to make my life a whole lot easier.

                Originally posted by Lightdarkness
                I'm light f**king darkness

                Comment

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

                  Re: Speedmod Generator v2

                  http://www.flashflashrevolution.com/...p?songid=34980

                  i guess it works to upload it to simfile db.

                  Comment

                  • #10
                    FFR Player
                    who_cares973
                    • Aug 2006
                    • 15407

                    Re: Speedmod Generator v2

                    awesome

                    i'll download this when i'm not on my phone

                    Comment

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

                      Re: Speedmod Generator v2

                      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");
                              }    
                          }
                      }
                      Code for anyone who cares.

                      Comment

                      • #12
                        Wait... what?
                        richyrich55
                        • Feb 2005
                        • 1263

                        Re: Speedmod Generator v2

                        The link from yousendit is expired. Just syk...
                        Originally Posted by Afrobean
                        Come on, guys, this isn't rocket surgery
                        Originally Posted by MrRubix
                        I may be an ass, but I'm usually a very correct ass.
                        Originally Posted by rushyrulz
                        I'm like, totally in love with like, Justin like Bieber. I like don't just like, like him.. I like, like like him. Like totally.
                        R.I.P. Jellygod

                        Comment

                        • #13
                          MCDC 2011
                          tha Guardians
                          • Nov 2006
                          • 1680

                          Re: Speedmod Generator v2

                          Huh. I for some reason have viruses and now there are strange chargers on my credit card. Also I have to pay insurance for my new medications that I didn't know anything about.

                          PLZHALP

                          Noseriously.
                          This looks very helpful. It's a nifty little shortcut. I'll try it out as soon as I get a chance.

                          Originally posted by sonic-fast-fingers
                          can someone clarrify what QFT means my friend told me its quit ****ing talking, but im not 100 percent sure

                          Originally posted by Synthlight
                          I need a car that drives itself completely automated and I want it for free and it needs infinite gas mileage.

                          Cheers,

                          Synthlight

                          Comment

                          • #14
                            FFR Veteran
                            ooobl.
                            • Apr 2008
                            • 228

                            Re: Speedmod Generator v2

                            I haven't tried it yet, but if you're taking suggestions, I think it would be pretty cool if it supported buth 3.9 and the new 4.0 naming format. You know, how 4.0 has a couple of extra quotation marks?

                            Comment

                            • #15
                              Zageron E. Tazaterra
                              FFR Administrator
                              Zageron
                              • Apr 2007
                              • 6592

                              Re: Speedmod Generator v2

                              As for making the custom metrics and language, you could get the program to rewrite the whole text file. It would fail for people with additional customizations, but it would work.
                              Last I checked a C++ based program could process close to 15000 symbols per second, it wouldn't take 5 seconds.

                              It would make it a little full though. Put the text file in there, then were the mod part is input variables instead.

                              Oh god the amount of new lines would be huge. Maybe using 2 text files for each (Split them in half where the speed mods appear) then have them fuse together with the mod variable inserted in between.

                              I doubt the second one would be much work, but I don't have a clue how you'd do it.

                              Edit: Oh and amazing job! O.O

                              Edit 2: When I try to recompile your program I get 28 errors, all of them state that you can't use System in a 'using-declaration'. O.o
                              Last edited by Zageron; 03-14-2009, 01:42 AM.

                              Comment

                              Working...