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 144 invités en ligne.

Utilisateurs en ligne

  • Randallw
  • Faithful
  • Santiago

Languages

  • English English
  • French French

Parcourir les 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          
Accueil » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Lists...

Soumis par Gideon le Lun, 2007-11-26 19:11 SE:V MODs

I'm trying to figure out how to make a two-dimentional array (aka list, longlist in this case).

I'll keep slugging away, but if anyone has a solution for use in the AI scripts, I would appreciate it.

‹ New Crystalline components. Invalic Index Parsing error? ›
» 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 Thy Reaper
Mod Designer

Re: Lists...

Soumis par Thy Reaper le Lun, 2007-11-26 21:44

I had tried to make that very thing when I tried some AI programming. The non-existence of multi-dimensional arrays is what made me stop. It's just too hard to do some things without them.

I suggest you ask MM if he could implement them. Maybe if enough of us ask, he'll add them in...

-----
A project a day keeps the deadline away.

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

Re: Lists...

Soumis par Captain Kwok le Lun, 2007-11-26 23:09

You'll just have to have use two lists for it.


Space Empires Depot | SE:V Balance Mod

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

Re: Lists...

Soumis par pkoko le Lun, 2007-11-26 23:35

can't you use structs??

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

Re: Lists...

Soumis par Gideon le Mar, 2007-11-27 00:40

Actually, what I would REALLY like is to make a list that looks like the following:

  lst_Enemy_Empire_Relations(relation_player_1, relation_player_2, relation_player_3, etc...)

I can do it another way, but multi-dimentional arrays would be nice. With that, I could do the following:

  set treaty_status := lst_Enemy_Empire_Relations.get(first_player_id).get(second_player_id)

Such a list would be quick and easy to propigate and refference.

Getting around the lack of a 2D array is not so bad, but it becomes clunky code when you get past that point.

"Only by being constantly at war with evil in all things, including yourself, can you truely know peace."
Download my mod here: GidMod

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

Re: Lists...

Soumis par Draco18s le Mar, 2007-11-27 00:44

You should see the scripts people did in Second Life to get around the lack of multi-dimentional arrays AND (simultaneously) the 16k script memory limit (that's 16kb of compiled script code AND variable allocation space).

It's rediculously complex and involves multiple scripts (need more space? Add in another copy of the storage script!)

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

  • Hows the current AI?
  • Research By Percentage SUCKS
  • Space Empires V 1.74
  • Cross Sector Reinforcements
  • Space Empires V

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 :

  • The Starfury story?
  • Upgrading Weapon Platforms, Troops, Fighters, Sattelites, ...
  • Shields not existent on design that has four level 8 shield, help
  • AmonKrie-copy.jpg
  • Remote Mining
(c) Strategy First, Inc. All rights reserved.