Jump to content

Recommended Posts

I added a couple of weapon mods today which work absolutely fine, no issues with the mods at all.

 

When I added recipes to make them, as soon as you open the inventory search it spams the console with red errors for "object not set to an instance of an object" so I do believe the source of the issue to be in the recipes mod or perhaps another one that is meant to tie in with it.

I'm fairly new to modding so there is probably something I have missed.

 

Below is the actual recipe;

Quote

<Ruthless>

<append xpath="recipes">

<recipe name="modShockEm" count="1" craft_time="120" craft_area="workbench">
    <ingredient name="resourceGunPowder" count="1000"/>
    <ingredient name="resourceBulletCasing" count="150"/>
    <ingredient name="carBattery" count="5"/>     
</recipe>

<recipe name="modBurnEm" count="1" craft_time="120" craft_area="workbench" >
    <ingredient name="resourceGunPowder" count="1000"/>
    <ingredient name="resourceBulletCasing" count="150"/>
    <ingredient name="ammoGasCan" count="2000"/>
</recipe>

</append>


</Ruthless>

 

And then below is the error that spams the console;

 

Quote

2020-07-23T16:49:19 6414.157 INF GMSG: Player 'Ruthless' joined the game
2020-07-23T16:49:35 6430.002 INF Executing command 'dm'
2020-07-23T16:49:36 6430.695 INF Executing command 'cm'
2020-07-23T16:49:40 6434.364 INF Time: 106.84m FPS: 116.79 Heap: 5302.7MB Max: 5302.7MB Chunks: 452 CGO: 170 Ply: 1 Zom: 0 Ent: 15 (32) Items: 19 CO: 1 RSS: 10761.8MB
NullReferenceException: Object reference not set to an instance of an object
  at RecipeUnlockData.GetName () [0x0001a] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiC_UnlockByEntry.GetBindingValue (System.String& value, BindingItem binding) [0x00054] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at BindingItem.GetValue (System.Boolean forceAll) [0x00023] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at BindingInfo.RefreshValue (System.Boolean forceAll) [0x0001a] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiController.RefreshBindings (System.Boolean forceAll) [0x00010] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiC_UnlockByEntry.Update (System.Single _dt) [0x00008] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiController.Update (System.Single _dt) [0x0004f] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiC_UnlockByList.Update (System.Single _dt) [0x0012d] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiController.Update (System.Single _dt) [0x0004f] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiController.Update (System.Single _dt) [0x0004f] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiController.Update (System.Single _dt) [0x0004f] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiC_InfoWindow.Update (System.Single _dt) [0x00000] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiC_CraftingInfoWindow.Update (System.Single _dt) [0x0000e] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiController.Update (System.Single _dt) [0x0004f] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUi.OnUpdateDeltaTime (System.Single updateDeltaTime) [0x0014d] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiUpdater.Update () [0x0003f] in <8e01b025fbb443a8a909f16c8980a00e>:0 
  at XUiUpdateHelper.LateUpdate () [0x00000] in <8e01b025fbb443a8a909f16c8980a00e>:0 
 
(Filename: <8e01b025fbb443a8a909f16c8980a00e> Line: 0)

 

Share this post


Link to post
Share on other sites

I'm not a expert but:

 

- If you do your own mod, rename your mod to be load at the end of the list in order alphabetic...

 

- Or if you add it in a recipe.xml in a already mod, add it a the end...

 

But I think this error it's because your two items doesn't exist...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...