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 2 utilisateurs et 125 invités en ligne.

Utilisateurs en ligne

  • Unole
  • AndreyKl

Languages

  • English English
  • French French

Parcourir les archives

« December 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 » Support & Feedback » Scenarios & Mods » SE:V MODs

Please help a scripting beginner

Soumis par Ixal le Ven, 2007-06-08 15:16 SE:V MODs

I tried to alter the Ship Order script a bit so that space yard ships automatically build fighters till their cargo is half full. (I know, that would make mure sense on carriers but I do not know if it causes problems when a carrier has no space yard). When I know that it works I will move those lines to the carrier ships and add a check for ship space yard components.

I compiled it with the default AI but in my current game this script doesn't seem to be working as my space yard ships are rahter inactive (not moving and not building). Now I don't know if my script is not working or if I have forgotten a step to activate them.

1. Do I have to compile it to the default AI or to a racial AI to match my race?
2. DO I have to restart the game?
3. Do I have to delete a original file somewhere to make my script work?

The important line of my script change is:
set design_id := Sys_Get_Latest_Vehicle_Design_Of_AI_Type(sys_long_Player_ID,
AI_DESIGN_TYPE_FIGHTER)
set orders_given := Sys_Add_Vehicle_Design_To_Construction_Queue(ship_id, design_id, 1)

‹ Shipset requests Unnamed's Upgraded Stock AI Mod version 1.03 Released ›
» 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.
Mod Designer

Re: Please help a scripting beginner

Soumis par unnamed le Lun, 2007-06-11 16:16

Hey Ixal,

Compile it to the default race if you want user created races to have this added ability. Make sure all the ministers are on. If you wanted it for one of the stock races (such as the xiati, etc) then you would need to compile those races also. Make sure that you move the file from the scripts folder to the appropriate folder under in the empires folder. THen I suggest using the cheat 'runtuns x' (x being the number of turns you want the computer to play) and see if it does anything. If not then you can use the debug feature and look at what the scripts are actually doing.

Offhand, there may be a difference between the ship_id that you are using and that same ship's queue_id. Not sure, just a possibility.

-unnamed

» 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 :

  • Is the Patch Process Dead, and Other Thoughts...
  • Research By Percentage SUCKS
  • Biggest game problem in the beginning
  • SEV 1.74 misc. Issues and Suggestions
  • Known SE5 v1.74 Bugs

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 :

  • Devnullmod 1.71.3.1
  • Is the Patch Process Dead, and Other Thoughts...
  • Questions About the Game
  • Formula Help
  • Bug when adding new Tech Groups...
(c) Strategy First, Inc. All rights reserved.