cleaned up Bison logs
enabled logs for loading .slo and .vlo files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@597 4a71c877-e1ca-e34f-864e-861f7616d084
-added new scripting function
-added new callbacks
-added new member variables
-players controlled by AI now receive (and send) multiplayer messages and can process them
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@595 4a71c877-e1ca-e34f-864e-861f7616d084
-implemented string support
-functions can now have arguments, example:
function STRING myFunc(DROID myDroid, int myInt2){<code>}
-functions can have return values:
return <statement>;
or just "return;" for void functions
-function calls are made the normal c/c++ way (using the function from the first example):
myString = myFunc(myDroid, 156);
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@583 4a71c877-e1ca-e34f-864e-861f7616d084
First saving curSearchPath->higherPriority to tmpSearchPath and then freeing curSearchPath helps against stupidity and bug #6552 (0xfeeefeee).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@580 4a71c877-e1ca-e34f-864e-861f7616d084
some things on platforms where 'just char' means unsigned char. Fix lots of
new signedness warnings resulting from that fix (which would have cropped
up on unsigned char platforms anyway). Also implement a small subset of
stdint.h for windows platform in frame.h, hope this does not create any
conflicts. This allows us to use types like uint64_t where relevant.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@569 4a71c877-e1ca-e34f-864e-861f7616d084
more than half the warnings on gcc4, and makes sure we do not
get signedness problems between platforms where char is defined
with different signedness. Also set line-ending properites for
some bison/flex files that did not have it set.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@563 4a71c877-e1ca-e34f-864e-861f7616d084
override cheat mode. Made cheat words unavailable unless '-cheat' option and cheat
key combination are used. As usualy with changes to keys, deleting your keymap file
may be required for this to work as advertised. Added and changed some cheat words.
See wiki for documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@554 4a71c877-e1ca-e34f-864e-861f7616d084
"-cheat" commmand line option, and then, in the game, press left shift and backspace
simultaneously. This does not work in multiplayer games unless you have compiled
the game with debug enabled. You must delete your keymap file for this to work as
described.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@548 4a71c877-e1ca-e34f-864e-861f7616d084
fix some similar but unrelated bugs where the PHYSFS_close() return value is
misinterpreted. Can still not select forces from the multiplayer dialog,
but I also have no idea how this is supposed to work.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@542 4a71c877-e1ca-e34f-864e-861f7616d084
to switch terrain radar off, and allies radar on. You must delete your
old keymap file before you can use this feature.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@537 4a71c877-e1ca-e34f-864e-861f7616d084
I think this tutorial is calling the wrong message function here, so this
is probably just a workaround. In any case, it is called to display video
we no longer have.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@527 4a71c877-e1ca-e34f-864e-861f7616d084
Fixes bug #6516 where the AI stops searching for oil sources if it can't find them the first time.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@523 4a71c877-e1ca-e34f-864e-861f7616d084
- Cosmetic change in debug.c (Mark begin of the log with "---")
- Fix bug where PhysFS said WriteDir "Warzone-2.0\" is insecure and refused to create it (bug#6466)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@510 4a71c877-e1ca-e34f-864e-861f7616d084
To make the game enter cheat mode, start it as 'warzone -secret'.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@502 4a71c877-e1ca-e34f-864e-861f7616d084
Uses a config.mk.tmpl file to set system dependend stuff, no bash required.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@490 4a71c877-e1ca-e34f-864e-861f7616d084
buffer. Thanks to Luigi Auriemma <aluigi@autistici.org> for finding and reporting the problem.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@484 4a71c877-e1ca-e34f-864e-861f7616d084
configure.ac:
- Make OpenGL mandatory
- check for jpeg/png headers
- merge in my DEFAULT_DATADIR patch, because in the AutoConf manual it is listed as prefered
- Change YFLAGS/LFLAGS to make it easier for me to play with Bison/Flex
Others:
- Dont require -datadir to end with a dir separator
- Small PHYSFS fix
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@463 4a71c877-e1ca-e34f-864e-861f7616d084
- Resolved a name conflict of SearchPath on Windows
- Cleaned up debugging messages
- Fixed illegal loading of empty path (root element of searchPathRegistry) (caused a bunch of indent changes)
- Always make WriteDir first entry in searchPath
- Fixed WZ_WRITEDIR for Windows
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@456 4a71c877-e1ca-e34f-864e-861f7616d084
- Pointed out other locations where that error could occur (src/data.c, lib/ivis_common/pcx.c)
- Deprecated pie_ReloadTexPage, as it doesn't appear to be used (lib/ivis_opengl/tex.c)
- Made iSprite width and heigth unsigned (lib/ivis_common/pietypes.h)
- Added debugging for MSVC which doesn't understand the DB* redefines (lib/ivis_common/bitimage.c)
- Fixed deprecation for MSVC (lib/framework/macros.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@452 4a71c877-e1ca-e34f-864e-861f7616d084
- Cleaned up unneeded frees from last memleak fix.
- Added debug info as allways.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@451 4a71c877-e1ca-e34f-864e-861f7616d084
- DB* replaced by debug calls
- Added MSVCRT debugging flags for finding memleaks
- Added points to the TODO
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@450 4a71c877-e1ca-e34f-864e-861f7616d084
This patch includes:
- Strongly modified way of adding mods, maps and addons
- Make nearly everything use PhysFS (just netlog and debug stay)
- Convert several DBERRORs etc. to debug()
The new modloader works like this:
For every mod supplied on the commandline ("-mod") (maximum of MAX_MODS=100) keep it in mind (char * global_mods[]).
After initializing PhysFS do scanDataDirs(), which tries to register all possible paths, global_mods[] and maps with PhysFS. Dont check wether we succeed, only at the very end check if we got a "gamedesc.lev".
When we buildMapList(), mark "gamedesc.lev" as MOD_CAMPAIGN, "addon.lev" and every user supplied map as MOD_MULTIPLAY.
When we loadMods() modify the searchPath according to the supplied mods.
Note: T1 maps like Sk-Rush come from gamedesc.lev, are marked MOD_CAMPAIGN and thus wont load any multiplay_mods[], even if the user starts a multplayer game. Instead those maps are threated as campaignmode and will only load campaign_mods[].
This patch requires the "mp" patches to be either in ProgramDir/mp, in ProgramDir/data/mp or in ProgramDir/mp.wz
This is because one cannot add warzone.wz/mp to the search path if warzone.wz is an archive.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@436 4a71c877-e1ca-e34f-864e-861f7616d084
Same as in r431, but now for lib/
- converted the sources in lib/ to use full path includes instead of just the filename.
- marked places where lib/ivis_*implementation* (eg opengl) is needed, because of incomplete lib/ivis_common.
Should improve the understanding of interfaces and code organization.
(Also fixed a double slash (//) include in src/multimenu.c)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@432 4a71c877-e1ca-e34f-864e-861f7616d084
- marked places where lib/ivis_*implementation* (eg opengl) is needed, because of incomplete lib/ivis_common.
Should improve the understanding of interfaces and code organization.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@431 4a71c877-e1ca-e34f-864e-861f7616d084
- removed Gentoo fix from autogen.sh as it doesn't seem to be needed anymore
- converted "ugly hack"(tm) to a .Phony target in src/Makefile.am
changed version and revision retrieval of Warzone (displayed in the mainmenu):
- Before:
#define SVN_REVISION "..."
- defined in src/revision.h, included and used in src/frontend.c
- Now:
const char * version(); and const char * revision();
- declared in src/version.h, defined in src/version.c, called in src/frontend.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@430 4a71c877-e1ca-e34f-864e-861f7616d084
from videos. Will do until we get proper video support.
intelmap.c: Temporarily disable the Flic box, since it just loops on
noVideo.rpl until we have real video
intelmap.c: Hack displayImmediateMessage again to popup new
IntelScreen seqtext display
rpl_reader: Convert to PHYSFS calls
seqdisp.c: Move "novideo.rpl" squashing to sequence_stub.c
seqdisp.c: Fix seq_AddTextForVideo() prototype
scriptfuncs.c: Avoid race when winlose video callback needs to be called during displayImmediateMessage
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@425 4a71c877-e1ca-e34f-864e-861f7616d084
often way too fast for users to read, but it is a step in the right
direction. Patch by Angus Lees.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@420 4a71c877-e1ca-e34f-864e-861f7616d084
full rotation every 2 seconds, independent of frame rate. Patch
by Angus Lees.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@419 4a71c877-e1ca-e34f-864e-861f7616d084
possible to hit a div by zero bug in visibility.c:visibleObject().
Problem occurs when rayCast() calls rayLOSCallback() and the callback exits due to
(distSq >= tarDist) being true, without ever having executed the following block that
updates lastD. lastD remains 0 and the divide at the end of visibleObject throws a
SIGFPE. On any later occasion, the last distance value from the last calculation will be
reused in this case, which is still bogus but isn't fatal.
The fix is easy, just add "lastD = dist;" before the return in the (distSq >= tarDist)
case.
Patch by Angus Lees <gus> in bug #5761.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@418 4a71c877-e1ca-e34f-864e-861f7616d084
- Removed unused/outdated ivis02/Ivis02.dsp/.vcproj and src/mpdpxtra.[ch]
- Replaced src/mplayer.c with a stub, containing only mplayerSubmit()
- Added DEPRECATED warnings
- Added documentation for WZ_DEPRECATED
One commit follows, to finish the move from ivis02/v4101_stub.c to ivis02/v4101.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@415 4a71c877-e1ca-e34f-864e-861f7616d084
Fixed button highlight problem in the map selection GUI (was
a very funny bug :) ).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@410 4a71c877-e1ca-e34f-864e-861f7616d084
Also big amount of whitespace changes, sorry for the inconvenience...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@400 4a71c877-e1ca-e34f-864e-861f7616d084
merged...
Now filenames are case insensitive (will help using maps
created with Qamly's EditWorld).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@396 4a71c877-e1ca-e34f-864e-861f7616d084
check for presence of gamedesc.lev before thinking a path is good. Add more data path
checks, and gracefully drop paths that do not work.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@390 4a71c877-e1ca-e34f-864e-861f7616d084
on building limits menu. This should be fixed properly later. See bug#4968. Reported
first by dpblnt <dpblnt>. Added FIXME comment.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@387 4a71c877-e1ca-e34f-864e-861f7616d084
-datapath is now named -datadir to match the internal variables again.
Added -help to show all possible command line options.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@383 4a71c877-e1ca-e34f-864e-861f7616d084
Tried to fix the patches-loaded-in-campaign-mode problem.
this fix must be tested now...
Fixed problem with pasting host address.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@376 4a71c877-e1ca-e34f-864e-861f7616d084
default write directory warzone-2.0 for Windows and .warzone-2.0 for Linux under the
user's home directory.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@368 4a71c877-e1ca-e34f-864e-861f7616d084