Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3

Author Topic: Max Number of Reactions?  (Read 2479 times)

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Max Number of Reactions?
« Reply #15 on: August 28, 2011, 12:15:22 pm »

There are 225 builtin jobs in version 0.31.25, one of which is "Perform Custom Reaction" (and uses a parameter of some sort to indicate just which custom reaction is being performed), so the number of custom reactions shouldn't be limited by the number of "real" jobs...
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Max Number of Reactions?
« Reply #16 on: August 28, 2011, 03:26:55 pm »

This concept is distressing... I already have 206 custom reactions (default vanilla alloy making included) and I fear I might just have alot more reactions... That means I only have 75 spots for new reactions... but if I exclude the vanilla alloy reactions (44) I have 162 custom reactions.

Which number of reactions am I looking at?
The 206?
or
The 162? (minus Default Reactions)
Logged

Roses

  • Bay Watcher
    • View Profile
Re: Max Number of Reactions?
« Reply #17 on: August 29, 2011, 07:07:36 pm »

I don't know if the limit is as simple as a pure number. I have upwards of 500 reactions in my dwarf entity (mixed a couple of the bigger mods) and from what I can tell they are all available. Maybe there is a limit to the overall entity size?
Logged

Mephansteras

  • Bay Watcher
  • Forger of Civilizations
    • View Profile
Re: Max Number of Reactions?
« Reply #18 on: August 30, 2011, 11:58:28 am »

Interesting.

I have 1112 total lines in my dwarf entity. It is still in entity default, haven't tried moving it to a separate file  yet.
Logged
Civilization Forge Mod v2.80: Adding in new races, equipment, animals, plants, metals, etc. Now with Alchemy and Libraries! Variety to spice up DF! (For DF 0.34.10)
Come play Mafia with us!
"Let us maintain our chill composure." - Toady One

Roses

  • Bay Watcher
    • View Profile
Re: Max Number of Reactions?
« Reply #19 on: August 30, 2011, 03:07:07 pm »

Just double checked. Added a couple new reactions at the end of my reactions section in the entity file. They all were available, so I don't know what it might be.
Logged

Mechanixm

  • Bay Watcher
    • View Profile
Re: Max Number of Reactions?
« Reply #20 on: August 30, 2011, 04:29:31 pm »

When I notice that my reactions are missing I check three things:

1.  Verify that the reaction exists in only one [Object:Reaction] txt file.
2.  Verify that the building the reaction refers to doesn't have a typo in the name
3. (Note your issue) Verify the reaction is in entity_default

Mephansteras

  • Bay Watcher
  • Forger of Civilizations
    • View Profile
Re: Max Number of Reactions?
« Reply #21 on: August 30, 2011, 04:31:27 pm »

Yeah, I did all those things. Like I said, the ONLY thing I changed to get them to show up was to remove a few reactions from above them in the list.

But if Roses has way more reactions than I do and they work...it's odd. I'll have to do some more testing. See if I can figure out what might be effecting it.
Logged
Civilization Forge Mod v2.80: Adding in new races, equipment, animals, plants, metals, etc. Now with Alchemy and Libraries! Variety to spice up DF! (For DF 0.34.10)
Come play Mafia with us!
"Let us maintain our chill composure." - Toady One

Roses

  • Bay Watcher
    • View Profile
Re: Max Number of Reactions?
« Reply #22 on: August 30, 2011, 05:25:10 pm »

I have all of Genesis, all of Civ Forges Alchemy and Ironworks (in Genesis), and most of LoFR's reactions as well so I know I am well over 280 reactions. I'm not positive, however, that all the reactions are working, all I did was add reactions to the bottom of the list and checked to make sure they were available.
Logged

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: Max Number of Reactions?
« Reply #23 on: August 30, 2011, 06:36:13 pm »

Mephansteras, can you upload a save of this?  It just might be a computer limitation, where your computer has less RAM or whatever than another, and you're hitting a limit.  Save a world with all the reactions, and see if anyone else can make it work.

Also, try and re-get DF and run that save on a different folder of DF.  Some quirky may have occured?

Mephansteras

  • Bay Watcher
  • Forger of Civilizations
    • View Profile
Re: Max Number of Reactions?
« Reply #24 on: August 30, 2011, 06:40:36 pm »

Huh. There's a thought. That test was done with my work laptop, which does have less RAM available than my computer at home. Seems odd that it would limit the # of reactions rather than simply error out, but I guess it's possible.

I'll do some tests with it tonight on my personal Laptop. I can also upload a save that has the extra reactions so people can test it out themselves.

If the computer is the limit, that'll be important for modders to know. Otherwise you might get players complaining of strange issues with things that work fine for you.

I'll also try it with a clean install. I did make a separate DF folder for the tests, but I can't remember if I did it from a new unzip of DF or I just copied the entire folder over.
Logged
Civilization Forge Mod v2.80: Adding in new races, equipment, animals, plants, metals, etc. Now with Alchemy and Libraries! Variety to spice up DF! (For DF 0.34.10)
Come play Mafia with us!
"Let us maintain our chill composure." - Toady One

Silicoid

  • Bay Watcher
    • View Profile
Re: Max Number of Reactions?
« Reply #25 on: August 31, 2011, 12:25:52 am »

Could it be the number of civilizations?  Having played your mod, your mod has more civlizations than other mods..... Could the max number of reactions be based on the total reactions by all civlizations?  Do the reactions reapear if you remove the primitive civilizations?
Logged

Mephansteras

  • Bay Watcher
  • Forger of Civilizations
    • View Profile
Re: Max Number of Reactions?
« Reply #26 on: August 31, 2011, 11:14:39 am »

I'm starting to think that maybe it's an odd issue with my work laptop. I tried out the same number of reactions on my home laptop and it worked just fine.

I took the save and brought it to work, and everything seems to work ok. Although I need to run a few more tests to make sure that all reactions work ok.

Very odd, though. I spent quite a while trying to figure out what was going on with my work laptop before I posted this thread. The reactions definitely weren't showing up until I removed some of them.

Rhenaya, you mentioned a cap on the number of clothing/armor a civ can use. Is that a hard cap, or is that also based on the machine?
Logged
Civilization Forge Mod v2.80: Adding in new races, equipment, animals, plants, metals, etc. Now with Alchemy and Libraries! Variety to spice up DF! (For DF 0.34.10)
Come play Mafia with us!
"Let us maintain our chill composure." - Toady One

Roses

  • Bay Watcher
    • View Profile
Re: Max Number of Reactions?
« Reply #27 on: August 31, 2011, 01:58:34 pm »

Is it possible that every time you gen a world it allocates memory differently and sometimes some of the reactions get dropped? Don't know that much about how DF does memory during world gen and the like.
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Max Number of Reactions?
« Reply #28 on: August 31, 2011, 02:02:50 pm »

That could be true, because sometimes my dwaarven civs have access to High Boots and other times they don't. In rare cases they lack other items aswell :(
Logged

Mephansteras

  • Bay Watcher
  • Forger of Civilizations
    • View Profile
Re: Max Number of Reactions?
« Reply #29 on: August 31, 2011, 02:08:55 pm »

That could be true, because sometimes my dwaarven civs have access to High Boots and other times they don't. In rare cases they lack other items aswell :(

That's intentional, though. Clothing and armor is randomized to give different civs a little bit of variety. I haven't noticed that with anything other than clothing/armor, though. Weapons and Shields, for example, are consistent.
Logged
Civilization Forge Mod v2.80: Adding in new races, equipment, animals, plants, metals, etc. Now with Alchemy and Libraries! Variety to spice up DF! (For DF 0.34.10)
Come play Mafia with us!
"Let us maintain our chill composure." - Toady One
Pages: 1 [2] 3