Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 6 users and 166 guests online.

Online users

  • Theace
  • Shyssiryxius
  • GambitUK
  • Dark_Lizerd
  • Roxton
  • Fyron

Languages

  • English English
  • French French

Browse archives

« September 2008  
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Home » news » forums » Space Empires V » Space Empires V General

External Scripting

Submitted by Cosmic Marvel on Wed, 2006-11-29 00:00. Space Empires V General

OK all you programming gurus Smiling out there - is it possible to create an external script that can be run from inside the game or from an external (small) DOS window?

What brought this to mind the VERY early stages of the game where you spend a *LOT* of time creating a few ships, exploring and hitting "End of Turn."

What I'd like to be able to do is put ships in a repeating construction queue, let the script select the next idle ship (if available) and then send it to the next unexplored sector - all automatically under scrip control.

Can it be done?

‹ Making new music to SE5? Fixing the AI Diplomancy bug in BM ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Isopsyco's picture
Mod Designer

Re: External Scripting

Submitted by Isopsyco on Thu, 2007-09-27 14:12.

I think so, I'm just getting into the scripting fun and within the empire specific Main script, you can set up some functions to do just that. One problem I see is whatever ship you design will have to generically tagged or the script will have to select whatever ship is in the queue (you can specify what type in the queue you desire) to assign it orders right off the assembly line.

There is an AI script #include that has ship orders, so this may already be part of some of the internal workings, just a little tweaking to get what you want.

Well, most likely some good coding on the selection process desired and type of orders you want will be needed.

» login or register to post comments
Isopsyco's picture
Mod Designer

Re: External Scripting

Submitted by Isopsyco on Fri, 2007-10-19 06:53.

Looked through the scripts some more and yes, all the above is already done by the AI, all you would have to do is set up the main empire script to execute your preset orders based on whatever ships are ready.

Each turn just have the main script execute a ship list fill with all the ship types just sitting around or still in the queue, check what type they are (design type and hull size etc..) and set orders according to the list of orders you want. I'm not sure yet if you can have a set of selectable orders (possibly from preferences) read in during each build/main script execute, it does have a file read capability. I just haven't used it yet...

» login or register to post comments
Mod Designer

Re: External Scripting

Submitted by Fyron on Fri, 2007-10-19 09:54.

To answer your question, no, there is no known way to write an external program/script to give ship orders and such. You can use the internal AI scripting though, to do such things. Just turning on a few ministers, like ship design and exploration, will get you started.


SpaceEmpires.net | Space Empires Wiki

» login or register to post comments

Re: External Scripting

Submitted by Darkshado on Wed, 2007-10-24 21:29.

Would probably be longer to do, but you could also look into SCAR...

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • Ship Capture Issues
  • Balance Mod v1.05 Available!
  • Babylon 5 Space Empires V mod?
  • Ringworld / Sphereworld
  • Supply and ordnance taking damage before platforms.

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • 1.17 Bugs and Issues
  • The rise of the zodiac
  • SEV will be sold in Canadian EB Games!!!!!!!!!!!!!!!!!!!!!!!!!
  • New Patch???? When????
  • Spot the error
(c) Strategy First, Inc. All rights reserved.