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

Can't load the sound 'human/basic_voices/ready.wav' #241

Closed
ChefKeeper opened this issue May 24, 2017 · 21 comments · Fixed by #253
Closed

Can't load the sound 'human/basic_voices/ready.wav' #241

ChefKeeper opened this issue May 24, 2017 · 21 comments · Fixed by #253

Comments

@ChefKeeper
Copy link
Contributor

Hello,

I've just tested wargus on my windows 8 with the battle.net edition.
When I install wargus everything goes well until the end where I got loads of message that it can't load the sound files (tested with 2.4 and 2.4.1) :
Can't open file 'human/basic_voices/ready.wav'
Can't load the sound 'human/basic_voices/ready.wav'
Can't open file 'human/basic_voices/help/1.wav'
Can't load the sound 'human/basic_voices/help/1.wav'
Can't open file 'human/basic_voices/help/2.wav'
Can't load the sound 'human/basic_voices/help/2.wav'
Can't open file 'human/basic_voices/dead.wav'
Can't load the sound 'human/basic_voices/dead.wav'
Can't open file 'orc/basic_voices/ready.wav'
etc...

basicly the game works pretty well, I even have the game music only missing sounds are the voices :(

Tell me if you need more informations.

Cheers.

@DinkyDyeAussie
Copy link
Contributor

Do you have the DOS CD at all? I have used that version with no problems. I have the bnet version too and will try it out later.

If possible you can do a manual extraction of the game files by opening cmd.exe using the run option.

Use parameter:

wartool -r -v <battle.net data directory>

So for example

wartool -r -v c:\games\war2 c:\games\wargus

This will start the process. I am pretty sure the battlenet edition of the game is different than the DOS version, and reads from the install directory like stargus does for starcraft now.

If not just use this instead:

wartool -r -v d:\data c:\games\wargus

@ChefKeeper
Copy link
Contributor Author

No I haven't the DOS CD.
When doing extraction manualy I got these errors :

Can't open pud file: ./maps/Classic/Expansion/Web.pud maps/Classic/Expansion/WizWar.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/WizWar.pud" Can't open pud file: ./maps/Classic/Expansion/WizWar.pud maps/Classic/Expansion/Scenario/4_step.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/4_step.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/4_step.pud maps/Classic/Expansion/Scenario/Anarchy.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Anarchy.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Anarchy.pud maps/Classic/Expansion/Scenario/Burn_It.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Burn_It.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Burn_It.pud maps/Classic/Expansion/Scenario/Chess.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Chess.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Chess.pud maps/Classic/Expansion/Scenario/DeadMeet.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/DeadMeet.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/DeadMeet.pud maps/Classic/Expansion/Scenario/Falsie.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Falsie.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Falsie.pud maps/Classic/Expansion/Scenario/FireRing.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/FireRing.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/FireRing.pud maps/Classic/Expansion/Scenario/Football.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Football.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Football.pud maps/Classic/Expansion/Scenario/Fortress.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Fortress.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Fortress.pud maps/Classic/Expansion/Scenario/GrtWall.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/GrtWall.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/GrtWall.pud maps/Classic/Expansion/Scenario/Heroes1.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Heroes1.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Heroes1.pud maps/Classic/Expansion/Scenario/Heroes2.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Heroes2.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Heroes2.pud maps/Classic/Expansion/Scenario/Invasion.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Invasion.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Invasion.pud maps/Classic/Expansion/Scenario/Jail.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Jail.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Jail.pud maps/Classic/Expansion/Scenario/MagIsle.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/MagIsle.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/MagIsle.pud maps/Classic/Expansion/Scenario/Massacre.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Massacre.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Massacre.pud maps/Classic/Expansion/Scenario/Midland.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Midland.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Midland.pud maps/Classic/Expansion/Scenario/MinasTir.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/MinasTir.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/MinasTir.pud maps/Classic/Expansion/Scenario/Onslaugh.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Onslaugh.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Onslaugh.pud maps/Classic/Expansion/Scenario/Rescue.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Rescue.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Rescue.pud maps/Classic/Expansion/Scenario/Sacrific.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Sacrific.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Sacrific.pud maps/Classic/Expansion/Scenario/Sparta.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Sparta.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Sparta.pud maps/Classic/Expansion/Scenario/Stone.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Stone.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Stone.pud maps/Classic/Expansion/Scenario/Suicide.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Suicide.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Suicide.pud maps/Classic/Expansion/Scenario/Time.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Time.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Time.pud maps/Classic/Expansion/Scenario/TrenchWar.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/TrenchWar.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/TrenchWar.pud maps/Classic/Expansion/Scenario/WaterRes.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/WaterRes.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/WaterRes.pud maps/Classic/Expansion/Scenario/Wish.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Expansion/Scenario/Wish.pud" Can't open pud file: ./maps/Classic/Expansion/Scenario/Wish.pud maps/Classic/Scenario/Alamo.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Scenario/Alamo.pud" Can't open pud file: ./maps/Classic/Scenario/Alamo.pud maps/Classic/Scenario/Channel.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Scenario/Channel.pud" Can't open pud file: ./maps/Classic/Scenario/Channel.pud maps/Classic/Scenario/Death.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Scenario/Death.pud" Can't open pud file: ./maps/Classic/Scenario/Death.pud maps/Classic/Scenario/Dragon.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Scenario/Dragon.pud" Can't open pud file: ./maps/Classic/Scenario/Dragon.pud maps/Classic/Scenario/Icebrdge.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Scenario/Icebrdge.pud" Can't open pud file: ./maps/Classic/Scenario/Icebrdge.pud maps/Classic/Scenario/Islands.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Scenario/Islands.pud" Can't open pud file: ./maps/Classic/Scenario/Islands.pud maps/Classic/Scenario/Land_Sea.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Scenario/Land_Sea.pud" Can't open pud file: ./maps/Classic/Scenario/Land_Sea.pud maps/Classic/Scenario/Mutton.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/Classic/Scenario/Mutton.pud" Can't open pud file: ./maps/Classic/Scenario/Mutton.pud maps/ladder/Arctic Circle BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/Arctic Circle BNE.pud" Can't open pud file: ./maps/ladder/Arctic Circle BNE.pud maps/ladder/Bridge to bridge combat BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/Bridge to bridge combat BNE.pud" Can't open pud file: ./maps/ladder/Bridge to bridge combat BNE.pud maps/ladder/Fierce ocean combat BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/Fierce ocean combat BNE.pud" Can't open pud file: ./maps/ladder/Fierce ocean combat BNE.pud maps/ladder/Forest Trail BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/Forest Trail BNE.pud" Can't open pud file: ./maps/ladder/Forest Trail BNE.pud maps/ladder/Frog Legs BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/Frog Legs BNE.pud" Can't open pud file: ./maps/ladder/Frog Legs BNE.pud maps/ladder/Garden of war BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/Garden of war BNE.pud" Can't open pud file: ./maps/ladder/Garden of war BNE.pud maps/ladder/High seas combat BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/High seas combat BNE.pud" Can't open pud file: ./maps/ladder/High seas combat BNE.pud maps/ladder/Mine in the center BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/Mine in the center BNE.pud" Can't open pud file: ./maps/ladder/Mine in the center BNE.pud maps/ladder/No way out of this maze BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/No way out of this maze BNE.pud" Can't open pud file: ./maps/ladder/No way out of this maze BNE.pud maps/ladder/Plains of snow BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/Plains of snow BNE.pud" Can't open pud file: ./maps/ladder/Plains of snow BNE.pud maps/ladder/Skull isle BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/Skull isle BNE.pud" Can't open pud file: ./maps/ladder/Skull isle BNE.pud maps/ladder/The four corners BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/The four corners BNE.pud" Can't open pud file: ./maps/ladder/The four corners BNE.pud maps/ladder/The spiral BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/ladder/The spiral BNE.pud" Can't open pud file: ./maps/ladder/The spiral BNE.pud maps/scenario/A Tight Spot BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/scenario/A Tight Spot BNE.pud" Can't open pud file: ./maps/scenario/A Tight Spot BNE.pud maps/scenario/Bombs Away BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/scenario/Bombs Away BNE.pud" Can't open pud file: ./maps/scenario/Bombs Away BNE.pud maps/scenario/Fire in the Water BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/scenario/Fire in the Water BNE.pud" Can't open pud file: ./maps/scenario/Fire in the Water BNE.pud maps/scenario/Horse Shoe Island BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/scenario/Horse Shoe Island BNE.pud" Can't open pud file: ./maps/scenario/Horse Shoe Island BNE.pud maps/scenario/Ice Fortress BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/scenario/Ice Fortress BNE.pud" Can't open pud file: ./maps/scenario/Ice Fortress BNE.pud maps/scenario/Instant Action BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/scenario/Instant Action BNE.pud" Can't open pud file: ./maps/scenario/Instant Action BNE.pud maps/scenario/Invasion BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/scenario/Invasion BNE.pud" Can't open pud file: ./maps/scenario/Invasion BNE.pud maps/scenario/Opposites Attract BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/scenario/Opposites Attract BNE.pud" Can't open pud file: ./maps/scenario/Opposites Attract BNE.pud maps/scenario/Ramparts BNE.pud: MPQ file "H://INSTALL.EXE" Failed to extract "maps/scenario/Ramparts BNE.pud" Can't open pud file: ./maps/scenario/Ramparts BNE.pud music/Human Battle 1.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/HUMAN1.WAV" music/Human Battle 2.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/HUMAN2.WAV" music/Human Battle 3.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/HUMAN3.WAV" music/Human Battle 4.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/HUMAN4.WAV" music/Human Battle 5.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/HUMAN5.WAV" music/Human Battle 6.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/HUMAN6.WAV" music/Orc Battle 1.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/ORC1.WAV" music/Orc Battle 2.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/ORC2.WAV" music/Orc Battle 3.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/ORC3.WAV" music/Orc Battle 4.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/ORC4.WAV" music/Orc Battle 5.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/ORC5.WAV" music/Orc Battle 6.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/ORC6.WAV" music/Human Briefing.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/HWARROOM.WAV" music/Orc Briefing.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/OWARROOM.WAV" music/Human Victory.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/HVICTORY.WAV" music/Orc Victory.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/OVICTORY.WAV" music/Human Defeat.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/HDEFEAT.WAV" music/Orc Defeat.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/ODEFEAT.WAV" music/Main Menu.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/OWARROOM.WAV" music/I'm a Medieval Man.wav: MPQ file "H://INSTALL.EXE" Failed to extract "Music/DISCOWC.WAV" Done.

By the way were is the documentation to use wartool.exe ?
The readme tells to go on this page : http://wargus.github.io/ and on this page there's only a video telling to use the instaler with bnet edition... ?

@timfel
Copy link
Member

timfel commented May 25, 2017 via email

@ChefKeeper
Copy link
Contributor Author

I'd be happy to do it if you tell me how ;)

@ChefKeeper
Copy link
Contributor Author

Hey I did some testing, when I extracted the w2BNET MPQ with the MPQ Editor from : http://www.zezula.net/en/mpq/download.html and the listfile from same url I got a succesfull extraction with all the files with correct names.
After using the https://github.com/Wargus/wargus/blob/master/wartool.h I manually copyed some of the sounds to the correct place (tested peon, elven archer, footman) and I got them talking :)

Now my next step is going to try to understand why wartool can't do this.
What are the steps to get it working from sources ?

@pali
Copy link
Contributor

pali commented May 26, 2017

If you want to list or extract files from MPQ archives, you can use my SMPQ command line tool: https://launchpad.net/smpq

It is fully open source, based on stormlib library (same which uses MPQ Editor) so you can easily compare results or investigate where can be problems...

Tool is also available in Ubuntu or Debian standard repository.

@timfel
Copy link
Member

timfel commented May 29, 2017

@ChefKeeper can you check that the files and paths that the mpq editor shows you for install.exe are the same as the ones in wartool.h? e.g. there should be a file Gamesfx/human/hwhat1.wav that should get extracted to sounds/human/basic_voices/selected/1.wav (https://github.com/Wargus/wargus/blob/master/wartool.h#L1617).

@ChefKeeper
Copy link
Contributor Author

So I started my investigations, I managed to compile from source on linux.
After replacing the content of the BNEReplaceTable to lowercase : https://github.com/Wargus/wargus/blob/master/wartool.h#L182 (linux is case sensitive), I got wartool runing in apparence similar to the windows version I have.
However when I look for the extracted datas in ~/.stratagus many files are missing not only the sounds but also all the textures, but I only got errors for the sounds... ?

@timfel the MPQ editor doesn't allow me to open install.exe maybe that's the problem because wartool tries to extract from a non valid MPQ ie : install.exe ?

@timfel
Copy link
Member

timfel commented May 31, 2017 via email

@pali
Copy link
Contributor

pali commented May 31, 2017

Are data really stored in install.exe? Is that file big enough so it could contain those data? Have you tried smpq for verification?

@timfel
Copy link
Member

timfel commented May 31, 2017 via email

@ChefKeeper
Copy link
Contributor Author

Ok now I have the same extraction on linux as windows (had to install ffmpeg2theora even for images ... ?)
But now I still can't start wargus, I got this error :

Stratagus failed to load game data. If you just launched the game without any arguments, this may indicate a bug with the extraction process. Please report this on https://github.com/Wargus/stratagus/issues/new, and please give details, including: operating system, installation path, username, kind of source CD. A possible solution is to remove the hidden folder /home/olivier/.stratagus/data.Wargus).

But actually I think it's stratagus fault this time ^^, because when I try to launch I got a segfault, and when I compile in debug and run gdb I got this :

(gdb) run
Starting program: /home/olivier/stratagus/stratagus-dbg 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7bb7d60 in ?? () from /usr/lib/liblua.so.5.3

Any idea ?

@timfel
Copy link
Member

timfel commented Jun 2, 2017 via email

@ChefKeeper
Copy link
Contributor Author

ChefKeeper commented Jun 2, 2017

I also can't compile metaserver got error when making :

make[2]: *** No rule to make target 'metaserver/cmd.cpp', needed by 'CMakeFiles/metaserver.dir/metaserver/cmd.cpp.o'. Stop.
make[1]: *** [CMakeFiles/Makefile2:179: CMakeFiles/metaserver.dir/all] Error 2
make: *** [Makefile:128: all] Error 2

So stratagus should work with 5.1 ? I'll try that

@timfel
Copy link
Member

timfel commented Jun 5, 2017

@ChefKeeper

  • metaserver/cmd.cpp is part of the source tree, it should be there.
  • did you try 5.1?
  • another thing, did you try installing Warcraft BNE (with Wine) and try to extract from War2Dat.mpq in the installation folder?

@ChefKeeper
Copy link
Contributor Author

  • Maybee I deleted the file without knowing, I'll check this evening
  • Yes I manually edited CMakeCache.txt the line with lua includes added /lua5.1 to the path, theres probably a fix for that to add in CMakeList.txt or maybee the findtolua mudule ?
  • Actually I found out something interesting : the warcraft 2 BNE install.exe is a disguised mpq file, and I retryed to open it with mpq editor and could open it in read only mode ! (I did this on windows 8)
    Did few test in debug and the error starts with SFileOpenFileEx : https://github.com/Wargus/wargus/blob/master/wartool.cpp#L509 but I don't know why it have an error here...

@ChefKeeper
Copy link
Contributor Author

  • I retested compiling metaserver from stratagus repository here's the error I got :
 [ 99%] Linking CXX executable metaserver
/usr/bin/ld: cannot open output file metaserver: Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/metaserver.dir/build.make:228: metaserver] Error 1
make[1]: *** [CMakeFiles/Makefile2:236: CMakeFiles/metaserver.dir/all] Error 2
make: *** [Makefile:117: all] Error 2

I guess the problem is that the output binary has the same name as the directory : metaserver

22(gdb) run -r -v ../w2 data
23Starting program: /home/olivier/wargus/wartool -r -v ../w2 data
24
25Breakpoint 1, ExtractMPQFile (szArchiveName=0x7fffffffdcd0 "../w2/install.exe", szArchivedFile=0x42eccf "files/War2Dat.mpq", szFileName=0x7fffffffddd0 "data/install.exe", compress=false)\
   at /home/olivier/wargus/wartool.cpp:510
26510                             nError = GetLastError();
27(gdb) n
28514             if(nError == ERROR_SUCCESS) {
29(gdb) p nError
30$1 = 2
31(gdb) 

So SFileOpenFileEx fails to open file : files/War2Dat.mpq from archive : install.exe returning the error code == 2 but I can't find anywhere the meaning of this error ?
And when I open install.exe with MPQextractor this file exists...

@ChefKeeper
Copy link
Contributor Author

Hey just to keep you updated I made some progress about this issue, I should be able to make a PR very soon hopefully this week ;)

@ChefKeeper
Copy link
Contributor Author

I think we can close this issue now, because the missing sounds is due to #249 , music got extracted but the converting to ogg fails but the *.wav are still all removed, btw it is not necessary to convert wav to ogg, since SDL can read both. I tested to change all the *.wav to *.ogg (only name changing) and it works like a charm, so maybe we should only convert for non BNE ?

@timfel
Copy link
Member

timfel commented Aug 18, 2017

Since #250 got merged now, #249 should be fixed. Could you just check if that fixes the conversion from wav to ogg in this case, too? I so, we can close this :)

@ChefKeeper
Copy link
Contributor Author

Just a little update I tested really fast but extraction failled, but I know what the problem is : I forgot to commit the cpp, I'll make a PR as soon as I can.
Problem is that the path should be lowercase on linux (even if it's upper on windows ... why ?) : https://github.com/Wargus/wargus/blob/master/wartool.cpp#L2494
But I don't know if it's only my linux having the path in lowercase or all ? Because if I just repair to work with lowercase and break all the others... win is not a problem though because path ignores the case.
Maybee someone else with the BNE CD and a linux can just show me if he has lower too ?
Just show me the output of ls when you are in the root directory of the BNE CD on linux
I'll try with another linux pc next week.

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

Successfully merging a pull request may close this issue.

5 participants
@timfel @pali @ChefKeeper @DinkyDyeAussie and others