The Ultimate Site of Worms Armageddon

Worms: Armageddon => General discussion => Topic started by: CyberShadow on June 23, 2019, 09:02 PM

Title: MapGEN integrated into HostingBuddy
Post by: CyberShadow on June 23, 2019, 09:02 PM
With help from Plutonic, MapGEN is now integrated into HostingBuddy. Use the !mapgen command to generate a new map for the current scheme.

Not all HostingBuddy schemes are associated with a MapGEN map kind. You can see the full list, as usual, here (http://hostingbuddy.wormnet.net/data/schemes/schemes.xml) (look for the "MapGEN game type" field).

You can also specify parameters. For example, typing:
Quote
!scheme rr
!mapgen width=640 height=4000
will generate a vertical rope race map. You can specify any parameter that can be present in a MapGEN configuration file (.mgs).
Title: Re: MapGEN integrated into HostingBuddy
Post by: Saint on June 23, 2019, 09:15 PM
cool,gj
Title: Re: MapGEN integrated into HostingBuddy
Post by: eule on June 23, 2019, 09:59 PM
i'm getting this error:

[`eule] !scheme t17
The game type has been set to: Team17.
Type !map to select a random Team17 map.
[`eule] !mapgen width=3640 height=640
Generating random map...
Error: MapGEN failed (non-zero exit code)
Title: Re: MapGEN integrated into HostingBuddy
Post by: CyberShadow on June 23, 2019, 10:08 PM
Looks like a bug in mapgen. It's crashing with a floating-point exception. Try other settings for now, I guess.
Title: Re: MapGEN integrated into HostingBuddy
Post by: j0e on June 23, 2019, 11:13 PM
Awesome work Cybie and Plutonic. Really cool to see those custom map textures are usable (eg. Tetris).

Still a bit buggy - tried to specify size of shopper map with "!mapgen width=2400 height=800". Sometimes it makes a 1920x696 shopper map, other times it disconnects me saying the map did not have black at palette 0. Tried same command when hosting mole shopper and it gave me a roperace map, after which subsequent "!mapgen" commands created bng maps.

Will update this post if I find anything else.
Title: Re: MapGEN integrated into HostingBuddy
Post by: CyberShadow on June 23, 2019, 11:14 PM
Ah, that would be because someone is simultaneously trying to use the feature from a remnant HostingBuddy instance running in the background. This is not a typical situation. Will fix.
Title: Re: MapGEN integrated into HostingBuddy
Post by: Sensei on June 24, 2019, 06:38 AM
Is it possible to choose type of terrain when generating map?

For example, if Boom race or Jetpack race is hosted, it would be ideal for mapgen to generate only Tetris maps (custom terrain made by SiD). That's the only terrain in W:A that doesn't have problems with roof spikes.

I assume command could be done with: !mapgen tetris


Anyway, great work guys! Appreciate it.
Title: Re: MapGEN integrated into HostingBuddy
Post by: CyberShadow on June 24, 2019, 01:47 PM
You can use any parameter that can be in a MapGEN .mgs file. To ask for the Tetris theme, use theme=1618213977.
Title: Re: MapGEN integrated into HostingBuddy
Post by: TheKomodo on June 24, 2019, 09:27 PM
Nice!

Good work lads!
Title: Re: MapGEN integrated into HostingBuddy
Post by: j0e on June 25, 2019, 01:05 AM
You can use any parameter that can be in a MapGEN .mgs file. To ask for the Tetris theme, use theme=1618213977.
Using theme=1618213977 results in this error:

Error: MapGEN failed (floating point error) - try generating a smaller map or using simpler parameters

PS: is there somewhere we can upload our custom themes, for integration with HB? I started making a Pokemon theme: https://www.tus-wa.com/forums/worms-armageddon/mapgen-v0-8-7-2-27395/msg273046/#msg273046
Title: Re: MapGEN integrated into HostingBuddy
Post by: CyberShadow on June 25, 2019, 11:03 PM
Using theme=1618213977 results in this error:

Error: MapGEN failed (floating point error) - try generating a smaller map or using simpler parameters
Some game types have default settings that always result in an error unless specified. Try another game type, or specify all settings that MapGEN writes to the .mgs file (replace newlines with spaces and spaces with =). E.g. for islands, landdensity=50 will fix a floating point error.

PS: is there somewhere we can upload our custom themes, for integration with HB? I started making a Pokemon theme: https://www.tus-wa.com/forums/worms-armageddon/mapgen-v0-8-7-2-27395/msg273046/#msg273046
Get them included with MapGEN itself. (Though, I don't know how Nintendo would feel about us generating maps with sprites from their games...)
Title: Re: MapGEN integrated into HostingBuddy
Post by: j0e on June 26, 2019, 01:37 AM
Using theme=1618213977 results in this error:

Error: MapGEN failed (floating point error) - try generating a smaller map or using simpler parameters
Some game types have default settings that always result in an error unless specified. Try another game type, or specify all settings that MapGEN writes to the .mgs file (replace newlines with spaces and spaces with =). E.g. for islands, landdensity=50 will fix a floating point error.

PS: is there somewhere we can upload our custom themes, for integration with HB? I started making a Pokemon theme: https://www.tus-wa.com/forums/worms-armageddon/mapgen-v0-8-7-2-27395/msg273046/#msg273046
Get them included with MapGEN itself. (Though, I don't know how Nintendo would feel about us generating maps with sprites from their games...)
Good points and useful info thanks. Getting more used to the commands now. I'll make sure to specify everything though.
Title: Re: MapGEN integrated into HostingBuddy
Post by: Plutonic on July 01, 2019, 10:03 AM
A new build of MapGen has been pushed out to the live HostingBuddy. I wont list every change, but here are the main highlights:

Title: Re: MapGEN integrated into HostingBuddy
Post by: j0e on July 01, 2019, 04:14 PM
Great work Pluto. Been really enjoying using MapGen since its merging with HB.
Title: Re: MapGEN integrated into HostingBuddy
Post by: r3spect on July 02, 2019, 02:18 PM
gj guys , how do now good map bng ? parameters
Title: Re: MapGEN integrated into HostingBuddy
Post by: h3oCharles on July 05, 2019, 01:46 PM
POGGERS
Title: Re: MapGEN integrated into HostingBuddy
Post by: Plutonic on July 06, 2019, 10:39 AM
gj guys , how do now good map bng ? parameters

Hey, the params you can use for BnG are:

width=[number]
height=[number]
complexity=[number:0 - 1000]
objects=[number: 0 - 100]
lumpsize=[number: 30 - 80]
cavern=[0,1,2]
canyon=[0,1,2]
floaters=[0,1,2]
Title: Re: MapGEN integrated into HostingBuddy
Post by: h3oCharles on July 27, 2019, 07:33 PM
parameters for big rr plz
Title: Re: MapGEN integrated into HostingBuddy
Post by: Plutonic on August 04, 2019, 08:09 AM
RR:

width=[number]
height=[number]
path=[number, 174 - 522]
complexity=[number, 0- 100]
soil=[0,1]
water=[0,1]
starttopleft=[0,1]