Jump to content

Im being struggle with character mod because of the custom recepie mode


Recommended Posts

idk what is wrong i checked other mods all of them working good in them but when i do its not working

problem is not about recepies and actualy i can see it on game BUT i cant craft it + its not in my survivor craft tab.  if i craft it by using freecraft() game crashes

 

i have been working on this mod since 2022 summer and its summer again so why not working on it again pls help me :<

Link to comment
Share on other sites

2 hours ago, HiraaCaan said:

idk what is wrong i checked other mods all of them working good in them but when i do its not working

problem is not about recepies and actualy i can see it on game BUT i cant craft it + its not in my survivor craft tab.  if i craft it by using freecraft() game crashes

 

i have been working on this mod since 2022 summer and its summer again so why not working on it again pls help me :<

First, try using c_give or c_spawn and see if there are any issues with the item. If not, then recreate the recipe according to this post.

 

Link to comment
Share on other sites

On 6/25/2023 at 4:44 PM, Haruhi Kawaii said:

First, try using c_give or c_spawn and see if there are any issues with the item. If not, then recreate the recipe according to this post.

 

using c_give and spawn commands are working there is no issue with size or anything else with item even when using it

and also tanks for this post you send i will check it and see if its works :3

Link to comment
Share on other sites

On 6/25/2023 at 4:44 PM, Haruhi Kawaii said:

First, try using c_give or c_spawn and see if there are any issues with the item. If not, then recreate the recipe according to this post.

 

uhhh... they not working i cant even enter the game even if i did i cant spawn it game crashes?

i tried all of the recipe codes even looked the other mods :< why isnt working maybe there is something wrong with other codes? idk

Link to comment
Share on other sites

this is the client_log btw

(...)


[00:02:22]: [string "scripts/components/inventoryitem.lua"]:10: attempt to index field 'inventoryitem' (a nil value)
LUA ERROR stack traceback:
scripts/components/inventoryitem.lua:10 in (field) ? (Lua) <9-11>
   self =
      inst = 101642 -  (valid:true)
      _ = table: 0000000087498FF0
   owner = nil
scripts/class.lua:43 in () ? (Lua) <36-45>
   t = table: 0000000087498690
   k = owner
   v = nil
   p = table: 0000000087499180
   old = nil
scripts/components/inventoryitem.lua:45 in (field) _ctor (Lua) <42-72>
   self =
      inst = 101642 -  (valid:true)
      _ = table: 0000000087498FF0
   inst = 101642 -  (valid:true)
scripts/class.lua:191 in (local) cmp (Lua) <181-194>
   class_tbl = table: 0000000087498140
   arg = nil
   obj = table: 0000000087498690
scripts/entityscript.lua:604 in (method) AddComponent (Lua) <591-617>
   self (valid:true) =
      GUID = 101642
      Transform = Transform (000000008741B0E0)
      inlimbo = false
      actionreplica = table: 0000000087496CF0
      event_listening = table: 0000000087495CB0
      actioncomponents = table: 0000000087496480
      lower_components_shadow = table: 0000000087495D00
      entity = Entity (000000006220F520)
      AnimState = AnimState (000000008741B290)
      Network = Network (000000008741B320)
      persists = true
      SoundEmitter = SoundEmitter (000000008741BCE0)
      spawntime = 0.16666667535901
      replica = table: 0000000087496C00
      Physics = Physics (000000008741BE00)
      components = table: 0000000087495DF0
      event_listeners = table: 0000000087496110
   name = inventoryitem
   lower_name = inventoryitem
   cmp = table: 0000000087498140
../mods/Westby/scripts/prefabs/bleach.lua:27 in (field) fn (Lua) <13-44>
   Sim = Sim (0000000014D2B950)
   inst = 101642 -  (valid:true)
scripts/mainfunctions.lua:336 in () ? (Lua) <325-371>
   name = bleach
   prefab = Prefab bleach - 

[00:02:22]: [string "scripts/components/inventoryitem.lua"]:10: attempt to index field 'inventoryitem' (a nil value)
LUA ERROR stack traceback:
    scripts/components/inventoryitem.lua:10 in (field) ? (Lua) <9-11>
    scripts/class.lua:43 in () ? (Lua) <36-45>
    scripts/components/inventoryitem.lua:45 in (field) _ctor (Lua) <42-72>
    scripts/class.lua:191 in (local) cmp (Lua) <181-194>
    scripts/entityscript.lua:604 in (method) AddComponent (Lua) <591-617>
    ../mods/Westby/scripts/prefabs/bleach.lua:27 in (field) fn (Lua) <13-44>
    scripts/mainfunctions.lua:336 in () ? (Lua) <325-371>
    
[00:02:22]: RakNet detected a missing replica (32118)
[00:02:22]: RakNet detected a missing replica (66149)
[00:02:22]: RakNet detected a missing replica (247050)
[00:02:22]: RakNet detected a missing replica (11596000)
[00:02:22]: RakNet detected a missing replica (8056579)
[00:02:22]: RakNet detected a missing replica (12603657)
[00:02:22]: RakNet detected a missing replica (11286529)
[00:02:22]: RakNet detected a missing replica (6505316)
[00:02:22]: RakNet detected a missing replica (681722)
[00:02:22]: RakNet detected a missing replica (24590)
[00:02:22]: RakNet detected a missing replica (6302468)
[00:02:22]: RakNet detected a missing replica (12849664)
[00:02:22]: RakNet detected a missing replica (3766306)
[00:02:22]: RakNet detected a missing replica (961628)
[00:02:22]: RakNet detected a missing replica (29980)
[00:02:22]: RakNet detected a missing replica (525058)
[00:02:22]: RakNet detected a missing replica (569344)
[00:02:22]: RakNet detected a missing replica (1594884)
[00:02:22]: RakNet detected a missing replica (1298169)
[00:02:22]: RakNet detected a missing replica (8591477)
[00:02:22]: RakNet detected a missing replica (15877297)
[00:02:22]: RakNet detected a missing replica (4496626)
[00:02:22]: RakNet detected a missing replica (4358214)
[00:02:22]: RakNet detected a missing replica (65718)
[00:02:22]: RakNet detected a missing replica (16428)
[00:02:22]: RakNet detected a missing replica (15638176)
[00:02:22]: RakNet detected a missing replica (7531186)
[00:02:22]: RakNet detected a missing replica (23938)
[00:02:22]: RakNet detected a missing replica (8588329)
[00:02:22]: RakNet detected a missing replica (10696184)
[00:02:22]: RakNet detected a missing replica (16253956)
[00:02:22]: RakNet detected a missing replica (12080604)
 

Just now, HiraaCaan said:

this is the client_log btw

(...)


[00:02:22]: [string "scripts/components/inventoryitem.lua"]:10: attempt to index field 'inventoryitem' (a nil value)
LUA ERROR stack traceback:
scripts/components/inventoryitem.lua:10 in (field) ? (Lua) <9-11>
   self =
      inst = 101642 -  (valid:true)
      _ = table: 0000000087498FF0
   owner = nil
scripts/class.lua:43 in () ? (Lua) <36-45>
   t = table: 0000000087498690
   k = owner
   v = nil
   p = table: 0000000087499180
   old = nil
scripts/components/inventoryitem.lua:45 in (field) _ctor (Lua) <42-72>
   self =
      inst = 101642 -  (valid:true)
      _ = table: 0000000087498FF0
   inst = 101642 -  (valid:true)
scripts/class.lua:191 in (local) cmp (Lua) <181-194>
   class_tbl = table: 0000000087498140
   arg = nil
   obj = table: 0000000087498690
scripts/entityscript.lua:604 in (method) AddComponent (Lua) <591-617>
   self (valid:true) =
      GUID = 101642
      Transform = Transform (000000008741B0E0)
      inlimbo = false
      actionreplica = table: 0000000087496CF0
      event_listening = table: 0000000087495CB0
      actioncomponents = table: 0000000087496480
      lower_components_shadow = table: 0000000087495D00
      entity = Entity (000000006220F520)
      AnimState = AnimState (000000008741B290)
      Network = Network (000000008741B320)
      persists = true
      SoundEmitter = SoundEmitter (000000008741BCE0)
      spawntime = 0.16666667535901
      replica = table: 0000000087496C00
      Physics = Physics (000000008741BE00)
      components = table: 0000000087495DF0
      event_listeners = table: 0000000087496110
   name = inventoryitem
   lower_name = inventoryitem
   cmp = table: 0000000087498140
../mods/Westby/scripts/prefabs/bleach.lua:27 in (field) fn (Lua) <13-44>
   Sim = Sim (0000000014D2B950)
   inst = 101642 -  (valid:true)
scripts/mainfunctions.lua:336 in () ? (Lua) <325-371>
   name = bleach
   prefab = Prefab bleach - 

[00:02:22]: [string "scripts/components/inventoryitem.lua"]:10: attempt to index field 'inventoryitem' (a nil value)
LUA ERROR stack traceback:
    scripts/components/inventoryitem.lua:10 in (field) ? (Lua) <9-11>
    scripts/class.lua:43 in () ? (Lua) <36-45>
    scripts/components/inventoryitem.lua:45 in (field) _ctor (Lua) <42-72>
    scripts/class.lua:191 in (local) cmp (Lua) <181-194>
    scripts/entityscript.lua:604 in (method) AddComponent (Lua) <591-617>
    ../mods/Westby/scripts/prefabs/bleach.lua:27 in (field) fn (Lua) <13-44>
    scripts/mainfunctions.lua:336 in () ? (Lua) <325-371>
    
[00:02:22]: RakNet detected a missing replica (32118)
[00:02:22]: RakNet detected a missing replica (66149)
[00:02:22]: RakNet detected a missing replica (247050)
[00:02:22]: RakNet detected a missing replica (11596000)
[00:02:22]: RakNet detected a missing replica (8056579)
[00:02:22]: RakNet detected a missing replica (12603657)
[00:02:22]: RakNet detected a missing replica (11286529)
[00:02:22]: RakNet detected a missing replica (6505316)
[00:02:22]: RakNet detected a missing replica (681722)
[00:02:22]: RakNet detected a missing replica (24590)
[00:02:22]: RakNet detected a missing replica (6302468)
[00:02:22]: RakNet detected a missing replica (12849664)
[00:02:22]: RakNet detected a missing replica (3766306)
[00:02:22]: RakNet detected a missing replica (961628)
[00:02:22]: RakNet detected a missing replica (29980)
[00:02:22]: RakNet detected a missing replica (525058)
[00:02:22]: RakNet detected a missing replica (569344)
[00:02:22]: RakNet detected a missing replica (1594884)
[00:02:22]: RakNet detected a missing replica (1298169)
[00:02:22]: RakNet detected a missing replica (8591477)
[00:02:22]: RakNet detected a missing replica (15877297)
[00:02:22]: RakNet detected a missing replica (4496626)
[00:02:22]: RakNet detected a missing replica (4358214)
[00:02:22]: RakNet detected a missing replica (65718)
[00:02:22]: RakNet detected a missing replica (16428)
[00:02:22]: RakNet detected a missing replica (15638176)
[00:02:22]: RakNet detected a missing replica (7531186)
[00:02:22]: RakNet detected a missing replica (23938)
[00:02:22]: RakNet detected a missing replica (8588329)
[00:02:22]: RakNet detected a missing replica (10696184)
[00:02:22]: RakNet detected a missing replica (16253956)
[00:02:22]: RakNet detected a missing replica (12080604)
 

my custom item name is "bleach" 

Link to comment
Share on other sites

2 hours ago, HiraaCaan said:

this is the client_log btw

(...)


[00:02:22]: [string "scripts/components/inventoryitem.lua"]:10: attempt to index field 'inventoryitem' (a nil value)
LUA ERROR stack traceback:
scripts/components/inventoryitem.lua:10 in (field) ? (Lua) <9-11>
   self =
      inst = 101642 -  (valid:true)
      _ = table: 0000000087498FF0
   owner = nil
scripts/class.lua:43 in () ? (Lua) <36-45>
   t = table: 0000000087498690
   k = owner
   v = nil
   p = table: 0000000087499180
   old = nil
scripts/components/inventoryitem.lua:45 in (field) _ctor (Lua) <42-72>
   self =
      inst = 101642 -  (valid:true)
      _ = table: 0000000087498FF0
   inst = 101642 -  (valid:true)
scripts/class.lua:191 in (local) cmp (Lua) <181-194>
   class_tbl = table: 0000000087498140
   arg = nil
   obj = table: 0000000087498690
scripts/entityscript.lua:604 in (method) AddComponent (Lua) <591-617>
   self (valid:true) =
      GUID = 101642
      Transform = Transform (000000008741B0E0)
      inlimbo = false
      actionreplica = table: 0000000087496CF0
      event_listening = table: 0000000087495CB0
      actioncomponents = table: 0000000087496480
      lower_components_shadow = table: 0000000087495D00
      entity = Entity (000000006220F520)
      AnimState = AnimState (000000008741B290)
      Network = Network (000000008741B320)
      persists = true
      SoundEmitter = SoundEmitter (000000008741BCE0)
      spawntime = 0.16666667535901
      replica = table: 0000000087496C00
      Physics = Physics (000000008741BE00)
      components = table: 0000000087495DF0
      event_listeners = table: 0000000087496110
   name = inventoryitem
   lower_name = inventoryitem
   cmp = table: 0000000087498140
../mods/Westby/scripts/prefabs/bleach.lua:27 in (field) fn (Lua) <13-44>
   Sim = Sim (0000000014D2B950)
   inst = 101642 -  (valid:true)
scripts/mainfunctions.lua:336 in () ? (Lua) <325-371>
   name = bleach
   prefab = Prefab bleach - 

[00:02:22]: [string "scripts/components/inventoryitem.lua"]:10: attempt to index field 'inventoryitem' (a nil value)
LUA ERROR stack traceback:
    scripts/components/inventoryitem.lua:10 in (field) ? (Lua) <9-11>
    scripts/class.lua:43 in () ? (Lua) <36-45>
    scripts/components/inventoryitem.lua:45 in (field) _ctor (Lua) <42-72>
    scripts/class.lua:191 in (local) cmp (Lua) <181-194>
    scripts/entityscript.lua:604 in (method) AddComponent (Lua) <591-617>
    ../mods/Westby/scripts/prefabs/bleach.lua:27 in (field) fn (Lua) <13-44>
    scripts/mainfunctions.lua:336 in () ? (Lua) <325-371>
    
[00:02:22]: RakNet detected a missing replica (32118)
[00:02:22]: RakNet detected a missing replica (66149)
[00:02:22]: RakNet detected a missing replica (247050)
[00:02:22]: RakNet detected a missing replica (11596000)
[00:02:22]: RakNet detected a missing replica (8056579)
[00:02:22]: RakNet detected a missing replica (12603657)
[00:02:22]: RakNet detected a missing replica (11286529)
[00:02:22]: RakNet detected a missing replica (6505316)
[00:02:22]: RakNet detected a missing replica (681722)
[00:02:22]: RakNet detected a missing replica (24590)
[00:02:22]: RakNet detected a missing replica (6302468)
[00:02:22]: RakNet detected a missing replica (12849664)
[00:02:22]: RakNet detected a missing replica (3766306)
[00:02:22]: RakNet detected a missing replica (961628)
[00:02:22]: RakNet detected a missing replica (29980)
[00:02:22]: RakNet detected a missing replica (525058)
[00:02:22]: RakNet detected a missing replica (569344)
[00:02:22]: RakNet detected a missing replica (1594884)
[00:02:22]: RakNet detected a missing replica (1298169)
[00:02:22]: RakNet detected a missing replica (8591477)
[00:02:22]: RakNet detected a missing replica (15877297)
[00:02:22]: RakNet detected a missing replica (4496626)
[00:02:22]: RakNet detected a missing replica (4358214)
[00:02:22]: RakNet detected a missing replica (65718)
[00:02:22]: RakNet detected a missing replica (16428)
[00:02:22]: RakNet detected a missing replica (15638176)
[00:02:22]: RakNet detected a missing replica (7531186)
[00:02:22]: RakNet detected a missing replica (23938)
[00:02:22]: RakNet detected a missing replica (8588329)
[00:02:22]: RakNet detected a missing replica (10696184)
[00:02:22]: RakNet detected a missing replica (16253956)
[00:02:22]: RakNet detected a missing replica (12080604)
 

my custom item name is "bleach" 

Attach your mod here, I'll try to fix it

Link to comment
Share on other sites

Posted (edited)
2 hours ago, Haruhi Kawaii said:

I haven't tested it yet but as rezecib said in the post

 

bleach.lua 1.22 kB · 0 downloads

image.thumb.png.b758b0c97a9206f397123354f701330a.png

now all i need is the put this item into survival craft tab (this problem is the entire thing why the mod havent finished yet since 2022)

once i do that im done with the half of my mod i just need to put the carol song and the other items and ready to play (well actualy in 1 year a lot of things added to game i need the add new custom talks things to mod augh... )

 

Edited by HiraaCaan
Link to comment
Share on other sites

8 hours ago, HiraaCaan said:

wait how to put the item in the survival craft tab?

Spoiler
local Ingredient = GLOBAL.Ingredient
AddCharacterRecipe("bleach", {Ingredient("petals_evil", 4), Ingredient("messagebottleempty", 1), Ingredient("wetgoop", 2),}, GLOBAL.TECH.NONE, {atlas = "images/inventoryimages/bleach.xml", builder_tag = "westby"})

 

 

  • Thanks 1
Link to comment
Share on other sites

Posted (edited)
On 7/2/2023 at 5:40 AM, Haruhi Kawaii said:
  Reveal hidden contents
local Ingredient = GLOBAL.Ingredient
AddCharacterRecipe("bleach", {Ingredient("petals_evil", 4), Ingredient("messagebottleempty", 1), Ingredient("wetgoop", 2),}, GLOBAL.TECH.NONE, {atlas = "images/inventoryimages/bleach.xml", builder_tag = "westby"})

 

 

ahh...  now its says "another survivor knows how to craft" ????

why it says this i tried to look up on internet couldnt find anything :(

fixed 

Edited by HiraaCaan
  • Like 1
Link to comment
Share on other sites

On 7/2/2023 at 5:40 AM, Haruhi Kawaii said:
  Reveal hidden contents
local Ingredient = GLOBAL.Ingredient
AddCharacterRecipe("bleach", {Ingredient("petals_evil", 4), Ingredient("messagebottleempty", 1), Ingredient("wetgoop", 2),}, GLOBAL.TECH.NONE, {atlas = "images/inventoryimages/bleach.xml", builder_tag = "westby"})

 

 

btw pal, do you know how to make custom edible item that gives you buffs?

i couldnt find anything for like uhhh 3 hours?

Link to comment
Share on other sites

12 hours ago, HiraaCaan said:

btw pal, do you know how to make custom edible item that gives you buffs?

i couldnt find anything for like uhhh 3 hours?

Spoiler
local function oneaten(inst, eater)
   eater:AddDebuff("sweettea_buff", "sweettea_buff")
end
------fn ------
inst.components.edible:SetOnEatenFn(oneaten)

 

You can check out the buffs here or make your own
 

 

Link to comment
Share on other sites

11 hours ago, Haruhi Kawaii said:
  Reveal hidden contents
local function oneaten(inst, eater)
   eater:AddDebuff("sweettea_buff", "sweettea_buff")
end
------fn ------
inst.components.edible:SetOnEatenFn(oneaten)

 

You can check out the buffs here or make your own
 

 

ig it will help thank you again for evrything!!!

Link to comment
Share on other sites

5 hours ago, HiraaCaan said:

No... sorry it not working.

i mean idk if its works but i cant craft it and both server logs things doesnt realy say anything helpfully...

Hm...have you tried spawn pill_marble?, i don't seem to see any problem from pill_marble.lua if still not working please upload modmain here

Link to comment
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
 Share

×
  • Create New...