Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Conflict: Vietnam (XBOX) STREAM.SWD

Featured Replies

  • Author
  • Localization

Mygoshi, posted Sat Jan 06, 2018 10:42 pm (31345)


Hello, I need help to extract the STREAM.SWD archive from Conflict: Vietnam (XBOX) which contains PSF segments.

Any help to extract this please?

https://mega.nz/#!Cp8FyLhI!8eXyVwNF3KnD ... 3nvfiNYSK0

Thanks in advance.

Edit: This issue is solved.

Solution: Download Foobar2000 and install it. Once it's done, look for the vgmstream plugin, install it and make sure it's active. Then, simply drag and drop the STREAM.SWD onto Foobar2000 and it'll split the files which are inside. You'll be able to play them without problem.
  • Author
  • Localization

aluigi, posted Sun Jan 07, 2018 10:03 pm (31373)


That's just a container because there are no information at the end of the file.
Is there an index file?
Worst case scenario we can make a lame PSF dumper.
  • Author
  • Localization

aluigi, posted Sun Jan 07, 2018 10:18 pm (31376)


Better to go with a dumper:
Code:
findloc OFFSET binary "PSF"
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET binary "PSF" 0 ""
    if NEXT_OFFSET == ""
        get SIZE asize
    else
        math SIZE = NEXT_OFFSET
    endif
    math SIZE -= OFFSET
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""
  • Author
  • Localization

Mygoshi, posted Sun Jan 07, 2018 10:22 pm (31377)


Thank you very much, aluigi! I'm going to try it when I can.
  • Author
  • Localization

Mygoshi, posted Sun Jan 07, 2018 10:34 pm (31379)


It extracted the segments perfectly. Thx again.
  • Author
  • Localization

Mygoshi, posted Sun Jan 07, 2018 10:44 pm (31380)


I found SCH files which could help understanding the SWD format better to write a proper script, avoiding the dumper.

Here they are: (expired)
  • Author
  • Localization

aluigi, posted Sun Jan 07, 2018 10:49 pm (31381)


I don't think that the sch files are referred to the swd container, didn't check, just supposing since they are probably just "referring" to the psf files and not indexing them.
Anyway if the dumper works, what else?
  • Author
  • Localization

Mygoshi, posted Sun Jan 07, 2018 10:52 pm (31382)


In fact, the music is sequenced. There are 8000 files extracted, that would be too long to listen to each file and to know which segment is related to a certain music etc. I already did it with a lot of other games, and I think it's a complicated way to reconstruct music. Otherwise, yes, the dumper works, thank you. Is there a possibility to sort the filenames as decimal please? Maybe it would help me to extract them in order.
  • Author
  • Localization

aluigi, posted Sun Jan 07, 2018 11:04 pm (31386)


8000? wow!
You can use the -N option for decimal filenames.
Maybe the index is located in the game executable, sometimes it happens but honestly I would like to avoid to check this type of stuff.
If you want to try check in the exe and if you need some "constants" to search use the offset of the last PSF file and if you don't find it use its value divided by 0x800.
For example the last psf is at offset 0x34b7c800 so the second number to search for recognizing the index/TOC is 0x000696f9.
  • Author
  • Localization

Mygoshi, posted Sun Jan 07, 2018 11:08 pm (31387)


Thank you for the information. I think the better solution here is to check the other platforms. PC will be the same I think, so I'm gonna check PS2. I'm pretty sure PS2 also uses a big SWD container, but maybe something like an index file is in the directory. We can't know at the moment.
  • Author
  • Localization

Mygoshi, posted Sun Jan 07, 2018 11:19 pm (31389)


Ok, PC version has SoundPC folder that appears directly. No Stream.swd.
  • Author
  • Localization

Mygoshi, posted Tue Jan 09, 2018 9:02 pm (31441)


Problem solved. PC version has direct PSF and they are supported by the "great_escape.bms" script.
  • Author
  • Localization

KaosEngineer, posted Thu May 31, 2018 8:40 am (35453)


aluigi wrote:
Better to go with a dumper:
Code:
findloc OFFSET binary "PSF"
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET binary "PSF" 0 ""
    if NEXT_OFFSET == ""
        get SIZE asize
    else
        math SIZE = NEXT_OFFSET
    endif
    math SIZE -= OFFSET
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""

What computer language is this in?

has someone implemented such a dumper?

What are PSF files? First time looking into decoding Conflict: Vietname (Xbox) data.

Also, looking for the graphics to edit the displayed names on the 4 game character status bars.
  • Author
  • Localization

KaosEngineer, posted Thu May 31, 2018 8:50 am (35455)


aluigi wrote:
It's a script for QuickBMS:
http://quickbms.aluigi.org

I see now. I entered this site on this thread looking for info on Conflict: Vietnam.

Thanks for the quick reply.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.