Online song.ini Generator - For the noobs and lazy

What would you like to see added or fixed in FOF?
Forum rules
coolcat50
Member
Posts: 3
Joined: December 29th, 2007
Location: Somewhere
Reputation: 0

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>
User avatar
oed
Member
Posts: 232
Joined: August 1st, 2007
Location: Sweden
Reputation: 0
Contact:

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
ToJa92
Member
Posts: 40
Joined: January 26th, 2008
Location: Sweden
Reputation: 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.
Now Mudkip Flavour!
User avatar
BSRaven
Member
Posts: 5393
Joined: August 29th, 2007
Location: Furiously attempting to FC Gilberto Concerto.
Reputation: 0
Contact:

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)
ToJa92
Member
Posts: 40
Joined: January 26th, 2008
Location: Sweden
Reputation: 0

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.
coolcat50
Member
Posts: 3
Joined: December 29th, 2007
Location: Somewhere
Reputation: 0

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.
Rogue_F
Member
Posts: 1504
Joined: November 2nd, 2006
Reputation: 1

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
User avatar
warhol
Member
Posts: 5422
Joined: March 15th, 2007
Location: Philippines
Reputation: 1
Contact:

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 =
Our dear city is in need of a better environment!
ImageImageImage
ImageImageImage
ToJa92
Member
Posts: 40
Joined: January 26th, 2008
Location: Sweden
Reputation: 0

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.
2 + 2 = 5
MarvinPA
Member
Posts: 3272
Joined: December 23rd, 2007
Location: Not in Portland
Reputation: 0

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.
may I help you?
raph666
Administrator
Posts: 2414
Joined: March 9th, 2007
Location: dans la mer du nord
Reputation: 0
Contact:

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

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

Image
User avatar
skor
Member
Posts: 583
Joined: October 18th, 2007
Location: College
Reputation: 0
Contact:

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.
may I help you?
raph666
Administrator
Posts: 2414
Joined: March 9th, 2007
Location: dans la mer du nord
Reputation: 0
Contact:

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.
User avatar
skor
Member
Posts: 583
Joined: October 18th, 2007
Location: College
Reputation: 0
Contact:

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.
The Final Darkness
User avatar
dadudemandude
Member
Posts: 1725
Joined: September 6th, 2007
Location: Holland
Reputation: 0
Contact:

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

Return to “Thoughts ?”

Who is online

Users browsing this forum: No registered users and 1 guest