Is there a way to make a custom tile?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

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

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

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

Post by petri »

I'll post here also in case you didn't notice, defineTile() has been added to the scripting reference.
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

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

Post 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.
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

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

Post 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
MrChoke
Posts: 324
Joined: Sat Oct 25, 2014 7:20 pm

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

Post by MrChoke »

petri wrote:You can definitely add new tiles, I simply forgot to add it to the reference.
Excellent. Thanks Petri
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

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

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