Page 1 of 1

Ain't broke, but fixed anyway

Posted: Wed Sep 19, 2012 1:51 am
by Xaxus
So I download the newest beta, the 1.2.8, which is super neat and I'm really looking forward to it.
Loading my dungeon was flawless before, but now I am prompted with
"mod_assests/scripts/items.lua:14: bad argument 'slot' to 'cloneObject' (string expected, got number)

This is my item code.

Code: Select all

cloneObject{
	name = "dank_cudgel",
	baseObject = "cudgel",
	uiName = "Dank Cudgel",
	attackPower = 10,
	coolDownTime = 1,
	strength = 2,
	accuracy = 8,
	attackSound = "smoke",
	damageType = "physical",
	description = "This blunt weapon radiates with dank energy.",
}

cloneObject{
	name = "necklace_of_nugs",
	baseObject = "frostbite_necklace",
	uiName = "Necklace of Nugs",
	willpower = 8,
	protection = 5,
	resistFire = 3,
	resistCold = 3,
	weight = .028,
	description = "The smell of these nugs always brightens your day.",
}
Why doesn't this work anymore? I could interact with both items flawlessly before the patch in the preview, now I can't even load my dungeon.

Re: Ain't broke, but fixed anyway

Posted: Wed Sep 19, 2012 6:14 am
by Xaxus
Anybody?

Re: Ain't broke, but fixed anyway

Posted: Wed Sep 19, 2012 6:57 am
by petri
Oops, seems like a bug in the new error detection code. I'll fix this for the next build. To worksround this add:
slot = "Neck"
To necklace's definition.

Re: Ain't broke, but fixed anyway

Posted: Wed Sep 19, 2012 1:10 pm
by Neikun
Yeah I had to do the same thing.
At first I was like.. uhh uhhh
Then I realized that the number the error gives refers to lines in code.
Then I read the word slot.
Then I put in the script for all things that needed slotting.

Re: Ain't broke, but fixed anyway

Posted: Wed Sep 19, 2012 2:28 pm
by petri
This bug is fixed in 1.2.9 so no need to workaround the issue anymore.

Re: Ain't broke, but fixed anyway

Posted: Wed Sep 19, 2012 2:51 pm
by Neikun
I'm too used to Facebook. I keep wanting to hit a like or a thumbs up button for posts I don't really have a response to, but appreciate/like.

Re: Ain't broke, but fixed anyway

Posted: Wed Sep 19, 2012 3:34 pm
by Xaxus
petri wrote:This bug is fixed in 1.2.9 so no need to workaround the issue anymore.
Our king PETRI has spoken! Thank you so much for the fix, I was really worried over no big deal.
Thank you for everything, pretty much. You're doing beautiful work here and I really hope you understand how much it means to all of us.

Re: Ain't broke, but fixed anyway

Posted: Wed Sep 19, 2012 3:49 pm
by petri
Xaxus wrote:
petri wrote:This bug is fixed in 1.2.9 so no need to workaround the issue anymore.
Our king PETRI has spoken! Thank you so much for the fix, I was really worried over no big deal.
Thank you for everything, pretty much. You're doing beautiful work here and I really hope you understand how much it means to all of us.
Thanks! :D I'll try to do my best...