HawaiiFive-O HawaiiFive-O

GalCiv Writer

GalCiv Writer

A beta version of my Event Writer program is now available for any hardy souls who'd like to give it a try.

You can find a screenshot here:
http://www.ctuit.com/bill/galciveventwriter.jpg

You can find the instructions file here:
http://www.ctuit.com/bill/EventsInstructions.txt

This program has *not* been put through vigorous stress testing, so I do not recommend you install it without knowing what you are getting into. It will make several backups of the .event files in case something goes awry, but if you are not comfortable finding/renaming files on your hard drive, I highly recommend you stay away for the time being. In addition, as mentioned, this program is in a fairly untested state, so if this makes you nervous, stay away as well. I can confirm that GalCiv will load my modified event files, and fire off the events, so all seems well, but I only tested it on 4 machines that might not be representative of the general population (Win98, Win98SE, Win2000, WinXP, that's the extend of my testing facilities at work ;p ) Proceed at your own risk.

If you are interested in beta'ing this program, please contact me at:
[email protected]
and I will e-mail you a self extracting zip program with the install package. It is 1.7 megs, so if you are on dialup you'll have to be patient.

Future updates will be available via http download.

I moved the Events onto a separate form at the last minute, in anticipation of *maybe* adding more editing screens for techs, UP issues, SB modules and the like (no promises!), so in order to get to the events you have to select Edit>>Events.

The install package will add a program group, the default installation location is C:\GalCivWriter.

Please post here with any questions, comments, and feature requests.

Thanks!
27,028 views 272 replies | Pinned
Reply #176 Top
I have posted version 1.2.3 on the website:
http://www.ctuit.com/bill/galciv.htm

This version releases to the public the last two editing screens, Improvements and English.str, along with a few more enhancements. I finished the list I detailed one post up.

Sorry for the delay, real life intruded pretty heavily into my GalCiv time the past two weeks. Thanks for your patience and I hope you like this latest update!

~SDC~
Reply #179 Top
Just thought I'd drop by from Apolyton and offer some advice obout modswapping...

Well, as there are a lot of different little "mods" in the library I built it that way One advantage is that you can do both "total conversion" and "single event/ship/etc" with this approach.It will have to take into account 'priority'. The first mod in the installed mod list should take precedence over the following (that part is not in the UI yet).
End of quote


It would seem to make more sense to do it the other way around - you might well end up with mods which depended on other mods, and I would think you'd add the main mod first, and then the other alterations to it after that, so you'd want items lower on the list to take priority over items higher on it.

Another problem will be consistency: how to revert back to the original state ?
End of quote


I'd recommend keeping a complete backup of all default data files in some other directory which is 'sacrosanct', however, as you say...

What if the user update the game via SDC with mods installed ?
End of quote


...updates screw up this method. CTP2 will never be patched again, so I didn't have this problem.

Any other ideas ?
End of quote


Well, just a slight variation on the second one - don't bother to remember what original game files were altered, just backup and restore them all - this makes things slightly slower, but somewhat safer.

A word on the way the program works:Each Mod has it's own directory under %Galciv%/Mods. There should be a "mod.xml" file at the root of %Galciv%/Mods/%ModName% containing mod info(name, version, author, description, compatibility, library, category, email, site). I plan to add multi-language support.
End of quote


You might also want to consider compatibility with other mods. In CTP2, we have several minor mods which alter major mods, and if you try and use the former without the latter strange things will happen.

Reply #180 Top
don't bother to remember what original game files were altered, just backup and restore them all - this makes things slightly slower, but somewhat safer.
End of quote


I didn't really express this very well - the way I did it in ModManager was as follows:

Each mod specified a bunch of file copies which were pperformed on application (it's better to just allocate each mod a copy of the data file directory structure, as you're doing, but that wasn't possible for backwards-compatibility reasons).

Whenever a copy is performed it tries to backup the file being copied into, there's a standard way to save such backups. If the backup already exists, it just leaves it, otherwise it creates it.

When unapplying a mod, all the backups corresponding to files it applied are restored, but the backup files are not deleted.

I also provided a seperate option to go through and find all the backups that existed, and restore them, sothat should revert the data files to their original state regardless of what disastrous events had occured in the mean time (such as crashes, power cuts, etc.).

I don't know how appropriate this method is to you, but it seemed the safest one I could come up with. If you rely on the fact that whenever the program is started up, all the files are in their default state, then you run the risk of problems in the event of a crash.
Reply #181 Top
All that makes sense. The big issue I see is who defines what files comprise a mod- the modder or the moddee?

If it is the modder, then the program would only work for mods where the maker invested the time to build this list. The program would support creating this list to make it easy as possible, but they would still have to a) take the time, and b) know the modswapper exists.

If it is the moddee, then it behooves the user to open the program, point it at the mod files (in a separate directory) and tell the program "This is Thrull's Red Drengin Ships mod, remember it!". I'm not convinced people will take the time. It'll be like a CD playing piece of software I had on my computer in the early 90s- I took the time to type in the artist/album/tracks the first couple of times and then just gave it up as too tedious.

So, who controls the list making in CTP2? How did you tackle this issue?

~SDC~
Reply #182 Top
Well, actually noone uses my ModManager for their mods yet - primarily because no mods have been released since I wrote it - so they all still use ModSwapper (the older utility). This came about because one prestigious modder (WesW, who wrote the MedMod) asked someone to write a program to swap in the files for the MedMod. Everyone saw the sense of this, and it became pretty much mandatory to take the time to make the file ModSwapper uses (which required only writing 3 lines - so it was no hardship) if you wanted your mod to be played. Because the CTP2 community is so small (basically confined to Apolyton) this all more or less happened by mutual consent and common sense. Whether people will now change to using my utility is an open question, it will likely happen only if they require the new features I have provided.

Certainly the burden should lie on the modder as far as possible, since they are usually the kind of person who is prepared to take the time to do this kind of thing (it's hardly any work compared to the making of the mod) and they want to motivate people to play as easily as possible. Also, they are the one who controls the mod versioning, and if you want mods to talk about each other (for compatibility reasons, etc) then they need unique names, so you don't want players making spelling errors, etc.

As I said, if you allocate one directory to each mod then you don't need to list the files, it is implicit that all the files in that directory will be used. Of course, you can make it more complex by allowing mods to specify partial mods which only use some of the files, but I doubt that would be very useful.

It's certainly worth giving due thought to this kind of thing now, while you have the chance, because for CTP2 we have problems as a result of the ModSwapper method, the main one being that the main data directory contains hundreds of files (Mine has 419 - and it could be more if I'd installed all the mods I could) from all the different mods, and it's difficult to find what you're looking for.

In summary, I would predict that if you make a practical utility and release it on this forum, preferably soon, then modmakers will use it, because players will use it, because it will save them a lot of headache.

Another thing that has come to mind is that you should allow it to be run entirely from the command line, and that way other utilities (like GalCiv Writer) can swap mods easily, and users can make shortcuts that start up GalCiv with given mods at the press of a button (Indeed, you might try using some COM stuff to make such shortcuts yourself).
[Message Edited]
[Message Edited]
Reply #183 Top
I want to get into writing some events but i need a program that'll turn .jpg, .jpeg, and .bmp into .pcx and vice versa... anyone know a good freeware program that'll do this?

~SDC~
Reply #184 Top
@Parable: Rustyblade dug up a good freeware program about 2 months ago. Here's the link:
http://www.galciv.com/forum.asp?BID=GM&id=41556#42473
Give that a swing, I hope it does what you need it to do.

@JByTheWay: As always, all very good points. The key would be adoption by the modders, of course. Some of the dynamics of the GalCiv modding community vs CTP2 are a little different- smaller, more numerous mods, less centralized, and still growing. The central thrust of your arguments hold true, however.

What happened to LittleBoy? Are you still working on your mod-swapper? Hello?



~SDC~
Reply #185 Top
Thanks for the link... it worked perfectly. I had downloaded another program to convert jpeg to pcx but every time i opened the converted picture it came out looking like rainbow colored lines smeared across a canvas... the Radtools thing worked great. Thanks for the help... hopefully you'll see some events from me sometime soon.

~SDC~
Reply #188 Top
I was reading about the .pcx control problem and I thought I'd mention a great free library I always use when I need to work with images : DevIL http://openil.sourceforge.net/

Works with VB, Delpi, C++ etc and it can read/write most existing 2d file formats. It's really a time saver especialy considering I used to write my own code to read tga, pcx or what not.
[Message Edited]
Reply #189 Top
Oy! I need that link a couple of weeks ago. That looks great, I wonder why that site didn't pop on the search engines?

~SDC~
Reply #190 Top
Hard to say, when I coded in VB I didnt find it either. I only found out about it via GameDev.net or maybe it was Flipcode a couple of years later.
Reply #191 Top
A little bump to keep this thread shown in SDC.

Development is not done, I'm working on 1.2.4 which will be compatible with all the new changes in the Expansion pack.
Reply #193 Top
I quit trying modding when I saw that I'd have problems with the Arceans and the special techs. I feel the tech tree is not modable enough to my taste. If only I could specify in a mod that arceans will research techs in this order, altarians in that order, etc., so they'd each receive special bonuses and be even more unique when the Terrans meet them (particularly if I could confine them to low speed/poor range so that contact between the races be less likely to happen).
Reply #194 Top
I'm working on my own game project right now but mostly I'm waiting for the expansion, I'm afraid some format might change.
Reply #195 Top
I'll help you beta it as well. And I'm a vb programmer too. I sent you an email. But does anyone know what makes an event/tech/etc "legal" so far as getting your score into the metaverse?

B
Reply #196 Top
Well, I practically rebuild the whole .imp, .tech, .ship, .event files. LOL
But seems to me the only problem I had was making planet quality somewhere 90's.
You will get score of 0 if you have too high PQ.
Other than that, it seems working fine too me.

P.S. Oh I'm using GC writer 1.2.3
Reply #198 Top
But does anyone know what makes an event/tech/etc "legal" so far as getting your score into the metaverse?
End of quote


The only known gotcha is a PQ mod above +40 (presumably outside the base GC files, since the Life Crystal Artifact event has a potential +50 PQ evil choice).

Presumably other high mods will cause anomolous scores, but the thresholds for the other attributes are still unknown.

~SDC~
Reply #199 Top
Hi hawaiiFive-0, are you posting any new mods? Any links?
End of quote


No, not at this time. I'm taking a sabbatical from GalCiv. :)

The only known gotcha is a PQ mod above +40 (presumably outside the base GC files, since the Life Crystal Artifact event has a potential +50 PQ evil choice).
End of quote


Hey, Arturus, I read where Cari mentioned the 40% PQ ceiling. My theory is she was talking about your Civ-Wide PQ ability, not a specific planet's PQ bonus. What do you think?


~SDC~
Reply #200 Top
No, not at this time. I'm taking a sabbatical from GalCiv.
End of quote


Yaeh, right... until the expansion pack comes out... :)

Bill

~SDC~