Help with Mission Alpha 07 - cannot pass!

Other talk that doesn't fit elsewhere.
This is for General Discussion, not General chat.
torsten
New user
Posts: 4
Joined: 22 Sep 2008, 21:39

Help with Mission Alpha 07 - cannot pass!

Post by torsten »

All,

I'm unable to get through mission alpha 07. This is the one where I establish a forward base and not allow any enemies to get to the lower level. I defend against multiple waves of enemies transported in.

Okay, I did it.

But every time at the end of the mission it tells me "Objective Failed." How do I get through this?

Version:
Warzone 2100 - Version TRUNK r3595 - Built Feb 13 2008

Running on Kubuntu Linux.

Thanks,
Torsten
EvilGuru
Regular
Regular
Posts: 615
Joined: 23 Jun 2007, 22:41

Re: Help with Mission Alpha 07 - cannot pass!

Post by EvilGuru »

You need to build a specific list of structures on the plateau — I can't remember exactly what these are — but a factory, research centre, repair facility and some defences has always worked for me.

Furthermore, I feel it is my duty as an upstanding citizen to inform you that, in most jurisdictions it is illegal to steal from museums (or from anywhere else for that matter). I must therefore ask that you return r3595 of Warzone from the museum which you stole it from. It is a relic.

Regards, Freddie.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Help with Mission Alpha 07 - cannot pass!

Post by Buginator »

EvilGuru wrote:Furthermore, I feel it is my duty as an upstanding citizen to inform you that, in most jurisdictions it is illegal to steal from museums (or from anywhere else for that matter). I must therefore ask that you return r3595 of Warzone from the museum which you stole it from. It is a relic.

Regards, Freddie.
LOL :D
torsten wrote: Version:
Warzone 2100 - Version TRUNK r3595 - Built Feb 13 2008
Running on Kubuntu Linux.
Thanks,
Torsten
If I were you, I would compile trunk from gna, and download the sequences, and then add the patch http://developer.wz2100.net/ticket/64 ,
Then you will get a better idea what you to do. ... You can also beta test the full campaign for us! :D

It is a bargin!

And don't forget, to remove r3595 NOW. Mummy wants it back. O_o
torsten
New user
Posts: 4
Joined: 22 Sep 2008, 21:39

Compiled, but unplayably slow w/o hardware acceleration

Post by torsten »

I uninstalled the old Warzone 2100.
I downloaded: warzone2100-2.1_beta4
I unpacked the videos into data/base/sequences/*ogg
I applied the patch: FMV5h.patch
It did not apply cleanly.
Compile Failure:

Code: Select all

make[4]: Entering directory `/home/torsten/warzone2100-2.1_beta4-backup/lib/framework'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DNDEBUG -DDATADIR="\"/usr/local/warzone2100/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/warzone2100/share/locale\"" -I../..  -g -Wall -Wwrite-strings  -MT resource_lexer.lex.o -MD -MP -MF .deps/resource_lexer.lex.Tpo -c -o resource_lexer.lex.o resource_lexer.lex.c
resource_lexer.lex.c: In function ‘yy_get_next_buffer’:
resource_lexer.lex.c:1189: warning: implicit declaration of function ‘res_get_extra’
resource_lexer.lex.c:1189: warning: passing argument 1 of ‘lexer_input’ makes pointer from integer without a cast
resource_lexer.l: At top level:
resource_lexer.l:129: error: conflicting types for ‘res_get_extra’
resource_lexer.lex.c:1189: error: previous implicit declaration of ‘res_get_extra’ was here
make[4]: *** [resource_lexer.lex.o] Error 1
make[4]: Leaving directory `/home/torsten/warzone2100-2.1_beta4-backup/lib/framework'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/torsten/warzone2100-2.1_beta4-backup/lib/framework'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/torsten/warzone2100-2.1_beta4-backup/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/torsten/warzone2100-2.1_beta4-backup'
make: *** [all] Error 2
Then I tried compiling an unpatched codebase. Same compile error.

Code: Select all

mv -f .deps/lexer_input.Tpo .deps/lexer_input.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DNDEBUG -DDATADIR="\"/usr/local/warzone2100/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/warzone2100/share/locale\"" -I../..  -g -Wall -Wwrite-strings  -MT printf_ext.o -MD -MP -MF .deps/printf_ext.Tpo -c -o printf_ext.o printf_ext.c
mv -f .deps/printf_ext.Tpo .deps/printf_ext.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DNDEBUG -DDATADIR="\"/usr/local/warzone2100/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/warzone2100/share/locale\"" -I../..  -g -Wall -Wwrite-strings  -MT resource_lexer.lex.o -MD -MP -MF .deps/resource_lexer.lex.Tpo -c -o resource_lexer.lex.o resource_lexer.lex.c
resource_lexer.lex.c: In function ‘yy_get_next_buffer’:
resource_lexer.lex.c:1189: warning: implicit declaration of function ‘res_get_extra’
resource_lexer.lex.c:1189: warning: passing argument 1 of ‘lexer_input’ makes pointer from integer without a cast
resource_lexer.l: At top level:
resource_lexer.l:129: error: conflicting types for ‘res_get_extra’
resource_lexer.lex.c:1189: error: previous implicit declaration of ‘res_get_extra’ was here
make[4]: *** [resource_lexer.lex.o] Error 1
make[4]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/lib/framework'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/lib/framework'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/torsten/warzone2100-2.1_beta4'
make: *** [all] Error 2

flex 2.5.34
bison (GNU Bison) 2.3

Applied patch from viewtopic.php?t=1970.

Code: Select all

    curl http://forums.wz2100.net/download/file.php?id=2115 | patch -p0
It applied cleanly.

Did a make clean, configure, make.

Same compile error:

Code: Select all

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DNDEBUG -DDATADIR="\"/usr/local/warzone2100/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/warzone2100/share/locale\"" -I../..  -g -Wall -Wwrite-strings  -MT printf_ext.o -MD -MP -MF .deps/printf_ext.Tpo -c -o printf_ext.o printf_ext.c
mv -f .deps/printf_ext.Tpo .deps/printf_ext.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DNDEBUG -DDATADIR="\"/usr/local/warzone2100/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/warzone2100/share/locale\"" -I../..  -g -Wall -Wwrite-strings  -MT resource_lexer.lex.o -MD -MP -MF .deps/resource_lexer.lex.Tpo -c -o resource_lexer.lex.o resource_lexer.lex.c
resource_lexer.lex.c: In function ‘yy_get_next_buffer’:
resource_lexer.lex.c:1199: warning: implicit declaration of function ‘res_get_extra’
resource_lexer.lex.c:1199: warning: passing argument 1 of ‘lexer_input’ makes pointer from integer without a cast
resource_lexer.l: At top level:
resource_lexer.l:139: error: conflicting types for ‘res_get_extra’
resource_lexer.lex.c:1199: error: previous implicit declaration of ‘res_get_extra’ was here
make[4]: *** [resource_lexer.lex.o] Error 1
make[4]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/lib/framework'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/lib/framework'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/torsten/warzone2100-2.1_beta4'
make: *** [all] Error 2

Followed last post advice here:
viewtopic.php?f=19&t=1970&st=0&sk=t&sd=a&start=15

Updated the stated files replacing '== 33' to '>= 33'.

It compiled, but it is unplayably slow. It's no longer picking up my nvidia hardware acceleration.

How do I enable hardware acceleration?

Thanks,
Torsten
torsten
New user
Posts: 4
Joined: 22 Sep 2008, 21:39

Re: Help with Mission Alpha 07 - cannot pass!

Post by torsten »

I installed some mesa library and 3D hardware acceleration is working again.
I ran the game and noted a lot of flickering when the game was loading (stripes running across the screen).
Videos don't seem to be working.
I included the patch from http://developer.wz2100.net/ticket/64, FMV5h.patch.
It didn't apply cleanly again.
I attempted to compile.
Compile Failure:

Code: Select all

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL     -I/usr/include/libpng12        -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I..  -g -Wall -Wwrite-strings  -MT data.o -MD -MP -MF .deps/data.Tpo -c -o data.o data.c
In file included from data.c:37:
warzoneconfig.h:51: error: expected ‘)’ before ‘mode’
warzoneconfig.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘war_GetSeqMode’
make[3]: *** [data.o] Error 1
make[3]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/torsten/warzone2100-2.1_beta4'
make: *** [all] Error 2
I manually applied patch to warzoneconfig.h, got another compile error later.

Code: Select all

re/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I..  -g -Wall -Wwrite-strings  -MT formation.o -MD -MP -MF .deps/formation.Tpo -c -o formation.o formation.c
mv -f .deps/formation.Tpo .deps/formation.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL     -I/usr/include/libpng12        -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I..  -g -Wall -Wwrite-strings  -MT frontend.o -MD -MP -MF .deps/frontend.Tpo -c -o frontend.o frontend.c
frontend.c: In function ‘startGameOptions2Menu’:
frontend.c:647: error: ‘FRONTEND_FMVMODE’ undeclared (first use in this function)
frontend.c:647: error: (Each undeclared identifier is reported only once
frontend.c:647: error: for each function it appears in.)
frontend.c:651: error: ‘FRONTEND_FMVMODE_R’ undeclared (first use in this function)
frontend.c:648: warning: enumeration value ‘FMV_MAX’ not handled in switch
frontend.c: In function ‘runGameOptions2Menu’:
frontend.c:793: error: ‘FRONTEND_FMVMODE’ undeclared (first use in this function)
frontend.c:794: error: ‘FRONTEND_FMVMODE_R’ undeclared (first use in this function)
make[1]: *** [frontend.o] Error 1
make[1]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/src'
make: *** [all] Error 2
Turns out in frontend.h, the patch doesn't work with the codebase. Some #define's are not there. I had to add all of these to line 276 of frontend.h:

Code: Select all

#define FRONTEND_VSYNC                 31425
#define FRONTEND_VSYNC_R               31426
#define FRONTEND_FMVMODE               31427
#define FRONTEND_FMVMODE_R             31428
#define FRONTEND_NOGAMESAVAILABLE      31666   // Used when no games are available in lobby
Another compile error:

Code: Select all

mv -f .deps/intimage.Tpo .deps/intimage.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL     -I/usr/include/libpng12        -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I..  -g -Wall -Wwrite-strings  -MT intorder.o -MD -MP -MF .deps/intorder.Tpo -c -o intorder.o intorder.c
mv -f .deps/intorder.Tpo .deps/intorder.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL     -I/usr/include/libpng12        -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I..  -g -Wall -Wwrite-strings  -MT intelmap.o -MD -MP -MF .deps/intelmap.Tpo -c -o intelmap.o intelmap.c
intelmap.c:62:30: error: lib/sequence/ogg.h: No such file or directory
intelmap.c: In function ‘intRemoveMessageView’:
intelmap.c:1086: warning: passing argument 1 of ‘seq_RenderVideoToBuffer’ from incompatible pointer type
intelmap.c:1086: warning: passing argument 2 of ‘seq_RenderVideoToBuffer’ makes pointer from integer without a cast
intelmap.c:1086: error: too few arguments to function ‘seq_RenderVideoToBuffer’
intelmap.c: In function ‘intDisplayFLICView’:
intelmap.c:1329: warning: implicit declaration of function ‘seq_BlitBufferToScreen’
make[3]: *** [intelmap.o] Error 1
make[3]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/torsten/warzone2100-2.1_beta4'
make: *** [all] Error 2
ogg.h was located in the ./ directory of warzone. So I symlinked ogg.c and ogg.h into lib/sequence.

Then got this compile error:

Code: Select all

make
make  all-am
make[1]: Entering directory `/home/torsten/warzone2100-2.1_beta4/src'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -DYY_NO_INPUT -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL     -I/usr/include/libpng12        -DNDEBUG -DDATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I..  -g -Wall -Wwrite-strings  -MT intelmap.o -MD -MP -MF .deps/intelmap.Tpo -c -o intelmap.o intelmap.c
intelmap.c: In function ‘intRemoveMessageView’:
intelmap.c:1086: warning: passing argument 1 of ‘seq_RenderVideoToBuffer’ from incompatible pointer type
intelmap.c:1086: warning: passing argument 2 of ‘seq_RenderVideoToBuffer’ makes pointer from integer without a cast
intelmap.c:1086: error: too few arguments to function ‘seq_RenderVideoToBuffer’
intelmap.c: In function ‘intDisplayFLICView’:
intelmap.c:1329: warning: implicit declaration of function ‘seq_BlitBufferToScreen’
make[1]: *** [intelmap.o] Error 1
make[1]: Leaving directory `/home/torsten/warzone2100-2.1_beta4/src'
make: *** [all] Error 2
I started manually patching the file <b>intelmap.c</b>, but it was very long and tiresome.

To which codebase does the FMV5h.patch cleanly apply? Do I need to check out SVN repository?

Thanks,
Torsten
EvilGuru
Regular
Regular
Posts: 615
Joined: 23 Jun 2007, 22:41

Re: Help with Mission Alpha 07 - cannot pass!

Post by EvilGuru »

You will need to apply to patch to a recent, preferably, trunk (SVN head) copy of Warzone.

Regards, Freddie.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Help with Mission Alpha 07 - cannot pass!

Post by Buginator »

I just tested the *h.patch, and found a slight issue, so redownload that patch again. (Yeah, I know I should have bumped the version, but oh well. :stressed: )

You need svn trunk version (svn co http://svn.gna.org/svn/warzone/trunk), then in the trunk directory just do a patch -p0 <patchname
and then ./autogen.sh && ./configure && make, and it should compile without issue, assuming autoconf don't give you errors about missing libs.