Commit Graph

315 Commits (f4d639b8e466df7c8ff45eddf76fc0e4c43c28dc)

Author SHA1 Message Date
Dennis Schridde f4d639b8e4 Cleanup redefinitions of inline and strcasecmp on MSVC
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@611 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-22 23:32:18 +00:00
Dennis Schridde 776226572c multisync.c: Fix uninitialized values.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@610 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-22 23:23:42 +00:00
Roman C fe5085565d Skirmish messages are now shown,
Ability to process console commands (trivial implementation right now), 
Implemented ability for AIs to save their game experience to simulate learning

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@609 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-22 22:46:15 +00:00
Dennis Schridde 62ae49b0ce Replaced all occurences of DBMB, DBPRINTF and DBERROR with their former define.
( DBPRINTF(("Message")); becomes debug( LOG_NEVER, "Message" ); )



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@608 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-22 14:28:49 +00:00
Roman C 3e6428377c Fixed bug #6540: 5 research facilities should always be available now
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@607 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-22 11:58:31 +00:00
Dennis Schridde cdf3cf2eb2 Fix Gentoo bug #141661 (http://bugs.gentoo.org/show_bug.cgi?id=141661)
Configure could fail to detect ogg-vorbis due to a missing "test".


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@606 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-22 11:24:49 +00:00
Roman C da8c573fd4 Fixed debug() for scripts
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@605 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 22:13:13 +00:00
Dennis Schridde c78526b67c New debugging system.
You can now register any callback function to the debug facility.
You will then recieve every preprocessed debug string for which part debugging was enabled.
Offers the possibility to output debugging info to any medium you can think of.

See debug_callback_stderr and debug_callback_file* for an example.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@604 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 21:27:12 +00:00
Roman C aee8ea47f7 Fixed bug #6687,
Added debug() for scripts, 
Plus some cosmetic changes

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@603 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 21:20:17 +00:00
Dennis Schridde 68bbc0971c Add request for host/connect commandline options to TODO
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@602 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 20:54:54 +00:00
Dennis Schridde c27e649a8a Fix last commit for Linux/GCC
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@601 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 16:49:32 +00:00
Roman C 8447972580 Added new scripting functions, cleaned up flex debug output
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@600 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 15:33:49 +00:00
Ari Johnson 52a52fdd30 Moved MacOS user directory to the Library/Application Support tree
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@599 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 15:31:36 +00:00
Ari Johnson b67900399b Reverted to AC_CONFIG_HEADER and made a note in macosx/README.BUILD.txt regarding the required version of automake
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@598 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-21 11:15:27 +00:00
Roman C 433d707927 Fixed missing player names in multiplayer messages,
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
2006-08-21 09:34:42 +00:00
Dennis Schridde b6c5dd9eaa Clean last commit to compile on Linux/GCC
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@596 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-20 20:37:26 +00:00
Roman C e4883dabb9 Scripting engine update:
-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
2006-08-20 14:48:14 +00:00
Ari Johnson 8f8c461df4 Updated changelog to reflect previous three commits
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@594 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-20 11:18:48 +00:00
Ari Johnson 89959394d6 Fixed bug that caused garbage to be read from asScrTypeTab, which could confuse
the script parser.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@593 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-20 11:17:51 +00:00
Ari Johnson 737f37663e AM_CONFIG_HEADER replaces AC_CONFIG_HEADER to avoid complaints from automake
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@592 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-20 11:16:40 +00:00
Ari Johnson 8917cea6cb Runtime script parse errors now report a filename and line number rather
than just an inaccurate line number.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@591 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-20 11:15:55 +00:00
Dennis Schridde a026b6118d Make both MSVC and GCC use a very similar define for ASSERT.
I am afraid that I reverted the changes made by Per. Will try to recover them tomorrow.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@590 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-19 22:45:58 +00:00
Dennis Schridde 3210bebd6b - configure.ac, configure.mk: Define NDEBUG for non debug builds (disables assert())
- mem.c: Beautify memFree ASSERT(())


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@589 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-19 22:24:07 +00:00
Dennis Schridde e989a55798 Change define of _CONSOLE to _WINDOWS for a full Windows app.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@588 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-19 21:17:20 +00:00
Per Inge Mathisen 32dc6ada48 Add debug logging and asserts for MSVC use similar to what we have on
the unixy side.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@587 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-19 18:56:03 +00:00
Roman C f286ffd1bf Fixed dependencies
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@585 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-19 14:37:36 +00:00
Roman C 797906a0db fixed some warnings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@584 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-19 13:40:19 +00:00
Roman C 92284dc7bc Scripting engine update:
-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
2006-08-19 13:26:11 +00:00
Dennis Schridde 77ed8b86a7 - Require automake 1.8 in autogen.sh to fix bug bug #6683
- Remove obsolete macros from configure.ac


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@582 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-19 09:39:35 +00:00
Ari Johnson 52bcaba119 Slight change to MacOS X build instructions may improve consistency of ./configure results
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@581 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-18 05:13:16 +00:00
Dennis Schridde 9c1755d1b0 When cleaning the search path:
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
2006-08-17 22:29:49 +00:00
Dennis Schridde c338b035e0 MSVC has no unistd.h, so make Bison generated code not use it.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@579 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-17 22:08:22 +00:00
Ari Johnson 0d31b46b7b MacOS-related documentation updates
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@578 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-17 04:47:35 +00:00
Ari Johnson 58ec3169b3 Minor improvements to application bundle generation screen
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@577 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-17 04:47:17 +00:00
Dennis Schridde 580338815f Update for 2.0.4_rc2
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@576 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-16 21:23:24 +00:00
Dennis Schridde fe22ab0f64 Show whether this is a debug compile in mainmenu.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@575 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-16 20:51:45 +00:00
Dennis Schridde b3209ba881 Update to version 2.0.4_rc2
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@574 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-16 20:30:02 +00:00
Per Inge Mathisen e4c4f4be6f Revert allied visibility patch. It needs more testing.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@573 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-16 20:07:24 +00:00
Roman C e0c93aec7d Scripting engine update:
Implemented local variables, which can be used inside of functions or events.
Syntax:

local int myVar1,myVar2;

 * fixed a bug which made wz crash when local variable was declared inside of an event

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@572 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-16 11:23:43 +00:00
Per Inge Mathisen 6fa9777262 Comment out some anti-cheat checks for now.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@571 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-15 21:03:22 +00:00
Roman C a891af6a7a git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@570 4a71c877-e1ca-e34f-864e-861f7616d084 2006-08-15 18:38:51 +00:00
Per Inge Mathisen 6d8b190950 Make SBYTE explicitly a signed char, not just a char. This would have broken
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
2006-08-15 18:20:36 +00:00
Per Inge Mathisen e730e71ee7 Add MacOSX support files by Ari Johnson (iamtheari).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@568 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-15 16:43:32 +00:00
Per Inge Mathisen 2fe7d306ac Fix some MacOSX issues with order of include/defines, and required conditionals.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@567 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-15 16:33:48 +00:00
Per Inge Mathisen e86f311e96 Put back the prototype for glActiveStencilFaceEXT, which is needed on
Windows despite SDL_opengl.h


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@566 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 18:23:39 +00:00
Per Inge Mathisen 91e864b3a5 Fix some more warnings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@565 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 17:36:22 +00:00
Per Inge Mathisen 5c7f5462e0 Set one more forgotten svn:eol-style property
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@564 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 16:55:23 +00:00
Per Inge Mathisen 2149739999 Almost all strings and buffers are now of type char. This fixes
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
2006-08-12 16:52:37 +00:00
Per Inge Mathisen 438868b7dc Fix two minor bugs
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@562 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 16:49:11 +00:00
Per Inge Mathisen cc6537bd4f Fix minor bugs and remove some unused code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@561 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-12 16:27:58 +00:00