Staredit Network

Staredit Network -> StarCraft Editing Related -> mp3-osf Importer
Report, edit, etc...Posted by SoftWarewolf on 2005-04-09 at 09:43:37
hey! i just spent a couple hours fiddling with this program..
Download mp3-osf Importer!

it does the whole process of importing a mp3 file to the open sound format (mpq sound)
i was just on my way out and havent tested this enugh.. but i was hoping some of you could smile.gif

please try it out and give me comments
i have ideas on great improvements to this
Report, edit, etc...Posted by Tuxedo Templar on 2005-04-09 at 10:05:37
So it basically converts mp3 to wav, then sticks it in patch_rt? That's nice for convenience, but remember that it would only really be useful if it also added the sounds to the subscribable database, so that others could use it in their maps or download them when they're needed for your maps.


Personally though, I won't be using OSF until there's a "hands free" way to get sounds from an OSF database, as all that anyone would ever end up doing is simply downloading map the old fashion way, sounds and all. To avoid sucking up hard disk space though, an updater program should only update with the sounds for the maps people download that use them.

Maybe also a feature in the maps themselves to detect whether the OSF sounds exist or not for it would also be helpful to ensure people use it, like to prevent their game from running if the sounds don't exist, or something to that effect.


It's a nice start, though. I'll fully support this if it can catch on.

(I'm not at a SC computer, so I can't help you test it ATM. Sry)
Report, edit, etc...Posted by greenreaper on 2005-04-09 at 11:33:29
That's a pretty cool program smile.gif . I tried it out, and everything worked out pretty good.
The only problem I saw was that for the mp3 box there was no scroll left/right thing.
Report, edit, etc...Posted by SoftWarewolf on 2005-04-09 at 11:44:15
well thanks for a good reply smile.gif
the idea i was having is this:

you import any .scx\.scm map into my program, then it converts all .wav files in that map to .ogg or .mp3
then you can right click any mapfile and choose "install osf" or something, then it extracts all ogg\mp3 files from that map and put as .wav into patch_rt

i may also add the feature that its just a .txt file inside the mpq showing url where to download the sounds, so you wont even need the mp3\ogg to be inside the map


however i don't know how to read\write strings inside a map.. so that will probably still have to be done by another editor
Report, edit, etc...Posted by Tuxedo Templar on 2005-04-09 at 12:17:54
You could just stick a text file in the mpq with the links. Though I doubt that'd be useful to casual players.

If you know how to edit chk data, you could add a trigger to warn or draw the game for players without OSF... if you could somehow detect it. That, or just put a message in a trigger at the top of the list (for all human players) at the start of the game saying the map uses OSF sounds, and where to get them.

Hmm, maybe you could extend the .scm/scx thing to include .mpq as well. But yeah, this sounds like it could be very useful.
Report, edit, etc...Posted by LegacyWeapon on 2005-04-09 at 12:33:08
Why use a list to figure out where to get the sounds when you can just use the name and folder of the file.

1) Check mpq listfile to see what sounds you have.
2) Make own list.
3) Connect to internet and check with list.
4) Compare lists and make a third list of all the files you do not have and their path names (The lists would have files like "music/ultratheme.wav")
5) Download the files from let's say "www.staredit.com/osf/" & listitem(1)
6) Add them to mpq.

That way you won't need to update the links file.
Report, edit, etc...Posted by SoftWarewolf on 2005-04-09 at 13:31:47
i suppose il leave it the way it is now for a while..
il fix it up a little bit then submit it to the dl database.

i doubt you heard of it, but i also had a concept for a application called Starweb to download maps. if i also include mpq sounds that can be pretty cool,

whenever you download a new map (with a single button click) it goes directly to maps\starweb\ under your starcraft folder, then it downloads the sounds it uses and extracts to patch_rt. also it modifies SC registry so its "your last played map"
so when you open up b.net again and host game. it shows up with no browsing needed
Report, edit, etc...Posted by KrAzY on 2005-04-09 at 15:05:03
Yay finally, but how about waves like .ogg? Some games are protected and uses .ogg
Report, edit, etc...Posted by chuiu on 2005-04-09 at 17:15:23
Can anyone else get MP3's to work? I can only do .wav files with this.

ADDITION:
Also, mp3 to mpq might not be very practical. A normal 5mb mp3 file can grow to be over 50mb in wav form. Compressed in MPQ around 15mb (these are estimates based on my general knowledge, I may be off by a lot or a little). That takes up a lot of space after a while...
Report, edit, etc...Posted by RexyRex on 2005-04-09 at 17:15:33
Great work SWW.
Works fine for me. smile.gif
Report, edit, etc...Posted by axblader on 2005-04-12 at 22:53:18
fianlly! GJ! this is the first step to help spread the OSF.

also SEN could have a list you can copy and paste onto your file and then you open up your MPQ and it makes 2 lists and checks them to find anything different.

very simple, i belive Word can do this? im not sure but ive seen it somehwhere, but they didnt extract MPQs into text format. bangin.gif

EDIT:

Yoshi can make it that you set it to open a file on your computer everytime you log onto SEN, though i dunno if your comptuer would let you...that way it can compare lists automactically

EDIT:

aha, use cookies! SEN can save a "OSF" cookie file, containing all the names, then a program would be made to read the cookie and your patch_rt.

though i dunno how cookies even work...
Next Page (1)