It is currently Tue Sep 07, 2010 1:59 am

Online song.ini Generator - For the noobs and lazy

What would you like to see added or fixed in FOF?
Forum rules

Postby coolcat50 » Mon Mar 24, 2008 4:02 pm

Well, I believe that it could be very useful having a online based song.ini generator on the website or something. I have prepared a PHP script for you to view.

Nopaste link:[link]

Code:
Code: Select all
<html>
<head>
<title>Frets on Fire song.ini Generator</title>
</head>
<body>
<?php
/*-----------------------------------------------------------------------------------------
-------/
Frets on Fire song.ini generator ver 0.1 beta
Scripted by: coolcat50
/------------------------------------------------------------------------------------------
------*/
if (isset($_POST['submit'])) {
   //Retrieve form data
   $songname = $_POST['song'];
   $artist = $_POST['artist'];
   //$_POST['test'] is the Cassette Color. For an odd reason it is the only name that is transferring its value to $col
   $col = $_POST['test'];
   //Display text to copy into file inside of textarea
?>
   Ini file:
   <form>
   <textarea rows="10" cols="30">
[song]
artist = <?php echo $artist."\n";?>
name = <?php echo $songname."\n";?>
cassettecolor = <?php echo $col."\n";?>
   </textarea><br />
   Copy and paste the text inside the box into a song.ini file.
   </form>
<?php
   } else {
?>
<form name="inigen" method="post">
Song: <input type="text" name="song" /><br />
Artist: <input type="text" name="artist" /><br />
Cassete Color (HTML format) <input type="text" name="test" value="#000000" /><br />
<input type="submit" value="Generate" name="submit" />
</form>
<?php
}
?>
</body>
</html>
coolcat50
Member
 
Posts: 3
Joined: Sat Dec 29, 2007 7:51 pm
Location: Somewhere
Karma: 0

Postby oed » Wed Mar 26, 2008 3:12 am

cool, could be usefull, but you need to put up an exemple cause not that many people know php and know what this means...
ImageImage
User avatar
oed
Member
 
Posts: 231
Joined: Wed Aug 01, 2007 11:27 am
Location: Sweden
Karma: 0

Postby ToJa92 » Wed Mar 26, 2008 6:10 am

I'll post the version above in about three minutes.
There you go: Online song.ini generator
NOTE: The rest of my site sucks, so no commenting about that, ok? :) I will probably redesign the whole script a little bit, so you know ;)
Last edited by ToJa92 on Wed Mar 26, 2008 6:12 am, edited 1 time in total.
ToJa92
Member
 
Posts: 40
Joined: Sat Jan 26, 2008 7:38 am
Location: Sweden
Karma: 1

Postby BSRaven » Wed Mar 26, 2008 6:37 am

I suggest adding a "Fretter" option

(in the ini for Rock 'n' Roll Revolution, it's
Code: Select all
frets = BSRaven and Nate Monoxide
, as an example)
Image
All songs here =) HOLY HELL FOF HERO GOT RELEASED! (And now 2!) Rock the Raven (RELEASED!)
Amount of Best Guitar Fretting contests placed in (overall ranks): 1 (July 08 - #5)
Amount of Best Drum Fretting contests placed in (overall ranks): 1 (January 09 - #7)
Now Mudkip Flavour!
User avatar
BSRaven
Member
 
Posts: 5387
Joined: Wed Aug 29, 2007 1:31 pm
Location: Furiously attempting to FC Gilberto Concerto.
Karma: 1

Postby ToJa92 » Wed Mar 26, 2008 6:50 am

BSRaven wrote:I suggest adding a "Fretter" option

(in the ini for Rock 'n' Roll Revolution, it's
Code: Select all
frets = BSRaven and Nate Monoxide
, as an example)

Fixed. Hope coolcat 50 don't mind. If 'fretter' field is empty, it don't appear. Else it appear with syntax you gave me.

If anyone has a random suggestion, please post :)
Last edited by ToJa92 on Wed Mar 26, 2008 7:03 am, edited 1 time in total.
ToJa92
Member
 
Posts: 40
Joined: Sat Jan 26, 2008 7:38 am
Location: Sweden
Karma: 1

Postby coolcat50 » Wed Mar 26, 2008 2:14 pm

Well, I would have added that anyway if I knew about it. I am not much of a song writer and I don't know all the properties of the ini file. It is fine, and you can add a little note in the main comment about your addition. I will add it to the main post, if you wish.
coolcat50
Member
 
Posts: 3
Joined: Sat Dec 29, 2007 7:51 pm
Location: Somewhere
Karma: 0

Postby Rogue_F » Wed Mar 26, 2008 2:34 pm

I'm planning on adding a song.ini generator in the world charts.
It should include all of the info (including new stuff that doesn't do much for you yet).
Some information would be good to verify (like the song author for frets=)

when that will happen, who knows.

-Alex
Rogue_F
Member
 
Posts: 1504
Joined: Thu Nov 02, 2006 3:40 am
Karma: 0

Postby warhol » Wed Mar 26, 2008 8:43 pm

I can do that easy! Watch.

Instructions: Copy/paste into a text file saved as a song.ini in a new song directory.

[song]
artist =
name =
scores =
cassette color =
Image
Image
feels old
User avatar
warhol
Member
 
Posts: 5070
Joined: Thu Mar 15, 2007 7:48 am
Location: Philippines
Karma: 10

Postby ToJa92 » Thu Mar 27, 2008 4:28 am

I might do a version where it makes a file with these content instead, I'll see if I do it.
ToJa92
Member
 
Posts: 40
Joined: Sat Jan 26, 2008 7:38 am
Location: Sweden
Karma: 1

Postby MarvinPA » Thu Mar 27, 2008 8:26 am

Hey! this is cool! what about Delay? Some people like delay to be in the ini file. and perhaps BPM if that goes in the ini.

It's cool though.
2 + 2 = 5
User avatar
MarvinPA
Member
 
Posts: 3271
Joined: Sun Dec 23, 2007 1:16 pm
Location: Not in Portland
Karma: 3

Postby raph666 » Thu Mar 27, 2008 9:19 am

If it interests anyone, offline generator:
http://fretsonfire.phonotheque.ca/generate_song_ini.rar

Image
may I help you?
raph666
Administrator
 
Posts: 2394
Joined: Fri Mar 09, 2007 1:15 pm
Location: dans la mer du nord
Karma: 9

Postby skor » Thu Mar 27, 2008 9:34 am

Raph thats done in VB i assume...?

If so i think you can add a color selection pallet to that so the user wouldn't have to randomly enter the color.... I don't remember how to do that though... I think it might be one of the add-in components in Visual Studio 6.0

Edit: or you can make another form with some preset colors...
Just some food for thought... shouldn't be too much coding... I think i might try and figure out how to do that... if i'm not too lazy.
Last edited by skor on Thu Mar 27, 2008 9:38 am, edited 1 time in total.
User avatar
skor
Member
 
Posts: 583
Joined: Thu Oct 18, 2007 4:53 pm
Location: College
Karma: 0

Postby raph666 » Thu Mar 27, 2008 10:36 am

skor wrote:so the user wouldn't have to randomly enter the color.... I don't remember how to do that though...

Hexcolor code are not random and easy to understand, they represent the amount of RGB in your color "mix":
#RRGGBB where each digit varies from 0 to F
So #FF0000 is full red, #00FF00 full green and #0000FF full blue. You create different colors by choosing the amount you want.
#FF3300: lots of red, a bit of green, no blue = orange

It has been done with c#, a language i started to learn 3hours ago. i added the color picker and fixed a small bug (update) but i don't believe i will continue to work on this as it is quite a useless tool in my opinion. creating song.ini is, even with notepad, in no way a complex task
Last edited by raph666 on Thu Mar 27, 2008 10:37 am, edited 1 time in total.
may I help you?
raph666
Administrator
 
Posts: 2394
Joined: Fri Mar 09, 2007 1:15 pm
Location: dans la mer du nord
Karma: 9

Postby skor » Thu Mar 27, 2008 12:50 pm

raph666 wrote:
skor wrote:so the user wouldn't have to randomly enter the color.... I don't remember how to do that though...

Hexcolor code are not random and easy to understand, they represent the amount of RGB in your color "mix":
#RRGGBB where each digit varies from 0 to F
So #FF0000 is full red, #00FF00 full green and #0000FF full blue. You create different colors by choosing the amount you want.
#FF3300: lots of red, a bit of green, no blue = orange

It has been done with c#, a language i started to learn 3hours ago. i added the color picker and fixed a small bug (update) but i don't believe i will continue to work on this as it is quite a useless tool in my opinion. creating song.ini is, even with notepad, in no way a complex task

I didn't mean random... i just meant it would help not having to guess a value and make it easier to select the desired color...

Bu ya... its no big deal... cool little app for those who are note-pad challenged.
User avatar
skor
Member
 
Posts: 583
Joined: Thu Oct 18, 2007 4:53 pm
Location: College
Karma: 0

Postby dadudemandude » Fri Apr 04, 2008 10:42 am

Well, with Raph's song.ini generator I think this topic can pretty much be closed now unless people have more suggestions.
A lot on my mind
User avatar
dadudemandude
Member
 
Posts: 1653
Joined: Thu Sep 06, 2007 3:16 pm
Location: Holland
Karma: 18

Next

Return to Thoughts ?

Who is online

Users browsing this forum: No registered users and 0 guests