Company of Heroes 2

Company of Heroes 2

533 ratings
Infantry Only Game Mode
2
2
   
Award
Favorite
Favorited
Unfavorite
Item Type: gamemode
File Size
Posted
Updated
577.321 KB
14 Jul, 2015 @ 10:51pm
26 Oct, 2022 @ 2:07pm
19 Change Notes ( view )

Subscribe to download
Infantry Only Game Mode

In 1 collection by Trigg
Infantry Spectrum Game Modes
8 items
Description
Description:

Re-implements the Infantry Emphasis Game Mode to make vehicles unafordable. You can use it with your favorite tuning pack that makes other kinds of changes.


Features:
  • Eliminates vehicles by making them too expensive. Exceptions: US ambulances and OKW sWS halftracks.
  • Resource adjustments:
    • Removes the AI's resource cheats. Humans and AIs now get the same base resource income rates.
    • Further reduced the Hard AI's munitions income by 50%, to cut back on excessive bombardments.
  • Allows selecting a population cap of 100, 250, 500, or use the map's default.
    • If you set the population cap up to 250 or 500 the upkeep cost is lowered in proportion, so that you can keep building units longer.
  • Allows the camera to zoom out 4x as far as default. (Beyond a certain point the units and other details will be hidden by the fog, but you still get a good overview of the landscape.)

Compatability:
  • This game mode is known not to work with the following tuning packs:
    • All Units mod Now works! - thank SneakEye for the fix
    • Spearhad
  • For my Late 1944 tuning pack, you must use the no-commanders version of this game mode.
  • It does work with my German Metafaction tuning pack, except allows building trucks and halftracks to be built to bring in Panzergrenadiers.
  • Not expected to work with other tuning packs that add new call-in vehicles, or where some vehicle builds are enabled by player choices after the game starts.
  • For maps and other tuning packs you'll just have to try it and see. Please post results in the Comments so other players can benefit from your experience.

Known Problems:

Vehicles are still shown in the build menus and call-ins. I do not know of a way to remove them and have this still work with most tuning packs.

See note on Memory Usage below.


The variants will show up in your game options as something like:

Inf Only / AN p100
Inf Only / VP p500

where "AN" = "annihilation", "VP" = "victory points", "p100" = "population cap 100", "p500" = "population cap 500".

Options with no population cap mentioned use the map's default population cap.


Memory Usage:

Apparently applying a lot of modifiers with a script eats up a lot of memory. I reworked the code to try to minimize this. However, if CoH2 crashes while trying to start a game it may be because the game+mod used up all your memory. Try restarting with an identical setup, except without this mod. If it starts OK, you will know that the mod's memory usage pushed your system over the edge.

Things that might help:
  • Close other applications before starting the game.
  • Reduce your graphics settings to reduce the load on your system.
  • Play the map with fewer players, e.g. 6 instead of 8.
  • Play on smaller, less-detailed maps.
  • Play without the mod.
I have an old system, and there are a few maps that I can't play with this mod. Reworking the code made a few of them playable, but some of them still won't work. Tell Santa that I need a new computer!


Related Mods:

See the list of my Infantry Spectum tuning packs,
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=808737999


If you spot a unit that I missed, or any other problem, please post it to the discussion and I will look at. Be sure to tell me what map and tuning pack you were using.
209 Comments
mankol 19 Apr @ 8:41pm 
The mod (all units (170) there ability to call in reinforcements that allows a player to get tank and vehicles.
mamnaimie mr m 10 Jan @ 9:44am 
cool
Merch 28 Apr, 2024 @ 4:56pm 
Need resources cap x2, x5, x10 pls
Trigg  [author] 1 Mar, 2024 @ 3:37pm 
@Gamer-Idiot - Thanks. I originally implemented it as a tuning, but I think someone suggested re-implementing it as a game mode for the very reason you specify. That also allowed the Infantry Emphasis and other variants without an excessive amount of work.
Gaming-is-for-losers 1 Mar, 2024 @ 2:41pm 
Love this mod, it actually seems to prevent tanks from 'sneaking in' unlike the other "Infantry Assault" mod. Furthermore, the fact that it's a win condition means you can use it alongside other mods. Awesome.
Trigg  [author] 9 Jan, 2024 @ 2:20am 
It requires some programming. If you're a programmer the basic algorithm is to loop over all the players using

for p = 1, World_GetPlayerCount() do

then inside the loop use Modify_PlayerResourceRate(p, ... ) to set each resource.

Use your search engine to find instructions for creating a game mode, and for the scar documentation that will tell you how to use the scar function mentioned above.
Ceito 3North 8 Jan, 2024 @ 9:07pm 
*Glitshy
Ceito 3North 8 Jan, 2024 @ 9:05pm 
Trigg! Do you know of Glishy's resource 5x and 10x game modes? I looked at some guides online and it looks easy to do for individual maps.

If you have the time consider creating, otherwise would you please be willing to help explain how to mod your game mode to allow 5x resources? I really like how it makes the start of games much more intense with no lull in production.

I have so much fun with your mode, I play it pretty much exclusively now. I just want MORE shock infantry and 120mm mortars per second, 10x more would be fun :D
BlackHearts 27 Dec, 2023 @ 12:41am 
it happen when i played the all unit mod but i'm glad you are fast responding to his issue. Keep up the good work with the gamemode :steamthumbsup:
Trigg  [author] 26 Dec, 2023 @ 3:14am 
I was not aware that it did not work with saved games.

Possibly, since the mod has some scripts that run only when the game first starts, they do not run again when a savegame is loaded. I'll have to think whether there's a way to force them to run again when a game is reloaded.