Topic: The Rise and Fall of the Coop-Ace Script: A Documentary  (Read 4624 times)

0 Members and 1 Guest are viewing this topic.

FireSoul

  • Guest
The Rise and Fall of the Coop-Ace Script: A Documentary
« on: March 19, 2003, 09:17:56 pm »
Main Page:  http://www.khoromag.org/

Download: http://www.khoromag.org/taldren/scripts/coop-ace-3.0.1.exe
Mirror:  http://klingon.stasis.ca/sources_and_utils/coop-ace-3.0.1.exe



Genesis

In the beginning, there were fights. Two sided, three way, sometimes up to 6. And for a time, it was good. Then came a time where all wanted to play together, and so they all 6 tried to all join the A-Team. While all were instantly proclaimed winners by Starfleet Command, they however felt like losers in MPlayer.


Along came a coder, with a great big compiler, who learnt of the desire of six.
He collected ideas, from those gaming peers, and thought up a reasonable fix.
And thus Roger Bacon, with his new creation, dubbed forth the Coop-Ace.
Allowed any player, to team up together, and blast the AI into space.


Good things bring in cash
Taldren sprouts from coders work
E A War is born


With the arrival of Starfleet Command: Volume II, many new and different goodies were introduced.  Unfortunately, this included a different mission building pack incompatible with the olden work. Many missed the joint mayhem that the Coop-Ace brought them when they signed up with their favorite Empire at War. This included what would become to Coop-Ace it's new King, yet somehow the 3rd. James King III, also known to the ladies as the Latex Lord "MagnumMan", took on the mantle of recreating the work of Roger while we assume Roger concentrated on bringing home the bacon.

With the inheritance of Coop-Ace, and the creation of Sector Assault, MagnumMan grew from being a respected player to also an accomplished contributor to the community. Versions and revisions of Coop-Ace were released, each better than the last. A large jump was made for the criminal element known as the Orion Pirates once the Cartels settled in.

And then, for a time, all was silent. MagnumMan had teamed up with a Dutch nicknamed Khoros to form KhoroMag, and step up for maintenance of Empires At War itself. Empires At War grew on, whereas Coop-Ace stood still. Problems started to surface before fans of Coop-Ace who were pushing the limits of their skills, yet no time was available for the King to look upon the subject. Thus the King MagnumMan decided upon to release the bindings of his work, and to invite any and all to take on the mantle freely and without constraints.

For a time, no one stirred, then FireSoul became curious enough to see what could be done. With counsel from MagnumMan, and input from Strafer, problems that had lingered became explained and eliminated. Attempts were made to make Coop-Ace as current to EAW as it was to OP, with growing pains being replied. A request was made to XenoCorp to help nail down any problems, and replies were brought in by the numbers. Many numbers. Numerous numbers, all greater than the last. For now work was steamrolling at such a rate that version numbers would often never cross the public eye.
So many numbers it even got 762 confused.   --FireSoul

MagnumMan, in the only show of ownership he didn't mind maintaining, would finalise the release by packaging the results, and releasing to the public as done in the past.

Strafer would contribute in more than advice when it came to give Coop-Ace's customizer a facelift. Having ideas as to how to increase the ability of Coop-Ace to surprise, yet restrain from creating unlikely battles, more tools were granted for the host with the most resources to set up a game for a match. Also, since EAW could not keep track of time, a setting was added to allow such a choice.

And now for a time, it's as good as it gets Ideas are now shelved, till functions can set drone loadouts or totals of BPV costs and captures won't mean your marines will be lost.


-- Strafer, mused and amused
--------------------------------------------------------
--------------------------------------------------------
--------------------------------------------------------




Technical Details and Explanation of the CoopAce script
-------------------------------------------------------


The coopace script is, in my humble opinion, the most advanced script for SFC:EAW and SFC:OP. It is quite challenging to play against, and will make any player sweat for a bit if he or she understand how the script works.

.. in other words, if you understand how it thinks, it can be used to play better online games.



1- The BPV for the AI, and the Multiplier Ratio:
------------------------------------------------

The BPV offered to each player is NOT used by the script. It is the basic BPV of the chosen ships which will be used to calculate the BPV of the AI.

For example:
If the Multiplayer is set to 1.8, and the base BPV is 300 per player, the AI does not get 540 BPV to choose ships from. The player could very well choose a 200BPV ship, with certain extra components added (drones, shuttles, etc) raising it to 220BPV.
The AI will then have 200 * 1.8 BPV. (360 BPV)

2- The BPV of extra components for the AI:
------------------------------------------

The items a player chooses will augment the BPV available for extra items on the AI ships. Items used in the extra BPV calculations are Marines, Transporter Bombs/Mines and Spare Parts.

For example:
The player has purchased a Lyran ship for 200BPV. He also purchased 20 BPV of extra t-bombs and spare parts. The AI will then have 20 * 1.8 BPV for extra items. (36 BPV)



3- AI ship selection, Parsing:
------------------------------

Images:

SFC:EAW Customizer:
 

SFC:OP Customizer:
 

The customizer gives hosts a chance of selecting which races are available for selection, and if they're going to be mixed or of a single race.

Note:
"Random" means a single random race among the selected races.
"Selected" means a mix of the selected races.


Then, the customizer allows a narrowed selection of hull types to be available to the AI. Also, a percentage has been made available to manipulate the distribution of the hull types within the generated fleet.


This isn't simple to explain, so bear with me:
The script is set to load the shiplist directly from the shiplist.txt and ftrlist.txt files. It then parses the ships according to their hull types. If the race of the ship being loaded is not of one of the chosen races, it will not be parsed for AI selection.


The parsing is also era-complient:

SFC:OP provides an API function which detects the current era. SFC:EAW required a different era-selection method, so it was added directly to the customizer. Era-complience can be put as simply as the following sentence: "Select all ships that are in SERVICE during the era chosen".

In the above images, you'll notice that the EAW Customizer has a section just for selecting the ERA.


So.. for example:
Ship F-CA+ is being parsed for selection.
- The era chosen is Late Era. Parsing continues with success.
- The Federation is a selected race. Parsing continues.
- The ship is a "Heavy Cruiser" and that hull type is available for the selection. Parsing continues.
- The ship is added to a smaller in-script shiplist just for the "Heavy Cruisers".


Note: In SFC:OP, fighters and PFs are parsed too. The appropriate era and race fighters can be made available on an AI ship. This makes the AI a difficult foe.

Note: In SFC:OP, Advanced era is the most difficult era to deal with, especially when dealing with "ships in service" phylosophy. So I did a small adaptation in case it is chosen:
- if 100% of the players are using xships, then 100% of the AI will also have xships.
- if 2 out of 3 players selected NON-xships in Advanced Era, then there's a 2/3 chance that the enemy selected will be a mix between NON-xships and xships.



4- The game begins:
-------------------

"The players have all chosen their ships. The game has actually begun, but it seems like everything is paused. What's happening?"


The AI ships are selected once the game begins. There is no AI team in gameplay yet. Technically, the game itself hasn't started yet as the host is still crunching away. Individual players, however, may be able to move and select "Red Alert"... .. and target each other. They may even see each other as enemy ships for a short period of time.



5- The AI ships are selected:
-----------------------------

Selection is done in a ever constricting loop. Each pass of this loop covers a potential selection of a ship for the enemy team. Here's how it works:

a- the player total BPV for ship selection is calculated here.

b- The loop begins. It ALWAYS begins with the largest hull type, battleships.

c- is the current hulltype turned on? If yes, continue. If no, select the next hulltype and go to step c. If no hulltypes are available, start game without enemy. The next hulltype after "Frigate" is "BattleShip": it loops around.

d- The hulltypes are: BattleShip, Carrier, Dreadnought, Heavy BattleCruisers, New Heavy Cruisers, Heavy Cruisers, Light Cruisers, War Destroyers, Destroyers and Frigates.

e- A random number between 1 and 100 is selected. It is compared with the "Odd" selected in the customizer. If the number chosen is smaller than the random number, a ship MAY be selected. Continue.   Otherwise, go to step c,
next hulltype.

f- A ship is chosen, randomly, from within a small shiplist created for this hulltype during parsing. If a ship is indeed chosen, it is compared with the BPV available. If there's enough BPV for the ship, the BPV available is reduced by the BPV ammount of the ship and the ship will be created. Go to step c.  If the ship costs too much, it is REMOVED from the small shiplist to prevent future selection. Go to step c.


The above continues until there is 0 BPV left for the AI, or not enough BPV to select anymore ships (most common). Leftover BPV will be used for extra item selection for the enemy ships.

There is room for 4 teams of 8 ships for the AI. The CoopAce script will not create more than 32 enemy AI ships.



6- The AI ships are equipped:
-----------------------------
The game starts.. but at about a second or 2 into the game, the AI ships are updated. The BPV for the AI's extra equipment can only be calculated once the game has started. The player's loadouts are compared to the stock version of their ships. Namely, Marines, TBombs and Repair Parts are tallied.

All AI ships are created outside of sensor range to give the game enough time to equip them fully before engaging the player ships in combat.



NOTE: No BPV is calculated for player fighters or drone load-outs. Why?
1- There is no function to find out the players' fighter loadouts. The AI will get era-complient fighters anyways (in OP only)
2- There is no working function to set the drones of the AI either. They get free era-based drones automatically anyways.


Anyways, the extra equipment BPV is calculated and the leftover BPV from ship selection is added to it. Then, 1 by 1, items are selected and randomly spread among the AI until there isn't enough BPV to distribute it. Like I said above, the AI ships get contemporary drone loadouts... and fighters. Trust me, Hornet-IIIs are impressive foes.



7- During the Battle:
---------------------

Here's a few things you should know:

1- enemy ships can be captured, but they will Self-Destruct. I have never been able to maintain a stable captured AI ship. It's just simpler for it to be destroyed if captured.

2- host drops will NOT force people to end the game. Traditionally, a host drop will cause all AI to go "zombie". A solution was found and applied, and although much parsing may be needed by the new host, the game will continue. In SFC:OP, the Carriers are stripped of fighters if the host changes. A new host selection caused a spontaeneous fighter regeneration within carriers. Not good.

3- the number of enemy units ay well go over 32 if carriers are involved. If this happens, some ships or fighters may seem to be "parked" in the distance. ...they will activate once enough enemies are killed.



8- Conclusion:
--------------

The coopace script is complex and complete. At this time, there are no plans for improvements, especially since there is very little room for it. Random terrain generation is doable, but not enough to affect the gameplay at tihs time. The only thing which would make me review and improve the coopace is an API update.
For example:
 - a working mSetDrones
 - creation of a mGetFighters
 - creation of a mGetShuttles
 - working capture code.


Enjoy the CoopAce, even if you are alone. If you're at a LAN Party, then it becomes a must-have. Good Luck, Have Fun and Good Hunting.


-- Luc
FireSoul

Edit: formatting.
Edit2: Added a proper sig for Strafer
Edit3: URLs for downloads. (oops? Thanks Mags.)
Edit4: Formatting, again, for the Haiku and poem.
Edit5: Comment on 762.
« Last Edit: December 31, 1969, 06:00:00 pm by FireSoul »

MagnumMan

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #1 on: March 19, 2003, 09:37:26 pm »
Let's not forget the seemingly crude combination names for BPV multiplier and AI difficulty:

The Easy Captain
The Hard Commodore
The Nasty Admiral

Pick your, well, you know.    

Oh, and you may want to tell people where to get it:

http://www.khoromag.org/

- Mags
« Last Edit: December 31, 1969, 06:00:00 pm by MagnumMan »

AdmiralFrey_XC

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #2 on: March 20, 2003, 02:27:04 am »
Excellent post, for an excellent history of a excellent script.

I just wanted to take the time to thank Roger, Mags and FS for all their work on this.

SFC wouldn't be the same with out the Co OP.



And, of course, it's mirrored @ XenoCorp.Net
« Last Edit: December 31, 1969, 06:00:00 pm by AdmiralFrey_XC »

FireSoul

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #3 on: March 20, 2003, 05:42:37 am »
Want more?

Screenshots:

1- During devellopment. This was a STABILITY test, where the limit of 32 ships was not imposed.
 woah.JPG
2- The coopace script WILL give the AI improved fighters.
 coopace-fighters1.JPG


-- Luc

kiloton

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #4 on: March 20, 2003, 09:33:11 am »
How does the OP Co-Op Ace do eras?  Will the computer AI always have access to X-Ships?  I saw reference to this a little in the post above as far as if 2/3rds of the people do not take X-Ships then there is a 2/3rds chance that the AI will have a mix of X and non X-Ships, etc.  What about if no-one takes X-Ships?  How much era control do you have in the OP version and how does it work?  Is it based on the era selection in the game startup?

This looks really great, BTW, and I am looking forward to trying it out.  Thanks!

Ken

 
« Last Edit: December 31, 1969, 06:00:00 pm by kiloton »

Strafer

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #5 on: March 20, 2003, 09:37:46 am »
In OP you can set the era in-game at the creation stage. EAW doesn't have such a function.
For advanced, the more X ships you take, the more likely the AI will have an X-only fleet as per rules of engagement.
If no one has an X ship in advanced, it'll be luck of the draw that determines if the AI has any X ships at all.

FireSoul

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #6 on: March 20, 2003, 11:51:28 am »
Think of it as rulesets:
If everybody picks an x-ship, then it uses this:
"All of my generated AI ships will be from the Advanced Era".

If noone picked an xship, then it uses:
"All of my generated AI ships will be ships that are in EXISTANCE during the chosen era.". The YearFirstAvailable and YearLastAvailable plays an important part.
This includes heavy battlecruisers, dreadnoughts, etc. ... all those ships continued to exist in advanced era, even with the appearance of x-ships.

If it's a mix of players (Say 4 out of 5) who picked x-ships, then:
There's a 4/5th chance that it will be 100% xships generated. There's a 1/5th chance that it will be a mixed fleet of ships that are in EXISTANCE during advanced era, including x-ships.


-- Luc

FireSoul

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #7 on: March 20, 2003, 02:53:14 pm »
A very good screenshot:

 coopace__vs_hydrans.JPG  

Strafer

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #8 on: March 20, 2003, 03:18:43 pm »
I remember that fight.
That I was able to cripple Hydrans with drones was stunning...
"Damn gatlings, why do I bot... they HIT?!?"  

Lord Marauder

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #9 on: March 27, 2003, 07:40:34 pm »
To Firesoul and Magnumman  Thankyou for your work on the co-op scripts.
I have had many enjoyable hours of playing from them.

Now here is a question that I am sure others may have asked.

Is there any chance for a Co-OP script for SFC3???

Wolf 359 can only be played so many times before it gets old.

Thank you for your time

And once again thankyou for the script thats so much fun.
 

FireSoul

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #10 on: March 27, 2003, 07:44:47 pm »
Not from me. I don't like SFC3.

Chris Jones

  • Guest
The Rise and Continuance of the Coop-Ace Script...
« Reply #11 on: March 27, 2003, 09:03:17 pm »
I would PAY for an SFC3 Co-op Ace..

seriously..

A note of thanks here to the Co-op ace team - I have been enjoying it since the 1st release of it..



 
« Last Edit: December 31, 1969, 06:00:00 pm by Chris Jones »

Chris Jones

  • Guest
Re: The Rise and Continuance of the Coop-Ace Script...
« Reply #12 on: March 28, 2003, 11:01:53 pm »
what? no-one responded to the PAY post?

FireSoul

  • Guest
Re: The Rise and Continuance of the Coop-Ace Script...
« Reply #13 on: March 28, 2003, 11:14:17 pm »
...
... how much?

Chris Jones

  • Guest
Re: The Rise and Continuance of the Coop-Ace Script...
« Reply #14 on: March 30, 2003, 10:37:23 am »

FireSoul

  • Guest
Re: The Rise and Continuance of the Coop-Ace Script...
« Reply #15 on: March 30, 2003, 12:49:26 pm »
Oh come on..
.. I really was joking. I don't even own SFC3. I tried it and didn't like it.

Sorry Chris, but I can't make myself do anythign for it.

-- Luc

Chris Jones

  • Guest
Re: The Rise and Continuance of the Coop-Ace Script...
« Reply #16 on: March 30, 2003, 01:58:00 pm »
well Ok -- but that is how much I would like to see a Co-op Ace for SFC3..

anyone who does that will be a hero of sorts, and I really would pay. I am not joking about that.



 

FireSoul

  • Guest
The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #17 on: March 19, 2003, 09:17:56 pm »
Main Page:  http://www.khoromag.org/

Download: http://www.khoromag.org/taldren/scripts/coop-ace-3.0.1.exe
Mirror:  http://klingon.stasis.ca/sources_and_utils/coop-ace-3.0.1.exe



Genesis

In the beginning, there were fights. Two sided, three way, sometimes up to 6. And for a time, it was good. Then came a time where all wanted to play together, and so they all 6 tried to all join the A-Team. While all were instantly proclaimed winners by Starfleet Command, they however felt like losers in MPlayer.


Along came a coder, with a great big compiler, who learnt of the desire of six.
He collected ideas, from those gaming peers, and thought up a reasonable fix.
And thus Roger Bacon, with his new creation, dubbed forth the Coop-Ace.
Allowed any player, to team up together, and blast the AI into space.


Good things bring in cash
Taldren sprouts from coders work
E A War is born


With the arrival of Starfleet Command: Volume II, many new and different goodies were introduced.  Unfortunately, this included a different mission building pack incompatible with the olden work. Many missed the joint mayhem that the Coop-Ace brought them when they signed up with their favorite Empire at War. This included what would become to Coop-Ace it's new King, yet somehow the 3rd. James King III, also known to the ladies as the Latex Lord "MagnumMan", took on the mantle of recreating the work of Roger while we assume Roger concentrated on bringing home the bacon.

With the inheritance of Coop-Ace, and the creation of Sector Assault, MagnumMan grew from being a respected player to also an accomplished contributor to the community. Versions and revisions of Coop-Ace were released, each better than the last. A large jump was made for the criminal element known as the Orion Pirates once the Cartels settled in.

And then, for a time, all was silent. MagnumMan had teamed up with a Dutch nicknamed Khoros to form KhoroMag, and step up for maintenance of Empires At War itself. Empires At War grew on, whereas Coop-Ace stood still. Problems started to surface before fans of Coop-Ace who were pushing the limits of their skills, yet no time was available for the King to look upon the subject. Thus the King MagnumMan decided upon to release the bindings of his work, and to invite any and all to take on the mantle freely and without constraints.

For a time, no one stirred, then FireSoul became curious enough to see what could be done. With counsel from MagnumMan, and input from Strafer, problems that had lingered became explained and eliminated. Attempts were made to make Coop-Ace as current to EAW as it was to OP, with growing pains being replied. A request was made to XenoCorp to help nail down any problems, and replies were brought in by the numbers. Many numbers. Numerous numbers, all greater than the last. For now work was steamrolling at such a rate that version numbers would often never cross the public eye.
So many numbers it even got 762 confused.   --FireSoul

MagnumMan, in the only show of ownership he didn't mind maintaining, would finalise the release by packaging the results, and releasing to the public as done in the past.

Strafer would contribute in more than advice when it came to give Coop-Ace's customizer a facelift. Having ideas as to how to increase the ability of Coop-Ace to surprise, yet restrain from creating unlikely battles, more tools were granted for the host with the most resources to set up a game for a match. Also, since EAW could not keep track of time, a setting was added to allow such a choice.

And now for a time, it's as good as it gets Ideas are now shelved, till functions can set drone loadouts or totals of BPV costs and captures won't mean your marines will be lost.


-- Strafer, mused and amused
--------------------------------------------------------
--------------------------------------------------------
--------------------------------------------------------




Technical Details and Explanation of the CoopAce script
-------------------------------------------------------


The coopace script is, in my humble opinion, the most advanced script for SFC:EAW and SFC:OP. It is quite challenging to play against, and will make any player sweat for a bit if he or she understand how the script works.

.. in other words, if you understand how it thinks, it can be used to play better online games.



1- The BPV for the AI, and the Multiplier Ratio:
------------------------------------------------

The BPV offered to each player is NOT used by the script. It is the basic BPV of the chosen ships which will be used to calculate the BPV of the AI.

For example:
If the Multiplayer is set to 1.8, and the base BPV is 300 per player, the AI does not get 540 BPV to choose ships from. The player could very well choose a 200BPV ship, with certain extra components added (drones, shuttles, etc) raising it to 220BPV.
The AI will then have 200 * 1.8 BPV. (360 BPV)

2- The BPV of extra components for the AI:
------------------------------------------

The items a player chooses will augment the BPV available for extra items on the AI ships. Items used in the extra BPV calculations are Marines, Transporter Bombs/Mines and Spare Parts.

For example:
The player has purchased a Lyran ship for 200BPV. He also purchased 20 BPV of extra t-bombs and spare parts. The AI will then have 20 * 1.8 BPV for extra items. (36 BPV)



3- AI ship selection, Parsing:
------------------------------

Images:

SFC:EAW Customizer:
 

SFC:OP Customizer:
 

The customizer gives hosts a chance of selecting which races are available for selection, and if they're going to be mixed or of a single race.

Note:
"Random" means a single random race among the selected races.
"Selected" means a mix of the selected races.


Then, the customizer allows a narrowed selection of hull types to be available to the AI. Also, a percentage has been made available to manipulate the distribution of the hull types within the generated fleet.


This isn't simple to explain, so bear with me:
The script is set to load the shiplist directly from the shiplist.txt and ftrlist.txt files. It then parses the ships according to their hull types. If the race of the ship being loaded is not of one of the chosen races, it will not be parsed for AI selection.


The parsing is also era-complient:

SFC:OP provides an API function which detects the current era. SFC:EAW required a different era-selection method, so it was added directly to the customizer. Era-complience can be put as simply as the following sentence: "Select all ships that are in SERVICE during the era chosen".

In the above images, you'll notice that the EAW Customizer has a section just for selecting the ERA.


So.. for example:
Ship F-CA+ is being parsed for selection.
- The era chosen is Late Era. Parsing continues with success.
- The Federation is a selected race. Parsing continues.
- The ship is a "Heavy Cruiser" and that hull type is available for the selection. Parsing continues.
- The ship is added to a smaller in-script shiplist just for the "Heavy Cruisers".


Note: In SFC:OP, fighters and PFs are parsed too. The appropriate era and race fighters can be made available on an AI ship. This makes the AI a difficult foe.

Note: In SFC:OP, Advanced era is the most difficult era to deal with, especially when dealing with "ships in service" phylosophy. So I did a small adaptation in case it is chosen:
- if 100% of the players are using xships, then 100% of the AI will also have xships.
- if 2 out of 3 players selected NON-xships in Advanced Era, then there's a 2/3 chance that the enemy selected will be a mix between NON-xships and xships.



4- The game begins:
-------------------

"The players have all chosen their ships. The game has actually begun, but it seems like everything is paused. What's happening?"


The AI ships are selected once the game begins. There is no AI team in gameplay yet. Technically, the game itself hasn't started yet as the host is still crunching away. Individual players, however, may be able to move and select "Red Alert"... .. and target each other. They may even see each other as enemy ships for a short period of time.



5- The AI ships are selected:
-----------------------------

Selection is done in a ever constricting loop. Each pass of this loop covers a potential selection of a ship for the enemy team. Here's how it works:

a- the player total BPV for ship selection is calculated here.

b- The loop begins. It ALWAYS begins with the largest hull type, battleships.

c- is the current hulltype turned on? If yes, continue. If no, select the next hulltype and go to step c. If no hulltypes are available, start game without enemy. The next hulltype after "Frigate" is "BattleShip": it loops around.

d- The hulltypes are: BattleShip, Carrier, Dreadnought, Heavy BattleCruisers, New Heavy Cruisers, Heavy Cruisers, Light Cruisers, War Destroyers, Destroyers and Frigates.

e- A random number between 1 and 100 is selected. It is compared with the "Odd" selected in the customizer. If the number chosen is smaller than the random number, a ship MAY be selected. Continue.   Otherwise, go to step c,
next hulltype.

f- A ship is chosen, randomly, from within a small shiplist created for this hulltype during parsing. If a ship is indeed chosen, it is compared with the BPV available. If there's enough BPV for the ship, the BPV available is reduced by the BPV ammount of the ship and the ship will be created. Go to step c.  If the ship costs too much, it is REMOVED from the small shiplist to prevent future selection. Go to step c.


The above continues until there is 0 BPV left for the AI, or not enough BPV to select anymore ships (most common). Leftover BPV will be used for extra item selection for the enemy ships.

There is room for 4 teams of 8 ships for the AI. The CoopAce script will not create more than 32 enemy AI ships.



6- The AI ships are equipped:
-----------------------------
The game starts.. but at about a second or 2 into the game, the AI ships are updated. The BPV for the AI's extra equipment can only be calculated once the game has started. The player's loadouts are compared to the stock version of their ships. Namely, Marines, TBombs and Repair Parts are tallied.

All AI ships are created outside of sensor range to give the game enough time to equip them fully before engaging the player ships in combat.



NOTE: No BPV is calculated for player fighters or drone load-outs. Why?
1- There is no function to find out the players' fighter loadouts. The AI will get era-complient fighters anyways (in OP only)
2- There is no working function to set the drones of the AI either. They get free era-based drones automatically anyways.


Anyways, the extra equipment BPV is calculated and the leftover BPV from ship selection is added to it. Then, 1 by 1, items are selected and randomly spread among the AI until there isn't enough BPV to distribute it. Like I said above, the AI ships get contemporary drone loadouts... and fighters. Trust me, Hornet-IIIs are impressive foes.



7- During the Battle:
---------------------

Here's a few things you should know:

1- enemy ships can be captured, but they will Self-Destruct. I have never been able to maintain a stable captured AI ship. It's just simpler for it to be destroyed if captured.

2- host drops will NOT force people to end the game. Traditionally, a host drop will cause all AI to go "zombie". A solution was found and applied, and although much parsing may be needed by the new host, the game will continue. In SFC:OP, the Carriers are stripped of fighters if the host changes. A new host selection caused a spontaeneous fighter regeneration within carriers. Not good.

3- the number of enemy units ay well go over 32 if carriers are involved. If this happens, some ships or fighters may seem to be "parked" in the distance. ...they will activate once enough enemies are killed.



8- Conclusion:
--------------

The coopace script is complex and complete. At this time, there are no plans for improvements, especially since there is very little room for it. Random terrain generation is doable, but not enough to affect the gameplay at tihs time. The only thing which would make me review and improve the coopace is an API update.
For example:
 - a working mSetDrones
 - creation of a mGetFighters
 - creation of a mGetShuttles
 - working capture code.


Enjoy the CoopAce, even if you are alone. If you're at a LAN Party, then it becomes a must-have. Good Luck, Have Fun and Good Hunting.


-- Luc
FireSoul

Edit: formatting.
Edit2: Added a proper sig for Strafer
Edit3: URLs for downloads. (oops? Thanks Mags.)
Edit4: Formatting, again, for the Haiku and poem.
Edit5: Comment on 762.
« Last Edit: December 31, 1969, 06:00:00 pm by FireSoul »

MagnumMan

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #18 on: March 19, 2003, 09:37:26 pm »
Let's not forget the seemingly crude combination names for BPV multiplier and AI difficulty:

The Easy Captain
The Hard Commodore
The Nasty Admiral

Pick your, well, you know.    

Oh, and you may want to tell people where to get it:

http://www.khoromag.org/

- Mags
« Last Edit: December 31, 1969, 06:00:00 pm by MagnumMan »

AdmiralFrey_XC

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #19 on: March 20, 2003, 02:27:04 am »
Excellent post, for an excellent history of a excellent script.

I just wanted to take the time to thank Roger, Mags and FS for all their work on this.

SFC wouldn't be the same with out the Co OP.



And, of course, it's mirrored @ XenoCorp.Net
« Last Edit: December 31, 1969, 06:00:00 pm by AdmiralFrey_XC »

FireSoul

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #20 on: March 20, 2003, 05:42:37 am »
Want more?

Screenshots:

1- During devellopment. This was a STABILITY test, where the limit of 32 ships was not imposed.
 woah.JPG
2- The coopace script WILL give the AI improved fighters.
 coopace-fighters1.JPG


-- Luc

kiloton

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #21 on: March 20, 2003, 09:33:11 am »
How does the OP Co-Op Ace do eras?  Will the computer AI always have access to X-Ships?  I saw reference to this a little in the post above as far as if 2/3rds of the people do not take X-Ships then there is a 2/3rds chance that the AI will have a mix of X and non X-Ships, etc.  What about if no-one takes X-Ships?  How much era control do you have in the OP version and how does it work?  Is it based on the era selection in the game startup?

This looks really great, BTW, and I am looking forward to trying it out.  Thanks!

Ken

 
« Last Edit: December 31, 1969, 06:00:00 pm by kiloton »

Strafer

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #22 on: March 20, 2003, 09:37:46 am »
In OP you can set the era in-game at the creation stage. EAW doesn't have such a function.
For advanced, the more X ships you take, the more likely the AI will have an X-only fleet as per rules of engagement.
If no one has an X ship in advanced, it'll be luck of the draw that determines if the AI has any X ships at all.

FireSoul

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #23 on: March 20, 2003, 11:51:28 am »
Think of it as rulesets:
If everybody picks an x-ship, then it uses this:
"All of my generated AI ships will be from the Advanced Era".

If noone picked an xship, then it uses:
"All of my generated AI ships will be ships that are in EXISTANCE during the chosen era.". The YearFirstAvailable and YearLastAvailable plays an important part.
This includes heavy battlecruisers, dreadnoughts, etc. ... all those ships continued to exist in advanced era, even with the appearance of x-ships.

If it's a mix of players (Say 4 out of 5) who picked x-ships, then:
There's a 4/5th chance that it will be 100% xships generated. There's a 1/5th chance that it will be a mixed fleet of ships that are in EXISTANCE during advanced era, including x-ships.


-- Luc

FireSoul

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #24 on: March 20, 2003, 02:53:14 pm »
A very good screenshot:

 coopace__vs_hydrans.JPG  

Strafer

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #25 on: March 20, 2003, 03:18:43 pm »
I remember that fight.
That I was able to cripple Hydrans with drones was stunning...
"Damn gatlings, why do I bot... they HIT?!?"  

Lord Marauder

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #26 on: March 27, 2003, 07:40:34 pm »
To Firesoul and Magnumman  Thankyou for your work on the co-op scripts.
I have had many enjoyable hours of playing from them.

Now here is a question that I am sure others may have asked.

Is there any chance for a Co-OP script for SFC3???

Wolf 359 can only be played so many times before it gets old.

Thank you for your time

And once again thankyou for the script thats so much fun.
 

FireSoul

  • Guest
Re: The Rise and Fall of the Coop-Ace Script: A Documentary
« Reply #27 on: March 27, 2003, 07:44:47 pm »
Not from me. I don't like SFC3.

Chris Jones

  • Guest
The Rise and Continuance of the Coop-Ace Script...
« Reply #28 on: March 27, 2003, 09:03:17 pm »
I would PAY for an SFC3 Co-op Ace..

seriously..

A note of thanks here to the Co-op ace team - I have been enjoying it since the 1st release of it..



 
« Last Edit: December 31, 1969, 06:00:00 pm by Chris Jones »

Chris Jones

  • Guest
Re: The Rise and Continuance of the Coop-Ace Script...
« Reply #29 on: March 28, 2003, 11:01:53 pm »
what? no-one responded to the PAY post?

FireSoul

  • Guest
Re: The Rise and Continuance of the Coop-Ace Script...
« Reply #30 on: March 28, 2003, 11:14:17 pm »
...
... how much?

Chris Jones

  • Guest
Re: The Rise and Continuance of the Coop-Ace Script...
« Reply #31 on: March 30, 2003, 10:37:23 am »

FireSoul

  • Guest
Re: The Rise and Continuance of the Coop-Ace Script...
« Reply #32 on: March 30, 2003, 12:49:26 pm »
Oh come on..
.. I really was joking. I don't even own SFC3. I tried it and didn't like it.

Sorry Chris, but I can't make myself do anythign for it.

-- Luc

Chris Jones

  • Guest
Re: The Rise and Continuance of the Coop-Ace Script...
« Reply #33 on: March 30, 2003, 01:58:00 pm »
well Ok -- but that is how much I would like to see a Co-op Ace for SFC3..

anyone who does that will be a hero of sorts, and I really would pay. I am not joking about that.