Good Greif, It's Been A While....
Published on August 4, 2006 By ScottTykoski In GalCiv Journals

With the Epic Generator coming in at #3 on the poll, I figure it's time to give the faithful an update on the progress.

When I first tackled this project, I was under the false impression that the difficulties would lay in the writing. Turns out I was wrong...very wrong.

In my last dev journal on the subject, I went though and determined what story events I thought were needed to develop an interesting and accurate story. You guys posted some comments on other events that should be logged as well, so I added those to the list. Then I journeyed (read: trudged and almost died) through the code (read: murky bog of unknown hieroglyphs and foreign knowledge) to store these events, along with the necessary information for each event.

Once the raw data "event log" was saving and loading correctly, it was time to turn that into the "story log", a English version of the event log that's easier on the eyes.


   96
   0
   3
   Galactic Warfare
   Weapons
   28

<<<< 0 - Military Tech Research Complete >>>>> Player 3 has completed research of Galactic Warfare (ID 28) which is on the Weapons branch of the technology tree.

Event Log data on the left,  Story Log data on the right. I'll give you ONE guess as to which log I prefer to read.

Then it was time to play a game. I've played though about 5 small games at this point, each time finding a few issues that need to be fixed (data that's not being saved correctly, data that I need that isn't getting saved, ect), meaning next week I can officially start implementing all the text that's been written for the story generator.

Let me give you an example of how this will will work and how the data will be used.

********************************************************************************

In my last game, there was a point where I attacked the Yor and COMPLETELY wiped them out. Then, while not at war, I designed a new brand of warship.
This event is interesting because:
    1. I'm not at war, so I may be getting ready for something
    2. I just got out of war, so perhaps my forces weren't strong enough

Now, I know lots of people design warships during times of peace, but note that this will be a low weighted event chain. Other events will probably happen during the story that take precedence, but I want to have something to talk about during lulls in the action as well.

Here are the event's that lead me to talk about the ship being designed....

 

<<<< 164 - Race Mini-Status >>>>
Race ID:0
Military Might: 226, Number of Warships: 33
Approval: 80%
Treasury: 31475 bc
Percentage of Galactic Control: 46%

<<<< 166 - War Declared >>>> Player 0 has declared war on player 5.

<<<< 177 - Planetary Invasion Suceeded >>>> Player 0 sucessfully invaded Iconia V, located at (36,22), a planet of player 5. Out of the 2508 defending troops, 0 remained after the battle. Out of the 1000 attacking troops, 732 remained after the battle.

<<<< 177 - Race Destroyed >>>> Player 5 was killed off, leaving 0 warships abandoned.

<<<< 179 - Warship Designed >>>> Player 0 has designed the 'Beam Wasp M 1', which is described as ''. It costs 165 military units to build, has a max speed of 1 pc/turn, sensor range of 2, travel range of 1, hull size of 1.
Attack (B: 8\M: 0\MD: 0)
Best Weapon: Plasma Cannon
Defense (B: 0\M: 5\MD: 0)
Best Defense: Point Defense
Times Design has been Upgraded: 0
Can Colonize: 0
Can Construct Strarbases: 0
Can Hold Troops: 0
Can Establish Trade Routes: 0

<<<< 180 - Race Mini-Status >>>>
Race ID:0
Military Might: 242, Number of Warships: 42
Approval: 85%
Treasury: 30364 bc
Percentage of Galactic Control: 51%

 

From those logged events, we can determine the following...

  • Humans declared war on the Yor

  • Humans only gained 9 net warships in the war

  • Humans gained a bit of military might throughout the course of the war

  • After the war was over, the humans designed a ship called "Beam Wasp M 1"

 

Now, using those facts (and some test from other data event logs), we'll work our magic and come up with the following "story snippet":

"
While the war against the evil Yor Collective had gone painlessly, ScottT wanted to ensure victory in any upcoming wars. Military generals and warship specialists gathered to combine the latest war-faring technologies to create a battle cruiser worthy of the emperors’ praise. After several weeks of toiling, the team had created their most powerful lightweight warship to date…the Beam Wasp M1!

Name: Cruiser class Beam Wasp M1
Length: 32.8 meters
Span: 26.5 meters
Mass: 59.4 Metric Tons
Max Crew Count: 13

Speed: 3 pc/week
Offense: 8 b / 0 md / 0 m
Defense: 0 s / 5 pd / 0 m

Observing the offensive capabilities of surrounding civilizations, the team was sure to build up the point-defense systems of the Beam Wasp M1, using Westinghouse 98-z Point Defense units to ‘get ‘r done’. The vessel was also outfitted with the cutting edge in weaponry, putting the new ACME C8-03 Plasma Cannon component to good use. The ship was a masterpiece in interstellar warfare….but its true tests were still to come.
"
And there you have a little blurb about the ship I designed. Form the data I know it was a small hull, so we ca talk about it being a "lightweight warship", and categorize it in a "Cruiser" class. We know the Yor are evil, and we can assume the war against them went well because our military might didn't falter coming out of the war.

Now, let's say the war didnt go so well, and that last "Race Mini-Status" event looked like....

<<<< 180 - Race Mini-Status >>>>
Race ID:0
Military Might: 23, Number of Warships: 5
Approval: 85%
Treasury: 30364 bc
Percentage of Galactic Control: 51%

Yeeeouch! The player won, just just barely! Now, let's make that story snippet reflect that....

"
The war against the Yor Collective had left the Terran fleet in shambles. Starting the war with 33 healthy war birds, the empire’s navy was down to a meager 5 ships. ScottT, fearing this lapse in military strength would lead to outside invasion, gathered the finest Terran war advisors to re-establish his vessels as the strongest in the galaxy. Following a grueling design process, the emperors’ crew felt they had invented a warship that would strike fear throughout space…the Beam Wasp M1!

Name: Cruiser class Beam Wasp M1
Length: 32.8 meters
Span: 26.5 meters
Mass: 59.4 Metric Tons
Max Crew Count: 13

Speed: 3 pc/week
Offense: 8 b / 0 md / 0 m
Defense: 0 s / 5 pd / 0 m

Various sources of intelligence were used to ensure the offense and defensive capabilities were up to par with neighboring empires. For instance, ships from the Torian Confederation and Altarian Republic were outfitted with strong Missile weaponry, but most showed serious weaknesses in Shielding technology. The Beam Wasp M1 was designed to capitalized on these. Westinghouse Plasma Cannons were fitted to the vessel, taking advantage of shielding inadequacies of neighboring fleets. To combat missile-fire, ACME Point Defense components were installed with defense in mind.

With the strength of their new warship, empires would once again fear the might of the Terran Empire.
"

The text further changes if you built a medium, large, or huge ship, or if you are at war with another race at the time.

And while the building of a ship may not be important at this point in the story, there will be times where a new ship could be a turning point for the player, which we can use the data to determine and heavilly weight the event so it shows up in the story (instead of talking about your 16th win in the senate).

Hopefully this whets your whistle and gives you an idea what we're shooting for with the generator.

We promise you won't regret voting for it as your 3rd favorite feature!

(Oh, and for anyone interested, I'm also spending some free time to make a Christmas Game to release at the end of the year. Check here for my latest journal!)


Comments
on Aug 04, 2006
Sounds great, and quite difficult to implement.
Keep it up, and thanks for the implementation !

greetings from germany,
woodstock-tc
on Aug 04, 2006
Wow, that sounds great !!! Cant wait to test it myself

P.S.My first post
on Aug 04, 2006
This sounds like a briliant feature which I'm looking forward to a lot. Keep up the good work!
on Aug 04, 2006
Will these journals be viewable ingame, like some sort of scoreboard, or will they be exported and viewed in like word, pdf or something.
I still hope that we will some day get an 'offline metaverse', for those of us who mod our game.
on Aug 04, 2006
HTML export I believe...

Looks to be an impressive feature!
on Aug 05, 2006
Continue the great work! Consider my purchase of Dark Avatar already done
on Aug 05, 2006
Sort of remins me of the 4th Harry Potter and Rita skeeters amazing pen
on Aug 05, 2006
I have played some epics games already, but sadly they are slipping from my memory. I love this idea and the shear audacity of the concept wins praise. You're even reaching high than I thought you were. Looking forward to it!

on Aug 06, 2006
Yes the idea is absolutely fantastic, but I would still prefer to see these journals ingame also.
on Aug 06, 2006
Guys, this looks like a really fun feature. This seems like the right time to ask for another relevant feature. Can you please add a shortcut key, that takes a screenshot in-game and saves it to the GalCiv2 directory? This would very much go hand in hand with the epic story generator, and allow people to more easily flesh out their reports if they decide to publish them online. Some people have trouble using Alt-Tab to go to an art package and then back to the game.
on Aug 07, 2006
Sounds great! Would this feature be easily internationalised? or will it strictly be in English?
on Aug 08, 2006
Just an idea for event. Isn't a first built ship from a certain design more significant than just making the design?
Example. Let's say I have researched a new defence system and I have researched into 2 different weapon techologies. What if I design 2 different designs with different weapon systems, because there are opponentes with different defences?

In this case the event should be significant when I produce the first ship, because I assesed the threat and know which of the 2 designs would be more usefull.
on Aug 10, 2006
I have to say that I am very impressed with the work that you have done on this project.
on Aug 12, 2006
Will the results of random events be included too?

Still hoping for a screenshot hotkey...
on Aug 12, 2006
Would this feature be easily internationalised? or will it strictly be in English?


I imagine it would be quite difficult to internationalise. Most internationalised versions seem to rely on a base translation with possibly a few interchangeable keywords. This would require a lot of keywords that may even need context-sensitive translations. I wouldn't like the job, that's for sure.