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

Connexion utilisateur

  • Créer un nouveau compte
  • Demander un nouveau mot de passe

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • agrégateur de nouvelles

Rechercher

Qui est en ligne

Il y a actuellement 4 utilisateurs et 128 invités en ligne.

Utilisateurs en ligne

  • Lord Aries Greymon
  • Faithful
  • Santiago
  • MKSheppard

Languages

  • English English
  • French French

Parcourir les archives

« October 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 31    
Accueil » news » forums » Space Empires V » Space Empires V General

External Scripting

Soumis par Cosmic Marvel le Mer, 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 ›
» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.
Image de Isopsyco
Mod Designer

Re: External Scripting

Soumis par Isopsyco le Jeu, 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.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Isopsyco
Mod Designer

Re: External Scripting

Soumis par Isopsyco le Ven, 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...

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Mod Designer

Re: External Scripting

Soumis par Fyron le Ven, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: External Scripting

Soumis par Darkshado le Mer, 2007-10-24 21:29

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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.

Now on STEAM

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

Contenu populaire

Aujourd'hui :

  • Known SE5 v1.74 Bugs
  • Research By Percentage SUCKS
  • Noob Questions
  • Space Empires V 1.74
  • Question about armor

Depuis toujours :

  • 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

Dernier accès :

  • User editable Tech Levels
  • Captain Kwok's balance mod
  • EWWW Go away you stupid treaty!
  • No Point Defence in Technology in Balance mod
  • Targeting priorities
(c) Strategy First, Inc. All rights reserved.