Page 1 of 1

More map types to generate

Posted: November 2nd, 2011, 12:00 am
by Jonty800
I was wondering if we could have maybe a couple more types of map generation in /gen.

Maybe one that resembles how the Beta world looks and another called Ruins?

Thankyouuu

Re: More map types to generate

Posted: November 2nd, 2011, 10:47 am
by fragmer
I do have some unfinished code for "ruins" already, I'll finish that one of these days. As for "Beta looking" terrain - that's a whole lot of work, and I've been doing some research in the area. But there's nothing definite planned for "Beta looking" terrain at this time.

Re: More map types to generate

Posted: November 2nd, 2011, 10:59 am
by Sanjar Khan
Don't forget the cacti on desert templates! =')

Re: More map types to generate

Posted: November 8th, 2011, 8:39 pm
by BobKare
Is it possible to make one with canyon theme, like someone made by hand on the server? :P

Re: More map types to generate

Posted: November 8th, 2011, 8:50 pm
by fragmer
It's doable with the fully-featured map generator in ConfigGUI, just play with the settings some.

Re: More map types to generate

Posted: November 8th, 2011, 10:15 pm
by Sanjar Khan
Wait what? You're saying I didn't have to do it manually?
*Downloading*

Re: More map types to generate

Posted: December 15th, 2011, 10:40 am
by Jonty800
would it be possible to have a /Genx command which does pretty much what the map generator in configGUI does?

So you could do /Genx Template 128 128 128 Module1 Module2 Module2... filename.

for example: /genx swamp 128 128 128 caves water trees ore beaches Jonty800.fcm

Re: More map types to generate

Posted: December 15th, 2011, 12:19 pm
by fragmer
There are 49 different parameters in MapGeneratorArgs. Imagine writing a command handler that covers it all - with input validation and range checks, in-game and wiki documentation. Imagine typing in that command. It's utterly impractical.

A more realistic way to handle this would be to add ability to load MapGenerator template files (.ftpl) or grab parameters that are already embedded in map metadata (map.Metadata["_Origin","GeneratorParams"]) to re-generate something.

Re: More map types to generate

Posted: December 15th, 2011, 2:06 pm
by Planitia
It wouldn't fit in the chat bar either.

Re: More map types to generate

Posted: December 15th, 2011, 3:20 pm
by Jonty800
Nevermind then :)

Re: More map types to generate

Posted: December 15th, 2011, 6:33 pm
by Hellenion
Planitia wrote:It wouldn't fit in the chat bar either.
Everything fits in the chat bar, you do know about line continuation, right?

Re: More map types to generate

Posted: December 16th, 2011, 1:45 am
by Planitia
Hellenion wrote:
Planitia wrote:It wouldn't fit in the chat bar either.
Everything fits in the chat bar, you do know about line continuation, right?
It's confusing and weird. Tell me more :D

Re: More map types to generate

Posted: December 16th, 2011, 8:31 am
by Hellenion
If you end your message with " /" (that's space+slash) and press enter, it'll allow you to type another line for the same message/command.

Code: Select all

Hellenion: /say This is a long message that actually should /
Hellenion: not fit in the chat bar, cool eh?
will print

Code: Select all

This is a long message that actually should not fit in the chat bar, cool eh?

You can use /nvm to discard partial messages.

Re: More map types to generate

Posted: December 16th, 2011, 6:26 pm
by ruggedbear
To add onto that, /nvm either is or is due to be analagous to /cancel, so that either may be used for one another.

Re: More map types to generate

Posted: December 17th, 2011, 2:56 am
by Planitia
Yeah it's confusing, It lets me add it on but it posts the partial message then the rest including the partial again.

It prints.

Code: Select all

Hellenion: /say This is a long message that actually should /
Hellenion:/say This is a long message that actually should not fit in the chat bar, cool eh?
[/s]

nvm I though it was posting the message but i just noticed it says "Partial" and not "Planitia"