No unit cap, here to stay?

Discussion in 'Backers Lounge (Read-only)' started by h4344, September 5, 2013.

  1. h4344

    h4344 New Member

    Messages:
    28
    Likes Received:
    11
    I was just wondering if we could expect the no unit cap feature to stick around or if it is planned to be changed? I personally like the idea of no limit to the number of men i can throw at a target, give the game a better feel to it.
  2. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    I'm doubt it's will change. Resource limit and map size (solar system size, number of planets) will done this job much better than some number.
    slavetoinsurance likes this.
  3. menchfrest

    menchfrest Active Member

    Messages:
    476
    Likes Received:
    55
    There is a unit limit whether or not you have one set. At some point you will make the server crash(or lag really bad). Now I believe it has been said that there will be a limit, but you can change it and just disable it.
  4. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    I'm really doubt you can crash server only with large units count. I'm tried do that in last few builds, but simulation slow down come much faster than that. Currently it's usually going too slow after 10,000 units.
  5. KNight

    KNight Post Master General

    Messages:
    7,681
    Likes Received:
    3,268
    Thus why he had the bit in the parentheses? ;p

    There will likely be A limit, it might be dynamic based on the hardware running the server, but most likely it'll just be a set number. Either way it doesn't matter because it will likely be large enough such that it won't get in the way of gameplay, much like SupCom's 1000 unit limit. How many time did you actually hit the limit 1000 in SupCom aside from time when you specifically set out to hit it? PA's unit limit will have the same idea behind it.

    Mike
  6. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Just few times when I played online. But all the time when played with friends over LAN or with AIs.

    I want to believe it's won't count walls as unit then. :)

    Anyway I don't sure that supcom-like unit cap is important at all.
    tatsujb likes this.
  7. neutrino

    neutrino low mass particle Uber Employee

    Messages:
    3,123
    Likes Received:
    2,687
    We may add in a unit limit for those that want such a thing in the game options, but it's certainly not a high priority. If we did so it would just be a field in each unit denoting cost so it can be tuned (like for example the walls example).
  8. bgolus

    bgolus Uber Alumni

    Messages:
    1,481
    Likes Received:
    2,299
    And, actually, neutrino is lying. The game already has a unit cap, it's 2,147,483,647 units over the lifetime of a game.

    edit: It's been pointed out that an unsigned 32 bit int max is 4,294,967,295, not 2 billion.
    Last edited: September 6, 2013
    lokiCML, BulletMagnet and h4344 like this.
  9. menchfrest

    menchfrest Active Member

    Messages:
    476
    Likes Received:
    55
    Does the mass of all those units at that point collapse into a black hole that consumes the earth?
  10. rick104547

    rick104547 Member

    Messages:
    305
    Likes Received:
    17
    Would it be possible to reach that amount of units with todays hardware (lets say you have some epic gaming pc)? How long would it take XD.
  11. bgolus

    bgolus Uber Alumni

    Messages:
    1,481
    Likes Received:
    2,299
    Alright, I'll bite.

    Lets assume a completely featureless 3000 meter radius planet that's 100% buildable:
    Surface area is ~113,097,336 m² (rounded up)
    Lets assume we can fit factories to 100% use that space (totally inaccurate, but just roll with it):
    Bot Factory footprint is 900 m²
    113,097,336 / 900 = ~125,664 (rounded up again)​

    Now lets assume your army has infinite metal and energy they're all spitting out Dox bots (the cheapest) with out assistance. Current numbers for the factory (180 metal for Dox / 12 metal build rate + 4 second roll off time) mean it can build one unit every 19 seconds.

    125,664 factories making 1 unit every 19 seconds is a rate of ~6,614 (rounded up) units per second.

    (2,147,483,647 4,294,967,295 max units - 125,664 factories are units) / 6,614 units built per second = ~324,668 649,356 seconds (rounded down)
    ... or around 3.7 7.5 days.

    Really though, you're going to run in to a few problems. One is we made the assumption that we used 100% of the land space for factories, which is impossible and where would 2.1 billion units fit on the planet? Dox bots by themselves would use 170,891,318 m² assuming 100% usage, which is again totally wrong, but we could also have just been on a bigger planet and solve both of those. Second issue is how long it would have taken to have built 125,664 factories, and how many energy plants and metals spots would of been needed to actually get the resources. So it's probably going to add a day or two on to that even with multiple commanders and multiple planets.

    We could also just use a 64 bit uint instead of a 32 bit uint which would push that time to >88,400 millennia to run out. :D

    edit: I could also not have used the wrong number for a 32 bit uint to being with...
    Last edited: September 5, 2013
  12. rick104547

    rick104547 Member

    Messages:
    305
    Likes Received:
    17
    Well guess we wont be hitting that hard cap anytime soon. Thanks for answering XD.
  13. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    More 64-bit vars for 64-bit god! :D
    carpetmat likes this.
  14. h4344

    h4344 New Member

    Messages:
    28
    Likes Received:
    11
    Now make that integer variable unsigned and we will be getting somewhere :D unless for god knows whatever reason you need to know if someone has negative units.
  15. bgolus

    bgolus Uber Alumni

    Messages:
    1,481
    Likes Received:
    2,299
    Woops! It is an unsigned 32 bit int, so that number is 4,294,967,295! The real calculation is just over 7.5 days!
    h4344 likes this.
  16. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    So neutrino is lying about there not being a unit limit at all and you were trying to CUT IT IN HALF.

    Damn you guys are all such liars :p
  17. bgolus

    bgolus Uber Alumni

    Messages:
    1,481
    Likes Received:
    2,299
    Just remember kids, this is what happens when you have off by one errors!
    (signed 32 bit int = 2^31-1 vs unsigned 32 bit int = 2^32-1)
    infuscoletum likes this.
  18. infuscoletum

    infuscoletum Active Member

    Messages:
    606
    Likes Received:
    37
    PA's version of the (almost)INFINITE WAR!!!!!!!!
  19. h4344

    h4344 New Member

    Messages:
    28
    Likes Received:
    11
    If people are still alive long enough to reach that unit count then someone is doing something wrong.
  20. kryovow

    kryovow Well-Known Member

    Messages:
    1,112
    Likes Received:
    240
    some probably will play in sandbox mode alone without enemies to test that out. i would probably do it some time.
    infuscoletum likes this.

Share This Page