• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Darkness Falls: They mostly come out at night...

im playing this and as soon as i even get close to the trader i get null reference even after restarting it keeps coming back 2018-02-07.jpg

 
I would love to give this mod a go, it sounds interesting. Only thing is, after the game boots up, and I get to the main menu, it lags so bad. Like the selection indicator does not even move till like 5-10 seconds after I hightlight something. I dont even want to see how the game would run.

Its only this mod tho. I went back to CBMod, just to see if something happened to my game. That mod runs just fine, no slows or anything. Just your mod :(

 
im playing this and as soon as i even get close to the trader i get null reference even after restarting it keeps coming back View attachment 23935
That means there's an NPC nearby headbutting the wall or something. I just had it on stream too. Basically any mod using NPC's has it, so I'm looking at alternatives to fix it (like spawning the NPC's and traders in seperate biomes)

I would love to give this mod a go, it sounds interesting. Only thing is, after the game boots up, and I get to the main menu, it lags so bad. Like the selection indicator does not even move till like 5-10 seconds after I hightlight something. I dont even want to see how the game would run.
Its only this mod tho. I went back to CBMod, just to see if something happened to my game. That mod runs just fine, no slows or anything. Just your mod :(
It does that to me as well on both of my rigs. I run it, let it get to the menu, close the game and then reload it. Typically it's because it's generating the UMA textures, then it runs fine.

 
NullReferenceException: Object reference not set to an instance of an object

im playing this and as soon as i even get close to the trader i get null reference even after restarting it keeps coming back View attachment 23935
thats happend to me too, but i think mine was from the Bandit that attacks the place !!

next is with in this message it says that some zombies are where removed from Horde Group or something.

Short Log in the spoiler.:

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

2018-02-07T00:13:48 4916.636 INF AIDirector: wandering horde zombie '[type=EntityZombie, name=zombieNurse, id=3328]' is being removed from horde control.

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

2018-02-07T00:13:49 4918.378 INF AIDirector: wandering horde zombie '[type=EntityZombie, name=zombieFemaleFat, id=3337]' is being removed from horde control.

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

2018-02-07T00:14:03 4931.646 INF Time: 71.67m FPS: 21.70 Heap: 1179.2MB Max: 1444.2MB Chunks: 460 CGO: 241 Ply: 1 Zom: 30 Ent: 37 (53) Items: 1 CO: 8 RSS: 2046.2MB

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

2018-02-07T00:14:08 4937.341 INF AIDirector: wandering horde zombie '[type=EntityZombie, name=zombieNurse, id=3332]' is being removed from horde control.

2018-02-07T00:14:10 4939.089 INF AIDirector: wandering horde zombie '[type=EntityZombie, name=zombieYo, id=3336]' is being removed from horde control.

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0
 
thats happend to me too, but i think mine was from the Bandit that attacks the place !!
next is with in this message it says that some zombies are where removed from Horde Group or something.

Short Log in the spoiler.:

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

2018-02-07T00:13:48 4916.636 INF AIDirector: wandering horde zombie '[type=EntityZombie, name=zombieNurse, id=3328]' is being removed from horde control.

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

2018-02-07T00:13:49 4918.378 INF AIDirector: wandering horde zombie '[type=EntityZombie, name=zombieFemaleFat, id=3337]' is being removed from horde control.

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

2018-02-07T00:14:03 4931.646 INF Time: 71.67m FPS: 21.70 Heap: 1179.2MB Max: 1444.2MB Chunks: 460 CGO: 241 Ply: 1 Zom: 30 Ent: 37 (53) Items: 1 CO: 8 RSS: 2046.2MB

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

2018-02-07T00:14:08 4937.341 INF AIDirector: wandering horde zombie '[type=EntityZombie, name=zombieNurse, id=3332]' is being removed from horde control.

2018-02-07T00:14:10 4939.089 INF AIDirector: wandering horde zombie '[type=EntityZombie, name=zombieYo, id=3336]' is being removed from horde control.

NullReferenceException: Object reference not set to an instance of an object

at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

at GameManager.JQ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0
i just had it again tried a new world and same thing as soon as you get within the trader and the class quest book goes into your bag null ref and its starting to bug me no end

 
Just pushed a really quick fix since it seems to be helping me on stream.

Reduced amount of survivors and bandits, class book now granted on game START (not when you get to the trader).

Both should be on GitHub. Hopefully that'll help. :) I'm still going to look at limiting where the traders spawn to help with the issue.

As an aside, this isn't JUST a thing with my mod. It happens in WotW if the survivor NPC's get near traders or wandering traders too. It's a pain in the arse.

 
Just pushed a really quick fix since it seems to be helping me on stream.
Reduced amount of survivors and bandits, class book now granted on game START (not when you get to the trader).

Both should be on GitHub. Hopefully that'll help. :) I'm still going to look at limiting where the traders spawn to help with the issue.

As an aside, this isn't JUST a thing with my mod. It happens in WotW if the survivor NPC's get near traders or wandering traders too. It's a pain in the arse.
cool thx for that

 
Looks like the bigger backpack have a problem with the last 2 rows. When i loot houses or stuff, i can't click R too get all and close the item automaticlly, can ya look into it ?



All good so far and thx, keep on the good work. ;)

Can you help with an console Error ?

InvalidCastException - Can not cast, what does it mean ?

I Logged Out and in , and all is good.
Okay, I had the backpack problem on stream as well. I'm not sure why clicking the "take all" button isn't working. I will have to look into that.

However, the keyboard shortcut to "take all" (which is R by default) works absolutely fine. :) That's what I normally use while playing which is why I didnt notice.

 
Currently doing some testing, but I may have fixed the NRE issue with traders and NPC's.

Only tested it with 1 trader right now, but had no issues. The downside is the trader also had no protection anymore.

 
Currently doing some testing, but I may have fixed the NRE issue with traders and NPC's.
Only tested it with 1 trader right now, but had no issues. The downside is the trader also had no protection anymore.
Thats Good and Bad. Run Trader...... Run ! Lol

 
Thats Good and Bad. Run Trader...... Run ! Lol
I kinda like it... it means players cant just run into the trader to hide from zombies :) Need to poke at it more though and see if I can get the protection back.

 
I kinda like it... it means players cant just run into the trader to hide from zombies :) Need to poke at it more though and see if I can get the protection back.

Sure its cool, but if they destroy the place, you don't have a Trader Everymore i think.

 
Sure its cool, but if they destroy the place, you don't have a Trader Everymore i think.
Yep. That's a problem. But I can increase the hit points of the trader NPC to help with that if I can't get the protection working. :)

 
Okay, so the "fix" means protection straight up won't work.

However, trader NPC's are apparently immortal since I shot one with the Admin: Just Die gun and he didn't die.

I'll be pushing this fix soon. It does mean the trader POI's are no longer safe and players will have to be a little pro-active in defending their local trader, but the NPC CANNOT die... so you're safe on that front. :)

 
Mod updated!

Trader NRE issue is completely fixed. Trader protection has been REMOVED, meaning the POI is no longer safe from bandit or zombie attacks! The trader NPC is immortal though, so even if the POI is destroyed, the trader will remain.

I strongly recommend server owners find as many traders as possible and slap down land claim blocks to prevent players claiming them as bases. Though it's fun to do in single player. :D

 
Mod updated!
Trader NRE issue is completely fixed. Trader protection has been REMOVED, meaning the POI is no longer safe from bandit or zombie attacks! The trader NPC is immortal though, so even if the POI is destroyed, the trader will remain.

I strongly recommend server owners find as many traders as possible and slap down land claim blocks to prevent players claiming them as bases. Though it's fun to do in single player. :D
Great Work !

 
Small update.

Added a custom icon for the Water Butt so it doesn't look like a normal oil drum (still wish I could tint the block!) and changed the localization for the tooltip that pops up when the game starts. It now tells you that you have the class book rather than needing to go to the trader to get it.

 
Mod Updated!

  • NPC's could drop their guns and ammo on death. Now they can't.
  • NPC guns given their own "parts" so players cannot craft them.
  • NPC's were not reloading guns due to too many ammo types. Now they do!
  • NPC guards added to all trader prefabs! They shoot zombies and bandits as default... and you if you attack them.

 
Just a small update.

Tweaked the XP required to level so it takes slightly longer. Skills should level at the same rate. Server version of the 45-slot backpack mod added to downloads (use the EAC-safe files for servers if you don't plan to use the backpack mod)

 
Back
Top