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

Utilisateurs en ligne

  • Cicero
  • Shrike

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

Things i learned about scripts and testing them...

Soumis par Fallen Haven le Jeu, 2007-01-11 12:11 SE:V MODs

For quite a while, i was frustrated just how many script bugs i was running into and were taking forever to get fixed. I was trying over and over to find it and fix it, but would always bet there the next time i ran the game. But i found the reason. It was because i was testing with only one race file instead of them all. If i fixed a bug, but it was still in some other race files, the bug could still occur. That's why i lost many hours in bug hunting for silly bugs that should have taken a few minutes to fix. Trying to save time by not compiling the whole set of race files just made me waste a lot of time needlessly...

How i found this? One ship design i had rename still showed up in my list. Since it was nowhere in my script files, i figured it was because some of the race scripts had not been updated. This also mean that you can't compile the race with different core files (like research or settings). If you have done it, don't do it again, you will save yourself a lot of pain...

‹ About components Shield Mounts? ›
» 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

AI Tips

Soumis par Captain Kwok le Jeu, 2007-01-11 13:16

Are you using the makefile option? If not, choose that and select "All Races Makefile" and it will automatically compile all the main/setup files for each race.

Also if you're not doing it already, for most direct testing you should just compile the default main script. As the player race setting all ministers on will use this script and you can observe first hand what it's doing.

Lastly, using debugsettings.txt can be very helpful for diagnosing script errors. You can set it to print out each race's script execution during a turn line by line. Note that debugsettings.txt will not work in the mod folder, but only the default data folder. The dumps are saved in the backup folder.

-----

Space Empires Depot | SE:V Balance Mod

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

I know all that.

Soumis par Fallen Haven le Jeu, 2007-01-11 15:59

Captain Kwok wrote:
Are you using the makefile option? If not, choose that and select "All Races Makefile" and it will automatically compile all the main/setup files for each race.

I use that already. What take me some time is copy all the compiled scripts in their right folders. I really should make a batchfile for that...

Quote:
Also if you're not doing it already, for most direct testing you should just compile the default main script. As the player race setting all ministers on will use this script and you can observe first hand what it's doing.

I was, but i made so many extensive changes to my scripts that just using the default cause problems. 95% will work, but a few bugs will occur. You can't imagine how much time i wasted trying to fix bugs that were already fixed, but were occuring because of conflicts between default and the rest of the scripts.

Quote:
Lastly, using debugsettings.txt can be very helpful for diagnosing script errors. You can set it to print out each race's script execution during a turn line by line. Note that debugsettings.txt will not work in the mod folder, but only the default data folder. The dumps are saved in the backup folder.

90% of the bugs i run into will show up while attempting to compile or starting a game. The rest are usually minor typos. A few can be really obscure though.

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

  • SE5_20060929-07.jpg
  • I see planets
  • How Hard is it to set up a PBEM Game?
  • AI Carrier Crazy
  • Access Violation / Ground Combat Change View
(c) Strategy First, Inc. All rights reserved.