Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDAUDIO.WAD Not Implemented ? #557

Open
ghost opened this issue Aug 25, 2018 · 10 comments
Open

CDAUDIO.WAD Not Implemented ? #557

ghost opened this issue Aug 25, 2018 · 10 comments

Comments

@ghost
Copy link

ghost commented Aug 25, 2018

I created a cdaudio.wad for tr1 with basic audio loaded for level 1,
but after rewrite the soundtrack load method of tr1 to load wad,


i have an error in log in-game:
"StreamPlay: CANCEL, wrong track index or broken script."
but all will fine in script and name is correct !

@vvs-
Copy link
Contributor

vvs- commented Aug 25, 2018

It's not enough to change just that line. You need to change path as well and function return value too. By default the script uses individual files for each audio track.

@ghost
Copy link
Author

ghost commented Aug 26, 2018

that have no sense because method are defined to load .ogg, cdaudio.wad or .wav but need to change path and return ?
that break all the function, why define wad if the script cant load the cdaudio.wad itself ?

@vvs-
Copy link
Contributor

vvs- commented Aug 26, 2018

The engine itself supports these formats, but apparently there were no efforts to make configuration flexible. I'd remind that OT is of pre-alpha quality with the only developer who put it on hold recently.

@ghost
Copy link
Author

ghost commented Aug 27, 2018

Sorry, i see that is an alpha and the script (lua) have created but not updated (or just for tr3 new audio),
Please, can you add tag to this issue ?
this function need to be updated for tr3.

@vvs- vvs- added this to the TR3 milestone Aug 27, 2018
@vvs-
Copy link
Contributor

vvs- commented Aug 27, 2018

There is a temporary solution in #347 (comment)

@ghost
Copy link
Author

ghost commented Aug 27, 2018

thanks, but temporary solution give the same error :x
ps: the cdaudio not have all sound into it.

@vvs-
Copy link
Contributor

vvs- commented Aug 27, 2018

What SHA-1 hash your cdaudio.wad file has? It should be a80a34748f400affe0f4a18dc347a7b85e4226e5, for TR3 that is. If you have some other file it might not work at all.

P.S. BTW there is another sound bug #538 introduced recently which prevents most tracks from playing.

@ghost
Copy link
Author

ghost commented Aug 28, 2018

i use the tr3 audio.wad from gog games, and file in as tr1 mp3 converted to ogg.
and i not have the same sha-1 (found with 7zip)

@ghost
Copy link
Author

ghost commented Jun 8, 2019

hmm need to change how .WAD work for loading, the SHA-1 is really a problem for level creator because if you want more than 128 audio (for big level/game) the SHA-1 cant be a80a34748f400affe0f4a18dc347a7b85e4226e5

@vvs-
Copy link
Contributor

vvs- commented Jun 8, 2019

No, there is no hardcoded check that files have a particular hash. That was just a simple way for me to verify that your file was genuine, i.e. it should have the same hash if it was from TR3 CD. And if that's different then that particular file might have been corrupted. There is no other way to verify the integrity of some file from unknown source.

OT should work with original .WAD, but it's a moot point right now, because audio support is severely broken in the current version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant