Comments (5)
Putting a try catch in that expensive function will slow things down too much. The other mod should simply be coded more defensive to prevent the NRE. Sorry.
from zombieland.
Okay then ill try with the other mod creator and see if they can avoid creating the effect it the target is a zombie. What is the best way to detect if the target is a zombie?
from zombieland.
If the class of the zombie is called Zombieland.Zombie. But personally, I would rather add ordinary null checks to cover any other slimmed down creatures of other mods too. So if you deal with property X.Y you always check if X is non-Null or else you bail out. No need to check if X is from a zombie.
from zombieland.
The failing job is a default rimworld vomit job and after looking at the decompiled source at https://github.com/josh-m/RW-Decompile/blob/master/RimWorld/JobDriver_Vomit.cs it think the error is because the vomit job tries to make pawns more hungry each vomit and zombies don't have a hunger need?
So if the target pawn does not have a hunger need, don't add a vomit job.
Does my understanding seem correct?
from zombieland.
Sounds reasonable. Indeed, zombies have no hunger need and if the vomit job references that you better not assign it. Zombies donβt vomit anyway! :-)
from zombieland.
Related Issues (20)
- Hi, no Z spawn HOT 1
- Problem with the gui due to incompatible mods HOT 2
- Zombieland creates insane amount of errors in player and player-prev documents HOT 4
- Tanky zombie does insane amount of dmg HOT 1
- Issue: Uninfected dead pawns become strong zombies anyway HOT 12
- Problems with 'What the hack'
- Humanlikes don't die?
- Support RimWorld version 1.4 HOT 2
- Improve extraction and double-tap with drafted pawns HOT 2
- Albino zombies being annoying as usual... HOT 2
- Zombieland Unable to use HOT 2
- Mod conflict with SOS2 & Zombieland causing CTD when beginning a save with "Derelict" scenario, or if you load a save that you launched a ship into space with. HOT 3
- NullReferenceException when putting babies somewhere safe. HOT 2
- Zombies Missing pawn textures HOT 1
- Please make it auto un-check the word "zombie" in every table in "Production" tab HOT 1
- VFE:M mechs having a gizmo error HOT 9
- "Zombies rage when the group gets too large" is not working
- An unintended way to erase contamination from the map HOT 1
- Error appears when I select an item that's being hauled by pawn (with contamination enabled) HOT 1
- Lots of errors appear when you try to open a zombie's health tab HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zombieland.