Tabletop Simulator

Tabletop Simulator

Dungeon Tile Maze Generator
47 Comments
Markimus  [author] 26 Dec, 2024 @ 8:10am 
There is rdoogan12, though only through changing the actual code.

I haven’t played TTS in a while, so no updates planned for this tool.

I could maybe do something over commission if you’re interested, though that’s about it
rdoogan12 20 Dec, 2024 @ 6:25pm 
Is there anyway to make it so the maze creator works with other tiles?
V3NOM 4 Dec, 2020 @ 5:19pm 
"The laggy version where it wouldn't need to re-use tiles would be a lot simpler. It would just delete the old tiles and spawn in new ones."

@Markimus - This option does not sound too bad.
Basically, the idea is to have players move their gaming piece through the maze toward the exit, while the maze layout will change to increase the challenge.
[ As mentioned before, this feature (option) would be beneficial and enable more fun for users of this mod. ]
Markimus  [author] 4 Dec, 2020 @ 10:51am 
Maybe there wouldn't be any lag, the GIF shows instant generation after hitting the button.

The only thing you would definitely want to do is to re-use the tiles that are already on the table and just rearrange them in a different order instead of spawning in new ones.

It's definitely possible, though yeah it's not a simple request to do this. The laggy version where it wouldn't need to re-use tiles would be a lot simpler. It would just delete the old tiles and spawn in new ones.

The reason for the slow spawning in the GIF though is because spawning lots of objects at once is inherently laggy, and you wouldn't be able to have the instantaneous new maze layout that you want.
V3NOM 3 Dec, 2020 @ 6:15pm 
"That would require generating multiple mazes beforehand and hot-swapping them in to avoid the lag."

@Markimus - This idea could be remedied by using "states" with pre-generated mazes, but I was requesting for an "timed looped" script that can generate an new randomized maze based on an set timed variable.
[ I do apologize if this request is not a simple fix, but your skills are appreciated. Thank you! ]
Markimus  [author] 3 Dec, 2020 @ 7:41am 
Oh right, thought we were still on the colour-changing topic. When you said change I thought you meant change colour. ;)

Thanks for the correction, you want to change maze layouts every 30 seconds or whatever interval you're setting.

That would require generating multiple mazes beforehand and hot-swapping them in to avoid the lag. I could make something that would do this, though it would require more work than a quick 15 line script.

I know you might be able to find help elsewhere and that I'm a shill for saying this, though if you're happy to pay for something like this I'd be more than happy to help. This is not something I can help you with for free unfortunately.

Please type your request in the form at the bottom of my website and I'll get back to you shortly:

https://automateyourmod.com/
V3NOM 3 Dec, 2020 @ 6:59am 
"This will change the tiles to a random colour every 30 seconds"

@Markimus - I do appreciate your time and replies to my messages. However, I was requesting for an script to change the maze layout based on a timed variable, not the color of the tiles.
[ Sorry for the confusion. ]
Markimus  [author] 3 Dec, 2020 @ 4:34am 
@V3NOM

Put this script in a separate object, like a cube for example.
This will change the tiles to a random colour every 30 seconds:
https://hastebin.com/cewewixivu.lua
Markimus  [author] 3 Dec, 2020 @ 4:24am 
@V3NOM what is your use case?
V3NOM 2 Dec, 2020 @ 2:18pm 
"Feel free to message me if you run into any more problems"

@Markimus - There are no problems, but can you provide a script that can enable the maze to change (randomize) after setting a timed variable? (For an example, if you want the maze to change every thirty seconds.)
*This function and option would be resourceful to me and others.
Markimus  [author] 2 Dec, 2020 @ 7:20am 
@V3NOM Hey that's alright, not sure why that's happening. I did remove and edit my post a few times before submitting, you might have seen an earlier draft where I sent over the wrong line number. ;)

Feel free to message me if you run into any more problems, I'd be interested to know what your use case is for multi-coloured mazes.
V3NOM 1 Dec, 2020 @ 11:07pm 
@Markimus - Thank you for replying to my message, and your suggestion was helpful.

[ FYI, the script you provided made each tile of the maze a different color, but did provide an alternative option for my use. ]
Markimus  [author] 1 Dec, 2020 @ 1:09pm 
@V3NOM

This is something you can change quickly yourself.

Change line 335 to this:
function cb(obj) obj.setColorTint({r=math.random(), g=math.random(), b=math.random()) end

This will change the maze starter to a random colour when it spawns.
V3NOM 1 Dec, 2020 @ 12:11pm 
"You can tint the Maze Starter any colour and the rest of the tiles will copy that colour."

@Markimus - Can you add an script to change the colour of the default "Maze Starter" before it spawns? (I would like to have an random colorized maze each time it spawns at the touch of a button, instead of doing so manually.)
Markimus  [author] 15 Oct, 2018 @ 2:43pm 
Fixed!
Markimus  [author] 2 Oct, 2018 @ 12:50am 
It still works, the error doesn't affect the maze generation. I'll get round to fixing it later. Thanks!
Melon Pumpkinhead 1 Oct, 2018 @ 11:19pm 
Hey uhh been a while since I used this tool and have to say the old tool was great but uhh the new one keeps giving me an error when I hit the "create maze" button
._.Stashed Girl._. 24 Dec, 2017 @ 11:04pm 
I hope this working!

If yes... AHHHH SO GREAT..
If not.... AHHH... WHYYYY!?
Arukādo 29 Jul, 2017 @ 6:06am 
@Markimus Thanks for your help, I'll try your advices for the labyrinth entrance and wall size!
Markimus  [author] 28 Jul, 2017 @ 10:56am 
@Arukādo Something you could do; instead of using a tiny tile you could use the Gizmo tool to squish the Maze Starter down on its Y axis so that the walls are lower (make sure to revert back to Width: 1, 1 after). When you create the maze the rest of the tiles should also be squished. That'll make it easier to edit tiles if needed and will reduce the amount of lag.

If you want to edit any of the tiles, use the maze paintbrush included in this mod. It lets you remove walls, add walls etc. so you could probably use that to create your three gap space at the start and end of the maze.

I was thinking about adding some sort of preview box so you can see how much space the maze will take before you generate it, though I'm not really sure how to implement it yet. I could try using the new box cast() debug boolean, I've not tried using it yet and I'm not sure if it shows for everyone or just the host.
Arukādo 28 Jul, 2017 @ 6:49am 
Hi! First of all a big thanks for creating such a useful mod. I'm currently working on Yu-Gi-Oh! Labyrinth Duel and I would like you to help me creating a labyrinth creator for this game.
I found parameters which suit a bit what I want, I'm using 3x3 path size with a tiny piece (because the size of the wall is better for this game), you can take a look here http://prntscr.com/g1fsk0 . Unfortunatly the dungeon entrance doesn't fit to this game (the dungeon entrance is 3 special squares in this game). Thanks in advance for your help!
Markimus  [author] 11 Mar, 2017 @ 6:16am 
@H3xx I just realised, you could copy and paste the Maze Creator with different parameters in its description and then use Create States. Then you could quickly swap between the options.
Markimus  [author] 7 Mar, 2017 @ 7:48am 
Thanks for the suggestion. That would be a completely different mod to this so I'll have to think about it.
Legat 7 Mar, 2017 @ 4:25am 
@Markimus to generate in a random arrangement on width and longitude of n of bushes and trees
Markimus  [author] 6 Mar, 2017 @ 12:46pm 
@Мрак Could you please explain a little better?
Legat 6 Mar, 2017 @ 4:41am 
create please the same generator of the forest
H3xx 28 Feb, 2017 @ 3:57pm 
... Okay... I see.... That's more useful. It would still be nice if there were surface buttons to adjust the settings, rather than adjusting the description. And if you could change the textures of the tiles. But all in all, this is a really cool tool. :)
Markimus  [author] 28 Feb, 2017 @ 11:40am 
Also, @H3xx to achieve the same effect you could set the size of the maze to 1 and the Width to the dimensions of the room you want. This will create a bunch of floor tiles and you can discard the edge walls.
Markimus  [author] 22 Feb, 2017 @ 2:27pm 
Thanks for the suggestions!
H3xx 22 Feb, 2017 @ 12:21pm 
So, I did a little playing with this... I opened the code and simply searched and replaced the walls and corners with floors, and now it only lays down floors. This makes it really useful for building dungeon maps quickly. I wonder if you could move the sizing from the description to a set of counters on the face of the tool, so you can quickly swap between different sizes, add a floors only button for traditional map building, and possibly change the vanilla tiles used to the tiles in this mod: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=785565897&searchtext=custom+tile

They're the same size as the vanilla tiles, but allow custom textures.

This would make this a much more useful tool in my opinion, and would be greatly appreciate any improvements.
Markimus  [author] 17 Feb, 2017 @ 2:51pm 
@Dungeonlord Just scale the Maze Starter to whatever size and hit "Create Maze". This is easy to do now in the new update.
Dung3onlord 17 Feb, 2017 @ 2:38pm 
how did you made the walls of the maze in the 2nd picture of the mod? i would like to have higher walls
Ina Box 12 Feb, 2017 @ 9:14am 
This is amazing. I love it! Good job!
pearl jam kratos 12 Feb, 2017 @ 9:12am 
play in vr and then shrink yourself down, have fun
Kommandant Frisk 10 Feb, 2017 @ 10:25pm 
You know what would be great for this?

A Hedgemaze version.
Sonoflear 10 Feb, 2017 @ 7:22pm 
alrighty thanks ^_^;; i completely forgot about that ability to be honest not many games or things require it so thanks :D so like i said i shall take back the 9/10 and give it 100/10 :steamhappy:
Sancho 10 Feb, 2017 @ 6:53pm 
Nice scripting!
Markimus  [author] 10 Feb, 2017 @ 6:23pm 
@Sonoflear While holding the brush with the left mouse button, press right click to lower it on to the tiles you want to brush it against.

@Toadally Awesome You'll want to edit the script itself, in particular the createWall() function. I may add in some easier way to do this in the future.
Toadally Awesome 10 Feb, 2017 @ 5:40pm 
Congrats on the mod and the work you've put into. I was wondering, if I already have a set of tiles as game objects, is there a way to incorporate them in your structure?

As in, what would I need to edit to change the type of tile the maze/dungeon consists of?
Sonoflear 10 Feb, 2017 @ 4:44pm 
i'm not sure how to sweep it sadly o.o when i move it, it lifes up above the walls and i have to drop it and repick up for each tile
Markimus  [author] 10 Feb, 2017 @ 2:58pm 
You can use the floor brush and sweep it across the tiles to make just a floor base.
Sonoflear 10 Feb, 2017 @ 2:54pm 
Unless of corse there is and i haven't figured it out yet but if thats the case I withdraw my last rating and give it 100/10 :D
Sonoflear 10 Feb, 2017 @ 2:52pm 
9/10 the only thing that it needs is something to turn the premade dungeons into just floors so its a floor :D
Frostythereaper 6 Feb, 2017 @ 5:42pm 
Just blew my mind
Alefool 6 Feb, 2017 @ 11:32am 
best maze maker ever
darleth 6 Feb, 2017 @ 12:28am 
OMG Amazing work....
Yggralith 5 Feb, 2017 @ 8:16pm 
HOW DID YOU DO IT
IT'S SO COOL <3