Commit Graph

1927 Commits (623ac960aed6c4f9fe17999e280699f7b2f6638c)

Author SHA1 Message Date
Per Inge Mathisen 35df577a0e Add two new cheat codes: "more power" gives you 1000 power, and
"superpower" gives you a very large number of power.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2462 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-20 17:12:02 +00:00
Per Inge Mathisen 46a9f57922 Fix canvas offset of grim mod terrain textures, so that they can be properly
opened in the gimp program.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2461 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-16 17:26:11 +00:00
Dennis Schridde 6627ecbc6a Fix "incompatible declarations" found by batched compiling.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2460 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-16 14:05:01 +00:00
Giel van Schijndel 9db9ca51ea * Add Doxygen comments to lib/framework/strnlen1.h
* Fix some errors in lib/framework/utf8.h comments


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2459 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-15 23:37:32 +00:00
Dennis Schridde 31a5f63fa2 - Remove "PROTOCOL" screen for "Host Game" (only option was "Internet").
- Turn "PROTOCOL" screen into a selection of "Lobby" vs. "IP", with "IP" behaving like the original "Internet" option and "Lobby" proceeding directly to the Lobbyserver.
Tested and approved working by Kreuvf.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2457 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-10 13:48:44 +00:00
Dennis Schridde fd1836d235 Rename protocol "Internet" to "Network" as per Kreuvfs request. http://forums.wz2100.net/index.php?topic=978.0
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2455 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-10 10:05:52 +00:00
Giel van Schijndel 69ad10edc4 * Fix a compile error when attempting to perform a "Release" compile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2454 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-08 12:20:22 +00:00
Giel van Schijndel fe265cdc57 * Remove unused bitmap pumpkin16.bmp which is just a 16 colour version of res/bitmap1.bmp
* Remove unused bitmaps res/bitmap2.bmp res/bmp00001.bmp; also remove them from our resource file
 * Don't use a magic number in editworld.rc for means of referring to res/bitmap1.bmp use IDB_BITMAP1 instead

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2453 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-08 12:12:34 +00:00
Giel van Schijndel b2f95025ed * Remove M$ SourceSafe file (we don't use SourceSafe!! We use Subversion!!!)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2452 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-08 11:47:29 +00:00
Giel van Schijndel c0c7c6fa51 * Remove the last uses of template class ListNode<T> which was a cheap replacement of std::list<T>
* Remove some commented out functions from heightmap.cpp which where duplicated (i.e. functions with the same name and parameter prototypes existed elsewhere in the file) and used ListNode<T>
 * Replace usage of ListNode<T> with std::list<T> usage; actually I replaced it with std::list<T>::iterator or std::list<T>::const_iterator since all code that still used ListNode<T> was code iterating over an instance of ListNode<T>
 * Remove listtemp.h which contained template class ListNode<T>

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2451 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-08 11:42:30 +00:00
Dennis Schridde ce19900dbe Watermelon is Carl Hee.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2450 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-30 22:28:34 +00:00
Dennis Schridde c8e5568fbd Add EvilGuru to the authors file.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2449 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-30 22:13:55 +00:00
Giel van Schijndel fa12543c0d * Remove rather empty file stdafx.cpp
* #define VC_EXTRALEAN before including MFC & Windows headers to exclude some unused stuff

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2447 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-26 21:58:15 +00:00
Giel van Schijndel 30a62a1b6c * Add window IDs to TODO file; which is easier to understand (I hope) than filenames
* Remove several unused windows from the resource file: IDD_EDITSTATS, IDD_HEIGHTSCALE, IDD_OBJECTTYPES, IDD_SETSTATSCHOICE, IDD_SETSTATSCOMBO and IDD_SETSTATSVALUE

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2446 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-26 20:46:54 +00:00
Giel van Schijndel c0df2cb97f * Rename CAboutDlg to AboutDialog and move it out of btedit.cpp into aboutdialog.[ch]pp
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2445 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-26 20:26:50 +00:00
Giel van Schijndel 41dada6a26 * Make Limits dialog resizeable and alter the proportions slightly to make this window easier to work with
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2444 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-26 19:21:38 +00:00
Giel van Schijndel 4cf90b9f8c * Remove empty destructors
* Update EditWorld's TODO file (remove limitsdialog.cpp from the list of yet to port windows)
 * Use wxWidgets' precompiled header in numtextval.hpp

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2443 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-26 18:59:10 +00:00
Giel van Schijndel c7efa311fc * Add template class wxListCtrlValidator<Container> which is a specialization of wxGenericValidator that only works on wxListCtrl instances
* This class uses a container of integers instead of wxArrayInt (C++ container as specified in section 23.1 of the ISO C++ standard 1998)
 * Add another ported dialog: LimitsDialog; to directory wxDialogs

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2442 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-26 16:38:55 +00:00
Giel van Schijndel acccbf667e * Rename function names to names similar to what wxSmith produces (wxSmith is a wxWidgets dialog-editor plug-in for Code::Blocks)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2441 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-26 16:23:26 +00:00
Roman C e80301537f Allow scripts to set DORDER_DROIDREPAIR order to make repair droids repair some droid.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2440 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-26 11:53:20 +00:00
Giel van Schijndel e5fdf5e346 * Remove #include directives for unused header files (btedit.h and debugprint.hpp)
* Wrap some strings in _T() macro (deals with unicode/ascii text)
 * Add an header guard to limitsdialog.hpp
 * Use std::deque's constructor to load data into it from two InputIterators (first & last); note: in case of MSVC6 this requires you to fix the flawed STL

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2439 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-26 11:40:19 +00:00
Per Inge Mathisen 5088fc3a96 Revert previous patch - turns out zero padding is necessary after all.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2438 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-25 22:33:14 +00:00
Per Inge Mathisen e26e734113 No longer make unnecessary assumptions about leading zeroes in tile filename suffixes
of tile files, not just the tile directories.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2437 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-25 22:23:44 +00:00
Per Inge Mathisen 1c4026134b Fix border artifacts when zooming very close to terrain by turning off linear
magnification filtering and removing the 1 pixel texture coordiante border hack.
This should leave us with a good working (hopefully) baseline from which we can
test various improvements.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2436 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-25 21:53:04 +00:00
Giel van Schijndel a2ceea149f * Use references for output parameters for function CHeightMap::GetMapSize instead of pointers (also use "unsigned int" instead of "DWORD")
* Change the return value of functions CHeightMap::GetMapWidth and CHeightMap::GetMapHeight from "DWORD" to "unsigned int" (also don't mark these functions as inline anymore)
 * Mark function CHeightMap::GetScrollLimits as const and remove the inline keyword from its declaration
 * Add a template function CHeightMap::SetScrollLimits which uses std::list::assign() to copy a list of CScrollLimits from two input iterators (in MSVC6 I had to fix the STL implementation to get this to compile, GCC works fine though, newer versions of MSVC *should* work as well btw)
Greater ease in porting to wxWidgets:
 * Rename class CLimitsDialog to LimitsDialog
 * Add templated constructor to LimitsDialog
  * This constructor initializes an std::deque<CScrollLimits> (_limitsList) with a list of scrolling limits
  * This constructor depends on InputIterators (as defined by the C++ standard in section 24.1.1) for its initialization
 * Put member data in a private part of LimitsDialog's class declaration
 * Make sure all member functions of LimitsDialog only work on its own private data and not on other classes' data
 * Instead the usercode using LimitsDialog can use the InputIterators provided by LimitsDialog::firstLimit and LimitsDialog::lastLimit to copy data over (e.g. using STL Containers' assign() member function)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2435 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-25 17:32:02 +00:00
Roman C 5d39df302d Added more phrases recognized by 1.10 and Aivolution AIs as help requests.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2432 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-24 13:21:31 +00:00
Giel van Schijndel 7281760437 * Set mime-type of svg icon file to "image/svg+xml" (W3C recommended mime-type for SVG files)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2431 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-22 21:08:10 +00:00
Dennis Schridde 274abd14ca Fix WZ_DECL_FORMAT for non >=gcc-2.5
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2430 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-22 18:04:07 +00:00
Dennis Schridde 67fc572826 Increase file load buffer size to 4MB.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2429 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-21 21:55:09 +00:00
Dennis Schridde 63a38d0da9 Include unistd.h for MinGW as well.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2428 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-21 14:52:50 +00:00
Dennis Schridde 20fe87c0f4 AM: Add lexers to BUILT_SOURCES and CLEAN_FILES as well.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2427 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-21 13:16:09 +00:00
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