Commit Graph

1846 Commits (e232e9a6b5adec253fa2af1d6bd70235a4aafb77)

Author SHA1 Message Date
Dennis Schridde e232e9a6b5 Yacc warning fixes by Pseudonym404 (http://forums.wz2100.net/index.php?topic=148.msg7837#msg7837):
- adding *.tab.c to BUILD_SOURCES and CLEANFILES before *.tab.h in applicable Makefile.am files causes *.tab.c to be the file that triggers the %.tab.h %.tab.c: %.y rule, resulting in the command run being "bison -y  -d -o[...].tab.c [...].y", not "bison -y  -d -o[...].tab.h [...].y", which (aside from being correct syntax Wink ) stops "warning: conflicting outputs to file `[...].tab.h'"
- chat_parser.y had %token _T_A declared twice, second instance removed
- audp_parser.y had trailing | signs (presumably from when NULL wasn't commented out)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2426 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-21 13:03:09 +00:00
Dennis Schridde fbd3a9c394 Use Unix PATH_MAX as default and thus move all "fixes" to Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2425 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-21 12:59:05 +00:00
Dennis Schridde 08a43494fd - Clean up macros a bit more
- Use WZ_CC_GNU_PREREQ (copied from glibc's features.h) instead of custom code
- Move platform.h into wzglobal.h


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2424 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-21 12:30:00 +00:00
Dennis Schridde 3d6d40f5dd - Update WZ_OS_/WZ_CC_ definitions from Qt 4.3.1 and don't strip OS detection them anymore.
- Fix attribute prerequisites.
- Remove wz__attribute and add WZ_DECL_FORMAT.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2423 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-21 11:21:20 +00:00
Dennis Schridde 51a467d649 Remove CHAR_BIT check which is not needed anymore.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2422 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-21 10:43:16 +00:00
Giel van Schijndel f0a043e92a * Add the AIvolution mod to the NSIS installer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2421 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-20 15:39:11 +00:00
Giel van Schijndel 876c8b3b61 * Fix the Blender import & export scripts such that they're completely compatible with eachother (i.e. import->export->import == import)
* Add two python mini-scripts (find-bad-pies.py and find-poly-nums.py) that are of fairly little general use, but may serve as an example of how to interface with pie.py (pie.py must be in the python path for these scripts to work)
  * find-bad-pies.py when given a list of filenames will find the ones that, as far as the pie parser (pie.py) is concerned, aren't valid
  * find-poly-nums.py was created to find out if there were any pies that contained any polygons with more than 4 sides
Patch by Kevin Gillette <kage> ( http://forums.wz2100.net/index.php?topic=550.msg7829#msg7829 )

 * Update svn:eol-style and svn:mime-type for all trunk/tools/blender/* files

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2420 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-20 15:09:13 +00:00
Giel van Schijndel dc8ead56ff * Add virtual target "All" to Code::Blocks file (automatically compiles both a Debug and a Release build)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2419 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-20 14:34:38 +00:00
Giel van Schijndel db6bf89a32 * Fix bug #9806
* This adds a new savegame format version (version 35)
 * This new format is big-endian and uses the serialization API so has no struct padding

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2418 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-19 17:58:01 +00:00
Roman C 041eedd7fd Fixed commands.txt file describing available commands for Aivolution AI.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2417 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-19 11:21:02 +00:00
Giel van Schijndel 415ac4a437 * Fix readFXData to mark all the EFFECTs it loads as active
* Add a large amount of serializeX/deserializeX functions for the different savegame versions
 * Use uintX_t instead of the *WORD series of variables for structures that'll be saved out to disk (only those directly related to savegame code right now)
 * Make the save&load functions in game.c use the serialization and deserialization series of functions (this is also directly from a file rather than an intermediate in-memory buffer)
 * Remove function endian_SaveGameV since endian swapping is being dealt with by the (de)serialization functions
 * This commit changes the *.gam files from little endian to big endian, so expect loading of previous savegames to break

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2416 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-18 21:37:37 +00:00
Giel van Schijndel c6d64739e1 * Modify writeScoreData and readScoreData to directly work on files rather than intermediate in-memory buffers
* Use a serialize and deserialize function for saving/loading individual MISSION_DATA instances to/from PHYSFS_files
 * NOTE: this swaps endianness to big endian (network byte order) whereas before it was little-endian; so loading of savegames/*/score.bjo will be incompatible with previous revisions (unless you're willing to, manually, endian-swap every 4byte sequence after the first 4)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2415 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-18 15:09:47 +00:00
Giel van Schijndel 5180103026 * Modify readFXData to work on a filename instead of a PHYSFS_file handle
* Modify writeVisibilityData and readVisibilityData to directly work on files rather than intermediate in-memory buffers

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2414 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-18 14:19:21 +00:00
Giel van Schijndel d71d018942 * Use a serialize and deserialize function for saving/loading individual EFFECT instances to/from PHYSFS_files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2413 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-18 13:08:15 +00:00
Giel van Schijndel b5e548e800 * Use a union instead of first casting to void* before casting to uint32_t* from float* (prevents type punning of pointers)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2412 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 22:17:16 +00:00
Giel van Schijndel 55a5837ef3 * Move AIvolution from data/multiplay/skirmish/customai to data/mods/global
* Make sure the buildsystem now constructs a global mod aivolution.wz from AIvolution (you can use it using "--mod aivolution" or "--mod aivolution.wz")
 * Add the GPL text to Grim's GFX mod for emphasis (as it was in the grim.wz archives in the distributed releases)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2411 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 19:59:28 +00:00
Giel van Schijndel b32da1a20e * Fix dependency problem on grim.wz (make-rule was referring to the wrong directory)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2410 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 19:09:37 +00:00
Giel van Schijndel 2e38bd5746 * Fix German translation for NSIS installer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2409 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 19:04:24 +00:00
Giel van Schijndel bac61d9ee9 * Add NLS section to NSIS installer (installs compiled gettext message catalogs)
Note: the added German text in the NSIS installer might require looking over by someone who has more experience with the language

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2408 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 18:51:06 +00:00
Giel van Schijndel 436523e700 * Don't add data/locale to warzone.wz since gettext can't access these files through PhysFS but needs direct access to them (through stdio.h stuff)
* ./configure && make && make install (and the NSIS installer) will make sure that the gettext message catalogs are in a decent location

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2407 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 18:37:08 +00:00
Giel van Schijndel 8fbf62c1b2 * Get grim.wz from data/mods/global/grim.wz instead of data/grim.wz for the NSIS installers
* Fix data/Makefile.raw by moving make-target/make-rule $(SUBDIRS) below "all"

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2406 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 18:31:35 +00:00
Giel van Schijndel 94db796167 * Fix a typo in nettypes.c this should fix bug #9791
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2405 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 17:54:26 +00:00
Giel van Schijndel b360d380b2 * Move data/grim to data/mods/global/grim
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2404 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 17:42:17 +00:00
Giel van Schijndel e3db4b5e16 * Add gettext (>= 0.15) as build dependency for the Debian package
* the >= 0.15 part is because we depend on the "message context" feature only provided by >= 0.15


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2403 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 14:39:52 +00:00
Giel van Schijndel 7e3d161574 * Add BOOL NETfloat(float* fp) to nettypes.h so that it can actually be used
* Fix a spelling error in a comment in nettypes.c


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2402 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 14:02:17 +00:00
Giel van Schijndel 52bc608d17 * Fix MSVC compilation by assuming all platforms supported by MSVC provide IEEE754 floats
This fixes bug #9791

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2401 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 11:37:39 +00:00
Giel van Schijndel 7e383b4a92 * Improve Dutch translation
* Throw away a lot of autogenerated "translations" (where marked fuzzy) which where just crap
  * Add some new translations
  * Change some pre-existing translations

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2400 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 11:03:57 +00:00
Giel van Schijndel 0be2fe8351 * make -C po update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2399 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 10:11:19 +00:00
Giel van Schijndel 882503686c * Add Dutch translation to patching installer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2398 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 09:55:32 +00:00
Giel van Schijndel ea537fb736 * work around asWeaps[n] still being set for IDES_SYSTEM turrets when numWeaps == 0
* Stops segfaults when hovering over a different propulsion type button than currently selected for an existing non-weapons turret
 * Also stops system turrets being 'forgotten' when changing propulsion type on an existing design (effectively reverses the current behaviour of intCheckValidWeaponForProp considering all existing system turrets invalid for all propulsion types)
Patch by pseudonym404 ( http://forums.wz2100.net/index.php?topic=148.msg7761#msg7761 ), slightly changed by me to be compatible with the changes in r2396

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2397 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 09:51:44 +00:00
Giel van Schijndel 4d424e8ab1 * Use X[Y].m to access member variables of an array of structs rather than (X + Y)->m
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2396 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-17 09:45:42 +00:00
Giel van Schijndel 35d7b53eb8 * make -C po update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2395 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 23:03:56 +00:00
Giel van Schijndel e28c8c4606 * Add support for compiling with gettext to the raw Makefiles (note this _does_ require the latest devpkg)
* Add the ability to compile .mo catalog files from gettext .po files to the raw Makefiles (all catalog files are dumped into data/locale)
 * On Windows make gettext use the LOCALEDIR (as defined in makerules/config.mk) which is a subdirectory of the directory that contains Warzone 2100's executable as it's locale directory

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2394 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 22:50:05 +00:00
Giel van Schijndel 2231d34d23 * Don't use fprintf's formatting string stuff when you have the preprocessor to do it for you (compile-time is faster than runtime!)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2393 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 22:34:07 +00:00
Dennis Schridde b791c2353d Order...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2392 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 21:01:18 +00:00
Dennis Schridde f75edcb106 libdbghelp.a is now in devpkg-mingw32.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2391 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 20:59:49 +00:00
Giel van Schijndel cbb398882d * First create $(DESTDIR)$(pkgdatadir)/mods/global before installing grim.wz in it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2390 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 20:40:11 +00:00
Dennis Schridde 8334d13138 Prevent a symbol conflict of our DATADIR with that from /usr/mingw32/mingw/include/objidl.h via lean-and-mean.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2389 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 20:12:46 +00:00
Giel van Schijndel 8faa60aa63 * Update Grim's GFX mod for r2300
* Rewritten texture loader: terrain texture tiles are now in separate files rather than concatenated in one large image file
 * Convert tileset to loose files

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2388 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 17:59:15 +00:00
Giel van Schijndel 0fcde559bc * Update Grim's GFX mod for r2124:
* strings.txt removal

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2387 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 17:41:21 +00:00
Giel van Schijndel 33aea77e60 * Add Grim's GFX mod (this version would work cleanly with r2123; I'll update it soon after this commit)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2386 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 17:38:28 +00:00
Giel van Schijndel 0ba8c36b31 * Fix building of mp.wz by the raw Makefiles
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2385 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 17:21:21 +00:00
Per Inge Mathisen 924a22c3cb No longer make unnecessary assumptions about leading zeroes in tile filename suffixes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2384 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 13:45:48 +00:00
Giel van Schijndel 3e8cb6ba4c * Add Python script for the conversion of old-style one-texturepage tilesets to mipmapped tilesets
By Kevin Gillette <kage>

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2383 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 10:24:52 +00:00
Giel van Schijndel e559915d83 * Change an assert(FALSE) into a more descriptively styled: !"text string"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2382 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 09:49:44 +00:00
Giel van Schijndel 551aa55cb9 * Use SDL_EnableKeyRepeat to enable the repeation of key press events (this enables you to press your 'A' key once and get multiple 'A's if your in a textbox)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2380 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 09:30:50 +00:00
Giel van Schijndel 29c1229322 * Prevent a warning about "dereferencing type-punned pointer will break strict-aliasing rules" by casting a &float through a void* before casting it to uint32_t*
* Add an explanation about floats (that they're basically the same as 32bit integers as far as endianness conversions are concerned)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2379 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-16 09:09:30 +00:00
Giel van Schijndel 1ee0356036 * Adapt the writeFXData and readFXData functions to use the PHYSFS big endian swapping write and read functions
* Don't write directly from the memory of the EFFECTs (since this memory doesn't always have the same size on 32vs64bit systems)
 * Guarantee to always write the IMD's hash number as if it's a uint32_t (this fixes 64bit compatibility of these functions)
 * Add functions openLoadFile and openSaveFile which perform the file opening for loadFile2 and saveFile and now readFXData and writeFXData as well

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2378 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-15 21:26:05 +00:00
Giel van Schijndel 707e156265 * Fix warning about "null argument where non-null required"
* Turn macro ALLOC_VARIDENTDECL partially into a static inline function
 * Remove -Wno-nonnull since this warning shouldn't appear anymore now
Patch by pseudonym404 with some changes by me ( http://forums.wz2100.net/index.php?topic=148.msg7723#msg7723 )

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2377 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-14 19:24:29 +00:00
Giel van Schijndel ab9f78760b * Fix a warning about unused variable "kills"
Patch by pseudonym404 ( http://forums.wz2100.net/index.php?topic=148.msg7691#msg7691 )

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2376 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-13 23:44:13 +00:00