ScottTykoski ScottTykoski

GC2 AAR’s For All!

GC2 AAR’s For All!

Moving Ahead on One of the Expansion Pack Features

While I believe the list hasn’t been finalized, Brad has given me the go ahead to begin work on one of the many new features that will be included in the expansion pack: the Epic Story Generator.

As a simple lad with simple programming skills, the task seemed easy enough…write enough text so that, each time the player finishes the game, the player gets an multi-page story similar to the After Action Report’s Brad has posted. However, after playing a few games and mapping out the many MANY events that can occur, the task grew before my eyes. Here’s a list of the events that I’m currently hooking into the code…

enum GC2StoryGeneratorEvents
{
GC2_Story_Data_RaceStatus, // a races standing in the universe
GC2_Story_Data_GalaxyStatus, // size, ect of galaxy

GC2_Story_EthicalAllignmentChosen, // race gets xenoethics, choses morality
GC2_Story_UPLawPassed, // a law gets passed
GC2_Story_UPLawRejected, // a law gets rejected
GC2_Story_UPLawTimedOut, // a law times out
GC2_Story_LeftUP, // race leaves the UP
GC2_Story_RandomEvent, // a random event occoured, store what option the race picked
GC2_Story_TreasuryDropsBelowZero, // money drops into the red
GC2_Story_TreasuryOutOfDebt, // race climbs out of debt
GC2_Story_BudgetBalanced, // race balances a lopsided budget
GC2_Story_ChangedGovernment, // race changes form of government
GC2_Story_ElectionSuccessful, // won an election
GC2_Story_ElectionFailed, // lost an election

GC2_Story_WarVoteSuccessful, // vote to go to war passed
GC2_Story_WarVoteFailed, // vote to go to war turned down

GC2_Story_MoraleMightDropsBelowFifty, // approval dropps into the red

GC2_Story_FirstContactWithRace, // first time races meet
GC2_Story_RelationsRaised, // race raises relations with someone
GC2_Story_RelationsDropped, // race drops relations with someone
GC2_Story_StartedAlliance, //alliance treaty signed

GC2_Story_AcceptedGift, // took gift
GC2_Story_RejectedGift, // rejected gift

GC2_Story_SuccessfulNegotiations, // sucessfully traded with another race
GC2_Story_UnsucessfulNegotiations, // unsucessfully traded

GC2_Story_WarStartedBecauseOfAlliance, // race gets pulled into war
GC2_Story_RejectedWarDespiteAlliance, // allies plea is rejected

GC2_Story_RaceNoticesShipBuildup, // race takes note of a buildup
GC2_Story_RaceNoticesCultureStarbase, // race takes not of a culture starbase
GC2_Story_RaceNoticesMilitaryStarbase, // whats the warbase doing there?!

GC2_Story_CultureStarbaseStarted, // started party base
GC2_Story_EconomyStarbaseStarted, // started banking/factory base
GC2_Story_MilitaryStarbaseStarted, // started gunbase
GC2_Story_MiningStarbaseStarted, // started mining a resource
GC2_Story_WarshipDesigned, // designed a new warship
GC2_Story_FirstWarshipOfTypeBuilt, // first new warship built

GC2_Story_WarStarted, // war started

GC2_Story_PlanetInvasionFailed, // race tried to invade but got stomped
GC2_Story_PlanetInvasionSuceeded, // race took another race's planets through invasion
GC2_Story_PlanetInvasionTied, // both sides lose all troops

GC2_Story_TradedForPeace, // 'Lets just be friends'
GC2_Story_RejectedTradeForPeace, // 'Hell no..you're gonna die.'
GC2_Story_RaceSurrendered, // race surrenders to another race
GC2_Story_RaceDestroyed, // race is destroyed

GC2_Story_ShipDuelBattle_DefWin, // 2 ships meet, attacker loses
GC2_Story_ShipDuelBattle_AttWin, // same as above, attacker wins
GC2_Story_SmallShipBattle_DefWin, // fleet battle < 6 ships
GC2_Story_SmallShipBattle_AttWin,
GC2_Story_MediumShipBattle_DefWin, // fleet battle < 12 ships
GC2_Story_MediumShipBattle_AttWin,
GC2_Story_LargeShipBattle_DefWin, // fleet battle tons of shops
GC2_Story_LargeShipBattle_AttWin,
GC2_Story_LoneShipOnFleetBattle_DefWin,  // one ship vs a swarm
GC2_Story_LoneShipOnFleetBattle_AttWin,

GC2_Story_StarbaseBattle_DefWin, // starbase battle
GC2_Story_StarbaseBattle_AttWin,

GC2_Story_PlanetDefenceless, // planets orbiting ships all killed

GC2_Story_PlanetColonized, // planet colonized
GC2_Story_PlanetBuiltWonder, // planet...im not going to explain these ones ;)
GC2_Story_PlanetBuiltTradeGood,
GC2_Story_PlanetBuiltSuperProject,

GC2_Story_CultureFlipDanger, // planet is in danger of rebeling
GC2_Story_PlanetRevolts, // planet flips to another culturally superior race

GC2_Story_TradeRouteStarted, // started trade route
GC2_Story_TradeRouteShipDestroyed, // en-route frieghter taken out
GC2_Story_TradeRouteEndedTooRisky, // trade route ended due to warfare in the area

GC2_Story_AnomalyFound, // found anomaly!
GC2_Story_WeaponTechResearched, // weapon research completed
GC2_Story_HullSizeTechResearched, // researched new hull size tech

GC2_Story_EconomicBoomBegins, // special events begin and end
GC2_Story_EconomicBoomEnds,
GC2_Story_CultureBoomBegins,
GC2_Story_CultureBoomEnds,
GC2_Story_CultureBacklashBegins,
GC2_Story_CultureBacklashEnds,

GC2_Story_Victory_Culture, // victory conditions
GC2_Story_Victory_Military,
GC2_Story_Victory_Technology,
GC2_Story_Victory_Alliance,

GC2_Story_Loss_Culturet, // losing conditions
GC2_Story_Loss_Miitary,
GC2_Story_Loss_Technology,
GC2_Story_Loss_Surrender
};

From these I can gather data specific to the event, then use the morality of the races involved, those races relative military might, and the galactic status at the time, and I should have enough information to generate an interesting and unique story for each game.

Other hopes for this feature would include creating an HTML version with generated screenshots, and integration with your online account so that it can be uploaded to the website and other players can read of your exploits.

Of course, at this point, I’ll just be happy to get the basic storytelling part working right ;) And let me know If you see any major events that I forgot. I only used ones I ran into or ones I could think of while playing, but I definatly want to cover as many pivotal game events as possible by the time this is completed.

69,037 views 49 replies
Reply #26 Top
My main worry is that the story would be totally wrong. Often while playing the game I will get the message;
Such and such is trying to get along with everyone, for example they are currently researching laser V/planetry invasion/blatanty not peaceful tech.

However if you could make an accurate report of what actually happened it would be great.
Reply #27 Top

Niarg; What's difficult in the game is determining what's going on as it happens. With all the data available, we should be able to properly tell an accurate story.

For example, sometimes the AI will get mad about me for a military buildup around one of their planets. Sometimes their right, but somtimes it's just a fleet that I forgot about and happend to park in their territory. By knowing wether or not those ships were actually used to invade their planets, I can properly tell the story as it happened, and not as we're calculating (or miscalulating) it's happening.

Reply #28 Top
You may want to add the special event that increases population growth. I find that changes a game now that the population growth is so low.
Reply #29 Top
This looks really cool.
Be sure to get all the different events in there, assasination, race changes morality, I-League, Fundamentalists etc. since they really add to the story.
Reply #31 Top
I don't envy your programming task, but it could make for an interesting feature.
Reply #32 Top
I hereby proclaim this to be THE COOLEST FEATURE EVER.

No, really - everything from the idea of following prominent starships to, well, just the whole idea, oozes awesome. I am now guaranteed to buy the expansion pack.
Reply #33 Top
I hereby proclaim this to be THE COOLEST FEATURE EVER.


Second that! An automatically-generated AAR has probably been one of the 10 most oft-requested features in TBS games since time out of mind (or at least since I started playing them 10 years ago!). Man oh man, I suddenly can't wait for the expansion to be released now.....
Reply #34 Top
i think there should be a option as well for you to "mark" what you feel are specific times and places
Reply #35 Top
This is the sort of feature that can go so horribly wrong, represent so much time and effort and then be switched off by thousands of gamers after the first couple of occurances.

Let's hope it's as cool as it sounds
Reply #36 Top
cool beans...I suggested this weeks ago in the forum and everyone shot it down or in this case...never replied or commented.
Link
I had no hope that we would ever see something like this in ANY game. When this thing is out...I will be the first to purchase.

Reply #38 Top
So... its going to be similar to the civ3 endgame showcase?

it sounds like a gimmick - just like the combat viewer.

But, i like reading, so if you get this right i will probably enjoy reading about my exploits...

good luck
Reply #39 Top
Also, should keep track of when the player cheats.
Mysterously Terran alliance gain 100,000 in money.
Reply #40 Top
That sounds like a terrific idea! Several RPGs have ended with an Epic Story, basically recapping your actions throughout the game, and mentioning what happened to NPC so and so, and it's always just fun to watch and go "oh yeah, I did that."

It also makes the ending at least a little fresh every time you finish the game.

Good stuff!
Reply #41 Top
You'll want to assign weights to the various events and limits on how many times to display them.
You don't want a log, you want a story. And a story needs a certain amount of conciseness.

Algorithm:
1) List all Events
2) Remove events with too many duplicates
3) Eliminate all but the top 100 (N...) weighted events or so.
4) Now write the story.
Reply #42 Top
Revised Algo:
2) Don't remove events with too many duplicates, reduce the weight of duplicates that aren't happening around some other highly weighted event. This would allow mentioning things like "A heavily upgraded military starbase was built in Drengin's Home System, preparing for a multi-wave fighter and transport attack to take that system. Drengin surrendered to Captain Player shortly after the attack succeeded..."
Reply #43 Top
I would purchase the expansion even if this were the only option included, the idea is that stinking awesome!!!
Reply #44 Top
Great idea in principal
My only comment/suggestion is that what makes AAR interesting is the thoughts of player at the time which obviously you cannot program. If you add this feature why not have a manual event triggered by the player to be able to add comments about the thoughts they were having.
Reply #45 Top
Not only is this cool, but the HTML idea positively rocks. If when you first build a ship it takes a screenshot and throws it in the AAR as an illustration for that event, the rocks level becomes an unbearable celestial choir.
Reply #46 Top
How is this one coming?
Reply #47 Top
Here's my one idea:

Do the AAR from the PoV of a time traveller who goes back to catalogue the history of the ancient "Terran Empire" or "Drath Cookie League." Then you get the feeling that your empire made a lasting effect and was the catalyst for future happenings in the galaxy.

Have the game remember the ship that saw the most action and show it sitting on the surface of a planet, looking like it was just excavated and THEN give the story of that ship as it played out through the scenario.

Then you could have the time traveller make logical mistakes (thus excusing remaining flaws in the AAR programming) by using his deductive logic to "assume" certain things that went on. For example, if the player built a lot of cultural space stations, they could say, "We found many stations adrift full of shiny hanging balls and large wall emplacements that blasted recurrent sonic themes. There were flashing lights and artificially created smoke everywhere! Surely, these [insert race here] must have used these as mass torture chambers."

Reply #48 Top
GC2_Story_Loss_Miitary - Miitary should probably be Military.

As for the actual feature, sounds fun.
Reply #49 Top

maybe log when a major change in slider focus occurs (and is maintained for a decent period) - for example:

"On {date} the terran alliance embarked on a major technological drive, implementing massive cuts in social spending and pouring the money into labs across the empire... on {whenever} the military budget skyrocketed, as the war with {anyone theyre at war with} was stepped up ..."

or some such thing