Forums
April 20, 2024, 03:40 AM

Author Topic: MapGEN integrated into HostingBuddy  (Read 2074 times)

0 Members and 1 Guest are viewing this topic.

Offline CyberShadow

  • W:A maintainer
  • Full Member
  • *****

  • Moldova Moldova
  • Posts: 173
    • View Profile
    • Homepage
MapGEN integrated into HostingBuddy
« 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 (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).
« Last Edit: June 23, 2019, 09:36 PM by CyberShadow »

Offline Saint

Re: MapGEN integrated into HostingBuddy
« Reply #1 on: June 23, 2019, 09:15 PM »
cool,gj

Offline eule

Re: MapGEN integrated into HostingBuddy
« Reply #2 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)

Offline CyberShadow

  • W:A maintainer
  • Full Member
  • *****

  • Moldova Moldova
  • Posts: 173
    • View Profile
    • Homepage
Re: MapGEN integrated into HostingBuddy
« Reply #3 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.

Offline j0e

  • Sr. Member
  • ****

  • Canada Canada
  • Posts: 445
    • View Profile
Re: MapGEN integrated into HostingBuddy
« Reply #4 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.
« Last Edit: June 23, 2019, 11:15 PM by j0e »

Offline CyberShadow

  • W:A maintainer
  • Full Member
  • *****

  • Moldova Moldova
  • Posts: 173
    • View Profile
    • Homepage
Re: MapGEN integrated into HostingBuddy
« Reply #5 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.

Online Sensei

Re: MapGEN integrated into HostingBuddy
« Reply #6 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.

Offline CyberShadow

  • W:A maintainer
  • Full Member
  • *****

  • Moldova Moldova
  • Posts: 173
    • View Profile
    • Homepage
Re: MapGEN integrated into HostingBuddy
« Reply #7 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.

Offline TheKomodo

Re: MapGEN integrated into HostingBuddy
« Reply #8 on: June 24, 2019, 09:27 PM »
Nice!

Good work lads!

Offline j0e

  • Sr. Member
  • ****

  • Canada Canada
  • Posts: 445
    • View Profile
Re: MapGEN integrated into HostingBuddy
« Reply #9 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
« Last Edit: June 25, 2019, 02:30 AM by j0e »

Offline CyberShadow

  • W:A maintainer
  • Full Member
  • *****

  • Moldova Moldova
  • Posts: 173
    • View Profile
    • Homepage
Re: MapGEN integrated into HostingBuddy
« Reply #10 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...)

Offline j0e

  • Sr. Member
  • ****

  • Canada Canada
  • Posts: 445
    • View Profile
Re: MapGEN integrated into HostingBuddy
« Reply #11 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.

Offline Plutonic

Re: MapGEN integrated into HostingBuddy
« Reply #12 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:

  • Add back in the "S" and "E" markers on the SSR maps.
  • Fix an issue where using parameters on a RR map would prevent the Start And Finish markers being rendered.
  • Allow theme to be selected via name, not just by hash.
  • Clamp out-of-range parameters rather than ignoring them completely.
  • Improve the default values used when no parameters are given (on going process).
  • When using parameters, parameters that are not provided will now fall back onto the defaults.
  • Fix up some issues that could cause maps to be of an invalid size.

Offline j0e

  • Sr. Member
  • ****

  • Canada Canada
  • Posts: 445
    • View Profile
Re: MapGEN integrated into HostingBuddy
« Reply #13 on: July 01, 2019, 04:14 PM »
Great work Pluto. Been really enjoying using MapGen since its merging with HB.

Re: MapGEN integrated into HostingBuddy
« Reply #14 on: July 02, 2019, 02:18 PM »
gj guys , how do now good map bng ? parameters
« Last Edit: July 02, 2019, 02:50 PM by r3spect »