Modding : sanity items not consumed

Bug reports go here

Modding : sanity items not consumed

Postby JeanChose » Sun Dec 24, 2017 11:56 am

Heyoooo ! Merry Xmas yall !!!

Finding that modding was added, I immediately started to make an item. I based the code off of the sloppy burger, but when I go in game, neither the sloppy burger or my item (the flask of plenty) have a golden frame, neither can be clicked, neither can be consumed. What the hell.

Here's the code of the flask of plenty



{
modInfo:
{
id: flaskofplenty
name: Flask of Plenty
authors: ["ionzu"]
version: "1.0"
enabled: true
defaultLang: en
preview: mod_preview
description: "Probably Moonshine"
},

imageData:[
{
id: mod_preview
file: flaskofplenty/mod_preview.png
}

{
id: it_flask.png
file: flaskofplenty/it_flask.png
}
],
modEntries:[

{
id: it-flaskofplenty
name: txt-it-flaskofplenty-name
description: txt-it-flaskofplenty
sprite: it_flask.png
debugCategory: sanity
value: 1
maxStack: 99
select: {
sanity: 70
removeItem : true
}
}
{
targetId: +il-harbor-rations::items
it-flaskofplenty: 99
slots: 1000
}

]
}



Here's the code of the Sloppy Burger:

{
modInfo:
{
id: sloppyBurger
name: The Sloppy Burger
authors: ["8BitBeard", "Ole"]
version: "1.0"
enabled: true
defaultLang: en
preview: previewImage
twitter: http://twitter.com/maschimensch
weblink: http://curious-expedition.wikia.com/wik ... orial_Item
mail: support@maschinen-mensch.com
description: "The sloppy burger, created with the item tutorial on our documentation wiki. Follow the web-link on the right side of this box to see the full tutorial."
},
imageData:[
{
id: previewImage
file: sloppyBurger/preview.png
}
{
id: it_sloppyBurger.png
file: sloppyBurger/it_sloppyBurger.png
}
],
modEntries:[
{
id: it-sloppyBurger
name: txt-it-sloppyBurger-name
description: txt-it-sloppyBurger
debugCategory: sanity
sprite: it_sloppyBurger.png
value: 7
maxStack: 20
select: [
{
slots: 3
sanity: 5
removeItem: true
}
{
slots: 2
sanity: 10
removeItem: true
}
{
slots: 1
sanity: 15
removeItem: true
}

]
}
{
targetId: +il-harbor-rations::items
it-sloppyBurger: 10
slots: 2
}
]
}
Attachments
it_flask.png
it_flask.png (18.88 KiB) Viewed 115 times
User avatar
JeanChose
 
Posts: 67
Joined: Sat May 23, 2015 11:27 am

Re: Modding : sanity items not consumed

Postby riadd » Mon Jan 22, 2018 12:18 pm

Hey JeanChose, the previous item tutorial contained a error. The error "select" should have been "useEvents". That error has been corrected in the tutorial some time ago. If you change that it should work fine.
User avatar
riadd
Curious Dev
Curious Dev
 
Posts: 822
Joined: Thu May 22, 2014 11:36 am
Location: Berlin


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest
cron