Page 31 of 36

Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)

Posted: Wed Nov 14, 2012 3:19 am
by melierax
This is all alcove
SpoilerShow
defineObject{
name = "table_alcove_east_left",
class = "Alcove",
anchorPos = vec(-1, 0.85, 0.114),
anchorRotation = vec(0, 0, 0),
targetPos = vec(0, 0.87, 0.114),
targetSize = vec(0.5, 0.3, 0.9),
placement = "wall",
editorIcon = 92,
onInsertItem = function(self, item)
if self:getItemCount() == 1 then
return false
else
return true
end
end
}

defineObject{
name = "table_alcove_east_right",
class = "Alcove",
anchorPos = vec(1, 0.85, 0.114),
anchorRotation = vec(0, 0, 0),
targetPos = vec(0, 0.87, 0.114),
targetSize = vec(0.5, 0.3, 0.9),
placement = "wall",
editorIcon = 92,
onInsertItem = function(self, item)
if self:getItemCount() == 1 then
return false
else
return true
end
end
}
defineObject{
name = "table_alcove_west_left",
class = "Alcove",
anchorPos = vec(-1, 0.85, 0.114),
anchorRotation = vec(0, 0, 0),
targetPos = vec(0, 0.87, 0.114),
targetSize = vec(0.5, 0.3, 0.9),
placement = "wall",
editorIcon = 92,
onInsertItem = function(self, item)
if self:getItemCount() == 1 then
return false
else
return true
end
end
}

defineObject{
name = "table_alcove_west_right",
class = "Alcove",
anchorPos = vec(1, 0.85, 0.114),
anchorRotation = vec(0, 0, 0),
targetPos = vec(0, 0.87, 0.114),
targetSize = vec(0.5, 0.3, 0.9),
placement = "wall",
editorIcon = 92,
onInsertItem = function(self, item)
if self:getItemCount() == 1 then
return false
else
return true
end
end
}

defineObject{
name = "table_alcove_east",
class = "Alcove",
anchorPos = vec(0, 0.85, 0.114),
anchorRotation = vec(0, 0, 0),
targetPos = vec(0, 0.87, 0.114),
targetSize = vec(0.2, 0.2, 0.2),
placement = "wall",
editorIcon = 92,
}

defineObject{
name = "table_alcove_west",
class = "Alcove",
anchorPos = vec(0, 0.85, 0.114),
anchorRotation = vec(0,0, 0),
targetPos = vec(0, 0.87, 0.114),
targetSize = vec(0.2, 0.2, 0.2),
placement = "wall",
editorIcon = 92,
}
defineObject{
name = "table_alcove_north",
class = "Alcove",
anchorPos = vec(0, 0.85, -0.114),
anchorRotation = vec(0, 0, 0),
targetPos = vec(0, 0.87, -0.114),
targetSize = vec(0.2, 0.2, 0.2),
placement = "wall",
editorIcon = 92,
}
defineObject{
name = "table_alcove_south",
class = "Alcove",
anchorPos = vec(0, 0.85, -0.114),
anchorRotation = vec(0, 0, 0),
targetPos = vec(0, 0.87, -0.114),
targetSize = vec(0.2, 0.2, 0.2),
placement = "wall",
editorIcon = 92,
}
Here the material
SpoilerShow
defineMaterial{
name = "ringmounts",
diffuseMap = "mod_assets/textures/items/ringmounts.tga",
--specularMap = "mod_assets/textures/practice_dummy_spec.tga",
--normalMap = "mod_assets/textures/practice_dummy_normal.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 40,
depthBias = 0,
}
Here the object
SpoilerShow
defineObject{
name = "table",
class = "Altar",
model = "mod_assets/models/items/table.fbx",
placement = "floor",
editorIcon = 52,
}
Here the model of the table in the folder Grimrock

If you are not able to access the folder Grimrock, would it be possible to tell me a site where I can send the model? (Really not used to this)

If anything is missing please let me know, I'm still not used to send the information in the forum

Thank you for your patience

Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)

Posted: Wed Nov 14, 2012 3:24 am
by Neikun
That link takes me to my own dropbox home page.
What you need to do is to click through your folders and find the file you want to send, click the link button on the right hand side. (Looks like two pieces of chain) and share the link from there.

Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)

Posted: Wed Nov 14, 2012 3:33 am
by Komag
I like the huge table, makes sense in some circumstances :)

Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)

Posted: Wed Nov 14, 2012 3:36 am
by melierax
Now i understand Thank you

https://www.dropbox.com/sh/lr4slnm2ltxphim/nA0eAr-qsa

Is it ok ?

Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)

Posted: Wed Nov 14, 2012 3:40 am
by Neikun
Awesome. I've nabbed the files. I'll give it a look maybe tomorrow.

Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)

Posted: Wed Nov 14, 2012 3:52 am
by melierax
No problem ;) There is no rush. I have plenty of ideas but it is the design that concerned me. It took me two full days to do this for me when the time does not count. (This is a hobby peaceful and pleasant) :D
Thank you for looking at this project.
Thank you to the community for all the effort you put (everyone) in all these projects. I love this community and also dungeons and the editor gives me the opportunity.

Thank you

Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)

Posted: Wed Nov 14, 2012 3:59 am
by Neikun
C'est bon.
Bienvenue dans notre communauté. J'espère voir beaucoup de votre travail à l'avenir.
Moi aussi, je suis en utilisant Google translate que mon français fait cruellement défaut.
;)

Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)

Posted: Wed Nov 14, 2012 4:41 am
by melierax
Quick question: Is there a limit alcove that can attach a altar?

Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)

Posted: Wed Nov 14, 2012 4:47 am
by Neikun
I don't think I understand.
You can place more than one alcove on top of each other, but you have to be careful that their clickboxes don't overlap.
One useful trick to mulitple alcoves on the same wall, is to have your model defined as a decoration, and all related alcoves to not have any model.

Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)

Posted: Wed Nov 14, 2012 5:03 am
by melierax
Ok I understand

Thank you