Crash when starting 2nd campign

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Tares
New user
Posts: 3
Joined: 27 Jun 2007, 16:46

Crash when starting 2nd campign

Post by Tares »

hello,

I just finished 1st campaign on 2.0.7 and just after I've clicked "continue" warzone has crashed. Here's what my console shows at that moment :

Code: Select all

tares@tengoku:~$ warzone2100
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'm using Ubuntu 7.04 on r9600pro(fglrx). I'm attaching savegames also... and most of the time I was using "DEBUG" version ;-)
You do not have the required permissions to view the files attached to this post.
User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: Crash when starting 2nd campign

Post by Watermelon »

Tares wrote: hello,

I just finished 1st campaign on 2.0.7 and just after I've clicked "continue" warzone has crashed. Here's what my console shows at that moment :

Code: Select all

tares@tengoku:~$ warzone2100
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
So
I'm using Ubuntu 7.04 on r9600pro(fglrx). I'm attaching savegames also... and most of the time I was using "DEBUG" version ;-)
I remember someone removed them recently,because the software renderer which uses them have been removed long ago according to the log.

so I guess this problem could be some hideous reference to those soft texture pages in that .wrf file.
tasks postponed until the trunk is relatively stable again.
Tares
New user
Posts: 3
Joined: 27 Jun 2007, 16:46

Re: Crash when starting 2nd campign

Post by Tares »

Watermelon wrote: I remember someone removed them recently,because the software renderer which uses them have been removed long ago according to the log.

so I guess this problem could be some hideous reference to those soft texture pages in that .wrf file.
Anyway to fix it ? I would like to finally finish campaign ;-)
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: Crash when starting 2nd campign

Post by Giel »

Located the problem, it's two-fold:

Code: Select all

$ grep soft `find data | grep \\.wrf$`
data/wrf/cam2/cam2change.wrf:file               TEXPAGE         "page-9-player-soft buildings-bases-urban.png"  //need altering to urban**DONE**
data/wrf/cam3/cam3change.wrf:file               TEXPAGE         "page-9-player-soft buildings-bases-rockies.png"        //needs changing**DONE**
I'm going to sleep now though, I'll fix this somewhere tomorrow if someone doesn't beat me to it while I'm asleep.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Dr John
New user
Posts: 2
Joined: 28 Jun 2007, 12:09

Re: Crash when starting 2nd campign

Post by Dr John »

Same problem here.

I had forgotten how much fun WZ2100 was. Good job guys.
3rXm4n
New user
Posts: 2
Joined: 28 Jun 2007, 13:16

Re: Crash when starting 2nd campign

Post by 3rXm4n »

i have the same problem,EXEPT it crashes after the end of the 2nd campaign..i really wanna complete the game on pc(i have completed it on PSone  :D)
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: Crash when starting 2nd campign

Post by Giel »

Ok, I think I've fixed it.

Download warzone_2.0.7-fix1.wz and replace your warzone.wz (in your warzone installation directory if on Windows) with this file. Then please tell me if this fixes it (without causing new problems preferably).
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Dr John
New user
Posts: 2
Joined: 28 Jun 2007, 12:09

Re: Crash when starting 2nd campign

Post by Dr John »

Bingo!

Thanks Giel, that worked on my system. I haven't had time to see if any new problems cropped up, but that definitely fixed the crash between campaigns.

Doc
Uber Schwarz
Rookie
Rookie
Posts: 22
Joined: 27 Jun 2007, 21:30

Re: Crash when starting 2nd campign

Post by Uber Schwarz »

Is this fix also in the fresh install now?
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Crash when starting 2nd campign

Post by DevUrandom »

This is not included in the downloads.
I prepared a .wz modfile which you can download instead of the full warzone.wz by Giel. (We really need a functionality to automatically load patchfiles...)
I also created a patch for those who compiled from sourcecode. Distributions should also apply it.
You do not have the required permissions to view the files attached to this post.
Tares
New user
Posts: 3
Joined: 27 Jun 2007, 16:46

Re: Crash when starting 2nd campign

Post by Tares »

Giel wrote: Ok, I think I've fixed it.

Download warzone_2.0.7-fix1.wz and replace your warzone.wz (in your warzone installation directory if on Windows) with this file. Then please tell me if this fixes it (without causing new problems preferably).
Worked like a charm ;-) and as for now no new errors.
DocParano
New user
Posts: 4
Joined: 25 Jun 2007, 20:53

Re: Crash when starting 2nd campign

Post by DocParano »

3rXm4n wrote: ..i really wanna complete the game on pc (i have completed it on PSone  :D)


Idem pour moi !

Thanks Giel ! the crash is fixed !  8)
hellangel_666
New user
Posts: 1
Joined: 28 Jun 2007, 22:51

Re: Crash when starting 2nd campign

Post by hellangel_666 »

this is great! thanks ALOT!
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: Crash when starting 2nd campign

Post by Giel »

DevUrandom wrote: This is not included in the downloads.
I prepared a .wz modfile which you can download instead of the full warzone.wz by Giel. (We really need a functionality to automatically load patchfiles...)
I also created a patch for those who compiled from sourcecode. Distributions should also apply it.
Maybe we should make an announcement for this on the frontpage. Or maybe even go as far as releasing a 2.0.7.1 version.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Crash when starting 2nd campign

Post by DevUrandom »

I already thought something like that... Maybe we should discuss it on the ML?
I am unsure since I am confident that in the next week another bug will be discovered. Should we release a 2.0.7.2 then?