google-code-export / bzzwolfsp

Automatically exported from code.google.com/p/bzzwolfsp
GNU General Public License v3.0
0 stars 0 forks source link

file ui/menddef.h not found #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've been a long time RTCW SP lover and wanted to play it again after many 
years break.   I went thru the same audio problems with the ID binaries as most 
people do and then found this project.

I'm a fedora user and I tried to compile bzzwolfsp with np luck as x86_64 
doesnt seem to be supported.   Using KVM I installed a 32bit Fedora 16 VM and 
built the code there successfully and then copied the binaries over to my 
system and into my wolf folder.   These are the new files:

-rwxr-xr-x  1 ra   users  932104 Jan 11 21:02 wolfspded.i386
-rwxr-xr-x  1 ra   users 1956577 Jan 11 21:02 wolfsp.i386
-rw-r--r-- 1 ra users    163300 Jan 11 18:47 main/sp_pak_coop1.pk3
-rwxr-xr-x 1 ra users    815495 Jan 11 21:02 main/cgamei386.so
-rwxr-xr-x 1 ra users   1145350 Jan 11 21:02 main/qagamei386.so
-rwxr-xr-x 1 ra users    345741 Jan 11 21:02 main/uii386.so

When I start the game, I get a black screen and I hear the title music being 
played.  when I click the mouse or press a key the music stops and I get a 
console window full of errors:

Sys_LoadDll(/usr/local/games/wolf/main/uii386.so)... 
Sys_LoadDll(/usr/local/games/wolf/main/uii386.so): succeeded ...
Sys_LoadDll(ui) found vmMain function at 0x29ef606
^1Error: file ui/multi.menu, line 1: file ui/menddef.h not found
^1Error: file ui/filter.menu, line 1: file ui/menddef.h not found
^1Error: file ui/password.menu, line 1: file ui/menddef.h not found
^1Error: file ui/serverinfo.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_callvote.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_multiset.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_join.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_system.menu, line 1: file ui/menddef.h not found
^1Error: file ui/setup.menu, line 1: file ui/menddef.h not found
^1Error: file ui/controls.menu, line 1: file ui/menddef.h not found
^1Error: file ui/system.menu, line 1: file ui/menddef.h not found

Is there something wrong on my end or is this a bug in bzzwolfsp?

Thanks in advance.

Original issue reported on code.google.com by richard....@gmail.com on 11 Jan 2012 at 9:09

GoogleCodeExporter commented 9 years ago
it should be ui/menudef.h instead of ui/menddef.h, there is something wrong 
with your menu files, what pk3's do you have loaded ?

Original comment by frederik...@gmail.com on 12 Jan 2012 at 8:24

GoogleCodeExporter commented 9 years ago
try to rebuild the pk3 file with latest svn changes

svn update
./create_pk3.sh

Original comment by frederik...@gmail.com on 17 Jan 2012 at 3:30

GoogleCodeExporter commented 9 years ago
I just checked out the source again (revision 223).  Built a release version 
and there was no change.

My pk3's:

[ra@rikkilap wolf]$ ll main/*.pk3
-rw-r--r-- 1 ra users    760207 Oct 14 16:57 main/mp_bin.pk3
-rw-r--r-- 1 ra users  63211149 Oct 14 16:58 main/mp_pak0.pk3
-rw-r--r-- 1 ra users   4449596 Oct 14 16:56 main/mp_pak1.pk3
-rw-r--r-- 1 ra users      1118 Oct 14 16:56 main/mp_pak2.pk3
-rw-r--r-- 1 ra users    159762 Oct 14 16:57 main/mp_pak3.pk3
-rw-r--r-- 1 ra users      7799 Oct 14 16:55 main/mp_pak4.pk3
-rw-r--r-- 1 ra users    167075 Oct 14 16:55 main/mp_pak5.pk3
-rw-r--r-- 1 ra users   3485134 Oct 14 16:55 main/mp_pakmaps0.pk3
-rw-r--r-- 1 ra users   3765933 Oct 14 16:59 main/mp_pakmaps1.pk3
-rw-r--r-- 1 ra users   7408542 Oct 14 16:55 main/mp_pakmaps2.pk3
-rw-r--r-- 1 ra users  10780146 Oct 14 16:59 main/mp_pakmaps3.pk3
-rw-r--r-- 1 ra users  24171802 Oct 14 17:03 main/mp_pakmaps4.pk3
-rw-r--r-- 1 ra users  20024689 Oct 14 17:03 main/mp_pakmaps5.pk3
-rw-r--r-- 1 ra users  10080181 Oct 14 16:56 main/mp_pakmaps6.pk3
-rw-r--r-- 1 ra users 315823656 Oct 14 17:04 main/pak0.pk3
-rw-r--r-- 1 ra users 293887431 Oct 14 17:04 main/sp_pak1.pk3
-rw-r--r-- 1 ra users  11026123 Oct 14 17:04 main/sp_pak2.pk3
-rw-r--r-- 1 ra users    152544 Oct 14 16:58 main/sp_pak3.pk3
-rw-r--r-- 1 ra users  15532040 Oct 14 17:05 main/sp_pak4.pk3
-rw-r--r-- 1 ra users    169796 Jan 18 20:22 main/sp_pak_coop1.pk3

sp_pak_coop1.pk3 was created with create_pk3.sh

Complete startup log:

[ra@rikkilap ~]$ wolfsp 
Wolf 1.41 linux-i386 Jan 18 2012
----- FS_Startup -----
Current search path:
/home/ra/.wolf/main
/usr/local/games/wolf/main/sp_pak_coop1.pk3 (107 files)
/usr/local/games/wolf/main/sp_pak4.pk3 (21 files)
/usr/local/games/wolf/main/sp_pak3.pk3 (14 files)
/usr/local/games/wolf/main/sp_pak2.pk3 (232 files)
/usr/local/games/wolf/main/sp_pak1.pk3 (1342 files)
/usr/local/games/wolf/main/pak0.pk3 (4775 files)
/usr/local/games/wolf/main/mp_pakmaps6.pk3 (81 files)
/usr/local/games/wolf/main/mp_pakmaps5.pk3 (35 files)
/usr/local/games/wolf/main/mp_pakmaps4.pk3 (52 files)
/usr/local/games/wolf/main/mp_pakmaps3.pk3 (83 files)
/usr/local/games/wolf/main/mp_pakmaps2.pk3 (47 files)
/usr/local/games/wolf/main/mp_pakmaps1.pk3 (34 files)
/usr/local/games/wolf/main/mp_pakmaps0.pk3 (21 files)
/usr/local/games/wolf/main/mp_pak5.pk3 (77 files)
/usr/local/games/wolf/main/mp_pak4.pk3 (5 files)
/usr/local/games/wolf/main/mp_pak3.pk3 (76 files)
/usr/local/games/wolf/main/mp_pak2.pk3 (3 files)
/usr/local/games/wolf/main/mp_pak1.pk3 (308 files)
/usr/local/games/wolf/main/mp_pak0.pk3 (783 files)
/usr/local/games/wolf/main/mp_bin.pk3 (4 files)
/usr/local/games/wolf/main

----------------------
8100 files in pk3 files
execing default.cfg
couldn't exec language.cfg
execing coopconfig.cfg
execing autoexec.cfg
Hunk_Clear: reset the hunk ok
Bypassing CD checks
----- Client Initialization -----
Cmd_AddCommand: map_restart already defined
----- Initializing Renderer ----
-------------------------------
----- Client Initialization Complete -----
----- R_Init -----
SDL using driver "x11"
Initializing OpenGL display
Estimated display aspect: 1.778
...setting mode 3: 1280 720
Using 8/8/8 Color bits, 24 depth, 0 stencil display.
Available modes: '1920x1080 360x200 720x400 320x175 640x350 320x200 640x400 
320x240 400x300 416x312 512x384 576x432 640x480 700x525 800x600 832x624 896x672 
928x696 960x720 1024x768 1152x864 1280x960 1400x1050 640x512 1280x1024'
GL_RENDERER: Quadro 1000M/PCI/SSE2
Initializing OpenGL extensions
...using GL_EXT_texture_compression_s3tc
...ignoring GL_EXT_texture_env_add
...using GL_ARB_multitexture
...using GL_EXT_compiled_vertex_array
...ignoring GL_EXT_texture_filter_anisotropic

GL_VENDOR: NVIDIA Corporation
GL_RENDERER: Quadro 1000M/PCI/SSE2
GL_VERSION: 4.2.0 NVIDIA 290.10
GL_MAX_TEXTURE_SIZE: 16384
GL_MAX_ACTIVE_TEXTURES_ARB: 0

PIXELFORMAT: color(24-bits) Z(24-bit) stencil(0-bits)
MODE: 3, 1280 x 720 fullscreen hz:N/A
GAMMA: hardware w/ 0 overbright bits
CPU: 
rendering primitives: single glDrawElements
texturemode: GL_LINEAR_MIPMAP_NEAREST
picmip: 1
picmip2: 2
texture bits: 0
multitexture: enabled
compiled vertex arrays: enabled
texenv add: disabled
compressed textures: enabled
ATI truform: disabled
NV distance fog: disabled
Initializing Shaders
----- finished R_Init -----

------- sound initialization -------
SDL_Init( SDL_INIT_AUDIO )... OK
SDL audio driver is "pulse".
SDL_AudioSpec:
  Format:   AUDIO_S16LSB
  Freq:     22050
  Samples:  256
  Channels: 2
Starting SDL audio callback...
SDL audio initialized.
------------------------------------
----- Sound Info -----
sound system is muted
    1 stereo
 8192 samples
   16 samplebits
    1 submission_chunk
22050 speed
0xa319228 dma buffer
No background file.
----------------------
Sound memory manager started
Sys_LoadDll(/home/ra/.wolf/main/uii386.so)... 
Sys_LoadDll(/home/ra/.wolf/main/uii386.so) failed:
"Failed loading /home/ra/.wolf/main/uii386.so: /home/ra/.wolf/main/uii386.so: 
cannot open shared object file: No such file or directory"
Sys_LoadDll(/usr/local/games/wolf/main/uii386.so)... 
Sys_LoadDll(/usr/local/games/wolf/main/uii386.so): succeeded ...
Sys_LoadDll(ui) found vmMain function at 0x3632ac6
^1Error: file ui/multi.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_callvote.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_join.menu, line 1: file ui/menddef.h not found
^1Error: file ui/serverinfo.menu, line 1: file ui/menddef.h not found
^1Error: file ui/setup.menu, line 1: file ui/menddef.h not found
^1Error: file ui/controls.menu, line 1: file ui/menddef.h not found
^1Error: file ui/system.menu, line 1: file ui/menddef.h not found
^1Error: file ui/options.menu, line 1: file ui/menddef.h not found
^1Error: file ui/default.menu, line 1: file ui/menddef.h not found
^1Error: file ui/credit.menu, line 1: file ui/menddef.h not found
^1Error: file ui/cdkey.menu, line 1: file ui/menddef.h not found
^1Error: file ui/connect.menu, line 1: file ui/menddef.h not found
^1Error: file ui/vid_restart.menu, line 1: file ui/menddef.h not found
^1Error: file ui/snd_restart.menu, line 1: file ui/menddef.h not found
^1Error: file ui/rec_restart.menu, line 1: file ui/menddef.h not found
^1Error: file ui/error.menu, line 1: file ui/menddef.h not found
^1Error: file ui/quitcredit.menu, line 1: file ui/menddef.h not found
^1Error: file ui/resetscore.menu, line 1: file ui/menddef.h not found
^1Error: file ui/briefing.menu, line 1: file ui/menddef.h not found
UI menu load time = 4 milli seconds
^1Error: file ui/ingame.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_controls.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_options.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_system.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_leave.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_player.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_load.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_save.menu, line 1: file ui/menddef.h not found
^1Error: file ui/in_vid_restart.menu, line 1: file ui/menddef.h not found
^1Error: file ui/in_snd_restart.menu, line 1: file ui/menddef.h not found
^1Error: file ui/in_rec_restart.menu, line 1: file ui/menddef.h not found
^1Error: file ui/notebook.menu, line 1: file ui/menddef.h not found
^1Error: file ui/clipboard.menu, line 1: file ui/menddef.h not found
^1Error: file ui/bookz.menu, line 1: file ui/menddef.h not found
^1Error: file ui/bookv.menu, line 1: file ui/menddef.h not found
^1Error: file ui/bookp.menu, line 1: file ui/menddef.h not found
^1Error: file ui/pregame.menu, line 1: file ui/menddef.h not found
^1Error: file ui/ingame_help.menu, line 1: file ui/menddef.h not found
UI menu load time = 3 milli seconds
--- Common Initialization Complete ---
IP: 127.0.0.1
IP: 192.168.1.55
IP: 192.168.122.1
IP6: ::1
IP6: fe80::461e:a1ff:fece:fb48%eth0
Opening IP6 socket: [::]:27960
Opening IP socket: 0.0.0.0:27960
]\quit 
----- CL_Shutdown -----: Com_Quit_f
Closing SDL audio device...
SDL audio device shut down.
RE_Shutdown( 1 )
-----------------------

Still, I cant find any reference to this file anywhere in the source:

[ra@rikkilap bzzwolfsp-read-only]$ grep -lir menddef .
[ra@rikkilap bzzwolfsp-read-only]$ 

Original comment by richard....@gmail.com on 18 Jan 2012 at 8:33

GoogleCodeExporter commented 9 years ago
Why is your binary named 'wolfsp' ? 
Normally its wolfsp.i386 if you build it with my makefile

or is it a script that launches that binary ? in that case, can I see it ?

Original comment by frederik...@gmail.com on 19 Jan 2012 at 7:55

GoogleCodeExporter commented 9 years ago
Main reason for this script was that Quake had issues with non US keymaps in 
the console.  I've always wrapped ID games like this :)

Running wolfsp.i386 directly makes no difference.

[ra@rikkilap ~]$ cat ~/bin/wolfsp 
#!/bin/bash

cd /usr/local/games/wolf
setxkbmap -layout us
/usr/local/games/wolf/wolfsp.i386
setxkbmap -layout is

Original comment by richard....@gmail.com on 19 Jan 2012 at 10:38

GoogleCodeExporter commented 9 years ago
is ui/ingame.menu really trying to include menddef.h?  that looks to be a typo 
to me since i think it should be menudef.h

Original comment by ken.nic...@gmail.com on 19 Jan 2012 at 10:33

GoogleCodeExporter commented 9 years ago
can you list the contents of the folder: /home/ra/.wolf/main ?

Original comment by frederik...@gmail.com on 20 Jan 2012 at 8:05

GoogleCodeExporter commented 9 years ago
This issue is known in ioquake3, and the solution applies as well:

https://bugzilla.icculus.org/show_bug.cgi?id=4331

After making the changes, no longer messages about menddef.h exist.

Original comment by r...@rolffokkens.nl on 5 Feb 2012 at 11:15

GoogleCodeExporter commented 9 years ago
Now as a diff: bzzwolf-strcpy.patch

Original comment by r...@rolffokkens.nl on 5 Feb 2012 at 6:26

Attachments:

GoogleCodeExporter commented 9 years ago
thanks, patch applied

Original comment by frederik...@gmail.com on 5 Feb 2012 at 8:26

GoogleCodeExporter commented 9 years ago
Ahhh...  I can report that the current SVN does not have this issue any more :)
I'm using Fedora 16 x86_64 and since building it on 64bit systems is a problem 
I threw up a 32bit Fedora 16 in a VM and I build it there and now the game 
starts up notmally, except for fact that the opening movie does not play (I 
hear the sound but the screen is black)

However shortly after starting the game, I get:

LOADING...  - particles
LOADING...  - game media done
LOADING... flamechunks
LOADING... clients
LOADING... WolfPlayer
Failed to load head skin file: bj2/head_.skin
UI menu load time = 1 milli seconds
CL_InitCGame:  4.22 seconds
7 msec to draw all images
Com_TouchMemory: 2 msec
WolfPlayer^7 entered the game
********************
ERROR: Client command overflow
********************
----- Server Shutdown Server crashed: Client command overflow
 -----
==== ShutdownGame ====
AAS shutdown.
---------------------------
----- CL_Shutdown -----: recursive error after: Client command overflow
----- CL_Shutdown -----: recursive error after: Client command overflow
]recursive shutdown
recursive error after: Client command overflow
[ra@rikkilap wolf]$ 

Original comment by richard....@gmail.com on 9 Feb 2012 at 10:44

GoogleCodeExporter commented 9 years ago
there's another issue on this page where they explain how to compile a 32bit 
version on your 64bit fedora.

Intro movie doesn't play if your screen aspect ratio is not 4:3, there might be 
other reasons which I'm not aware of yet.

start the game with the parameter +set com_introplayed 1 to ignore the intro 
completely.

Did you copy our pk3 (build it with the ./create_pk3.sh script) to your main 
folder (actually that script should copy it to /home/user/.wolf/main) ? Did you 
start a coop game or a single player game.

Original comment by frederik...@gmail.com on 10 Feb 2012 at 7:51

GoogleCodeExporter commented 9 years ago
Yes, I built the pk3 using the script and put it into my main folder.
The game I started was a single player game.   I've been able to get it to run 
since but there are apparently still issues.

What are the remining issues with creating a real 64bit version here?   Is it 
the ASM code?   Can we borrow 64bit fixes from ioq3?

Original comment by richard....@gmail.com on 11 Feb 2012 at 3:06

GoogleCodeExporter commented 9 years ago
the major issue is that you need to change the netcode so 32 and 64 bit 
clients/servers are compatible

feel free to report other issues else, we can't fix them ;)

Original comment by frederik...@gmail.com on 11 Feb 2012 at 5:15

GoogleCodeExporter commented 9 years ago
I think I found out how to cause that crash I get...  When the game is playing 
the intro movie that is before each level, I press esc to try to skip it but 
that brings up the in game menu and if I allow that to remain on screen for a 
while the game crashes.   Crashlog.txt has:

********************
ERROR: Client command overflow
********************
----- Server Shutdown Server crashed: Client command overflow
 -----
==== ShutdownGame ====
AAS shutdown.
---------------------------
----- CL_Shutdown -----: recursive error after: Client command overflow
----- CL_Shutdown -----: recursive error after: Client command overflow
recursive error after: Client command overflow

Also, the game is very dark, even with brightness maxed out.

Original comment by richard....@gmail.com on 11 Feb 2012 at 5:17

GoogleCodeExporter commented 9 years ago
set g_skipcutscenes to 1 to ignore the cutscenes

and r_ignorehwgamma to 1 or 0 and try fullscreen and windowed mode, I'm still 
trying to figure out why its so dark

Original comment by frederik...@gmail.com on 11 Feb 2012 at 8:13

GoogleCodeExporter commented 9 years ago
I think I could track down your crash, I submitted a fix in svn, please test it 
if its possible :)

Original comment by frederik...@gmail.com on 12 Feb 2012 at 10:56

GoogleCodeExporter commented 9 years ago
r_ignorehwgamma was 1, put it to zero and the game looks fantastic :)
plays well in SP.   The only thing I'm missing is the save game fuctionality.  
I only get the autosaves.

Original comment by richard....@gmail.com on 18 Feb 2012 at 3:14

GoogleCodeExporter commented 9 years ago
Our plan is to make sure that the single player is still working, but I'm 
afraid I already broke a lot of things, so I'll need to look into the problems 
:)

You can load the autosaves ?

Original comment by frederik...@gmail.com on 18 Feb 2012 at 3:56

GoogleCodeExporter commented 9 years ago
Yes, the autosaves work fine.

Original comment by richard....@gmail.com on 18 Feb 2012 at 4:44

GoogleCodeExporter commented 9 years ago
g_skipcutscenes doesnt seem to work.   setting it to 1 (default) or 0 still 
plays the intro movies before each level in SP.

Original comment by richard....@gmail.com on 18 Feb 2012 at 10:12

GoogleCodeExporter commented 9 years ago

Original comment by frederik...@gmail.com on 17 Apr 2013 at 8:59