.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

ATF: Armored Task Force- Save $8.00
War Plan Pacific- Save $8.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old August 25th, 2007, 02:44 PM

BBegemott BBegemott is offline
Corporal
 
Join Date: Dec 2002
Location: Lithuania
Posts: 162
Thanks: 0
Thanked 0 Times in 0 Posts
BBegemott is on a distinguished road
Default [AI coding] - some basic questions

Hello,

I got interested in modifying AI scripts. Any guide somewhere to look at? Maybe a tutorial? Can't seem to find anything.

Few questions:
1. How do I debug AI scripts?
2. Can I write some values to the file?
3. How do I set homeworld Space Yard on emergency build at the first turn?
Reply With Quote
  #2  
Old August 25th, 2007, 03:24 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: [AI coding] - some basic questions

There is a bit of info on the Wiki, but it isn't too in-depth at this point. Adding more things as you figure them out would be very helpful, though.

In the Docs folder, there is a function reference file that lists all of the functions and language parameters. Its not a tutorial of any sort, but useful nonetheless.

To debug, I think you can use the DebugSettings.txt file to spit out some script debug logs:

Generate Game Debug Log := FALSE
Generate Engine Debug Log := FALSE
...
Debug Section Script Evaluation Detailed := FALSE
Debug Section Script Evaluation Simple := FALSE
Debug Section Script Evaluation Debug Print Only := FALSE
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #3  
Old August 25th, 2007, 04:43 PM

BBegemott BBegemott is offline
Corporal
 
Join Date: Dec 2002
Location: Lithuania
Posts: 162
Thanks: 0
Thanked 0 Times in 0 Posts
BBegemott is on a distinguished road
Default Re: [AI coding] - some basic questions

Thanks Fyron, I will look at these.
Meanwhile I was searching through the files for something related to emergency building, but could find nothing. The word 'emergency' is only in the files 'Settings.txt', HelpText.txt, MainStrings.txt and Components.txt. Does not seem that there is a method to tell AI to use emergency build.
Reply With Quote
  #4  
Old August 25th, 2007, 04:46 PM

aegisx aegisx is offline
Second Lieutenant
 
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
aegisx is on a distinguished road
Default Re: [AI coding] - some basic questions

Just a note, you have to restart the program to get the settings.txt to be read.
Reply With Quote
  #5  
Old September 15th, 2007, 09:17 AM

BBegemott BBegemott is offline
Corporal
 
Join Date: Dec 2002
Location: Lithuania
Posts: 162
Thanks: 0
Thanked 0 Times in 0 Posts
BBegemott is on a distinguished road
Default Re: [AI coding] - some basic questions

How do I comment multiple lines in AI script files?
Is there smth like in C++ /* ... code ... */ ?
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:56 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.