Barony
Mr. Sheep Jul 28, 2018 @ 11:21am
Changing the location of special maps entrance
Hey all,

I just started doing some maps, and I'm planning to post them soon.
But I realized that the special maps (Gnomes \o/) still appears on the same levels.
I'd like to change that.

I searched, but didn't find anywhere how to change this config.

Could someone please advise?

(Post content: I added a sewer, a graveyard, a jail, and a Goblin Fortress until now. I'm planning add a few more :P)

Thanks in advance!
Originally posted by WALL OF JUSTICE:
Hi Mr. Sheep, secret levels work as follows:

Exits to secret levels are fixed to the current level depth.
  • Minesecret.lmp is dungeon level 2(100%), level 3 (50%)
  • Swampsecret.lmp level 7 + 8
  • Labyrinthsecret.lmp level 11 + 13
  • Ruinssecret.lmp level 16 + 18
  • Cavessecret.lmp level 28
  • Citadelsecret.lmp level 33

These spawn a portal that changes the levels to load from secretlevels.txt instead of levels.txt.

And the map that is loaded is pulled from secretlevels.txt:
  • map: warpzone
  • map: warpzone
  • map: warpzone
  • map: gnomishmines - level 2
  • map: minetown - level 3
  • map: warpzone
  • gen: underworld
  • gen: underworld
  • map: temple - level 7
  • map: greatcastle - level 8
  • ... etc

When you exit the secret level it jumps back to using the levels.txt file order.

So in your mod, you'll change the lines gnomishmines to your sewer map name and players can enter the sewer from level 2.

Using a portal sprite in your map will toggle the secret/normal level list, so in sewer.lmp if you want players to move directly to minetown instead of the next normal level you replace the portal with a ladder sprite.

If you want to allow secret levels randomly in generation, have a room mine33.lmp or whatever include a portal which will give players a chance to move to the secret level.

"warpzone.lmp" map is just a default placeholder map that lets you return to the normal level list through the 4 portals so it's useful to debug if you didn't put maps in the correct order.
< >
Showing 1-8 of 8 comments
WALL OF JUSTICE  [developer] Jul 28, 2018 @ 10:45pm 
The secret levels that appear read from the secretlevels.txt file in the maps/ directory.

The actual spawning of the secret exits are hardcoded so you'll have to work with that limitation.

Hope this helps!
Mr. Sheep Jul 29, 2018 @ 10:52am 
Hey!

So, If I just override this file adding It into my mod, It Will enable me to choose the level which they will appear?
I want them being generated in the same random levels, but in different "floors"

Edit: I checked the file but didn't understood quite well how it works :(

Could you please brifly explain it?

Thanks!

Thanks!
Last edited by Mr. Sheep; Jul 29, 2018 @ 1:54pm
The author of this thread has indicated that this post answers the original topic.
WALL OF JUSTICE  [developer] Jul 29, 2018 @ 5:17pm 
Hi Mr. Sheep, secret levels work as follows:

Exits to secret levels are fixed to the current level depth.
  • Minesecret.lmp is dungeon level 2(100%), level 3 (50%)
  • Swampsecret.lmp level 7 + 8
  • Labyrinthsecret.lmp level 11 + 13
  • Ruinssecret.lmp level 16 + 18
  • Cavessecret.lmp level 28
  • Citadelsecret.lmp level 33

These spawn a portal that changes the levels to load from secretlevels.txt instead of levels.txt.

And the map that is loaded is pulled from secretlevels.txt:
  • map: warpzone
  • map: warpzone
  • map: warpzone
  • map: gnomishmines - level 2
  • map: minetown - level 3
  • map: warpzone
  • gen: underworld
  • gen: underworld
  • map: temple - level 7
  • map: greatcastle - level 8
  • ... etc

When you exit the secret level it jumps back to using the levels.txt file order.

So in your mod, you'll change the lines gnomishmines to your sewer map name and players can enter the sewer from level 2.

Using a portal sprite in your map will toggle the secret/normal level list, so in sewer.lmp if you want players to move directly to minetown instead of the next normal level you replace the portal with a ladder sprite.

If you want to allow secret levels randomly in generation, have a room mine33.lmp or whatever include a portal which will give players a chance to move to the secret level.

"warpzone.lmp" map is just a default placeholder map that lets you return to the normal level list through the 4 portals so it's useful to debug if you didn't put maps in the correct order.
Mr. Sheep Jul 30, 2018 @ 9:30am 
Thank you WoJ!

Your game is awesome!

I hope to be able to add nice content on it soon!
Mr. Sheep Jul 30, 2018 @ 2:42pm 
Hey WoJ!

I just realized that it wasn't what I wanted :(
I wanted the possibility to change WHEN the secret stage will appear. like, gnomish mines on room 4 or 5 instead of 2.

But this already gave me a new perspective!

Is it possible that you implement a way to change this in a future?

Thanks!
WALL OF JUSTICE  [developer] Jul 30, 2018 @ 6:23pm 
Absolutely, workshop is driven by player feature requests :)
WALL OF JUSTICE  [developer] Jul 30, 2018 @ 11:20pm 
If you haven't joined the discord server https://discord.gg/Eg2r5fE I've just put up a pre-steam build that includes these custom map properties :)

If you wanna test that, you can specify lines in levels.txt like

"gen: mine secret%: 50 darkmap%: 25 minotaur%: 10" for example which sets the secret level chance to 50%. the other tags are optional just needs to have a space between the tag and number. The exit room name will be "minesecret.lmp" or "sewersecret.lmp" depending on the filename of the base map so make sure that file exists.
Mr. Sheep Jul 31, 2018 @ 3:54am 
I'll join for sure!

Thanks a lot! These features seem great as well!
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Jul 28, 2018 @ 11:21am
Posts: 8