SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [TEC] Sh.sdl (game's master sound mixer) Editor/Viewer (https://www.subsim.com/radioroom/showthread.php?t=184976)

TheDarkWraith 06-28-11 02:13 AM

[TEC] Sh.sdl (game's master sound mixer) Editor/Viewer
 
v1.2.0

This is a little app I've been working on to make editing/viewing/comparing of the SH3/4/5 SDL file easier and more importantly in human readable form. You can open and compare SDL files (compare splits the window in two and opens the other SDL file in the second pane) and also add new records to an SDL file. As I continue working on it you'll be able to do much more with the SDL file.

When you open an SDL file the app checks the file to verify it's integrity/correctness. If it finds any errors it will tell you what and where the problem is so you can correct it (you can now edit all entries). You have the option of verifying that the .wav file exists for each WaveName entry in the SDL file. A search function is available that allows you to search for items.

You can also jump to each error, caution, duplicate, and folder by using the menu.

The options file is updated when the app is closed.

Fixed some logic errors found.

Added the ability to view each individual field of SDL file.

There is an options file that the user can edit (SDL_Editor.cfg)

This can be used with SH3/4/5 SDL files

http://www.subsim.com/radioroom/pict...pictureid=4601

v1.2.0: https://www.mediafire.com/?xdyb36gwe1vhxwa
v1.2.0 Subsim downloads: http://www.subsim.com/radioroom/down...o=file&id=3298

:|\\

Zedi 06-28-11 03:00 AM

Q: If a sdl have included Stormy sound files but the player is not using that mod, what happens? Will the sdl file keep looking for those sound files and eventually crash the game if it fails to localize them?

Obelix 06-28-11 03:10 AM

Very nice!:salute:
It would be nice if the difference is highlighted, as in other comparators.
http://www.subsim.com/radioroom/pict...pictureid=4463

urfisch 06-28-11 06:20 AM

interesting stuff! thanks!

Reece 06-28-11 07:28 AM

I assume that S3D doesn't work with SH5's version?:hmmm:

Obelix 06-28-11 07:56 AM

Quote:

Originally Posted by Reece (Post 1693041)
I assume that S3D doesn't work with SH5's version?:hmmm:

S3D is working with a version of SH5.
But the chances of the current version TDW_SDL_Editor already a little wider, and in the future will be even more opportunities.

TheDarkWraith 06-28-11 09:00 AM

Quote:

Originally Posted by Reece (Post 1693041)
I assume that S3D doesn't work with SH5's version?:hmmm:

I don't use S3D so I couldn't tell you :DL

TheDarkWraith 06-28-11 09:01 AM

Quote:

Originally Posted by Obelix (Post 1692930)
Very nice!:salute:
It would be nice if the difference is highlighted, as in other comparators.

I'm not done with the app yet :up:

TheDarkWraith 06-28-11 09:04 AM

Quote:

Originally Posted by Zedi (Post 1692921)
Q: If a sdl have included Stormy sound files but the player is not using that mod, what happens? Will the sdl file keep looking for those sound files and eventually crash the game if it fails to localize them?

It shouldn't. The sdl file is the game's master sound mixer and it just tells the game how to use the sound files and what sounds are associated with what names. If the defined names are never used then there shouldn't be a problem. If a defined name is used and a sound file isn't found then there could be a problem.

Obelix 06-28-11 09:06 AM

Quote:

Originally Posted by TheDarkWraith (Post 1693099)
I'm not done with the app yet :up:

I noticed this during testing:yep:. We are waiting for final release!:up:

Zedi 06-28-11 11:40 AM

Quote:

Originally Posted by TheDarkWraith (Post 1693100)
It shouldn't. The sdl file is the game's master sound mixer and it just tells the game how to use the sound files and what sounds are associated with what names. If the defined names are never used then there shouldn't be a problem. If a defined name is used and a sound file isn't found then there could be a problem.

Ok, thanks. This is an important note for everyone working on compatibility issues.

Vorkapitan 06-28-11 11:27 PM

TDW,

What took you so long :har::har::har:.

I've been waiting SOOooo long for this.

Thank you TDWizard! :up::up::up:

TheDarkWraith 06-29-11 09:57 AM

Added compare function. This compare function works like WinMerge in that differences are highled in red on both sides. You can then merge from 1-->2 or 2-->1 to automatically add the missing entries. You can also merge single entries.

The delete function now works. You can select an entry and remove it from the file.

Currently coding in the add functions.

Save and Save as functions now save the file.

Still have to code in the edit functions to allow you to edit individual fields of an entry.

Added in the ability to have the app check to see if the sound files are present for each entry that defines a sound file (WaveFile has an entry in it)

App now checks for duplicate entries in the file. If some are found they are highlighted in cyan. You cannot save the file until all errors are removed (including duplicate entries). Duplicate entries are defined as 'Name' being equal on two or more entries.

Have plans to further this to also check .dsd files.

urfisch 06-29-11 02:44 PM

if there is one file for controlling the sounds...is there also one file, that controls the ai in sh5 or also in sh3? as you might saw, in sh3 they are trying to add a new version of wolfpacks. but there are problems in understanding the ai, as the ai-uboat does not work properly.

:hmmm:

tonschk 06-29-11 04:53 PM

Thank you :up: TheDarkWraith :rock:


All times are GMT -5. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.