Page 2 of 2

Re: Is there a way to make a custom tile?

Posted: Thu Nov 06, 2014 11:16 am
by Doridion
petri wrote:You can definitely add new tiles, I simply forgot to add it to the reference.
Many thanks perti !!!! ON WORK !!!!!
Prozail wrote:Well .. the definition looks something like
SpoilerShow

Code: Select all

defineTile {
	name = string-required
	randomFloorFacing = boolean
	builder = string-required
	floor = table
	wall  = table
	pillar = table
	centarPillar = table
	ceiling = table
	ceilingShaft = string
	solid = boolean
	diggable = boolean
	underwater = boolean
	heightmapMaterial = string
	heightmapMaterialPriority = number
	ceilingEdgeVariations = boolean
	automapTile = string
	moveSound = string
}
But so far, the only thing i've managed to do with it is crash my editor ;)
Think I'll wait for some official documentation on this one... :mrgreen:
Think that can comme from the builder argument, not sure about that, but already in tests :D Happy, can find back my pretty Bloodwych aspect :mrgreen:

Re: Is there a way to make a custom tile?

Posted: Thu Nov 06, 2014 11:17 am
by petri
I'll post here also in case you didn't notice, defineTile() has been added to the scripting reference.

Re: Is there a way to make a custom tile?

Posted: Thu Nov 06, 2014 12:14 pm
by Doridion
Ok, after several tests, got a correct result for Tile definitions ! But ( always a "but" ^^ )

In LoG1, you just defineWallSet with giving model path/name. Actually in LoG2, you must define ALL parts of your tiles ( walls, floors, ceiling, etc ) in the object.lua file before giving their an ID, and calling them in the defineTile. That's why you got crashes Prozail.

I'll give some examples after in this thread.

Re: Is there a way to make a custom tile?

Posted: Thu Nov 06, 2014 12:27 pm
by Prozail
figured it out partly last night, got a simplified version of the LoG1 prison-tileset working. (basically just floor, ceiling, and one walltile)
Not gonna use it so.. it was just a nice challenge to get it working.

Working on scripting a bossfight now :p.. BRAAAINSSS

Re: Is there a way to make a custom tile?

Posted: Thu Nov 06, 2014 2:50 pm
by MrChoke
petri wrote:You can definitely add new tiles, I simply forgot to add it to the reference.
Excellent. Thanks Petri

Re: Is there a way to make a custom tile?

Posted: Thu Nov 06, 2014 3:57 pm
by Doridion
Prozail wrote:figured it out partly last night, got a simplified version of the LoG1 prison-tileset working. (basically just floor, ceiling, and one walltile)
Not gonna use it so.. it was just a nice challenge to get it working.
I'm actually having good results, the simple issue is for textures ... but think that the retexturing thread by leki will help me. Perhaps got first full Tile set this afternoon or tomorrow ( if I sleep ).