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

This Month's Specials

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

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old May 10th, 2008, 03:14 AM
Urendi Maleldil's Avatar

Urendi Maleldil Urendi Maleldil is offline
Major
 
Join Date: Oct 2000
Location: New York, NY
Posts: 1,066
Thanks: 1
Thanked 1 Time in 1 Post
Urendi Maleldil is on a distinguished road
Default Re: Attempting to improve the AI for Proportions 3

One thing that I have mentioned before however, is that the game reloads the AI script each turn. Therefore it would be possible to have an external program modify the AI files between turns, which could yield more "intelligent" AI.

Such a program could read and respond to conditions described by the game in the external log files, and help the AI react better to in-game actions.
__________________
Ken vs. The City

-Km :�
Reply With Quote
  #2  
Old May 11th, 2008, 03:41 PM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Attempting to improve the AI for Proportions 3

Could do, with logging turned on, though what kind of information can SE4 be made to log?
Reply With Quote
  #3  
Old May 11th, 2008, 04:00 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Attempting to improve the AI for Proportions 3

If you're going to be using an external program, getting info back out will be the tough part.

Perhaps an autohotkey program to use the existing SE4 UI... open all the dialogs and extract all the details into a nice text format.

Then it could run your AI.exe to create an orders file to read... and finally some hammering on the SE4 UI to plug the orders into the game before hitting end turn.


To heck with using the built-in AIs How about writing your AI in whatever language you like, and playing with all the options of the human interface?
Reply With Quote
  #4  
Old May 11th, 2008, 10:14 PM
Ironmanbc's Avatar

Ironmanbc Ironmanbc is offline
Sergeant
 
Join Date: Oct 2006
Location: Kingston, Ontario
Posts: 289
Thanks: 1
Thanked 3 Times in 3 Posts
Ironmanbc is on a distinguished road
Default Re: Attempting to improve the AI for Proportions 3

HA if we could do that then I would leave the Ministers on and let them do my turns while I sleep
Reply With Quote
  #5  
Old May 12th, 2008, 12:34 AM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Attempting to improve the AI for Proportions 3

I will make the UI interface if somebody wants to make the AI program.
Reply With Quote
  #6  
Old May 12th, 2008, 03:43 AM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Attempting to improve the AI for Proportions 3

Do you really think it's feasible to create an interface to read and use the SE4 UI?
Reply With Quote
  #7  
Old May 12th, 2008, 03:54 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Attempting to improve the AI for Proportions 3

Certainly.

The toughest part would be the text recognition, but the fonts are all known, and the text locations are in fixed positions too. (With some simple adjustments for screen resolution, but I already deal with that in the Windowed SE4 tool)

Giving orders should be easy too:
"Select ship X" --> Go to ships list, scroll down until the ship name is found, then click it.
"Move/warp/etc to a location" --> press hotkey, click galaxy map, click coordinates.
Reply With Quote
  #8  
Old May 12th, 2008, 04:20 PM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Attempting to improve the AI for Proportions 3

I guess I missed the threads on the windowed SE4 tool. What are you using to screen-scrape and manipulate the UI?
Reply With Quote
  #9  
Old May 12th, 2008, 10:06 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Attempting to improve the AI for Proportions 3

AutoHotKey is what the Windowed SE4 Tool uses.

http://imagemodserver.mine.nu/other/...indowedSE4.zip
Reply With Quote
  #10  
Old May 13th, 2008, 01:57 AM
Urendi Maleldil's Avatar

Urendi Maleldil Urendi Maleldil is offline
Major
 
Join Date: Oct 2000
Location: New York, NY
Posts: 1,066
Thanks: 1
Thanked 1 Time in 1 Post
Urendi Maleldil is on a distinguished road
Default Re: Attempting to improve the AI for Proportions 3

Sweet, SJ. Your Windowed SE4 Tool is great.
__________________
Ken vs. The City

-Km :�
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 11:45 AM.


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