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

Utilisateurs en ligne

  • benc
  • mudshark
  • RBcrusher

Languages

  • English English
  • French French

Parcourir les archives

« Juillet 2008  
Lu Ma Me Je Ve Sa Di
  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

Modding question: longlists and stringlists

Image de largedarryl
Soumis par largedarryl le Lun, 2007-05-21 12:19 SE:V MODs

Well I was looking at the _main_ai files and the percentage of colony types. Adds values to 2 global variables (lst_Colony_Type_Name and lst_Colony_Type_Pct). I am wondering about this section because the script files never clear these global variables. Now my question about this is; do the global variables get reset or cleared at the beginning of the ai's turn or, as I suspect, does the ai's turn continually add another set of values to a continually growing list.

Even going over this area of code, it seems extremely important that the percentages listed here need to be changed to make the ai better. I don't know about anyone else, but the I never start any empires with that many mining colonies.

‹ Preveiw of the BSG MOD! Balance mod, Sats not working around warp points.? ›
» 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 Captain Kwok
Mod Designer

Re: Modding question: longlists and stringlists

Soumis par Captain Kwok le Lun, 2007-05-21 14:08

Those lists are created and filled each time the script executes, which is once per turn.

-----

Space Empires Depot | SE:V Balance Mod

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

Re: Modding question: longlists and stringlists

Soumis par largedarryl le Mar, 2007-05-22 09:47

Thanks for the info. I just had a sneaking suspicion that since there are several variables that are longlists and stringlists, but they are defined without any values. Then all the code does is a .add(x) function. Now this just adds a new value to the end of the list. I would think that the .clear() function would be used before adding to the end of a list. I just think that it could be confusing.

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

  • I am so impressed!
  • Stuipd Question
  • Neutral pack 1.10 released, now adds three neutral races.
  • Space Empires V 1.74
  • Space Dock suggestion

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 :

  • Does "Analyze" work?
  • Neutral pack 1.10 released, now adds three neutral races.
  • Claoking during battle!?!?
  • wormhole beam ??? and whats the point...
  • Supply Scripts
(c) Strategy First, Inc. All rights reserved.