PDA

View Full Version : Roy's ps2ls, Now with Sound Support


Roy Awesome
2013-02-07, 12:14 AM
I got sounds working. Big thanks to jseidelin on reddit who figured out what was wrong with the FSB header that allowed me to write this into a tool.

https://dl.dropbox.com/u/1940586/ps2ls_RoyBuild5.zip


Changelog:

Build 5:
All the MX files play. I think this covers every sound file, but if you get an ERR_FORMAT, let me know.

Build 4:
This is literally the first build that supports sounds. Not all sounds work (some of the music files have issues), but alot of the DX sounds should work. If you get an ERR_FORMAT, don't worry about it too much, I just haven't figured out which bit in that file to flip yet. It's in progress.

So, yeah, Sound browser is functional and you can hear some of the sounds. Once I get all the formats figured out, I'll get it exporting to WAV so we can use them.

NUKABAZOOKA
2013-02-07, 12:15 AM
Is there a way to apply textures or do we still have to do all the crazy importing etc. to make it work?

Roy Awesome
2013-02-07, 12:25 AM
Is there a way to apply textures or do we still have to do all the crazy importing etc. to make it work?

Check the model browser, the texturing in there works

Roy Awesome
2013-02-07, 02:10 AM
I've release Build 5. You can now listen to every music file in the game.

If you get an ERR_FORMAT, tell me what file caused it (full filename) and I can fix it. Right now I have no way to autodetect the header size, so I have to manually go in and find the offsets to fix.

Hamma
2013-02-07, 06:52 PM
Very nice :D

For those looking for the music files you can grab the MP3s here:

http://jeffbroadbent.com/planet.html

Roy Awesome
2013-02-08, 03:30 AM
Very nice :D

For those looking for the music files you can grab the MP3s here:

http://jeffbroadbent.com/planet.html

This music is better than the stuff in the files. The files still has the synth stuff

Rolfski
2013-02-08, 05:44 AM
Very nice :D

For those looking for the music files you can grab the MP3s here:

http://jeffbroadbent.com/planet.html
Where's the d-load option?

Micro
2013-02-08, 06:50 AM
Where's the d-load option?

Took a look in the Wimpy player; there's a XML that shows the URL:s of the files.
http://www.jeffbroadbent.com/mp3s/playlist_ps2.xml

So, here they are (right click => Save as)
http://www.jeffbroadbent.com/mp3s/tracks/Planetside 2 Main Theme.mp3
http://www.jeffbroadbent.com/mp3s/tracks/Terran Republic Main Theme.mp3
http://www.jeffbroadbent.com/mp3s/tracks/Terran Republic Combat.mp3
http://www.jeffbroadbent.com/mp3s/tracks/Terran Republic Travel.mp3
http://www.jeffbroadbent.com/mp3s/tracks/Vanu Sovereignty Main Theme.mp3
http://www.jeffbroadbent.com/mp3s/tracks/Vanu Sovereignty Combat.mp3
http://www.jeffbroadbent.com/mp3s/tracks/Vanu Sovereignty Travel.mp3
http://www.jeffbroadbent.com/mp3s/tracks/New Conglomerate Main Theme.mp3
http://www.jeffbroadbent.com/mp3s/tracks/New Conglomerate Combat.mp3
http://www.jeffbroadbent.com/mp3s/tracks/New Conglomerate Travel.mp3

Enjoy! :D

SturmovikDrakon
2013-02-08, 10:29 AM
This music is better than the stuff in the files. The files still has the synth stuff

Nah. It's instrumental, otherwise the NC stuff wouldn't have the violin (if that's what you're referring to). The quality is a bit low though

The stuff in Briadbents site is a bit older than what's in game it seems (like the NC theme)

#Edit: comparing the two, the guitar in the NC tracks from the files sounds twice more distorted compared to the ones from Jeff's site

basti
2013-02-08, 04:58 PM
Model exporter doesnt seem to work. Cant export stuff. :/

nformationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei ps2ls.Forms.ModelExportForm.exportModel(Object sender, Object argument)
bei ps2ls.Forms.ModelExportForm.exportDoWork(Object sender, DoWorkEventArgs e)
bei System.ComponentModel.BackgroundWorker.OnDoWork(Do WorkEventArgs e)
bei System.ComponentModel.BackgroundWorker.WorkerThrea dStart(Object argument)


************** Geladene Assemblys **************
mscorlib
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.296 (RTMGDR.030319-2900).
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
----------------------------------------
ps2ls
Assembly-Version: 1.2.0.133.
Win32-Version: 1.2.0.133.
CodeBase: file:///C:/Users/Administrator/Desktop/Tools/PS2Unpack/ps2ls.exe.
----------------------------------------
System.Windows.Forms
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.278 built by: RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.282 built by: RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.296 built by: RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Configuration
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.1 (RTMRel.030319-0100).
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Xml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.233 built by: RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.1 built by: RTMRel.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
OpenTK
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.278.44921.
CodeBase: file:///C:/Users/Administrator/Desktop/Tools/PS2Unpack/OpenTK.DLL.
----------------------------------------
OpenTK.GLControl
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.278.44921.
CodeBase: file:///C:/Users/Administrator/Desktop/Tools/PS2Unpack/OpenTK.GLControl.DLL.
----------------------------------------
mscorlib.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.235 (RTMGDR.030319-2300).
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------
fmodNET
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.0.0.
CodeBase: file:///C:/Users/Administrator/Desktop/Tools/PS2Unpack/fmodNET.DLL.
----------------------------------------
System.Core
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.233 built by: RTMGDR.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
DevILNet
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.0.0.
CodeBase: file:///C:/Users/Administrator/Desktop/Tools/PS2Unpack/DevILNet.DLL.
----------------------------------------
System.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.1 built by: RTMRel.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.





Sorry for the german. :P


thats the error message i get. Any idea what could be the cause?

Roy Awesome
2013-02-08, 06:41 PM
Model exporter doesnt seem to work. Cant export stuff. :/




Sorry for the german. :P


thats the error message i get. Any idea what could be the cause?
Yeah, I'll look into it. You have .net 4.0 installed, right?

basti
2013-02-08, 07:26 PM
I would assume so, but im just giving it a fresh download.

Vonic
2013-02-15, 12:20 AM
Yeah, I'll look into it. You have .net 4.0 installed, right?

I'm also having the same issue. Haven't been able to export models with any of the builds you posted. ps2ls 1.2.0.133 works fine though.

Roy Awesome
2013-02-15, 02:54 AM
I'm also having the same issue. Haven't been able to export models with any of the builds you posted. ps2ls 1.2.0.133 works fine though.


yeah, I broke it. I have it fixed on a local build but I'm still working on sound exporting. Once that is done, i'll release a new build (or just merge with the current ps2ls master)

The Jamhead
2013-02-15, 03:43 AM
Very nice :D

For those looking for the music files you can grab the MP3s here:

http://jeffbroadbent.com/planet.html

Wow, I'd never heard any of the other music before. Us Vanu got stiffed a bit with the music as the other 2 factions have EXCELLENT music!

Hamma
2013-02-15, 09:45 PM
I like them all really - excellent scores.

yozzer
2013-02-16, 05:27 PM
Hey Roy, just to let you know that as soon as i type in the search box of the sound browser it freezes for awhile, and when it comes back and I try to continue typing, it crashes.

Also I get a ERR_FORMAT with AMB_MACH_SPAWN_BEACON_LP.fsp

Thanks for this and keep up the good work.

Derek Icelord
2013-03-04, 04:30 AM
I keep getting ERR_FORMAT for all the sound files.

It also frequently freezes, then crashes out when attempting to load sound files (particularly when I don't have search parameters).

Dewmsday
2013-03-20, 03:07 PM
I got sounds working. Big thanks to jseidelin on reddit who figured out what was wrong with the FSB header that allowed me to write this into a tool.

https://dl.dropbox.com/u/1940586/ps2ls_RoyBuild5.zip


Changelog:

Build 5:
All the MX files play. I think this covers every sound file, but if you get an ERR_FORMAT, let me know.

Build 4:
This is literally the first build that supports sounds. Not all sounds work (some of the music files have issues), but alot of the DX sounds should work. If you get an ERR_FORMAT, don't worry about it too much, I just haven't figured out which bit in that file to flip yet. It's in progress.

So, yeah, Sound browser is functional and you can hear some of the sounds. Once I get all the formats figured out, I'll get it exporting to WAV so we can use them.


yeah, I broke it. I have it fixed on a local build but I'm still working on sound exporting. Once that is done, i'll release a new build (or just merge with the current ps2ls master)

Any progress Roy? This is a very awesome tool. I'm eagerly waiting to extract some sounds... or find a fsb player ;)

Thanks for your hard work!

Derek Icelord
2013-04-16, 05:41 PM
You can download the code from github (https://github.com/RoyAwesome/ps2ls), but I have no idea how to compile it and make it run :(

Roy Awesome
2013-04-16, 08:42 PM
You need Visual Studio 2012 to compile it and OpenTK (google them, both are free).

I'll make a build tonight or so, but I haven't fixed the exporter issue yet.

HiroshiChugi
2013-04-17, 07:17 AM
Very nice :D

For those looking for the music files you can grab the MP3s here:

http://jeffbroadbent.com/planet.html

O_O Thank you thank you thank you thank you thank you thank you!!!!! :D! I can finally listen to some of my favorite themes of all time. T^T

Derek Icelord
2013-04-17, 08:33 AM
You need Visual Studio 2012 to compile it and OpenTK (google them, both are free).

I'll make a build tonight or so, but I haven't fixed the exporter issue yet.

I've got both, and read the instructions on OpenTK. I still feel like I'm stumbling around in the dark.

Thanks for making another build :)

TestyVenom
2013-04-29, 01:58 AM
Any plans to continue work on this? Would be nice if the normals were correct with the exported models.

Roy Awesome
2013-04-29, 02:42 AM
I was actually fixing the exporter issue this morning.

As for broken normals, I just have to recompute them. There is some leftover code from Gelnika regarding this, but it's going to take some effort to retrofit it to work with the vertex streams

Derek Icelord
2013-06-29, 06:45 PM
Any updates on this?

DirtyBird
2013-06-29, 08:52 PM
What happened to the regular patch analysis?
Seems to have died in the ass after much fanfare.