Ludeon Forums

RimWorld => Mods => Help => Topic started by: Thirite on September 22, 2016, 07:43:24 PM

Title: [Resolved] Better way to add animals to biome's spawn lists?
Post by: Thirite on September 22, 2016, 07:43:24 PM
I'm making a simple mod to add some more variety to the wildlife of RimWorld. Currently I have a Blackbear, but it seems that the only way to make it spawn in a biome is to completely overwrite that Biome's .xml file from the base game. So, say I loaded up Badger Badger Badger and then my Blackbear- only my blackbear would spawn and no badgers because they both would have to overwrite the Biome's xml.

Seems a bit ridiculous. Is there a better solution or am I SOL?
Title: Re: Better way to add animals to biome's spawn lists?
Post by: RemingtonRyder on September 22, 2016, 08:16:12 PM
See here: https://ludeon.com/forums/index.php?topic=19612.msg214308#msg214308
Title: Re: Better way to add animals to biome's spawn lists?
Post by: Thirite on September 22, 2016, 08:34:36 PM
Oh, cool! I'm glad this functionality exists. Cheers mate
Title: Re: Better way to add animals to biome's spawn lists?
Post by: Thirite on September 22, 2016, 09:07:25 PM
Huh, now I'm actually getting some trouble with it.

Looks like the syntax must have changed, because when I use the example provided with my bear:

      <wildBiomes>
        <li>
          <biome>TemperateForest</biome>
          <animal>Blackbear</animal>
          <commonality>0.2</commonality>
        </li>
      </wildBiomes>


It throws a whole bunch of errors, namely one that says, "There is no biomeDef named 'li'." So it seems to be expecting:

      <wildBiomes>
        <TemperateForest>
          <animal>Blackbear</animal>
          <commonality>0.2</commonality>
        </TemperateForest>
      </wildBiomes>


Which gets rid of most of the errors except for these, which I'm not sure what they mean.

(http://i.imgur.com/ByvIDLM.png)
Title: Re: Better way to add animals to biome's spawn lists?
Post by: Thirite on September 22, 2016, 10:07:24 PM
Okay! Got it working through a lot of guesswork for the new syntax.

Turns out it has to be like this:


<race>
      ...
      <wildBiomes>
<TemperateForest>0.02</TemperateForest>
        <BorealForest>0.08</BorealForest>
      </wildBiomes>
</race>


The variables between the biomes is the commonality of appearing in that biome.
Title: Re: [Resolved] Better way to add animals to biome's spawn lists?
Post by: RemingtonRyder on September 24, 2016, 05:43:04 AM
Oh yeah. Sorry, I wasn't paying attention and pointed you at an example with the old syntax. Good to see you got it working though! :)
Title: Re: [Resolved] Better way to add animals to biome's spawn lists?
Post by: Thirite on September 24, 2016, 04:09:41 PM
Definitely. I've also pm'd some others making animal mods so they can benefit from the compatibility of this feature.
Title: Re: [Resolved] Better way to add animals to biome's spawn lists?
Post by: Master Bucketsmith on September 24, 2016, 04:54:43 PM
There already are plenty of mods that add animal variety. :o ::)
Title: Re: [Resolved] Better way to add animals to biome's spawn lists?
Post by: Thirite on September 24, 2016, 07:34:28 PM
Please refrain from posting without reading the thread first.
Title: Re: [Resolved] Better way to add animals to biome's spawn lists?
Post by: Master Bucketsmith on September 25, 2016, 05:34:20 AM
Quote from: Thirite on September 24, 2016, 07:34:28 PM
Please refrain from posting without reading the thread first.
I did! I'm just replying in the same way you would on other threads. :(
Why? don't like when it happens?
It doesn't make my earlier post any less true. There are multiple mods that add to the variety of animals. ???
As per what moderators have said, it's not against the rules to voice this, for you, for me, for anyone.
Please don't turn this into a personal crusade, man. There's nothing malicious behind my post.

User has been warned for harassment, further actions will result in a temp-ban.

-Ramsi
Title: Re: [Resolved] Better way to add animals to biome's spawn lists?
Post by: hendrikpfaff on September 26, 2016, 10:27:36 AM
Quote from: Master Bucketsmith on September 25, 2016, 05:34:20 AM
Quote from: Thirite on September 24, 2016, 07:34:28 PM
Please refrain from posting without reading the thread first.
I did! I'm just replying in the same way you would on other threads. :(
Why? don't like when it happens?
It doesn't make my earlier post any less true. There are multiple mods that add to the variety of animals. ???
As per what moderators have said, it's not against the rules to voice this, for you, for me, for anyone.
Please don't turn this into a personal crusade, man. There's nothing malicious behind my post.

User has been warned for harassment, further actions will result in a temp-ban.

-Ramsi


Lol is that called harassment?
Thats just someones opinion and a smartly build reaction.   :P
Title: Re: [Resolved] Better way to add animals to biome's spawn lists?
Post by: RemingtonRyder on September 26, 2016, 12:00:33 PM
Criticising a mod before it's been released... not cool, and not helpful. It's fine if you want to make a suggestion, for example:

'Are you planning on including some unique features in your mod to set it apart from similar mods which already exist?'

Just bear in mind that a modder doesn't have to take your suggestion on board.

Also, harassment is often a pattern of behaviour rather than one post taken in isolation, and the moderators take it quite seriously.
Title: Re: [Resolved] Better way to add animals to biome's spawn lists?
Post by: Thirite on September 26, 2016, 06:04:23 PM
Quote from: MarvinKosh on September 26, 2016, 12:00:33 PM
Criticising a mod before it's been released... not cool, and not helpful.
MasterBucketsmith was doing this because I have criticized mod ideas as well, and decided to "retaliate". Normally I would have nothing against criticism- I am very open to it and with it; all ideas should be open to criticism. However, MasterBucketsmith was repeatedly replying to my posts under the false assumption that criticism = hostility, and decided that I was a "problem" he took it upon himself to fix. This is why the admins warned him. Not only that, I sent him a PM before this telling him to stop stalking my posts or I would report him. He ignored the warning, ludicrously claiming I was somehow harassing him. He posted again (the one you see which got the warning) and so I contacted the admins.

Edit: Honestly I'm just disappointed this thread got caught up in stupid drama. I'd request an admin move the second half of this thread to off topic of possible, as I had hoped to be able to point other modders in the right direction for the compatibility fix we found.
Title: Re: [Resolved] Better way to add animals to biome's spawn lists?
Post by: RemingtonRyder on September 26, 2016, 06:35:35 PM
Okay well, that's between you, him and a moderator.

This subforum is Help, which means help with modding, ironing out bugs with code, that sort of thing. If someone wants to invite opinions on an unfinished mod, there's another subforum for that where they can post a bullet point list of features to be picked apart. General mod suggestions and brainstorming? Go up a level to the Mods board.

Those subforums were around probably long before I got here, and they serve a purpose. Just something to keep in mind. :)
Title: Re: [Resolved] Better way to add animals to biome's spawn lists?
Post by: Shinzy on September 27, 2016, 04:36:14 AM
Ima just lock this one for now as the original issue has been resolved