Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 2 users and 138 guests online.

Online users

  • GambitUK
  • p3 d

Languages

  • English English
  • French French

Browse archives

« August 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
Home » news » blogs » matryx's blog

Developments over time

matryx's picture
Submitted by matryx on Sun, 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.

» matryx's blog | login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Baoghal's picture
Mod Designer

INI vs. Registry

Submitted by Baoghal on Tue, 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 =)

» login or register to post comments
matryx's picture
Mod Designer

Ideed, this is the path

Submitted by matryx on Tue, 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

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • Research By Percentage SUCKS
  • Bigger Map as in Bigger :)
  • Editing max systems in settings.txt
  • Space Empires V
  • some stuff I use without support for AI - Crew

All time:

  • 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

Last viewed:

  • Space Empires V working under linux yet?
  • scripts
  • No tech trading and Intel Options
  • Phased and normal shields
  • Multiplayer
(c) Strategy First, Inc. All rights reserved.