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

Utilisateurs en ligne

  • BlueTemplar
  • Unole
  • MondoMage
  • Lastdreamer

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 » blogs » Le blogue de matryx

Developments over time

Image de matryx
Soumis par matryx le Dim, 2006-10-15 12:29

Well, as I said before it has been quite a few years since I did any coding in Delphi (my more recent works have been in Java while at University, and since graduation have been entirely in PHP), but during this time there have been some useful tools and classes released.
It could be my memory failing me, but I don't recall there being a TIniFile class (or associated methods) around back when I was learning Delphi the first time around, but currently it's a godsend.

Over the last few days I've been pondering the best way to store configuration data. Should I go and try to learn how to interface with the registry, or stick with the tried and tested ini-file.... but regardless of each, how would I manage the large amount of data associated with the concepts I want to run, like multiple installations/variations of each application with the various savegames / usernames and passwords / etc etc.

With the TIniFile class there'll be no need to worry about the headache of file-seeking or data searching. All I need to do is come up with a sensible naming convention to ensure that sections don't overlap..... e.g. [SE4Installation01] -> [SE4Installlation20]
That should do it Smiling I can't imagine *anyone* would have more than 20 installations of Space Empires 4..... would they?

I'll release the first version of my SEMultipass project as soon as it does more than just creating a blank ini-file.... something like when you can actually launch SE4 from it, even if it doesn't do much more beyond that.

» Le blogue de matryx | 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 Baoghal
Mod Designer

INI vs. Registry

Soumis par Baoghal le Mar, 2006-10-17 06:17

matryx wrote:
Over the last few days I've been pondering the best way to store configuration data. Should I go and try to learn how to interface with the registry, or stick with the tried and tested ini-file
I'd say you can't really go wrong with an ini file. The only drawback is they get deleted by the user. Just make a note for the user to save the ini before they delete if they want to save the info. Obviously this is the major advantage to using the registry. I like mucking about with ini's or at least looking at them. The registry can be more cryptic at times lol. Just my two coppers =)

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

Ideed, this is the path

Soumis par matryx le Mar, 2006-10-17 06:44

Ideed, this is the path which I chose to impliment. Mainly because of the reasons you listed - I too enjoy poking in ini-files, and it should be obvious that removing SEMultipass.ini might be a bad idea Eye-wink
______________________________________________________
I think I just had an evilgasm.....
The (now official?) Space Empires 4 Mod Launcher V2.26

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

  • What does Environmental Resistance do?
  • OK Ship Mod
  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Balance Mod Intel
  • Research By Percentage SUCKS

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 :

  • My fighters are draining too much supply from my carriers! Aren't they?
  • Star Trek Mod?
  • Unanswered Political Messages, etc
  • Balance Mod v1.12 Available!
  • Space Empires VI
(c) Strategy First, Inc. All rights reserved.