Delete two unused and broken map files that either belongs to an expand mission or is unreferenced.
Add basic unit testing framework for testing all map files in data/base.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6728 4a71c877-e1ca-e34f-864e-861f7616d084
* Fix loading of stats from the SQLite database (utilised in the campaign)
This fixes#276 and #269.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6670 4a71c877-e1ca-e34f-864e-861f7616d084
(It's been months... We really shouldn't sit on patches with no objections for this long...)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6656 4a71c877-e1ca-e34f-864e-861f7616d084
* Use these VIEWs instead of rather complicated SELECT statements in the C SQLite loading code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6646 4a71c877-e1ca-e34f-864e-861f7616d084
* Generate SQL INSERT statements from CSV data for ECM
- REPAIR and BRAIN are still "exceptional" cases requiring syntactical extensions to the DB mini/meta language
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6579 4a71c877-e1ca-e34f-864e-861f7616d084
- This qualifier allows overriding of CSV field numbers given in base classes
- This is required for the WEAPON stats because it differs from most other stats in that it doesn't have the "designable" field as the last CSV field
* Specify all CSV field numbers for the fields in struct WEAPON
* Generate SQL INSERT statements from weapons.txt
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6553 4a71c877-e1ca-e34f-864e-861f7616d084
r6474 changed it to "ntw mod", but that directory path adds little, and introduces problems with our build systems due to the embedded space and makes maintaining compatibility with [milestone:2.1] more difficult (considering that NTW is already packaged as part of 2.1.0 in Debian and Gentoo).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6476 4a71c877-e1ca-e34f-864e-861f7616d084
it. This will make it easier to change the sky for the different areas.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6345 4a71c877-e1ca-e34f-864e-861f7616d084
* Get rid of the (previous) handcrafted version for loadPropulsionStatsFromDB
* Get rid of the old (handcrafted) `propulsion` table and replace it with the autogenerated `PROPULSION` table
NOTE: Only src/data.c src/stats-db.[ch] src/stats-db2.tpl got changed manually, the other changes where generated from these
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6337 4a71c877-e1ca-e34f-864e-861f7616d084
* At the start of a new struct's data place the name of that struct
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6333 4a71c877-e1ca-e34f-864e-861f7616d084
* Get rid of the previous (handcrafted) version for loadSensorStatsFromDB
* Get rid of the old `sensor` table in the database and replace it with the autogenerated `SENSOR` table
This addresses #2
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6327 4a71c877-e1ca-e34f-864e-861f7616d084
* Use the database-meta-language code generator to generate a new stats loading function: loadConstructStatsFromDB
* Add a new resource type, DBCONSTR, which uses loadConstructStatsFromDB to load the construction stats
* Employ this new type in "base"
This addresses #2
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6326 4a71c877-e1ca-e34f-864e-861f7616d084
PRIVATE, as it is not defined in the .vlo. The current scripting engine does not seem to notice, but this helps
the wz2lua converter.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6306 4a71c877-e1ca-e34f-864e-861f7616d084
See ticket:105 for more info.
Fixes bug #12398 , bug #12443
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6186 4a71c877-e1ca-e34f-864e-861f7616d084
* Add support for decoding and displaying of OggTheora/Vorbis videos
* Change all references to *.rpl files to *.ogg files (and lower case them)
* Add a new menu (and config) option for selecting the size at which to display videos (1x (native), 2x, full screen)
This closes ticket:64 and ticket:46
Code changes are ticket:64 (patch by Gerard Krol, Giel van Schijndel and Buginator)
FMVs can be found at http://download.gna.org/warzone/videos/sequences_ogg.zip (for now at least)
Videos encoded by Angus Lees
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6119 4a71c877-e1ca-e34f-864e-861f7616d084
- e.g. Sensor Upgrade -> Sensor Upgrade (note the lack of an Mk2)
* Fix several naming inconsistencies
This closes ticket:56, patch by <Zarel>
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6032 4a71c877-e1ca-e34f-864e-861f7616d084
This revision fixes ticket:57. We (Buginator, EvilGuru and Giel) decided to use the fix suggested in ticket:57 for now and to use [wiki:Proposal:ModMounting] on a later date. I.e. fix the problem now (however dirty the solution may be), and implement a properly designed one later on, instead of letting trunk remain broken until said proposal is worked out in enough detail.
This revision fixes bug #11847, bug #11875, bug #11898, bug #11976, bug #11989, bug #12017, bug #12250 and bug #12280.
Patch by Buginator and myself
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6028 4a71c877-e1ca-e34f-864e-861f7616d084
* Getting rid of the custom crafted installation rules
* Replace them with a single automake primary build rule: nodist_<instdir>_DATA
This closes ticket:62
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5995 4a71c877-e1ca-e34f-864e-861f7616d084
* This fixes bug #12262
* Added myself to the AUTHORS file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5955 4a71c877-e1ca-e34f-864e-861f7616d084
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
* 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
elio. Circle now has correct tooltip and uses old patrol icon. Some
spelling issues also fixed.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5565 4a71c877-e1ca-e34f-864e-861f7616d084
It's loaded in from the stats files and copied all over a dozen places, but never actually __used__.
NOTE: This __shouldn't__ break savegames, I've checked it quite thoroughly, but game.c is evil & large enough that the chance exists I made a mistake in this department.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5454 4a71c877-e1ca-e34f-864e-861f7616d084
Exception is when generating the .wz files, where we need the path to the build directory and building a reverse relative path to $(srcdir) will be messy.
Also silence submake.mk a great deal.
Bug #11883 should be fixed now for the most part.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5325 4a71c877-e1ca-e34f-864e-861f7616d084
Their use is currently flawed, since it will not work in directories with spaces in them... (
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5319 4a71c877-e1ca-e34f-864e-861f7616d084
- Use PACKAGE, PACKAGE_VERSION, remove VERSION
- Allow out-of-source-dir builds (mkdir build && cd build && make -f ../Makefile.raw)
- Move config.mk from $(top_srcdir)/makerules/config.mk to $(top_builddir)/config.mk
When keeping current behaviour (srcdir=builddir), this means: Move it from makerules into the main directory
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5308 4a71c877-e1ca-e34f-864e-861f7616d084
The playlist file is no a simple list of files to play during the game.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5281 4a71c877-e1ca-e34f-864e-861f7616d084
* "table" will now attempt to load the given resource type from the given table (in the currently opened database)
* Maintain the current database's name (for error message, etc.)
* Pass the table name to the database loading functions and use it (in combination with sqlite3_mprintf) to produce the SQL statements
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5189 4a71c877-e1ca-e34f-864e-861f7616d084
* Add two new keywords to the .wrf files: "database" and "table"
* "database" will cause the given filename to be opened as a database file (using SQLite3)
* "table" will attempt to load the given resource type from the currently opened database
* Don't open the database in the file loading functions (src/data.c) anymore; turn them in table loading functions instead (which get the current database passed as a paramter)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5188 4a71c877-e1ca-e34f-864e-861f7616d084
* Add the code to load sensors from the sensor table of the given database file (function `loadSensorStatsFromDB`)
* This code will make sure to load the sensor stats-data in a similar manner (i.e. the resulting data in-memory should be the same) to the sensor.txt loading code
* Use this stats loading implementation on single player
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5182 4a71c877-e1ca-e34f-864e-861f7616d084
* Add the code to load ECM entries from the ecm table of the given database file (function `loadECMStatsFromDB`)
* This code will make sure to load the ECM stats-data in a similar manner (i.e. the resulting data in-memory should be the same) to the ecm.txt loading code
* Use this stats loading implementation on single player
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5178 4a71c877-e1ca-e34f-864e-861f7616d084
This would not always work before, since we just depend on the directory, not each file in it.
This oversight made make not recognize when a file was changed and the archive needs to be regenerated.
We now run zip on every invocation of the data target.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5158 4a71c877-e1ca-e34f-864e-861f7616d084
Should not create any problems, buildsystems were changed (MacOSX, please test).
Reason: Organisation, later: simplification.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5156 4a71c877-e1ca-e34f-864e-861f7616d084
U data/messages/strings/names.txt
U data/messages/strings/resstrings.txt
U data/messages/strings/cam2strings.txt
U data/messages/strings/cam3strings.txt
U data/mp/messages/strings/names.txt
U data/mp/messages/strings/resstrings.txt
- Remove duplicate names for "Mortar Pit" (there also was " Mortar Pit" before...)
- Duplicate string: "TRANSPORT MISSION: Rescue civilians from Containment Camp" and "TRANSPORT MISSION: Rescue Civilians from Containment Camp "
- Remove more extranous spaces
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5019 4a71c877-e1ca-e34f-864e-861f7616d084
-remove unused research
-calculate the most effective AT weapon on the fly
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5015 4a71c877-e1ca-e34f-864e-861f7616d084
-make all Missile upgrade values increase in step of 30% instead of 10%, to make sure Missiles (Scourge etc) not handicapped
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5012 4a71c877-e1ca-e34f-864e-861f7616d084
-all emplacements are now marked as "HARD" instead of "MEDIUM"
-hitpoints of all emplacements increased from 400 to 600
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4997 4a71c877-e1ca-e34f-864e-861f7616d084
-increased Lancer rocket cost from 100 to 125
-decreased Tank Killer cost from 250 to 200
-decreased Scourge cost from 330 to 300
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4961 4a71c877-e1ca-e34f-864e-861f7616d084
-Body balance tweaked to make later bodies better value than the early bodies, this results in a massive cost drop for heavier bodies *experimental*
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4946 4a71c877-e1ca-e34f-864e-861f7616d084
-make Scorpion slightly 4% more expensive
-cost of Dragon any Wyvern body decreased by ~10%
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4909 4a71c877-e1ca-e34f-864e-861f7616d084
-counter attacks by long-ranged units (including arty)
-rewrote the way AI handles situations when it loses enemy base location while attacking it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4863 4a71c877-e1ca-e34f-864e-861f7616d084
Lancer, Tank Killer, Light and Medium cannons are weaker.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4763 4a71c877-e1ca-e34f-864e-861f7616d084
-build at least 2 cyborg factories
-use more attackers during an attack
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4749 4a71c877-e1ca-e34f-864e-861f7616d084
-drastically reduced cyborg template research cost (by 250%-300%) for:
Assault Gunner, Needle Gunner, Scourge, Flashlight Gunner, Super HPV Cyborg, Super Heavy-Gunner, Super Auto-Cannon Cyborg, Super Tank-Killer Cyborg, Super Pulse Laser Cyborg, Super Rail-Gunner, Super Scourge Cyborg
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4744 4a71c877-e1ca-e34f-864e-861f7616d084
game name, and map name edit box buttons highlightable in MP dialog.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4680 4a71c877-e1ca-e34f-864e-861f7616d084
they are normal state, pressed state, and highlighted by mouse. Removes ugly
hack to provide highlighting for only some buttons.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4675 4a71c877-e1ca-e34f-864e-861f7616d084
-anti tank weapons do 15% more damage to bunkers
-bunker buster does 12% less damage to bunkers
-MG does 200% more damage to VTOLs (effectiveness increased from 25% to 75%)
-increased body points of light cyborg weapons by 40%
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4654 4a71c877-e1ca-e34f-864e-861f7616d084
-Cyborg Grenadier: decrease short range accuracy, increased long range accuracy, increased damage by 50%.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4616 4a71c877-e1ca-e34f-864e-861f7616d084
-Tank Killer, Rail Gun, Scourge have more firepower
-Needle Gunner damage decreased
-All Super Cyborg weapons: body points doubled
-Medium Cannon: long range accuracy increased by 10%
-Heavy Cannon: long range accuracy increased by 15%
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4562 4a71c877-e1ca-e34f-864e-861f7616d084
-make sure power boost is only applied to AIs, not to human players
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4549 4a71c877-e1ca-e34f-864e-861f7616d084
-make sure AI gets power boost on client's machines too, this fixed the "Not enough power to build droid" bug that appears during mp games.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4548 4a71c877-e1ca-e34f-864e-861f7616d084
-slightly reduce hit-points for hardpoints and walls
-make anti-tank weapons slightly more effective vs hardpoints
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4536 4a71c877-e1ca-e34f-864e-861f7616d084
-don't append "-aiv" to AI names on machines which don't run Aivolution.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4531 4a71c877-e1ca-e34f-864e-861f7616d084
-increased Bunker Buster's damage by 30% to make sure it is strong enough vs bunkers and can compete with flamers
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4501 4a71c877-e1ca-e34f-864e-861f7616d084
-make super cyborg weapons build faster, instead make super cyborg bodies take longer to build, should result in a small speed up in build time for super cyborgs
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4499 4a71c877-e1ca-e34f-864e-861f7616d084
- Super Tank-Killer Cyborg has more damage
- Super Rail-Gunner, Super HPV Cyborg cost slightly less
- Super Pulse Laser Cyborg, Super Heavy-Gunner, Super Auto-Cannon Cyborg cost only 50% of what they used to cost
- Super Scourge Cyborg costs slightly more
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4497 4a71c877-e1ca-e34f-864e-861f7616d084
-increased hp of walls by 2.5 times
-increased hp of hardpoints and fortresses by 2 times
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4481 4a71c877-e1ca-e34f-864e-861f7616d084
-Super Heavy Gunner has more firepower
-Super Auto-Cannon Cyborg has more firepower, range has been slightly decreased
-Super HPV Cyborg; firepower increased, range increased
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4477 4a71c877-e1ca-e34f-864e-861f7616d084
-slightly decrease Mini-pods's short-range and long-range accuracy
-increase MRL's short range accuracy and decrease it's long-range accuracy
NOTE: as a result mini-pods now do more damage to tracked units than MRL
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4475 4a71c877-e1ca-e34f-864e-861f7616d084
-fixed a bug that made Aivolution defend its own derrick instead attacking an unprotected enemy derrick by building a bunker near it.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4449 4a71c877-e1ca-e34f-864e-861f7616d084
-increased hit-points of oil derricks by 100%, since it gets destroyed too easily by lucky shots. Needs testing.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4445 4a71c877-e1ca-e34f-864e-861f7616d084
* Add the code to load propulsions from the propulsion table of the given database file (function `loadPropulsionStatsFromDB`)
* This code will make sure to load the propulsion stats-data in a similar manner (i.e. the resulting data in-memory should be the same) to the propulsion.txt loading code
* Use this stats loading implementation on single player
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4444 4a71c877-e1ca-e34f-864e-861f7616d084
Tank Killer now fires 4 projectiles (to match its turrent gfx), total average firepower stays unaffected.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4407 4a71c877-e1ca-e34f-864e-861f7616d084
-added a way to find out if playing against aivolution: "are you aiv?" command.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4382 4a71c877-e1ca-e34f-864e-861f7616d084
-make sure dialogs AIs are involved in are visible to all allies
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4338 4a71c877-e1ca-e34f-864e-861f7616d084
Fixed a script function calling getPlayerName(-1) and causing an assert.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4335 4a71c877-e1ca-e34f-864e-861f7616d084
-don't ask for help when already defeated
-disabled an unnecessary assert
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4284 4a71c877-e1ca-e34f-864e-861f7616d084
wait some time before notifying allies of an idle state to prevent too rapid state changes
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4160 4a71c877-e1ca-e34f-864e-861f7616d084
-AI became more talkative
-more phrases can be recognized and used as commands
-cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4158 4a71c877-e1ca-e34f-864e-861f7616d084
-don't offer to attack enemies on startup, if AIV has no units
-use player names instead of player numbers in the chat
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4151 4a71c877-e1ca-e34f-864e-861f7616d084
-fixed a bug, which made Aivolution send its units to the initiator of the "go <player>" request instead of the enemy it was supposed to attack.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4149 4a71c877-e1ca-e34f-864e-861f7616d084
-made AIV research all tech necessary for the newly added heavy templates
-tweaked templates a bit
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3887 4a71c877-e1ca-e34f-864e-861f7616d084
Ported fix to bug #11122 from Branch to Trunk (player0.slo was already fixed in r3875).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3886 4a71c877-e1ca-e34f-864e-861f7616d084
License: CC BY-SA 3.0, as allways.
The border and logo look quite good ingame, so 07-bdrop.png should get that, too.
Also: Use a highres version of 07-bdrop.png, also by Cathuria
Also: Change COPYING.README style a bit
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3884 4a71c877-e1ca-e34f-864e-861f7616d084
revert changes done to player0.slo after 3841, since it reverted bug fix to bug #11085, which was applied in r3840.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3871 4a71c877-e1ca-e34f-864e-861f7616d084
This adds make warnings, which are hopefully always reacted upon as they are in my version of GNU make, so it does the correct thing and not try to replace player0.[vs]lo with itself or do other crap...
make: Circular player0.slo <- player0.slo dependency dropped.
make: Circular player0.vlo <- player0.vlo dependency dropped.
Also: Add clean target
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3851 4a71c877-e1ca-e34f-864e-861f7616d084
Also add error checking, to see wether the template parameters were replaced properly.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3850 4a71c877-e1ca-e34f-864e-861f7616d084
-files for all 8 AI players are now back into the repository.
-fixed bug #11085 (part 1/2)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3840 4a71c877-e1ca-e34f-864e-861f7616d084
Fortresses:
-raised reload rate and firepower
-rocket fortress now has 4 projectiles
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3836 4a71c877-e1ca-e34f-864e-861f7616d084
-fixed a bug which prevented AI from building more than 2 different cyborg types
-added more different templates (flamers, hpv etc)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3779 4a71c877-e1ca-e34f-864e-861f7616d084
* Use this enum's values throughout the src/* code
* Replace scripting function playCDAudio(int) by playIngameCDAudio() which is equivalent to cdAudio_PlayTrack(playlist_ingame)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3687 4a71c877-e1ca-e34f-864e-861f7616d084
-increased fire power of some cyborgs to match the fire power of the weapons used for units
-decreased reload time for cyborg flamers
-increased weapon range of HPV Cyborgs
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3556 4a71c877-e1ca-e34f-864e-861f7616d084