IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> An amazing tutorial of EAW's AI, by Drieick.
Banshee
post Feb 19 2008, 05:35 AM
Post #1


One Vision, One Purpose!
Group Icon

Group: Undead
Posts: 6,832
Joined: 16-June 03
From: Rio De Janeiro, RJ, Brazil.
Member No.: 4
Projects: PPM, PPM: Final Dawn, OS SHP Builder, OS Palette Editor, OS W3D Viewer, VXLSE III, etc...

Retired Network Leader



Drieick has recently posted an impressive tutorial explaining how to play with the AI XML files that triggers .lua scripts from Empire at War. The tutorials explains the variables, categories, expressions, functions, and much more... and it features some examples in the very end. Here's a snippet:


QUOTE
Variables and how they're interpreted
Here are the variables, which obivously start with the word "Variable_":

Variable_Target
Variable_Enemy
Variable_Self

What they mean depends on how and where they're used; for example, if it's Galactic mode, Target could mean a planet and Variable_Self could mean the player attributes. However, in tactical mode, Variable_Target could mean a unit or a location on the map. Currently, on Target appears in the Lua source (defined in PGBaseDefitions.lua)
I'm not sure how exactly it determines locations, because there's no obvious grid, so I'mjust going to assume it's square pixel by square pixel, which is inefficient (Grid would be faster... or a bigger squareXsquare scaled grid).



And this is just the beggining. You can read the whole tutorial HERE and discuss it. Thanks a lot, Drieick. If anyone is interested on providing tutorials, post it on our modding forums or wait the new site goes live (which we recommend, since it will include a nice articles/tutorials system).

This post has been edited by Duke: Feb 27 2008, 07:10 PM


--------------------
Project Perfect Mod

Tiberian Sun, Red Alert 2, Generals and C&C3: Mods, Mods Support, Public Researchs, Map Archives, Tutorials, Tools, A Friendly Community and much more. Check it out now!

Add Poll
 
+Quote Post
Drieick
post Feb 25 2008, 07:08 AM
Post #2



Group Icon

Group: Posting Members
Posts: 12
Joined: 16-February 08
From: Terra
Member No.: 14,418
Otaku



I apologize for being politically correct (correct term?) and all, but that thread is mainly concentrated on the XML source and not the Lua source - the Lua just carries out the orders, the XML determines what orders to give. Just thought I'd tell you that, sir Banshee. wink_new.gif (The XML source can be found at Data/XML/AI)

Sorry for a late response - been busy with story line.

This post has been edited by Drieick: Feb 25 2008, 07:09 AM
Add Poll
 
+Quote Post
Banshee
post Feb 25 2008, 02:20 PM
Post #3


One Vision, One Purpose!
Group Icon

Group: Undead
Posts: 6,832
Joined: 16-June 03
From: Rio De Janeiro, RJ, Brazil.
Member No.: 4
Projects: PPM, PPM: Final Dawn, OS SHP Builder, OS Palette Editor, OS W3D Viewer, VXLSE III, etc...

Retired Network Leader



Thanks smile.gif. I've patched the news.


--------------------
Project Perfect Mod

Tiberian Sun, Red Alert 2, Generals and C&C3: Mods, Mods Support, Public Researchs, Map Archives, Tutorials, Tools, A Friendly Community and much more. Check it out now!

Add Poll
 
+Quote Post
Guest_SCC_*
post Feb 28 2008, 09:20 AM
Post #4





Guests






Variable_Target locations are selected in ground maps from the AI zones defining collections of contiguous of map cells (either procedurally calculated or hand painted by the editor). In space maps its a simple coarse grid.

-SCC
Add Poll
 
+Quote Post
Kelathin
post Feb 28 2008, 01:56 PM
Post #5



Group Icon

Group: Petrolution Staff
Posts: 45
Joined: 23-June 07
Member No.: 11,338
Division: Petrolution
Job: Staff



If this SCC is the one I'm thinking of, Scc is Steve Copeland, a Petroglyph developer
Add Poll
 
+Quote Post
Drieick
post May 6 2008, 05:33 AM
Post #6



Group Icon

Group: Posting Members
Posts: 12
Joined: 16-February 08
From: Terra
Member No.: 14,418
Otaku



QUOTE (SCC @ Feb 27 2008, 11:20 PM) *
Variable_Target locations are selected in ground maps from the AI zones defining collections of contiguous of map cells (either procedurally calculated or hand painted by the editor). In space maps its a simple coarse grid.

-SCC

Fix'd. Thank you very much, sir.
Add Poll
 
+Quote Post

Fast ReplyReply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th November 2008 - 11:36 AM