Option or mod to force a unit cap?

Discussion about the game and its default mods.
Post Reply
User avatar
Blake00
Posts: 14
Joined: Sat Apr 15, 2017 12:07 pm
Location: Australia
Contact:

Option or mod to force a unit cap?

Post by Blake00 » Mon Jul 17, 2017 11:09 am

Hi guys,

Been playing some openra games on large maps with lots of enemy players where we've experienced epic slow downs. I'm some cases we've given up on the game becuase it became so darn slow. In other cases we eventually were able to speed up the game by killing people off before it got too insanely slow. In all cases it was due to the AIs spamming out endless cr*ppy troops and then positioning heaps of them around the map instead of attacking with them.

So I was wondering if there's a not so obvious option somewhere or a 3rd party mod that allows you to force a unit cap (whatever number you want) in openra like the old games used to do?
Last edited by Blake00 on Sun Sep 16, 2018 12:14 pm, edited 1 time in total.
Image
Blake's Sanctum:

- Total Conversion mods: Quest for Glory IV 3D Hexen, Star Trek Doom 2, & Star Wars Civilization 2
- Game Shrines: Age of Wonders, Babylon 5 Fan Games, Civilization, Command & Conquer, Elder Scrolls, Dune Games, Final Fantasy, Freelancer, Heroes of Might & Magic, Imperium Galactica, Master of Magic, Quest for Glory, Starflight, & Star Trek Games
- MovieTV Shrines: Lord Of The Rings & Hobbit, & Star Trek
- Emulation

SirCake
Posts: 329
Joined: Thu Feb 04, 2016 5:40 pm

Post by SirCake » Mon Jul 17, 2017 4:20 pm

1. Get better PC
2. Play with people wo have good (green) ping on massive maps
3. Dont play massively silly maps
4. Don't give silly move orders to units because pathfinding will wreck your FPS
5. Don't play vs AI, only noobs do that
6. Mod anything you want with openRA! Its DIY software ;)

Check out Dune2k-Advanced on my moddb page!

User avatar
JOo
Posts: 510
Joined: Wed Jan 25, 2012 8:12 pm

Re: Option or mod to force a unit cap?

Post by JOo » Mon Jul 17, 2017 10:05 pm

Blake00 wrote: So I was wondering if there's a not so obvious option somewhere or a 3rd party mod that allows you to force a unit cap (whatever number you want) in openra like the old games used to do?
Would be nice to have that for modders, a yaml-option to cap units (specific types of units or from specific buildings that produce units)

actually we do have that for tanya (you can only have one at a time ... or some tech-buildings (nuke silo ...) ... so it should be possible ... i would check those units/buildings out in the yaml-rules to see what limits them

User avatar
Inq
Posts: 89
Joined: Sun Sep 27, 2015 2:48 am

Re: Option or mod to force a unit cap?

Post by Inq » Mon Jul 17, 2017 10:51 pm

JOo wrote:
Blake00 wrote: So I was wondering if there's a not so obvious option somewhere or a 3rd party mod that allows you to force a unit cap (whatever number you want) in openra like the old games used to do?
Would be nice to have that for modders, a yaml-option to cap units (specific types of units or from specific buildings that produce units)

actually we do have that for tanya (you can only have one at a time ... or some tech-buildings (nuke silo ...) ... so it should be possible ... i would check those units/buildings out in the yaml-rules to see what limits them
You could mod unit limits into the AI rules file (specifically for AI) , although i'm not sure if the bot would malfunction if it reached a hard limit and had nothing to build.

User avatar
MustaphaTR
Posts: 198
Joined: Mon Aug 04, 2014 6:38 am
Location: Kastamonu, Turkey

Post by MustaphaTR » Tue Jul 18, 2017 7:10 am

I think you may try to make AI's SquadSize: smaller, that would make AI attack often (as squad gets completed quicker) but no big groups of enemy units would appear i guess.

UnitLimits: as Inq said may lock the AI, but you can keep a unit (Rifle Inf maybe) limitless so AI would build it if it has nothing else to build.

Or wait for #12949 to be merged so we can get a properer AI. I don't think will happen soon tho, maybe for next+1 version, as next is almost ready for a playtest. AFAIK forcecore is still working on that, but PR hasn't been updated for a while.

User avatar
Raishiwi
Posts: 99
Joined: Mon Nov 14, 2016 11:18 pm

Post by Raishiwi » Tue Jul 18, 2017 4:32 pm

I didn't know team game players had good enough macro to cause this type of issue. :P jk. Though it could make for some good playtes

User avatar
WhoCares
Posts: 287
Joined: Mon Feb 13, 2017 11:28 pm

Post by WhoCares » Tue Jul 18, 2017 6:07 pm

Raishiwi wrote: I didn't know team game players had good enough macro to cause this type of issue. :P jk. Though it could make for some good playtes
It's not about the macro, they just play huge ridiculous map allowing them to "sim-city", more than the units, it's the building count, there is no so much fights in those games.

lucassss
Posts: 144
Joined: Mon Jan 04, 2016 1:55 pm

Post by lucassss » Wed Jul 19, 2017 8:49 am


User avatar
Materianer
Posts: 189
Joined: Mon Jul 04, 2016 8:27 am

Post by Materianer » Wed Jul 19, 2017 1:07 pm

hi,
you can add these lines of code to any map.

Code: Select all

Rules:
+World:
++^Soldier:
+++Buildable:
++++BuildLimit: 50
++E7:
+++Buildable:
++++BuildLimit: 1
++^Plane:
+++Buildable:
++++BuildLimit: 15
++^Helicopter:
+++Buildable:
++++BuildLimit: 15
++^Tank:
+++Buildable:
++++BuildLimit: 30
++^Vehicle:
+++Buildable:
++++BuildLimit: 20
++^Defense:
+++Buildable:
++++BuildLimit: 10
++MSLO:
+++Buildable:
++++BuildLimit: 1
++IRON:
+++Buildable:
++++BuildLimit: 1
++PDOX:
+++Buildable:
++++BuildLimit: 1

Just save it unpacked in your mapeditor, open the map.yaml and add the code at the end of the file.
Don't forget to replace the + with tabs!
Then just save it packed with a new name and upload it to the resource center if you want to play it online.

I don't know how the ai will behave with such rules but you can try it.

The problem with lagging ai games on big maps is old and i just found out what could be the problem with it.

If the ai has harvesters but no available resources the hard lag starts.

I will research later if it also maybe caused if his resources are consumed and the next orefield is far away. I hope this info will help the developers then to delete this lag then.

User avatar
Blake00
Posts: 14
Joined: Sat Apr 15, 2017 12:07 pm
Location: Australia
Contact:

Post by Blake00 » Fri Jul 21, 2017 6:35 am

SirCake wrote: 1. Get better PC
2. Play with people wo have good (green) ping on massive maps
3. Dont play massively silly maps
4. Don't give silly move orders to units because pathfinding will wreck your FPS
5. Don't play vs AI, only noobs do that
6. Mod anything you want with openRA! Its DIY software ;)
Thanks for the advice. This may shock you but not everyone is a programmer nor do they use OpenRA for the same reasons you do. ;)

My friends & I use desktop I7s, we play over a LAN and enjoy team matches against AIs. We're not interested in being some amazing tournament player lol, we just wanna have our own fun. I've seen complaints about slow downs for years now so telling people they can't use the larger maps that come with the game instead of working on the issue doesn't seem like the best way to go about it.
Materianer wrote: hi,
you can add these lines of code to any map.

Code: Select all

Rules:
+World:
++^Soldier:
+++Buildable:
++++BuildLimit: 50
++E7:
+++Buildable:
++++BuildLimit: 1
++^Plane:
+++Buildable:
++++BuildLimit: 15
++^Helicopter:
+++Buildable:
++++BuildLimit: 15
++^Tank:
+++Buildable:
++++BuildLimit: 30
++^Vehicle:
+++Buildable:
++++BuildLimit: 20
++^Defense:
+++Buildable:
++++BuildLimit: 10
++MSLO:
+++Buildable:
++++BuildLimit: 1
++IRON:
+++Buildable:
++++BuildLimit: 1
++PDOX:
+++Buildable:
++++BuildLimit: 1

Just save it unpacked in your mapeditor, open the map.yaml and add the code at the end of the file.
Don't forget to replace the + with tabs!
Then just save it packed with a new name and upload it to the resource center if you want to play it online.

I don't know how the ai will behave with such rules but you can try it.

The problem with lagging ai games on big maps is old and i just found out what could be the problem with it.

If the ai has harvesters but no available resources the hard lag starts.

I will research later if it also maybe caused if his resources are consumed and the next orefield is far away. I hope this info will help the developers then to delete this lag then.
Thanks Materianer! This is great! :) We'll try this out at our next lan party.
Last edited by Blake00 on Sun Sep 16, 2018 12:14 pm, edited 1 time in total.
Image
Blake's Sanctum:

- Total Conversion mods: Quest for Glory IV 3D Hexen, Star Trek Doom 2, & Star Wars Civilization 2
- Game Shrines: Age of Wonders, Babylon 5 Fan Games, Civilization, Command & Conquer, Elder Scrolls, Dune Games, Final Fantasy, Freelancer, Heroes of Might & Magic, Imperium Galactica, Master of Magic, Quest for Glory, Starflight, & Star Trek Games
- MovieTV Shrines: Lord Of The Rings & Hobbit, & Star Trek
- Emulation

User avatar
Wippie
Posts: 99
Joined: Tue May 31, 2016 12:41 pm

Post by Wippie » Fri Jul 21, 2017 7:49 am

Blake00 wrote:
Thanks Materianer! This is great! :) We'll try this out at our next lan party.
Also, try identifying the weakest link by leaving the game 1 by 1. I know there used to be performance problems, especially when one of the clients processors was too slow,

Have fun!

Post Reply