Page 6 of 10 FirstFirst 12345678910 LastLast
Results 101 to 120 of 191

Thread: Hardcoded limits

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: Hardcoded limits

    Sorry, if i actualize this topic, but there are another limit for the 3d model:

    We can have only 9 objects.
    These 9 objects are or can be:
    -legs (+ feet)
    -arms (+ hands)
    -body (with head and helmet, for helmet i am not sure)
    -pouch
    -primaryactive weapon
    -secpndary active weapon
    -shield
    -plume
    ....

    But i think that we can have more object, the best is to group them (for sample: primary and secondary active together, RTW will believe there are one object).
    I didnt tested for MED2.


    In the beginning of this topic, i read the limit of polygon was 20 000 for strat_model, and for model_unit? I didnt found in the wiki and in TW.org forum.

    For the EDU/DMB, we can broken the limit, in fact, not exactly, Tone use a special technic for his texture with RS2.

  2. #2
    Halie Satanus's Avatar Emperor of ice cream
    Join Date
    Nov 2005
    Location
    London
    Posts
    19,971
    Blog Entries
    1

    Default Re: Hardcoded limits

    Ideally, CA should have released updated .exe files supporting all features for all 3 games, but that's just wishful thinking.
    *Sigh, if I had a pound for every time I thought the same ..

  3. #3

    Default Re: Hardcoded limits

    Hello! Maximum amount of historical events in RTW 1.6 (BI) is 240!
    With historic events I mean also plagues and volcanoes!
    Last edited by Acroneos; July 19, 2014 at 02:38 PM.
    "The only thing we learn from history is that we never learn from history."
    CPU: Intel Core i7-4790K 4,0 Ghz LGA 1150 | GPU: MSI AMD Radeon R9 280X 3GB DRR5 | RAM: G.Skill TridentX PC3-19200U CL10 16 GB | SSD: Samsung 840 EVO Basic 500 GB SATA 6 GB/s | PSU: be quiet! Pure Power L8 CM 630 Watt | MBU: ASRock Fatal1ty Z97 Killer LGA1150 ATX
    Steam | Origin | Battlelog | Pics
    Austrian Company GC

  4. #4

    Default Re: Hardcoded limits

    I am waiting for your suggestions people.. ;-)

  5. #5

    Default Re: Hardcoded limits

    Alex, then.

  6. #6

    Default Re: Hardcoded limits

    Ok thx a lot man. I hope I can still ask you in future if I need help..

  7. #7

    Default Re: Hardcoded limits

    I have been told more than once that having more than 30(or 33, something like that) units in the recruitment scroll makes the game crash. Well, sometimes I have 40 or more units and no CTD happens...


  8. #8
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Hardcoded limits

    30 is definitely the limit.

    @Spartan 666 - Remember that there are less than 10 units in a row on the recruitment screen, so just because you have 4 rows to chose units from does not mean that you have >= 40 units that can be recruited.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  9. #9
    Eat Meat Whale Meat
    Technical Staff Citizen Moderator Emeritus

    Join Date
    Jun 2006
    Posts
    15,812

    Default Re: Hardcoded limits

    32 is the limit. That may have been my first interaction with Sim.

    On the city scroll, on the recruitment screen, there appears to be a limit of 32 units available (3 rows of 9 plus another 5). Adding a 33rd CTDs. Is this a hardcoded limit, or can it be changed somewhere?

    Yeah. The unit list is arrayed in rows of 9, and there is a scroll bar on the right when you get past the first 2 rows. However, once the number of recruitable units goes past 32, going to the recruitment screen CTDs.

    Oh, and I'm using 1.0 vanilla.

  10. #10

    Default Re: Hardcoded limits

    Thx all for the replies. My case though shouldn't be the recruit number limmit per settlement but something else. As the crash happens when i try to open the building info (or cards or whatever - hope it's clear enough cause answers wasn't exactly on that and my english isn't good) only of the last 2 levels of barracks and stables (deppending on faction). Thats why i suspect it has to do with high number of units. Could it be something with units per building per settlement or max number of units a building description can hold? Or have i messed up something i ignore as a beginer?
    Last edited by Against The Grain; January 11, 2009 at 10:23 PM.

  11. #11
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: Hardcoded limits

    Quote Originally Posted by Against The Grain View Post
    Thx all for the replies. My case though shouldn't be the recruit number limmit per settlement but something else. As the crash happens when i try to open the building info (or cards or whatever - hope it's clear enough cause answers wasn't exactly on that and my english isn't good) only of the last 2 levels of barracks and stables (deppending on faction). Thats why i suspect it has to do with high number of units. Could it be something with units per building per settlement or max number of units a building description can hold? Or have i messed up something i ignore as a beginer?
    Do you have any units who's recruitment is conditional on another building being present? If you do and they are built in a building that also has some other bonus (like races) that can cause a CTD when you try and view building info.

  12. #12

    Default Re: Hardcoded limits

    Do you have any units who's recruitment is conditional on another building being present? If you do and they are built in a building that also has some other bonus (like races) that can cause a CTD when you try and view building info.
    This should be it, thx

    Any clue why it happens/ if it can be fixed without removing the bonuses?

  13. #13
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Hardcoded limits

    Another typical no message CTD on the recruitment window is with traits/ancillaries missing text descriptions. If you have family members or recruited generals in the settlement take them out and then try to view the building scroll.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  14. #14

    Default Re: Hardcoded limits

    It happens because EDB is coded weirdly.

    You can fix it, indirectly. You can:
    1) Give that unit a weapon type that is unused by any other units
    2) Make the core buildings give a penalty to that weapon type (a unit with a weapon type that receives modifiers the total of which < 0 becomes unavailable for recruitment)
    3) Make the required building give a bonus to that weapon type which will negate the penalty from the core building
    4) Remove the condition which includes that building and causes that CTD

    I'm sure Mak MoN someone will come up with a more straightforward way...
    Last edited by Aradan; January 12, 2009 at 09:00 AM.

  15. #15

    Default Re: Hardcoded limits

    Well it seems like it wasn't just the extra bonuses. Noticed that late stables caused the cd when trying to open the building info scroll due to the races bonus. And removing it as Makanyane said fixed this as an overall stables problem.

    But in some provinces with high number of units per building, at the last levels of barracks/stables (after removing the bonuses), it still happens. Tried removing some of the units recruited in those areas and it worked. So it might be:

    a) Reaching the unit limmit will cause ctd even at building info opened from building browser, even without having the invalid number of units recruitable yet.

    b) Building info display or units recruitable per building have a limmit.

    Or something i got no clue about..

    Any ideas?

  16. #16

    Default Re: Hardcoded limits

    Probably exceeded the limit of 30 units available for training. Try putting those buildings back in, but outcommenting their recruitment lines in EDB.

  17. #17

    Default Re: Hardcoded limits

    For sure it works ok with less units. What mostly wanna mention is this (said it but either it's not important or u didn't pay attention to it, and that's what i find strange here and not sure its the 30 unit limmit):

    I've understood that at 30 units recruitable at the que ctd comes. But till they appear at the que it's ok. But my ctd is caused when trying to open the building info at the building browser at the first turn of the game, with low number of units recruitable. And also counting that a stable or barracks will contain less than half of the units for the region. So that's why i think it might not be just the limmit.
    Last edited by Against The Grain; January 15, 2009 at 07:42 AM.

  18. #18
    MasterOfNone's Avatar RTW Modder 2004-2015
    Join Date
    May 2005
    Location
    England
    Posts
    16,707

    Default Re: Hardcoded limits

    Do not use buildings as conditionals for unit recruitment lines (unless you use the building image to mask the text).

    The bonus problem, if I remember rightly, kicks in once only a few units are active in a region anyway.

    You should post your code and then Mak or Aradan will be able to help you more
    "One of the most sophisticated Total War mods ever developed..."
    The Fourth Age: Total War - The Dominion of Men

  19. #19
    AqD's Avatar 。◕‿◕。
    Join Date
    Dec 2007
    Location
    🏡🐰🐿️🐴🌳
    Posts
    10,897

    Default Re: Hardcoded limits

    the limit is only put on elements with "skin" modifier as far as I know.

  20. #20
    MasterOfNone's Avatar RTW Modder 2004-2015
    Join Date
    May 2005
    Location
    England
    Posts
    16,707

    Default Re: Hardcoded limits

    Originally Posted by kongming
    In export_descr_character_traits, the maximum number of "Affects" results that you can have in a single trigger is 11. Exceeding this number results in a CTD during loading.
    Interestingly I had this issue lately and found that 10 was the limit, and the 11th caused the CTD. However, it might be due to the total number of lines rather than just the Affect lines - something someone with more time than me may want to test.

    I also found the CTD occurred during the end-turn phase and not durung campaign or game load.
    "One of the most sophisticated Total War mods ever developed..."
    The Fourth Age: Total War - The Dominion of Men

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •