Galactic Civilization

Downloads
Metaverse
NewsGroup
Community
Purchase
Galactic Forum
Strategies
Mods
Empires
Do you still think GalCiv 1 is fun even with GalCiv II out?
758 votes
1- Yes
2- No


GalCiv Writer
  Search:   
Go to Bottom         Go to Bottom
by Diplomat HawaiiFive-O - 4/14/2003 3:43:15 AM

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 Link

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

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 ) Proceed at your own risk.

If you are interested in beta'ing this program, please contact me at:
bsheely@prodigy.net Email
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!

                    
#1  by Citizen 4D - 4/14/2003 6:55:38 AM

...This isn't a request, comment or question. It's called 'encouragement' cause I think your onto a good idea.

Keep working on this project of yours, It looks like it's got brilliant potential. Reading the FAQ's on how-to MOD different things for GalCiv I was thinking, It's not too hard, however with utils like this, writing small and numerous MOD's will be quick and efficient work.

I hope it's possible to add things like UP Issues and Techs in the future, this will be an invaluable timesaving tool...



        Posted via Stardock Central
#2  by Diplomat HawaiiFive-O - 4/14/2003 11:15:48 AM

RustyBlade: Both of my attempts to email you the install package were returned undeliverable. Do you have another email I should try?

                    
#3  by Diplomat HawaiiFive-O - 4/14/2003 11:56:04 AM

4D: Thanks for the kind words. The biggest roadblock to continued development is understanding what all the flags in the files mean and do. I've posted a request for information on the next file I'm going take a swing at, UPIssues.

                    
#4  by Diplomat Dearmad - 4/14/2003 2:01:09 PM

Bloody excellent, right on! THANKS for this effort. Looks good.



                     Posted via Stardock Central
#5  by Citizen Malleus - 4/14/2003 2:42:29 PM

I am not sure if my emails are getting out anymore. I just wanted to confirm that you were going to send me a beta of your event builder.

M

         
#6  by Diplomat HawaiiFive-O - 4/14/2003 2:55:09 PM

Malleus: I sent you a copy at 10:16 AM this morning Pacific time. Have you received it yet? I can resend it if necessary.

                    
#7  by Veteran RustyBlade - 4/14/2003 4:16:57 PM

Yep I recieved it and it unzipped just fine. Will be testing it today if I get a chance.



         Posted via Stardock Central
#8  by Senator CariElf - 4/14/2003 5:11:45 PM

Hey, that looks really nice.

        
#9  by Citizen Malleus - 4/14/2003 10:14:39 PM

I got it and am working with it now. My email is very wonky lately.

M

         
#10  by Citizen Jeff Stuart - 4/15/2003 6:14:42 AM

Ok, a mod FAQ has been mentioned. Anyone got a URL? Or is it on the CD docs?



        Posted via Stardock Central
#11  by Citizen Bill Ko - 4/15/2003 5:26:56 PM

HawaiiFive-0:

How did you manage - or did you even manage - to accomodate the original event files? They are highly... well... irregular. Some of them have tabs in one event where spaces are in others, they don't have the same number of spaces, etc. I could see reading the file (it would be clumsy), but writing the data back out to the file would be next to impossible. It would work fine with files that were exclusively edited by the editing app, since it would be in a format consistent with itself, but... ugh! Maybe you just do a conversion? (I'm asking because I'm trying to exercise my formidable, but exceedingly green, programming talents to work on an app similar to yours, mostly just for my amusement and self-education.)

Thanks!

Bill



                         Posted via Stardock Central
#12  by Diplomat HawaiiFive-O - 4/15/2003 5:46:02 PM

No worries, what language are you writing it in?

I used VB6 so I could blast it out quickly. Essentially what I did was this:

1) Instantiate a TextStream object.
2) Point it at the file.
3) Start reading in lines. The key is that the original files don't allow line return characters within the text. So each line comes across clean using .ReadLine.
4) Look at the start of the line to determine what this line is (Title, Description, etc.)
5) Convert tabs to " ".
6) Split() off the " ".
7) Trim() the array.
8) Look for values that "". There should be just two, the Key (Title) and Value ("Whilst exploring yonder star...").

If you aren't using VB6, most of what I wrote is gibberish to you and not applicable, sorry!

Now, had I not used TextStream, you could still accomplish this by reading each byte into memory until you come to a line break, this data chunk should contain the Key/Value pair. Work your magic on it, then move onto the next line.

I can say that you don't have to write the file down exactly as it was. Since the GalCiv EXE can handle both tabs and spaces, just use whichever way works for you (IOW impose order upon the chaos that are the original event files). When my proggy spits them back out, it just uses spaces. As far as to how many spaces, once again GalCiv doesn't care- it just wants a space, so just pick an arbitrary number and roll with it.

Hope this helps.

                    
#13  by Diplomat HawaiiFive-O - 4/15/2003 5:47:04 PM

8) should say Look for values that don't equal "", sorry about that.

                    
#14  by Citizen Bill Ko - 4/15/2003 6:03:56 PM

Well, I'm glad SOMEone else in the universe is using VB6, and yes, it makes sense! Basically (excuse the pun), I am going to convert the misbehavin' files into something uniform, and to my liking. As an added attraction, if I did my homework, it might even work.

Great!

Bill



                         Posted via Stardock Central
#15  by Citizen Firefly2442 - 4/15/2003 9:48:35 PM

Yes!, someone else who uses VB6. If you mod Ghost Recon, check out Kit Constructor or Character Chooser. Two mod programs I'm really proud of making. Looks like a sweet program.

                    
#16  by Diplomat HawaiiFive-O - 4/16/2003 2:13:51 AM

I put out a revision tonight. It adds a new "Copy As New" function that will make a copy of the currently viewed event, so you have a starting point to make edits to. This revision also cleans up the documentation and straightens out the Status bar.

If anyone would like to take the beta for a test drive, please e-mail me at:
bsheely@prodigy.net Email

Standard disclaimers apply. There are 6 current beta testers (not counting myself)- I haven't heard of anyone's hard drive getting wiped so no news is good news .

To keep the momentum going, here's a sneak peek at the next screen. It will allow you to add/edit/delete UP Issues.
http://www.ctuit.com/bill/UPIssues.jpg Link



                    
#17  by Citizen Phaedyme - 4/16/2003 2:28:58 AM

Looks good.

Your program hasn't harmed my hard drive, but I have since found some worms living in my case that communicate through seismic vibrations. I killed them all, and my processor is now 39% faster.

Cool.



                 Posted via Stardock Central
#18  by Citizen Evrett - 4/16/2003 2:34:15 AM

The screenies make me drool sticky creative juices...cant wait till you get it nailed down for the gen public

      
#19  by Citizen Phaedyme - 4/16/2003 5:11:36 AM

Well, so far it's easy to use. The documentation is clear. I created an event with it which has yet to pop up in a game, but I've only played for about an hour or so since writing it.

I have played around with it a bit more - and I left it running while I played GalCiv. It didn't crash or eat my hard drive.



                 Posted via Stardock Central
#20  by Citizen Bill Ko - 4/16/2003 12:37:51 PM

I looked at the images and the layout is very nice. It's tough to design a user interface that is both functional and appealing. I like to think that I design my apps to be aesthetically appealing, but yours is very, very nice. I can only hope that my interface looks as pleasing when I'm done butchering it.

I have one question that I've beat my head against the wall and haven't been able to answer, though. How did you display the pcx file? VB doesn't know that picture format.

I'm sorry for all the questions, but I'm pretty green at this. I have an excellent grasp of how VB works, but I haven't yet accumulated the knowledge necessary to make this jump.

Thanks a bunch!

Bill

PS - I'm afraid to try your editor; I don't want to get too discouraged right at the beginning of my project.




                         Posted via Stardock Central
#21  by Citizen Bill Ko - 4/16/2003 12:40:13 PM

ummm... yours ARE very, very nice. I swear that I'm better at English than THAT...

Bill



                         Posted via Stardock Central
#22  by Diplomat HawaiiFive-O - 4/16/2003 1:20:48 PM

Bill, check your e-mail.

And thanks for the kind words

                    
#23  by Citizen hut101 - 4/16/2003 9:11:17 PM

I have e-mailed a request for the program and hope you send it to me. Oh, and if you need it, I have a website where I can host your full program with you take it public if you need to extra bandwidth.

                  
#24  by Veteran Duglis - 4/17/2003 4:00:37 AM

Looking forward to next update from the http



Doug




                    
<<   (1) 2 3 4 5 6 7 8 9 10   ->   >> 
   Page 1 of 11   

Go to Top    Go Back to Message Board    Go to Top
To be able to post something you have to become a member
Click here!



Copyright 1995-2026 Stardock Corporation. All rights reservered.
Site created by Pixtudio and Stardock, designed by Pixtudio.