Ain't broke, but fixed anyway

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Xaxus
Posts: 24
Joined: Mon Sep 17, 2012 4:54 am

Ain't broke, but fixed anyway

Post 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.
User avatar
Xaxus
Posts: 24
Joined: Mon Sep 17, 2012 4:54 am

Re: Ain't broke, but fixed anyway

Post by Xaxus »

Anybody?
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Ain't broke, but fixed anyway

Post 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.
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Ain't broke, but fixed anyway

Post 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.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Ain't broke, but fixed anyway

Post by petri »

This bug is fixed in 1.2.9 so no need to workaround the issue anymore.
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Ain't broke, but fixed anyway

Post 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.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Xaxus
Posts: 24
Joined: Mon Sep 17, 2012 4:54 am

Re: Ain't broke, but fixed anyway

Post 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.
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Ain't broke, but fixed anyway

Post 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...
Post Reply