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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEV Modders Knowledge Base

Reply
 
Thread Tools Display Modes
  #1  
Old November 2nd, 2006, 01:47 AM

Baron Grazic Baron Grazic is offline
Captain
 
Join Date: Oct 2001
Location: Australia
Posts: 809
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Grazic is on a distinguished road
Default SEV AI Modding questions

Can anyone explain how to create the csf file?
I've made the changes to the AI text files I want to try, ran the "ScriptParser.exe", no matter what file I open and compile, I just get file with no extension.
Am I suppose to manually add the extension?
For that matter, which file am I suppose to open and compile?

Since I already feeling like a newbie, I'll ask one last question.
Can you change the AI so that it won't accept specific treaty element, such as "No research" in the polities file?

Thanks in Advance
Baron Grazic
Reply With Quote
  #2  
Old November 2nd, 2006, 11:25 PM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: SEV AI Modding questions

I need you to be more specific - which files did you edit and what files are you trying to compile?
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #3  
Old November 3rd, 2006, 01:40 AM

Baron Grazic Baron Grazic is offline
Captain
 
Join Date: Oct 2001
Location: Australia
Posts: 809
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Grazic is on a distinguished road
Default Re: SEV AI Modding questions

Thanks Kwok.
I'm trying to create a new AI, the RaniRani Tribe, using the EEE and default files as the template and modifying their settings.
I've created/modified the RaniRani_Setup_Script, RaniRani_Research, RaniRani_Main_Script, RaniRani_ColonyType, RaniRani_General, RaniRani_DesignNames and still working on the RaniRani_Speech file.
Still looking into the Politics file, and how to specify exactly what treaties, and treaty components can or can't be accepted.
Planning on looking at the Construction, StateChange, DesignCreation & Intelligence next.
Not sure what to do with the X files yet.
PS. If their is an AI design guide, please direct me. Thanks.
Baron Grazic
Reply With Quote
  #4  
Old November 3rd, 2006, 11:09 PM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: SEV AI Modding questions

There is no AI design guide at this time.

The only two files you'll be compiling will be the RaniRani_Main_Script.txt and the RaniRani_Setup_Script.txt files. Since you've made custom files for the research and colony type files, you'll need to edit the name of files called in the "Includes" section in the RaniRani_Main_Script.txt file in place of the Scipt_AI_Research.txt, Script_AI_ColonyType.txt files etc.

You can block out no research treaties in the AI_Script_GlobalSettings.txt file in the "AI_Set_Political_Treaty_Elements" function by commenting out the lines pertaining to no research treaties. This will stop the AI from adding them as a condition when they generate treaties. If you decide to rename this file, be sure to add it in the includes section of your main script as I mentioned above.

When you made your changes then you'll need to load the RaniRani_Main_Script.txt file in the script parser and hit "compile". This will generate the .csf file. You'll need to do the same for the RaniRani_Setup.txt file.

Alternatively, you can make a file with two lines:

RaniRani_Main_Script.txt
RaniRani_Setup_Script.txt

Give that file a name and in the Script parser hit "Make All Files" and load that file. It will automatically compile both files for you at once, rather than loading them and compiling each one separately.

Let me know if that helps at all.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #5  
Old November 6th, 2006, 01:21 AM

Baron Grazic Baron Grazic is offline
Captain
 
Join Date: Oct 2001
Location: Australia
Posts: 809
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Grazic is on a distinguished road
Default Re: SEV AI Modding questions

That information certainly helps Kwok, but something is still not looking correct.
Problem is when I compile the RaniRani_Main_Script.txt & RaniRani_Setup_Script.txt files, I just get 2 files called RaniRani_Main_Script & RaniRani_Setup_Script. No extensions at the end of the files.
I'm happy to just add the .csf, if that is all I need to do.
But just incase the problem is with this PC, I'll try compiling the files again on my home unit tonight.

Thanks for the information about the GlobalSettings.txt file, that was what I was looking for.

Baron Grazic
Reply With Quote
  #6  
Old November 7th, 2006, 10:46 PM

Baron Grazic Baron Grazic is offline
Captain
 
Join Date: Oct 2001
Location: Australia
Posts: 809
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Grazic is on a distinguished road
Default Re: SEV AI Modding questions

My compile problem was caused by running the Script Complier from my memory stick instead of from the default SE location.
Now to download the patch, modify, recompile and test.
Thanks for the help Kwok, and I'm sure I'll ask some more questions.
Baron Grazic
Reply With Quote
  #7  
Old May 9th, 2007, 10:56 AM
phalzyr's Avatar

phalzyr phalzyr is offline
Private
 
Join Date: Oct 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
phalzyr is on a distinguished road
Default Re: SEV AI Modding questions

Baron: Do you see file extensions for csf files in the default empire directories?

IF they dont have extensions: Windows can disable showing known extensions thus you won't see them(that is the default setting I believe). To enable this (one thing I always do after a fresh Os install) go into windows explorer, go into the tools menu (might vary depending on OS version) and select folder options(you can go to control panel and select it also, Go to the view tab, uncheck the box for hide extensions for known file types.
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 02:59 PM.


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