The mod you are trying to view has ceased development and consequently been archived. If you are a member of this mod, can demonstrate that it is being actively developed and will be able to keep this profile up to date with the latest news, images, videos and downloads, please contact us with all details and we will consider its re-activation.

Note that this mod has been discontinued in favor of my Homeworld Classic Enhanced mod, a compendium of Homeworld Classic and Gameplay Enhanced features. It also includes bugfixes not found here. See:

Title: Gameplay Enhanced v1.22
Created: 10/01/06 by Mikail
Last Updated: 04/05/08


This mod is a compilation of several, smaller mods I had made earlier; namely the Bentusi Roulette, Deathmatch Plus, Special Fleets and Defined Roles mods. It is a game-type mod that expands upon the existing Deathmatch game-type.


Extract this archive into your "Homeworld2\Bin\Gamerules\" folder. You must have also installed the Homeworld 2 1.1 patch in order for this mod to function.



  1. HW2 Normal: Same as HW2 default. A player is killed if he/she has no more production ships left.
  2. Kill Team Production: A player is killed if there are no team members with production ships.
  3. Kill All Enemy Ships: A player is killed if there are no team members with any ships.
  4. Quit Manually: The game doesn't end until one team quits and leaves the game.


In this game-mode, one player controls production and capital ships; another player controls fighters, corvettes and probes; and another player controls resourcing, frigates and platforms. If no players on a team choose the "Production/Capital" role, then all players on this team retain their mothership, carrier and production/research capability. If someone *does* select the "Production/Capital" role, then other players on the team do not suffer from a unit cap.


In this game-mode a selectable number of research options are randomly granted and restricted for each player at the beginning of gameplay.


This mode gives the player extended starting fleet options. You can choose from several different fleet makeups, each being composed of a different assortment of ships and research.

The following fleets are available:

Normal HW2 option:

  • HW2 default starting fleet


  • 12 Resource Collectors
  • 2 Resource Controllers
  • 0 Carriers



  • MS Research Module
  • MS Advanced Research Module
  • 0 Resource Collectors
  • 0 Carriers


  • MS Research Module
  • MS Fire Control Module
  • 0 Resource Collectors
  • 1 Carriers
  • Command Corvette already researched


  • 0 Resource Collectors
  • 2 Carriers


  • Carrier Cloak Module
  • Carrier Advanced Sensors Array
  • 3 Probes
  • 3 Scouts
  • 0 Resource Collectors
  • 1 Carriers
  • ECM Probe already researched
  • Scout Ping Ability already researched (Hiigaran only)


  • 0 Research Collectors
  • 0 Carriers
  • MS, Carrier, and Shipyard Build Speed Upgrade already researched.


  • Carrier Platform Module
  • 0 Research Collectors
  • 1 Carrier
  • 6 Gun Platforms
  • Gun Platform Health Upgrades 1 & 2 already researched


This setting allows one to slow the game down to a fraction of its default speed.


Turning this setting on causes additional end-of-game stats to be generated in your profile's "Stats" folder.


Here you can select which background track gets played while playing. There's also a "Shuffle" option to randomly switch between different songs.


I've externalized as much ship/subsystem/research-specific data as possible into a file, called "GameplayEnhanced_Config.lua" and located in your "Homeworld2\Bin\Gamerules\" directory. By editing this file you can make this mod compatible with your own. In this way, the mod can be used simply as a sort of a "plug-in".

Update: As of version 1.20, the AI scripts will also need to be modified in order to make this mod compatible with your own.


You're free to use this code in any way as long as proper credit is given for the work that I have done.


The discussion thread for this mod can be found here.


  • The Complex Team for their idea of using libraries to store the code for each game-mode.
  • Tamerlane for his "HW2Path" function.
  • evillejedi for the beginnings of the random music track script.
  • Luke "B1FF" Moloney for some of the code used for the WIN CONDITIONS setting.



  • DEFINED ROLES: Some speed optimizations.
  • DEFINED ROLES: RUs are now transferred to the poorest teammate instead of a random teammate. (Generally only an issue when SPECIAL FLEETS is also enabled.)
  • Restructured the way the different game modes communicate with each other regarding restricted and granted research items. DEFINED ROLES, SPECIAL FLEETS and BENTUSI ROULETTE are all fully compatible with each other now as a result. SPECIAL FLEETS in particular throws fewer errors since the changes were made.
  • Renamed several functions to be more descriptive.
  • DEFINED ROLES: AI *really* no longer considers building subsystems for ships no-one on the team can use. (Wasn't fixed properly for all instances in the previous release.)


  • DEFINED ROLES: Player can no longer research or build tech that no-one on the team can use. (Ooops!)
  • DEFINED ROLES: AI no longer considers building subsystems for ships no-one on the team can use. (This was causing the CPU to sit around mostly idle without spending all its RUs.)
  • DEFINED ROLES: Fixed error in clearing messages from the screen.
  • DEFINED ROLES: Ships belonging to other races (e.g., captured ships) are now properly transferred between players.
  • DEFINED ROLES: Now checks whether players are of the same race before trying to transfer research.
  • DEFINED ROLES: Added the "RoleFrigate", "RoleFighter" and "RoleCorvette" flags to "GameplayEnhanced_Config.lua". They're used in the AI scripts to tell the CPU which techs to ignore.
  • SPECIAL FLEETS: The gamerule now set up before DEFINED ROLES, just in case there's some incompatibility I didn't forsee.
  • SPECIAL FLEETS: Fixed the bug where it was trying to grant "ECMProbe" research to Vaygr players.
  • Changed the way "for" loops iterate through tables, as they were sometimes also returning the "n" property.

See the documentation included with the mod for earlier changes.


  • BENTUSI ROULETTE: The "textParse" function in "bentusiroulette.lua" doesn't parse required research logic properly. Not too big of an issue, hopefully.
  • DEFINED ROLES: CPU players won't build refineries.
  • DEFINED ROLES: CPU players can't detect when teammates have been attacked.
  • DEFINED ROLES: I had to use the "PlayersUnitTypeCount" function instead of "NumSquadrons" in order for the CPU AI to work. Unfortunately, there's a limit on the number of ship classes you can add to "classdef.lua", so I had to consolidate a few ships into similar groups. I hope it works!
  • DEFINED ROLES: It would be nice to have unit caps of some sort for the non-production players.
  • If SPECIAL FLEETS, DEFINED ROLES and BENTUSI ROULETTE are all enabled, some of the messages printed to the screen at the start of a game may cycle too quickly for the player to read them all.
  • SPECIAL FLEETS: I suppose that research and build items could also be *restricted* based upon the fleet that was chosen--but, I'd rather not.
  • DEFINED ROLES: AI likes to send collectors to weird places.
  • DEFINED ROLES: the "TradeShips" function is a bit hefty. I'm not sure whether it causes too much lag.
  • DEFINED ROLES: Should probably rename the "RoleCapital" variable to "RoleProduction", as it better reflects what it is used for.
  • SPECIAL FLEETS: Still throws too many errors for me to feel comfortable. They're inconsequential, but should be eliminated somehow anyway.
  • You can search through the source-code for the string, "issues", in order to find additional comments.
Post article RSS Articles

After a few years of sitting around on my web server, I finally uploaded it to ModDB. I tweaked a few things and externalized more code per a request. I'm pretty happy with how this mod has turned out. It's such a small mod!

Plans for the future: I hope to redo the special fleets, as I don't think they are currently balanced very well. There were also a few options I wanted to add, but they're pretty inconsequential.

Add file RSS Files
Gameplay Enhanced v1.22

Gameplay Enhanced v1.22

Full Version

More bugfixes. DEFINED ROLES, SPECIAL FLEETS and BENTUSI ROULETTE should all work together smoothly now. See change log, below.

Gameplay Enhanced v1.21

Gameplay Enhanced v1.21

Full Version

Bugfixes for the last version. No new features. See description below.

Gameplay Enhanced v1.20

Gameplay Enhanced v1.20

Full Version

The main update in this version is that the CPU is now somewhat intelligent when playing with the DEFINED ROLES setting enabled. See the readme file that...

Gameplay Enhanced v1.10

Gameplay Enhanced v1.10

Full Version 2 comments

Version 1.10 of Gameplay Enhanced for Homeworld 2.

Gameplay Enhanced v1.02

Gameplay Enhanced v1.02

Full Version

CHANGES IN 1.02 • The list of music tracks is now determined by the PlayList table in "GameplayEnhanced_Config.lua". • Moved playlist to config file...


Very cool mod
Downloading it right now and following for future updates(if there are going to be any)

Reply Good karma Bad karma+1 vote

Mikail I need your help with adapting your mod into HW style, please contact me.

Reply Good karma Bad karma+1 vote

great work btw.

Reply Good karma Bad karma+2 votes
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Homeworld 2
Send Message
Release date
Mod watch
Community Rating



5 votes submitted.

You Say


Ratings closed.

Embed Buttons
Link to Gameplay Enhanced by selecting a button and using the embed code provided more...
Gameplay Enhanced
Last Update
12 members