Commit Graph

734 Commits (36a6036b9f8ad5e73467bb29b027258e98add83d)

Author SHA1 Message Date
Per Inge Mathisen 823cf96eeb semperfi AI: Rewrite base expansion code - teach AI to spend like a drunken sailor when it
has too much power on its hands. Fix some bugs. Guide it to research mg tower and the first
power upgrade.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9807 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-15 20:51:06 +01:00
Per Inge Mathisen 7b7aca3ce0 Remove 5878 duplicate points in PIE files. See ticket:1582 Reviewed by Safety0ff.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9792 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-13 23:05:00 +01:00
Per Inge Mathisen 303a4d20ba Fix texture file references in base wz wall PIEs.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9791 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-13 23:05:00 +01:00
René Jürgens ee1aad0d42 NTW Mod Version 1.8.9
- Fix Templates Bug
- Fix Scourge and Arch Angel Balance
- Fix Command Center Limit
- Fix Illogical Tech Levels

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9772 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-11 20:14:34 +01:00
i-nod d457d866ba - Aivolution has been removed from the MinGW build system and NSIS project
- NSIS: Aivolution and Original remnants should be removed from target system before installing new files
- NSIS: Force admin-privileges in UAC (they are required anyway), this will allow correct SM shortcuts removal possible on Vista/7


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9764 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-11 20:14:34 +01:00
Per Inge Mathisen c4fddbc513 A new in-progress rewrite of large parts of the current AI. Kept in a mod while it is being
worked on, to avoid breaking other people's testing and skirmish saves unnecessarily.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9763 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-11 20:14:33 +01:00
Per Inge Mathisen 896c74aeba Remove aivolution also from trunk
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9753 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:19 +01:00
Per Inge Mathisen f903f89c1e Reenable cyborg mechanic, thermite and grenadier.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9751 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:19 +01:00
Per Inge Mathisen 01dc5e937f Add a few more baba templates for extra baba squish fun.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9739 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:17 +01:00
i-nod cec20aae6a - NSIS changes from 2.3 (#1111).
- Additional fixes to [9642]: remove old-1.10-balance.wz instead of origianl.wz.
- MinGW build system updates.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9727 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:16 +01:00
Per Inge Mathisen 1f6df2a565 Skirmish AI improvements: Reduce interval to check if trucks can help build
something. Check if we need to build more trucks once we have built one,
instead of immediately going for military units then changing our mind.
Upgrade new research labs immediately after producing them.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9718 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:15 +01:00
Per Inge Mathisen 35bfe4b72c Make sure AI does not build VTOL factory before it is available.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9714 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:14 +01:00
Buginator 6d8d6dcb24 frontport r9538 & r9551
"2.3: Rename "original.wz" to "old-1.10-balance.wz" - I had an agreement with Delphinio that the mod could be named anything but "original", which was vague and confusing to new users."

&

"Rename directory of "original" mod to "old-1.10-balance".

Fixes autotools build."


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9712 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:14 +01:00
Guangcong Luo f7d7f880bd Remove limiting of oil derricks. Power production is limited by generators, anyway, so this is mainly to help people who don't like seeing blinking blue dots everywhere on the map.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9697 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:11 +01:00
Per Inge Mathisen 0e0d5f25fe Fix missing cyborg transport in skirmish due to recent template changes. Closes ticket:1548
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9672 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:09 +01:00
Thomas Barlow aa2e8fd0f5 Fix some AI unit templates which had multiple turrets, but shouldn't have.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9604 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:59 +01:00
Per Inge Mathisen bc633df81a Make human players have super cyborgs and cyborg engineers again.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9553 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Per Inge Mathisen 21d38e3685 Fix typo in AI script
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9535 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:51 +01:00
Per Inge Mathisen f4aba9fb28 Workaround for bug that makes the AI stop researching.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9533 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:51 +01:00
Per Inge Mathisen eb5f9d4395 Deactivate reached oil resource script when human player is playing. Bug reported by cyp_.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9532 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:51 +01:00
Per Inge Mathisen 42a023a592 On advice from Zarel, make AI build scorption body hover trucks instead of cobra.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9515 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:49 +01:00
Christian Ohm 0cd52a643b Mark a research string as no-c-format for translations.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9507 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:47 +01:00
Per Inge Mathisen 1aae810a22 Make AI build cobra hover trucks when it is able to, instead of the ordinary starting trucks. This
allows the AI to access areas of certain maps that are blocked by water. On these maps, this makes
a great deal of difference. This breaks skirmish saves, so do not backport.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9499 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:46 +01:00
Per Inge Mathisen daceec3fd9 New script function bool getPlayerStartPosition(index, ref x, ref y) that finds the start position of any player.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9464 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:41 +01:00
Christian Ohm d7d4c258c4 Actually include challenges in base.wz.
Fixes #1470.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9452 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:39 +01:00
Thomas Barlow 5ad6596be9 Fix some polygon issues in the factory models.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9403 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:33 +01:00
Guangcong Luo b6f03407dd Add new file data/mp/stats/messages/resmessages12.rmsg - additional research descriptions.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9397 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:27 +01:00
Guangcong Luo 258d65c169 Fix some unnecessarily specific numbers in weapon accuracy and pricing: 99% -> 100%, 999 -> 1000.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9395 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:27 +01:00
Guangcong Luo 4df6b05f40 Research messages more specific: "Machinegun damage +25%" instead of "Upgrades machinegun damage". Also add description for radar detector, and fix prerequisites for Flamer Autoloader Mk2.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9392 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:27 +01:00
Per Inge Mathisen a46a6eb68b Throttle AI construction of VTOL factories based on amount of power. Add thermite bombers to VTOL fleet.
Reorder VTOL target priorities to go after construction first. Restrict help build event to avoid trucks
wandering across the entire map to help build something that is finished a long time ago when they arrive there.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9390 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:27 +01:00
Per Inge Mathisen ce8491b4ad Rewrite buildDerrick AI skirmish event. Instead of looking for the next closest oil resource
to our base, be more opportunistic and look for the closest oil resource to each droid, and
only send one droid toward each oil resource. Also speed up full base starts by launching this
event immediately upon start (but after build start base event).


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9389 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:26 +01:00
Per Inge Mathisen 7ca0bc7547 If AI loses a race for an oil resource, it will now instead build a cheap defense building there as revenge.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9388 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:26 +01:00
Per Inge Mathisen ddcb9a9986 Remove some dead AI code from scripts.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9367 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:25 +01:00
Guangcong Luo 81e5af8e34 Rebalance 0.7.0.
Flashlight: range 6-12 -> 12-12
Pulse Laser: range 8-16 -> 14-14, damage 170 -> 165
Heavy Laser: range 5-7.5 -> 16-16, damage 350 -> 240
Pulse laser tower: price 175 -> 200
Pulse laser hardpoint: price 250 -> 275
Heavy laser emplacement: price 225 -> 450

Scourge: range 5-16 -> 5-14, accuracy 70%-80% -> 50%-80%
Seraph: range 5-14 -> 7-15
Lancer: price 125 -> 150, accuracy 50%-60% -> 30%-60%, remove MRL prereq
Lancer hardpoint: price 150 -> 175
Tank killer: accuracy 50%-60% -> 30%-60%
MRL: damage 30 -> 34
MRP: accuracy 45%-45% -> 40%-45%, range 5-8 -> 4-8

Note to self: Fix the tank killer angle bug already.

Mortar/pepperpot: Splash radius 0.5 -> 1.0
Bombard/incendiary mortar: Splash radius 0.75 -> 1.25, (incen) burn radius 0.5 -> 1.25

Howitzer/hellstorm: Splash radius 1.0 -> 1.25
Ground shaker/incendiary howie: Splash radius 1.0 -> 1.5, (incen) burn radius 1.0 -> 1.5

All-rounder modifiers:
Cyborg 60% -> 65%, Wheels 120% -> 125%, HT 110% -> 115%, Tracks 100% -> 105%, Hover 100% -> 120%

Artillery modifiers:
Tracks 50% -> 40%, HT 70% -> 65%, Hover 100% -> 120%

Whirlwind site obsoletes Cyclone site
Cyclone site obsoletes Hurricane site
Whirlwind hardpoint obsoletes Cyclone hardpoint
Gauss hardpoint obsoletes Rail hardpoint
Gauss emplacement obsoletes Rail emplacement

Fixes bug #663 - Tank Killer doesn't fire.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9338 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:21 +01:00
Per Inge Mathisen 7f63c39b06 This patch significantly cleans up the template loading code. It does not fix any known bugs. I did this
in an attempt to fix the copycat truck bug, but it has so far managed to escape me. Closes ticket:1417


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9319 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:19 +01:00
Per Inge Mathisen 423ac3df4f Use chained events instead of relying on a 40 second repeat trigger for research. This
makes the AI much faster at researching, as it eliminates long delays. Also clean up
the base expansion code and make it stop trying to expand when out of power.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9243 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:07 +01:00
Guangcong Luo 541d555e25 Rename Dragon from "Super Heavy Body" to "Multi Turret Body".
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9195 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:00 +01:00
Per Inge Mathisen 640f94ace4 Nudge scav script a bit to make it not crash the script interpreter.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9171 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:37 +01:00
Per Inge Mathisen 7125b11198 Make scavengers work in skirmish again. And they are now meaner than ever.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9170 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:37 +01:00
Per Inge Mathisen c0411ed819 Remove unused wrf files
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9168 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:36 +01:00
Per Inge Mathisen 4eaa4f9afa Fix erroneously commented out line
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9166 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:36 +01:00
Per Inge Mathisen 40652f7257 Fix references to new AI scripts. Remove references to old "campaign" style resource definitions and scripts.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9165 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:36 +01:00
Per Inge Mathisen b8d42bd9fe Change AI script loading. Now AI scripts are kept in ai.slo and ai.vlo, instead of in 8 almost identical files.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9162 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:36 +01:00
Guangcong Luo 187986f92e Fix bug #967 - templates.txt templates (namely, Truck and AI templates) were 1 power point cheaper, and had 1 less HP, than templates created in the Design screen.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9160 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:35 +01:00
Per Inge Mathisen 027cb31486 Make AI use event chainloading for basic structures and new trucks. This means that instead of calling
common AI functions from several places, which can lead to the CPU spending much time doing AI stuff
that frame, or setting the object to idle and wait for a repeat event to pick it up, which can lead to
long delays, it queues up another event for the next AI frame to continue processing.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9133 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:32 +01:00
Per Inge Mathisen baa0ac2188 Purely stylistic changes to make it easier to read this code for mistakes.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9131 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:32 +01:00
Per Inge Mathisen ada555a8d0 Add two new features to challenges, 1) to enable/disable changing your own position,
defaulting to not allowing user to change his or her position, and 2) to allow the
challenge to specify starting positions for each AI. Previously the user could freely
change starting position on all maps. Now this feature is only allowed on the "No Place 
To Hide" challenge. Also move the starting AIs for "Hide Behind Me" challenge to flank
the starting player.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9056 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:23 +01:00
dak180 72ccb7c384 PNG optimization, also known as 'Crush them all!'.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9038 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:21 +01:00
Guangcong Luo 192ade3cc0 Fix bug #1361 - tutorial can be unable to be finished if user clicks through design screen too quickly.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9033 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:10 +01:00
Guangcong Luo fc94a37432 Fix bug #1325 - confusing research icons for some missile upgrades.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8960 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:04:02 +01:00