Commit Graph

38 Commits (0c9eb16089d33305d0e6bbbe652bcbdacb18c020)

Author SHA1 Message Date
Roman C 5a5d16a8a4 - fixed a bug that would prevent AIs from building certain types of cyborgs, since some of their components were not available
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2497 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 15:14:11 +00:00
Roman C 8d7c7810ec Scripting engine update:
- some functions dealing with structure quantity at some location now additionally take a boolean which indicates whether half-built structures should be ignored (stock AI is updated accordingly)
- added sqrt() and exp() functions
- added friendlyWeapObjCostInRange() function to calculate cost of friendly units within a certain range
- CALL_RESEARCHCOMPLETED now additionally returns structure that has completed research and its owner

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2495 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-29 15:04:25 +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
Roman C 7501f09cff 1.10 AI Update:
-before starting building a cyborg engineer, make sure it is already researched
-fixed bug #9601

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2208 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-26 15:59:07 +00:00
Per Inge Mathisen cc17f21df5 Remove templay related code in scripts. Sorry for breaking skirmish for a few minutes :)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2157 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-21 16:41:53 +00:00
Roman C 74c29b312f Fix end condition checking for the multiplayer campaign game mode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2151 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-21 13:13:21 +00:00
Roman C f0fd2363da 1.10 AI:
Make sure cyborg engineers end up in the construction group and are used for construction.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2112 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-15 14:33:07 +00:00
Roman C 0a9388ca0f 1.10 AI Update:
-AI will now also build cyborg engineers
-fixed bug #9503

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2099 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-14 18:02:30 +00:00
Roman C db66f6c053 autogame feature update: after enabling autogame feature, make ai use droids built while autogame feature was off
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2093 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-14 13:40:22 +00:00
Giel van Schijndel 225a70c1f1 * make (save|load)MultiStats const correct (saveMultiStats: char* -> const char*), (loadMultiStats: const char* -> char*)
* remove some unused pointer typedefs LPtypename
 * modify struct PLAYERSTATS to use uint32_t instead of SDWORD (yes I know that changes the signdness, that's intentional)
 * remove padding from struct SAVEDPLAYERSTATS which only served a purpose for the encryption/decryption code (that which was removed in r1953)
 * change name of PLAYERSTATS.loses to PLAYERSTATS.losses (former was a verb in the present time, latter is a noun indicating a count which is what this number essentially is: a counter of losses)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1981 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-26 16:14:09 +00:00
Giel van Schijndel e9c31811d3 * Decrypt data/multiplay/players/test.sta to comply with the removal of the encryption/decryption code from r1953
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1980 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-26 15:24:09 +00:00
Roman C c227835d6a Increase default number of allowed power generators per player to 8, since a power generator can only have 4 oil derricks attached (30 derricks allowed).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1808 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-04 17:15:56 +00:00
Roman C 68a2965390 - increase default number of allowed power generators from 5 to 6 to match the default number of allowed oil derricks (30)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1801 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-03 18:33:51 +00:00
Roman C 2019b3f08d Aivolution Update:
- fixed a bug preventing AI from building a factory when playing with no-bases settings
- implemented minimal requirements for a base
- some clean-ups

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1777 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 14:34:08 +00:00
Roman C fd9dd2a93d Aivolution AI Update:
- fixed a bug preventing AI from locating its base
- improved base location routine

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1776 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-30 10:47:16 +00:00
Roman C fb6e1cbfd1 Aivolution AI:
- cleaned up debug messages

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1757 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 17:56:51 +00:00
Roman C 2e5aa11c29 1.10 AI update:
- implemented "autogame on" and "autogame off" to be used in wz debug mode
- rewrote event activation/deactivation

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1756 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 17:54:35 +00:00
Roman C e3c15e4a23 Aivolution AI update:
- implemented "autogame on" and "autogame off" commands in debug mode
- cleaned up whitespaces

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1748 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-29 14:27:11 +00:00
Roman C c2640060d6 - added Aivolution AI to the repository
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1733 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-28 18:26:35 +00:00
Roman C d948715572 - a fix (hopefully) for one of the mp asserts
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1714 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 13:02:17 +00:00
Roman C 2eebd4f424 - prevent AI scripts from building a truck for human players at startup
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1606 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-10 13:28:59 +00:00
Roman C 90008ff9a6 - fix a bug preventing skirmish AI from researching (only affects non-vtol research branch)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1590 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-06 13:46:24 +00:00
Roman C 846669c8c1 Skirmish/multiplayer AI update:
- alternative VTOL technology branch: on larger maps AI will sometimes use VTOLs for attacking  instead of land units
- AI will rebuild destroyed walls
- AI won't use all the trucks to build a single structure anymore
- faster structure upgrades
- more effective truck production when low on trucks
- faster cyborg production
- AI now builds cyborg mechanics
- AI is even faster on startup
- AI will use more cyborgs for for defending

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1588 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-05 16:01:34 +00:00
Roman C 9bd29a1511 -cyborg propulsion must be enabled on startup of multiplayer/smirmish games
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1584 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-04 16:43:15 +00:00
Roman C 0faf85229b Scripting Language:
-simple data types are lowercase on default
-casts using uppercase still allowed for compatibility with campaign scripts
-updated scripting manual accordingly

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1391 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-08 13:27:41 +00:00
Dennis Schridde 4261c7e0ae Move scriptlang.htm to where it can be found.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1370 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-05 17:36:59 +00:00
Giel van Schijndel 2465969014 * allow viewing in any browser directly from the svn-http url ( http://svn.gna.org/svn/warzone/trunk/data/multiplay/skirmish/scriptlang.htm )
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1340 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-02 21:49:03 +00:00
Roman C 8e0c0f397c Fixed naming inconsistency.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1322 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-01 18:51:48 +00:00
Roman C 3123e32370 Skirmish AI:
-AI chat messages are now visible to all allies, not only to the player messages are addressed to
-upon help request AI will notify if it doesn't have enough units to come to help instead of silently ignoring the request

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1319 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-01 16:25:59 +00:00
Roman C bfa9d23e01 Skirmish AI Update:
-a much faster unit production due to raised production effectiveness
-optimized construction of structure upgrades (smarter construction routines)
-AI trucks are capturing unoccupied oil resources more effectively
-slightly improved target selection when going to attack stuff
-rewrote routines responsible for helping allies that request help
-"I'm ok" command now works properly - notifies AI to stop helping you
-AI will now return to defend its own base when it is in trouble
-AI defends the base more effectively
-max number of droids allowed to build was raised
-won't stop building trucks when low on power anymore

FIXES:
-won't prefer humans when choosing who to attack anymore
-won't attack own buildings
-disabled cheat that was giving AI free units when starting with 'Advanced Base' option



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1301 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-30 15:14:32 +00:00
Roman C 83b2fdb540 -Rewrote scripting language manual and updated function listing
-Converted manual from .rtf to .htm

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1298 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-29 16:24:17 +00:00
Roman C 3336e8717a AI update:
-AI can now request help using chat messages when in trouble.
-AI can recognize other players (Humans or AIs) asking for help and react accordingly by sending units to help ally - indicate position on the map with a beacon (Alt+H) and send a chat message requesting help.

Example:
"Help"
Addresses all players sender communicates with.

Certain AIs can be addressed directly:
"Black, Red and SantaClaus help me!!!"

-"i'm fine" or similar forms understood by lexical parser will notify AIs to send its units back.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@967 4a71c877-e1ca-e34f-864e-861f7616d084
2007-01-07 20:11:50 +00:00
Roman C e2de834b13 -1.10 AI doesn't build flamer bunkers in the base anymore
-It is now possible to win in a team in 'Locked Alliances' mode, also in this mode a player doesn't lose until all of his team members were defeated
-Game now shows a text message when player has won/lost the game (just a temporary solution to bug #7317)
-Added extra heap debug, should be there at least until we fix bug #6530, as PTRVALID() doesn't seem to detect corrupted DROID pointers on win
-Increased number of iterations A* is allowed to do per frame, which will hopefully speed up pathfinding
-Fixed multiplayer menu slider bug (bug #6529)
-Fixed players not forwarding enemy units visibility to their allies in 'TEAMPLAY' and 'Locked Alliances' modes
-Further scripting engine improvements

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@780 4a71c877-e1ca-e34f-864e-861f7616d084
2006-10-08 08:06:46 +00:00
Roman C b3112a95a6 Fixed 1.10 AI bug in event "useLasSat" which caused an infinite loop when script was trying to use LasSat while it was still under construction (one of the bugs mentioned in bug #6760)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@653 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-27 14:58:26 +00:00
Roman C 3e6428377c Fixed bug #6540: 5 research facilities should always be available now
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@607 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-22 11:58:31 +00:00
Dennis Schridde 7fbe096407 Cleaning up the data/ dir:
- Move all maps to data/multiplay/maps
  They are still loaded from data/mp/addon.lev !!!
- Delete unused SkirmishAI



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@541 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 22:51:44 +00:00
Dennis Schridde 395f6e4bf0 Troman's revised AI (reacts faster and builds less crappy stuff)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@534 4a71c877-e1ca-e34f-864e-861f7616d084
2006-08-05 16:54:09 +00:00
No Author 5ba7ddac6b Create final repository structure.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@362 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-28 17:47:08 +00:00