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

Utilisateurs en ligne

  • Shrike
  • Randallw
  • marhawkman
  • Astorax

Languages

  • English English
  • French French

Parcourir les archives

« July 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

Script function problem

Image de Isopsyco
Soumis par Isopsyco le Jeu, 2007-12-20 21:39 SE:V MODs

I using the function Sys_Get_List_Of_Space_Objects_Of_Type with space object type ship and the list isn't filling.

The code below is my function, you can see next to it the same function call but calling for planets instead. The planet list fills and gives me a value.

Anyone see a problem with my script or is there a bug in the function, if so it also effects the intel and external events script files (only other two places where I found those functions used with the ship object).

//------------------------------------------------------------------------ // BSG Player Ship Count Used Empire Main at very begining storage location: player,7,1 //------------------------------------------------------------------------ function Player_ship_Count_BSG returns boolean params vars ship_list: longlist planet_list: longlist current_player: long planet_count: long ship_count: long

begin
set current_player := sys_long_Player_ID
call Sys_Get_List_Of_Space_Objects_Of_Type(SPACE_OBJECT_TYPE_SHIP,ship_list,TRUE,FALSE,current_player)
call Sys_Get_List_Of_Space_Objects_Of_Type(4,planet_list,TRUE,TRUE,current_player)
set ship_count := ship_list.count()
set planet_count := planet_list.count()
call Sys_Set_AI_Storage_Long(current_player,7,1,999)
call Sys_Set_AI_Storage_Long(1,9,1,ship_count)
call Sys_Set_AI_Storage_Long(1,9,2,planet_count)
end

‹ Small Crystalline Fighter Looking for way to determine if two players have specific treaty element ›
» 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: Script function problem

Soumis par Isopsyco le Ven, 2007-12-21 15:40

Aaron answered my email and found the most likely culprit. Evidently you shouldn't swap script files in a save game and expect fidelity.

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

  • Tweaking the planet art without going all the way to FQM
  • Governmet mod/patch/addon
  • Space Empires V 1.74
  • Research By Percentage SUCKS
  • Shipsets, Empires, and dead AIs

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 :

  • Question with script value
  • Blank Screen after selecting play.
  • Balance Mod- My pilots fail threat assessment...
  • Capturing Enemy Technology
  • System Ships and warping
(c) Strategy First, Inc. All rights reserved.