Commit Graph

4581 Commits (f0366a49ad728dcee7f830c45a250258e2e2d4a1)

Author SHA1 Message Date
Steven Koenig f0366a49ad ScriptingManual.xhtml:
* Using CSS files of the readme for now, may be changed in later commits
* Markup for 10/11 parts complete
* Markup for the last one will take a while (~25 to 30 DIN A4 pages)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5718 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-31 11:29:45 +00:00
Giel van Schijndel b2e83cabc1 Add some ASSERTs to check for dodgy pointers
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5715 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-30 20:42:02 +00:00
Steven Koenig f01068730d * Cleaned ScriptingManual.xhtml by hand and with HTMLTidy which reduced the file-size by more than 50%
* Markup will be restructured in later commits
* Deleted the contents of scriptingmanual.css; will decide later if the file is needed or not


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5714 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-30 15:59:08 +00:00
Giel van Schijndel 11cd7ac69f Fix the MSVC project for compiling lib/exceptionhandler
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5712 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 21:27:17 +00:00
Giel van Schijndel 1f0410aeb5 * Slight refactoring of viewDataShutDown to reduce nesting
* Make the linked list manipulation actually ''work''

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5711 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 21:20:44 +00:00
Giel van Schijndel 164b02f4f0 Get rid of the `numFrames' fields that are only used by PSX code (it's only read in, but not used anywhere)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5710 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 21:20:31 +00:00
Steven Koenig c53386d59c Updated de.po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5709 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 18:57:27 +00:00
Giel van Schijndel 068d2d3174 Move the last translatable string that's used by the scripts into the scripts themselves: _("Return to LZ")
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5708 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 18:28:40 +00:00
Giel van Schijndel 4ddff7023c Explicitly cast away constness in the script gettext functions
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5706 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 11:26:13 +00:00
Giel van Schijndel b5bfd1d8eb Win32 raw Makefile system:
* Compile message_parser.y ''before'' message_lexer.l and message.c, so that message_parser.tab.h is already generated when the former two start compiling

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5705 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 11:25:31 +00:00
Giel van Schijndel 22e9053a8c Update the Xcode project for r5695
Patch by Tim Baumgartner

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5704 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 10:34:23 +00:00
Giel van Schijndel 3d1c469ac8 * Update POTFILES.in: include the *.rmsg files in xgettext's parsing run
* make -C po update-po


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5703 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 00:32:47 +00:00
Giel van Schijndel e48619f9eb Convert data/base/messages/resmessagesall.txt to the new research message format
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5702 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 00:26:41 +00:00
Giel van Schijndel 1c22e4e314 I forgot to commit the changes to data/mp/messages/resmessagesall.rmsg in r5700
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5701 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 00:15:33 +00:00
Giel van Schijndel a2a08db52e Convert data/mp/messages/resmessagesall.txt to the new research message format
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5700 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-29 00:12:07 +00:00
Giel van Schijndel b122c5a07c Convert resmessages1.txt and resmessages3.txt to the new research message format
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5699 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 23:48:49 +00:00
Giel van Schijndel aaf666d026 Convert resmessages2.txt and resmessages23.txt to the new research message format
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5698 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 23:27:15 +00:00
Giel van Schijndel e5ca53e2ec Convert resmessages12.txt and messages.txt to the new research message format
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5697 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 22:49:28 +00:00
Giel van Schijndel 090c069f5e Remove data/mp/messages/multiplay.txt as it's ''exactly'' the same as data/base/messages/multiplay.txt (and base depends on this one as well)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5696 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 21:47:45 +00:00
Giel van Schijndel 763bc7bbd8 Add a new parser: message_parser which parses research message data in a significantly different format from the current CSV message format as "parsed" by loadViewData (this allows for easier gettext translation)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5695 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 21:01:05 +00:00
Giel van Schijndel 8eaf3bfa8b * Move constant MAX_DATA to messagedef.h
* Use strdup() instead of malloc() + strcpy()
 * Remove unused enmurant VIEW_TYPES

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5694 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 20:53:54 +00:00
Giel van Schijndel 231866a510 Allow compiling with Flex < 2.5.9, r5679 and patch #1089 broke this
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5692 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 13:34:00 +00:00
Per Inge Mathisen 7f768ba83e Add naval propulsion, appropriating the unused 'Propellor'
propulsion for this purpose. To test, use 'give all' cheat
before design, and the ctrl+o menu to place.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5691 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 09:15:20 +00:00
Giel van Schijndel 49944c6e3b * Remove several unused strings
* Move some strings to scripts

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5690 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 02:46:36 +00:00
Giel van Schijndel f7a433bf51 Add these gettext "macros" to the scripting engine: N_, P_, PE_, NP_, gettext_noop and pgettext, which work just like their C counterparts
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5689 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 02:12:59 +00:00
Giel van Schijndel 40a8a0c1ff Remove several unused strings
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5688 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 02:12:52 +00:00
Giel van Schijndel 8175833f5b * Move all translatable strings used by the tutorial into the tutorial's script file and out of the string resource file (`tutstrings.txt`)
* make -C po update-po

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5687 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 02:12:42 +00:00
Giel van Schijndel 121a3fad11 * Add '_' and 'gettext' function, for gettext translation, to the script engine
* Include all *.slo files when parsing for translatable strings with xgettext

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5686 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-28 02:12:12 +00:00
Giel van Schijndel 3eabf084ad Get rid of the ID number cruft in the string resource system:
* At the only place where these ID numbers where used (scrValDefSave and scrValDefLoad), use the key-string instead (e.g. "ZNULLBODY" instead of 17)
 * Rename function strresGetStringByID to strresGetString
 * Increment event save file version to 4 (version of savegame.es files)
 * Reject loading of savegames that need to load non-NULL ST_TEXTSTRING variables from version < 4

NOTE: This may break current savegames of games that use scripts with variables of type TEXTSTRING in them (AFAIK currently only ''some'' campaign and tutorial savegames have these).

This closes ticket:19

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5685 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-27 23:58:49 +00:00
Giel van Schijndel 54ae7cda3a Remove useless wrapper function scrvGetString, which does nothing more than to forward its call to strresGetStringByID
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5684 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-27 23:51:56 +00:00
Per Inge Mathisen 599923b4a4 Remove unused code and fix some indentation.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5683 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-27 20:13:41 +00:00
Per Inge Mathisen 0582c22c94 Allow the placement of droids from ctrl+o cheat menu on water when
they can drive on it. Also move a variable into more local scope.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5682 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-27 19:57:56 +00:00
Giel van Schijndel 45dc51512b * Add a new function transporterIsEmpty to determine whether a transporter holds no droids
* Allow sending of transporter droids when they're empty

Addresses ticket:5

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5681 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-27 13:38:17 +00:00
Giel van Schijndel 5f496b5b33 Allow (warning-less) compilation with Flex 2.5.33
Patch #1089 by Bertrand Coconnier <bcoconni>

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5679 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-27 13:34:58 +00:00
Giel van Schijndel 04f5392dd2 Fix stock AI's `takeover` trigger:
* Called upon receiving a CALL_UNITTAKEOVER event, which is sent when handing over droids or "stealing" them using the NEXUS turret
 * Prevent it from trying to add command or transporter droids to any groups, as these droids cannot be added to a group

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5678 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 21:48:15 +00:00
Giel van Schijndel 72d29fc343 Make function isDead const correct
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5677 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 21:48:02 +00:00
Roman C f1c2eacb00 Fix release build on MSVC. Patch by Buginator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5676 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 20:41:16 +00:00
Giel van Schijndel 0da42eeaff Link ''with'' all symbols exported to the dynamic symbol table
* This option is needed to allow retrieving of decent back traces using backtrace_symbols_fd (GNU raw back trace extension) has some symbols to work  with

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5675 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 18:50:29 +00:00
Giel van Schijndel 45539212bf Change the download location of the Popt sources to http://rpm5.org/files/popt/popt-1.10.4.tar.gz
Patch by Tim Baumgartner <baum> (file #4615 attached to bug #11940)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5673 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 18:30:55 +00:00
Giel van Schijndel 77b16be151 Fix a typo introduced in r5665
Patch by Buginator


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5672 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 17:12:58 +00:00
Roman C 2eba906351 Aivolution AI builds bunker buster tanks again.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5671 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 16:09:55 +00:00
Roman C 35ed66a847 Restore the true Heightmap radar mode: ignore terrain type. The difference between the current one and 2 terrain radar modes is almost non-existent.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5670 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 11:42:37 +00:00
Roman C a412bf4b17 An attempt to fix "interpRunScript: max instruction count exceeded - infinite loop ?" error.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5669 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 11:28:54 +00:00
Giel van Schijndel 0340c2d9c3 Make it possible for the ST_GROUP loading code in function scrValDefLoad to accept higher savegame event data versions than 3
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5668 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 00:55:23 +00:00
Giel van Schijndel f2bc3c056f Change the debug message about a string that couldn't be found from an error message into a warning message because it seems to occur quite often
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5667 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-25 22:14:47 +00:00
Giel van Schijndel b40e7a6a90 Further hardcode the treap management code to the string resource system:
* Don't maintain a secondary linked list of strings in strres.c
 * Add the string that's tracked and it's ID number to the TREAP_NODE structure
 * Let the treap code manage its own memory
 * Have the treap code perform reverse lookups using either the resource string (i.e. not the "key" string) or associated ID number

NOTE: Searching a treap for anything else than the key is O(n), but that's no worse than a linked list, which is O(n) as well. Walking a treap has O(log n) as memory requirement, whereas walking a linked list has O(1) as memory requirement (stack size). So the only disadvantage is that searching the treap has a (highly remote!) possibility of stack overflows.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5666 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-25 20:27:54 +00:00
Giel van Schijndel dda033b53e Small refactoring and indentation fix to increase readability of gridIntersect
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5665 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-25 16:23:09 +00:00
Giel van Schijndel 88f428e37d * Make gridObjRange const correct
* Move commented out code into an #if 0 section (instead of /**/ comment)
 * Use function world_coord instead of manual multiplication by TILE_UNITS
 * Use the MAX macro to get the largest of two values (instead of manual comparison and selection of values)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5664 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-25 16:10:20 +00:00
Giel van Schijndel e8e664f85a * Get rid of function strresGetIDString who's only purpose is to determine whether the given ID string has a string resource associated with it, and if so return a string that's equal (according to strcmp) to the passed in ID string
* Replace the only use of strresGetIDString with a call to function strresGetStringByID, which will also return NULL on failure to find the given ID string

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5663 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-24 21:12:43 +00:00
Giel van Schijndel 8a41fb89d3 Make function strresStoreString const correct
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5662 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-24 21:12:39 +00:00