Missing graphics files in Ubuntu package?

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
usernamed
New user
Posts: 3
Joined: 16 Aug 2007, 15:57

Missing graphics files in Ubuntu package?

Post by usernamed »

Hi,

I installed Warzone 2100 2.0.7 from the ubuntu package located at http://wz2100.net/downloads and played through what I believe constitutes the 1st campaign quite happily, but I get to the mission after I've destroyed the main New Paradigm base, and received a mayday call from Team Beta, and the game crashes. 

The output from Warzone when running it from the command line is below:

Code: Select all

mark@lt1:~$ warzone2100 --resolution 1024x768 --fullscreen --mod warzone2100-2.0.7_hotfix1.wz
error:      loadFile2: file texpages/page-9-player-soft buildings-bases-urban.png could not be found!
error:      resLoadFile: Unable to retreive resource - texpages/page-9-player-soft buildings-bases-urban.png
error:      resLoad: failed to parse wrf/cam2/cam2change.wrf
error:      Shutting down after failure
I've tried

Code: Select all

sudo slocate page-9-player-soft buildings-bases-urban.png
and

Code: Select all

sudo slocate cam2change.wrf
Neither file appears to be on my hard disk.  As you can see from my command line above, I've tried using the hotfix that has been mentioned in the forums, although I couldn't find the exact path mentioned in the install instructions for it, I just put it in the same folder as the warzone.wz

Does anyone have any suggestions?  Has anyone else come across this?  (I couldn't find mention in the forums of these particular files being missing)

All assistance gratefully received, as I'd missed this game first time around and was really enjoying myself up until the point of the crash.
Last edited by usernamed on 16 Aug 2007, 17:17, edited 1 time in total.
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: Missing graphics files in Ubuntu package?

Post by Giel »

Please use the hotfix for 2.0.7.

To automatically apply the hotfix you can put it in ~/.warzon2100/maps/

Either that or manually edit /usr/share/games/warzone2100/warzone.wz (it's a zip-file); edit wrf/cam2/cam2change.wrf in that file and remove all lines with a *soft*.png filename on it. All path's given in those error messages are in those *.wz files (which are zip files with a different extension).
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Kamaze
Regular
Regular
Posts: 1017
Joined: 30 Jul 2006, 15:23

Re: Missing graphics files in Ubuntu package?

Post by Kamaze »

Looks like he's already using the hotfix:
mark@lt1:~$ warzone2100 --resolution 1024x768 --fullscreen --mod warzone2100-2.0.7_hotfix1.wz
We all have the same heaven, but not the same horizon.
usernamed
New user
Posts: 3
Joined: 16 Aug 2007, 15:57

Re: Missing graphics files in Ubuntu package?

Post by usernamed »

Hi,

I've just come in and seen your responses.  I'll try manually editing the cam2change.wrf file and then repacking the zip.  I didn't have a ~/.wz2100/maps/ subfolder so I have tried creating one and put the hotfix in, but still got the same error.  I'll post the results of editing the zip here, but I won't be able to try this until tomorrow now.

Many thanks for your help, I hope to have good news once I've edited the cam2change.wrf file.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Missing graphics files in Ubuntu package?

Post by DevUrandom »

Giel: Are you sure the maps/ folder is the right place? Usually I would recommend using mods/global/...
usernamed: The same problem exists for the cam 2 to 3 transition. You have to edit cam3change.wrf as well (or simply copy the hotfix into the warzone.wz, or try whether --mod works).
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: Missing graphics files in Ubuntu package?

Post by Giel »

Everything in the map folder is implicitly loaded into PhysicsFS' search path. I.e., you don't need to append "--mod X.wz" to load X.wz.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
usernamed
New user
Posts: 3
Joined: 16 Aug 2007, 15:57

Re: Missing graphics files in Ubuntu package?

Post by usernamed »

Giel:  I manually edited the cam2change.wrf file and this has fixed the problem for me.  I'm assuming the hotfix should have done the same thing?  I'm not sure why it didn't work, but I'm glad to have been able to fix this manually.

DevUrandom:  I'll make the same change to the cam3change.wrf file, I assume I'm looking for the same *soft*.png files as in cam2change.wrf?

Many thanks to you both, it's good to be up and running again. 
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: Missing graphics files in Ubuntu package?

Post by Giel »

usernamed wrote: I manually edited the cam2change.wrf file and this has fixed the problem for me.  I'm assuming the hotfix should have done the same thing?
Yes, the hotfix should have accomplished the same.
usernamed wrote: DevUrandom:  I'll make the same change to the cam3change.wrf file, I assume I'm looking for the same *soft*.png files as in cam2change.wrf?
Yes, the same *soft*.png lines will need to be removed there.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh