Tremulous Forum

Mods => Modding Center => Topic started by: Redman on July 21, 2009, 08:59:20 pm

Title: Weird compilation...
Post by: Redman on July 21, 2009, 08:59:20 pm
I tried to compile latest Lakitu7's QVM (revision 178 I think 174) and...

(http://img216.imageshack.us/img216/3199/wtfe.png) (http://www.imagehosting.com/)

I also tried compiling revision 150, but still same errors. I used Risujin's guide do set up my MinGW and MSys.
I'm using Windows XP 32-bit.

Thanks for reading.

P.S.

ALWAYS some weird error during compilation / bug in-game appears when I try to compile Lakitu7's QVM. One time, I "successfully" compiled code, but whole admin system was broken (only console was working, lol).
Title: Re: Weird compilation...
Post by: Archangel on July 21, 2009, 09:13:30 pm
looks like you're using mingw/msys. try reinstalling, the wrapper script to cc is messed up from the looks of it.
Title: Re: Weird compilation...
Post by: Redman on July 21, 2009, 10:09:02 pm
Reinstalled both, still the same errors. Maybe I downloaded wrong version of MinGW/MSys/win32api? Files I used:

MinGW-5.1.4.exe (installed "Previous")
MSYS-1.0.11.exe
w32api-3.11.tar.gz edit: I put everything it contains into c:/msys/1.0/mingw/

Everything from sourceforge.
Title: Re: Weird compilation...
Post by: gimhael on July 21, 2009, 10:36:14 pm
Your makefile calls ./cc as c-compiler, but this is the creative commons license file. Probably you have "." first in your $PATH. Try "make CC=gcc" or make "CC=/full/path/to/cc".
Title: Re: Weird compilation...
Post by: Redman on July 22, 2009, 01:26:30 am
BIG thanks for helping, "make CC=gcc" is working. Compilation is errorless now, but, oh no, it's the same bug I had before! Whole admin system is broken, only console works. Calling any command returns "permission denied", even !help, but I have highest admin level. Also, there's a spam in console after running a map. It says there are lot of syntax errors in custom commands. Hey, I think it's admin.dat's fault that nothing works, I'll delete custom commands and run server again, hope it will help...

(edit) Still doesn't work... Does anyone have got an idea what's going on?

P.S. What for is gamex86.dll? I think in Quake 3 you can run DLL instead of QVM, but I'm not sure.
Title: Re: Weird compilation...
Post by: Archangel on July 22, 2009, 01:56:32 am
it's because you're running the server inside of a client
Title: Re: Weird compilation...
Post by: Redman on July 22, 2009, 11:54:44 am
Wtf? I'm running dedicated server (it appears on servers list) and then client. Lakitu7's QVM not compiled by me doesn't have broken admin system.
Title: Re: Weird compilation...
Post by: David on July 22, 2009, 12:55:06 pm
Try moving admin.dat and see if it works with a default one.
There are two different formats admin.dats can use, the broken QVM may be wanting it in a different format.