Commit Graph

397 Commits (e0fda9c0b99e1a93ee8d4bebc881fb94aa333fc7)

Author SHA1 Message Date
Ari Johnson 9e2d33420f Endianness fixes for saved games
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@649 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-26 18:36:19 +00:00
Roman C c3eae9e73f Fixed bug #6753 ,
Define DEBUG_SCRIPT to get some more Bison/Flex debug output

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@648 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-26 17:14:04 +00:00
Roman C a9a74444a1 Added beacons for skirmish and multiplayer, default key combination: Alt+H.
Allied players send vision to each other automatically (only once)
Fixed caching problems for variables of type GROUP
Some other scripting engine updates and cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@647 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-26 15:50:47 +00:00
Dennis Schridde 1c6ef2d789 - Fix VERSION for Makefile.raw
- Fix location of config.h for Makefile.raw
- Remove netlobby* from MSVC project


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@646 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-26 15:21:40 +00:00
Dennis Schridde 63c54d4300 Fix desktop file and debian build rules for correct filenames
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@645 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-26 13:23:01 +00:00
Dennis Schridde d2ad2fc74e Improve Makefile.raw build slightly to support .rc files better.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@644 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-26 13:00:09 +00:00
Dennis Schridde eec2db7b7e Fix autopackage desktop file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@643 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 23:23:36 +00:00
Dennis Schridde a1057805a6 Move .desktop file to reflect naming changes
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@640 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 23:18:20 +00:00
Dennis Schridde e8d27a3dc2 Update the .desktop file to match changes of namings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@639 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 23:17:11 +00:00
Dennis Schridde e117a62324 Use autoconf's config.h instead of an own version.c hack.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@638 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 22:27:26 +00:00
Dennis Schridde b356295340 Update version in configure.ac and date in ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@637 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 21:47:10 +00:00
Dennis Schridde fde163d9fe - Change << shifting from TILE_UNITS (bigger than size of shifted type) to TILE_SHIFT
- Cleanup debug.h


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@632 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 21:27:48 +00:00
Dennis Schridde 4208601a38 - Fix string stack reset for scripts
- Clean warnings and a wrapper function for widgets
- Add an assert to intDisplayMessageButton to catch crashes better


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@631 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 20:38:27 +00:00
Per Inge Mathisen c30b0a8784 Remove some dead code and fix two warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@630 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 16:58:49 +00:00
Dennis Schridde 9f5c1367aa Fix scanDataDirs to search in the correct path
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@629 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 15:47:53 +00:00
Dennis Schridde 95442679bf Dont buffer the --debugfile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@628 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 13:20:57 +00:00
Dennis Schridde b908d81077 Windows had that problem with the missing dirSeperator before WZ_WRITEDIR, too.
Thus appending dirSeperator on Mac and Windows instead of hardcoding it to WZ_WRITEDIR, because PhysFS calls that unsafe on Windows and refuses to create such a dir.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@627 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 10:08:55 +00:00
Ari Johnson 185a1bdeb6 MacOS X changes:
- Application Support directory did not include the trailing slash when
   retrieved from the operating system
 - Renamed some files to 'warzone2100' base name
 - Renamed application bundle to 'Warzone 2100'
 - Included a smart script for finding library and framework dependencies
 - Split the application bundle and disk image script into two to facilitate
   testing the application bundle without having to create and mount a
   disk image


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@626 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 00:54:18 +00:00
Dennis Schridde 6eddfaeada Added bugtraq properties to all folders to be used by TortoiseSVN, WebSVN and others.
This makes entries like "bug #123" or "Bug #123" clickable in the SVN log.
You are transfered to the bugtracker on gna.org.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@625 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-25 00:16:59 +00:00
Dennis Schridde 5e2477adcd Workaround bug #6734 by disabling sequence display completely
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@624 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-24 23:16:47 +00:00
Dennis Schridde 320b4426d6 - Change binary name to warzone2100
- Remove revision output (and revision())
- Add --version cl option
- Commandline options are now all --long-opts (this makes future -s short-opts possible)
- -1024x768 has changed to --viewport 1024x768
- Reodered --help alphabetically


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@623 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-24 22:48:56 +00:00
Ari Johnson 7ae2fa08c0 Generalized MacOS X application support folder for portability
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@622 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-24 00:50:57 +00:00
Dennis Schridde 4d55a6821e Changed/unified namings.
Project: Warzone Resurrection Project
Product: Warzone 2100
Binary: warzone



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@621 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 17:48:47 +00:00
Ari Johnson 6585873f04 Made configure.ac much smarter about MacOS X OpenGL and OpenAL frameworks
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@620 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 15:51:33 +00:00
Dennis Schridde e52dba36cc Corrected false error messages, old printfs
netplay.c got a bunch of new LOG_NET debug()s whose effects on performance have not been tested


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@619 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 15:27:20 +00:00
Dennis Schridde bc6a921b84 Change a lonesome unsigned __int64 to uint64_t
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@618 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 14:29:34 +00:00
Dennis Schridde 3e6bf5924c Update ChangeLog for 2.0.4 (rc3?)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@617 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 14:17:05 +00:00
Dennis Schridde 6a4632e4d2 AutoMake 1.8 wants CHANGELOG to be named ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@616 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 14:15:46 +00:00
Dennis Schridde 3376c0909f Patch from Gentoo bug #141661 to not override Ogg's own --with-ogg switch (http://bugs.gentoo.org/show_bug.cgi?id=141661)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@615 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 13:53:47 +00:00
Dennis Schridde 62f76a1adf - Fix a deprecated warning on MSVC
- Make MinGW actually compile (it defines __MINGW32__ and not __MINGW__)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@614 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 13:01:17 +00:00
Dennis Schridde 0e288f45e7 - Replace all ASSERT(( )) with ASSERT( )
- Simplify definition of ASSERT(). Now is the same for GCC and MSVC.
  This may not work on versions older than MSVC 2005. If you experience this, please report it!

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@613 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 12:58:48 +00:00
Dennis Schridde ed62f97175 debug.c: Add callback to output to a win32 debugger. (Registered in main.c)
frame.h: Sync MAX_PATH with windef.h and require IE5 for SHGetFolderPath
types.h: Use stdint.h on MinGW and use __int* types on MSVC
lib/netplay/: Remove empty files
main.c: Use "Documents and Settings\Username\My Documents\Warzone 2.0" (in local lang) as writedir on Windows

Fix double definitions in last commit.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@612 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-23 12:19:17 +00:00
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