PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

randomly generated landscapes

The lev file definition includes a function for letting the game randomly generate a landscape. Matt told me about his level "Shifting Sands" which utilizes this function. However, his level crashes snails on both my Pocket PC, and my Desktop PC.

Pocket PC: Toshiba e750, WM2003, Snails 2.0
Desktop PC: Windows XP Pro, Snails (current beta)
(Shifting Sands is located on the 6th page of snails.pocketmatrix.com)

I've installed the level by adding the files to the Snails installation folder:

<pre>PDA Mill Snails (folder)
Levels (folder)
sand (folder)
loader.zbm
SAND_BG.zbm
SAND_FG.zbm
SAND_SM.zbm
sand.lev</pre>

I can start the game and see the new level in the choose levels screen. However, when it actually tries to start the game I get a white screen on the PPC. I have to soft reset to get out of it. The behavior is similar on the XP machine except the game just shuts down completely.

I have an idea for a level that would use the landscape generator for but I want to make sure the function works before I do the illustration.

Thanks.
Matt Gifford · 21 Aug 2004, 04:41 UTC
I have the same problem whenever I try to run a random level.

I have an ipaq 3670 with pocketpc 2002
My pc runs the level fine and is running the latest beta. My pc is running xp home edition.
I thought the random level generator was removed from the game?
Matt Gifford · 21 Aug 2004, 06:18 UTC
since when?
Since a while ago. Aleast thats what I was told. It says it in one of the threads around here somewhere. It was rememoved because it took up too much space in the ZBM file.
Someone should update this then:
.LEV file definition

It says:
Random = 1: If you want to use your level with random-generated foreground shapes, set it to 1. Your foreground picture must be fully filled (e.g. no transparent areas).
I remember that the actual rsndomly generated level was removed, however, the function should still be avavilable.

But you need to have the original (which I am looking for), because it had a certain data file with it that was needed for the random generation--which is what was originally so big and why it was removed, although with pdamill's current tech, it could easily just be stored in a data zip file and take up little space--

I'll see if i can convince peter to put it back in the next version.

MEanwhile, I'll see if I can dig up that old file and get it to work with the current version.

I'll post here when I do.
I would love to see random maps. Something new each time.
Did snails v. 1.7 have the random level generator? Theres a copy of it in the members sections on the snails site.
Just got it working. :)

All you need is this file rndlvl.dat in the snails\levels folder.

http://jaybot7.com/rndlvl.dat

Enjoy! :D
Matt Gifford · 22 Aug 2004, 00:35 UTC
Thanks Jaybot.

It works Great.