Re: [Warzone-dev] build problems in windows

2007-02-23 Thread Christian Vest Hansen
Which would be an excellent addition to the wiki, as it is, in reality, a requirement ;) 2007/2/23, Giel van Schijndel <[EMAIL PROTECTED]>: The Watermelon schreef: > On 2/23/07, *Christian Vest Hansen* <[EMAIL PROTECTED] > > wrote: >> sure enough, running 'zip' on the co

Re: [Warzone-dev] Coding style

2007-02-23 Thread Troman
- Original Message - From: "Per Inge Mathisen" <[EMAIL PROTECTED]> To: "Development list" Sent: Friday, February 23, 2007 8:42 PM Subject: Re: [Warzone-dev] Coding style On 2/23/07, Giel van Schijndel <[EMAIL PROTECTED]> wrote: What I personally do *not* like about that coding styl

Re: [Warzone-dev] Where is the Fog? And some ideas for the shadow.

2007-02-23 Thread Dennis Schridde
Am Freitag, 23. Februar 2007 schrieb Giel van Schijndel: > Dennis Schridde schreef: > > Am Freitag, 23. Februar 2007 schrieb Kamaze: > >> I have no fog at all. See: > >> http://img.rootzilla.de/img/a8db463cce82175fecf134e0665e7e4e1227ee1d.jpg > >> > >> These terrain-popping on the edges is ugly :(

Re: [Warzone-dev] Coding style

2007-02-23 Thread Per Inge Mathisen
On 2/23/07, Giel van Schijndel <[EMAIL PROTECTED]> wrote: What I personally do *not* like about that coding style is the usage of tabs (because of variable tabsize) I think we should only maintain this tabsize in current files but definitely not use it in new ones (I'd vote for a 4 space indentat

Re: [Warzone-dev] Where is the Fog? And some ideas for the shadow.

2007-02-23 Thread Giel van Schijndel
Dennis Schridde schreef: > Am Freitag, 23. Februar 2007 schrieb Kamaze: > >> I have no fog at all. See: >> http://img.rootzilla.de/img/a8db463cce82175fecf134e0665e7e4e1227ee1d.jpg >> >> These terrain-popping on the edges is ugly :( >> I wish since quite a time to increase the drawed-terrain size

Re: [Warzone-dev] Coding style

2007-02-23 Thread Dennis Schridde
Am Freitag, 23. Februar 2007 schrieb Giel van Schijndel: > On Sat, 17 Feb 2007 22:18:49 +0100 Per Inge Mathisen wrote: > > When making patches, please follow these minimal coding style guidelines: > > > > http://wz2100.net/wiki/development:coding_style > > What I personally do *not* like about that

Re: [Warzone-dev] Coding style

2007-02-23 Thread Giel van Schijndel
On Sat, 17 Feb 2007 22:18:49 +0100 Per Inge Mathisen wrote: > When making patches, please follow these minimal coding style guidelines: > > http://wz2100.net/wiki/development:coding_style What I personally do *not* like about that coding style is the usage of tabs (because of variable tabsize) I th

Re: [Warzone-dev] Re: [Warzone-commits] r807 - in /trunk: configure.ac lib/framework/Makefile.am lib/framework/dbghelp.h lib/framework/exceptionhandler.c lib/framework/frame.h src/main.c

2007-02-23 Thread Dennis Schridde
Am Freitag, 23. Februar 2007 schrieb The Watermelon: > On 2/23/07, Dennis Schridde <[EMAIL PROTECTED]> wrote: > > What problems with GCC do you have, Watermelon? > > > > --Dennis > > something like this: > frontend.c:1545:61: too many decimal points in number > frontend.c: In function `displayTitle

Re: [Warzone-dev] build problems in windows

2007-02-23 Thread Giel van Schijndel
The Watermelon schreef: > On 2/23/07, *Christian Vest Hansen* <[EMAIL PROTECTED] > > wrote: >> sure enough, running 'zip' on the command line yields nothing but >> complaints. >> >> Do you know of a good place to find zip.exe ? > google.com said: > http

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread Giel van Schijndel
Christian Ohm schreef: > On Friday, 23 February 2007 at 16:26, Per Inge Mathisen wrote: > >> (it gets halved). The latter problem can be solved (well, offset quite >> a bit) by tripple buffering, but I never looked into that, and I >> suspect the driver situation is bad there too. >> >> My main

Re: [Warzone-dev] Re: [Warzone-commits] r807 - in /trunk: configure.ac lib/framework/Makefile.am lib/framework/dbghelp.h lib/framework/exceptionhandler.c lib/framework/frame.h src/main.c

2007-02-23 Thread The Watermelon
On 2/23/07, Dennis Schridde <[EMAIL PROTECTED]> wrote: What problems with GCC do you have, Watermelon? --Dennis something like this: frontend.c:1545:61: too many decimal points in number frontend.c: In function `displayTitleBitmap': frontend.c:1545: error: syntax error before numeric constan

Re: [Warzone-dev] Re: [Warzone-commits] r807 - in /trunk: configure.ac lib/framework/Makefile.am lib/framework/dbghelp.h lib/framework/exceptionhandler.c lib/framework/frame.h src/main.c

2007-02-23 Thread Dennis Schridde
Am Freitag, 23. Februar 2007 schrieb Christian Vest Hansen: > Looks like it broke the build on windows: > == > mingw32-make[1]: Entering directory `C:/Documents and Settings/cvh/My > Documents/ warzone/src' > gcc -DVERSION=\"TRUNK\" -DYY_S

Re: [Warzone-dev] build problems in windows

2007-02-23 Thread The Watermelon
On 2/23/07, Christian Vest Hansen <[EMAIL PROTECTED]> wrote: sure enough, running 'zip' on the command line yields nothing but complaints. Do you know of a good place to find zip.exe ? google.com said: http://www.info-zip.org/Zip.html#Win32 ___ War

Re: [Warzone-dev] Re: [Warzone-commits] r807 - in /trunk: configure.ac lib/framework/Makefile.am lib/framework/dbghelp.h lib/framework/exceptionhandler.c lib/framework/frame.h src/main.c

2007-02-23 Thread The Watermelon
On 2/23/07, Christian Vest Hansen <[EMAIL PROTECTED]> wrote: Looks like it broke the build on windows: == mingw32-make[1]: Entering directory `C:/Documents and Settings/cvh/My Documents/ warzone/src' gcc -DVERSION=\"TRUNK\" -DYY_STATIC

[Warzone-dev] Re: [Warzone-commits] r807 - in /trunk: configure.ac lib/framework/Makefile.am lib/framework/dbghelp.h lib/framework/exceptionhandler.c lib/framework/frame.h src/main.c

2007-02-23 Thread Christian Vest Hansen
Looks like it broke the build on windows: == mingw32-make[1]: Entering directory `C:/Documents and Settings/cvh/My Documents/ warzone/src' gcc -DVERSION=\"TRUNK\" -DYY_STATIC -I.. -I../.. -IC:/Documents\ and\ Settings/c vh/My\ Documents/w

Re: [Warzone-dev] build problems in windows

2007-02-23 Thread Christian Vest Hansen
sure enough, running 'zip' on the command line yields nothing but complaints. Do you know of a good place to find zip.exe ? 2007/2/23, Dennis Schridde <[EMAIL PROTECTED]>: Am Freitag, 23. Februar 2007 schrieb Christian Vest Hansen: > I knew I was asking for trouble in trying to compile warzone

Re: [Warzone-dev] build problems in windows

2007-02-23 Thread Dennis Schridde
Am Freitag, 23. Februar 2007 schrieb Christian Vest Hansen: > I knew I was asking for trouble in trying to compile warzone in windows. > > I use the MingW approach and am getting this error: > == > mingw32-make[1]: Leaving directory `C:/Docume

[Warzone-dev] build problems in windows

2007-02-23 Thread Christian Vest Hansen
I knew I was asking for trouble in trying to compile warzone in windows. I use the MingW approach and am getting this error: == mingw32-make[1]: Leaving directory `C:/Documents and Settings/cvh/My Documents/w arzone/src' mingw32-make -f Make

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread Christian Ohm
On Friday, 23 February 2007 at 16:26, Per Inge Mathisen wrote: > The problem with vsync is primarily: Poor driver support (boo, ATI!), > and really poor FPS when your frame rates drop below the vsync limit Well, I prefer lower frame rates to tearing, but I don't play much shooters etc. where frame

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread The Watermelon
On 2/23/07, Christian Ohm <[EMAIL PROTECTED]> wrote: To me that sounds like it works as it is supposed to. If the system is not fast enough to reach the desired frame rate, don't delay, as every delay will make it even slower. sorry for the confusion,actually I thought the SDL frame delay con

Re: [Warzone-dev] Endian issues?

2007-02-23 Thread Dennis Schridde
Am Freitag, 23. Februar 2007 schrieb Dennis Schridde: > Am Freitag, 23. Februar 2007 schrieb Dennis Schridde: > > While compiling I found these error messages. Maybe there is an > > undetected problem here? > > > > game.c: In function ‘loadSaveMessageV’: > > game.c:10173: warning: passing argument

Re: [Warzone-dev] Endian issues?

2007-02-23 Thread Dennis Schridde
Am Freitag, 23. Februar 2007 schrieb Dennis Schridde: > While compiling I found these error messages. Maybe there is an undetected > problem here? > > game.c: In function ‘loadSaveMessageV’: > game.c:10173: warning: passing argument 1 of ‘endian_sdword’ from > incompatible pointer type > game.c: In

Re: [Warzone-dev] Endian issues?

2007-02-23 Thread Ari Johnson
On 2/23/07, Dennis Schridde <[EMAIL PROTECTED]> wrote: While compiling I found these error messages. Maybe there is an undetected problem here? game.c: In function 'loadSaveMessageV': game.c:10173: warning: passing argument 1 of 'endian_sdword' from incompatible pointer type game.c: In function

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread Per Inge Mathisen
On 2/23/07, Christian Ohm <[EMAIL PROTECTED]> wrote: On Friday, 23 February 2007 at 8:32, Per Inge Mathisen wrote without thinking: > Besides, now that more people are getting LCD monitors, vsync control > is increasingly irrelevant. Why? The problem is exactly the same: If you update the video

[Warzone-dev] Endian issues?

2007-02-23 Thread Dennis Schridde
While compiling I found these error messages. Maybe there is an undetected problem here? game.c: In function ‘loadSaveMessageV’: game.c:10173: warning: passing argument 1 of ‘endian_sdword’ from incompatible pointer type game.c: In function ‘writeMessageFile’: game.c:10337: warning: passing argu

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread Christian Ohm
On Thursday, 22 February 2007 at 11:34, The Watermelon wrote: > On 2/22/07, Christian Ohm <[EMAIL PROTECTED]> wrote: > > > >What about (pseudocode) > > > >{ > > current_ticks = SDL_GetTicks() > > frame_ticks = current_ticks - last_ticks; > > actual_ticks = rate_ticks - frame_ticks

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread Christian Ohm
On Thursday, 22 February 2007 at 22:52, Giel van Schijndel wrote: > Christian Ohm schreef: > > What about (pseudocode) > > { > > current_ticks = SDL_GetTicks() > > frame_ticks = current_ticks - last_ticks; > > actual_ticks = rate_ticks - frame_ticks; > > if (actual_ticks > 0) > >

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread Christian Ohm
On Friday, 23 February 2007 at 8:32, Per Inge Mathisen wrote: > Besides, now that more people are getting LCD monitors, vsync control > is increasingly irrelevant. Why? The problem is exactly the same: If you update the video memory while the image is being shown, the lower half will show the new

Re: [Warzone-dev] Where is the Fog? And some ideas for the shadow.

2007-02-23 Thread Dennis Schridde
Am Freitag, 23. Februar 2007 schrieb Kamaze: > I have no fog at all. See: > http://img.rootzilla.de/img/a8db463cce82175fecf134e0665e7e4e1227ee1d.jpg > > These terrain-popping on the edges is ugly :( > I wish since quite a time to increase the drawed-terrain size and/or add > some volumetric fog, so

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread Dennis Schridde
Am Freitag, 23. Februar 2007 schrieb Per Inge Mathisen: > On 2/23/07, Kamaze <[EMAIL PROTECTED]> wrote: > > Like i said, i got the best average FPS/CPU usage ratio > > with one SDL_Delay(1) call each 5 frames. > > On your computer, that is. The obvious problem with hard-coding > something like this

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread Kamaze
You just give the OS the explicitly ack to share the CPU. I don't see there a problem. The OS should be smart enought to use the free 'idle' cpu time for your application if more processing power is needed. And actual OS are afaik smart enougth to do so :) If you have a background process that wan

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread Per Inge Mathisen
On 2/23/07, Kamaze <[EMAIL PROTECTED]> wrote: Like i said, i got the best average FPS/CPU usage ratio with one SDL_Delay(1) call each 5 frames. On your computer, that is. The obvious problem with hard-coding something like this is that it will very likely not be the best on other people's compu

Re: [Warzone-dev] Where is the Fog? And some ideas for the shadow.

2007-02-23 Thread Kamaze
I have no fog at all. See: http://img.rootzilla.de/img/a8db463cce82175fecf134e0665e7e4e1227ee1d.jpg These terrain-popping on the edges is ugly :( I wish since quite a time to increase the drawed-terrain size and/or add some volumetric fog, so that you can't see popping terrain at the edges anymore

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread Christian Vest Hansen
But why should we hard-limit the FPS? The ability to set a max framerate was introduced to allow laptop users some control over the CPU utilization. I don't recall any other reason for having this functionality. On my system, this way of trying to reduce CPU usage has turned out futile because w

Re: [Warzone-dev] Where is the Fog? And some ideas for the shadow.

2007-02-23 Thread The Watermelon
On 2/23/07, Kamaze <[EMAIL PROTECTED]> wrote: Hi, someone knows why the fog isn't drawn anymore? For me this 'popping' in the background is annoying. (Terrain) And the shadow drawing distance is limited do avoid "black blocks" in the shadows. How about the idea to make the shadows fade in/out,

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread The Watermelon
Just an easy hack to detect time spent in millisec(note:0 doesnt mean it doesnt cost cpu time,instead it means the function takes less than 1ms and cannot be detected by my ugly counter): debug build,sk rush one player skimirsh mode(3 ai and no network): never: proccess3DBuilding time 0 neve

Re: [Warzone-dev] bug with SDL_framerateDelay

2007-02-23 Thread The Watermelon
On 2/22/07, Kamaze <[EMAIL PROTECTED]> wrote: Well, no problem. :) I overreacted a bit *g* However... I drawed a Triangle and a Quad, both untextured. Then i turned off V-Sync in my driver settings and played a bit with different SDL_Delay() settings. With, without, 10 ms, 1ms, 0ms, ... Then

[Warzone-dev] Where is the Fog? And some ideas for the shadow.

2007-02-23 Thread Kamaze
Hi, someone knows why the fog isn't drawn anymore? For me this 'popping' in the background is annoying. (Terrain) And the shadow drawing distance is limited do avoid "black blocks" in the shadows. How about the idea to make the shadows fade in/out, in order of the distance? Maybe over the alpha ch