| View previous topic :: View next topic |
| Author |
Message |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Wed May 09, 2007 2:31 pm Post subject: New Map Generator: BioHazard (MFG) |
|
|
Now available in the plugin manager.
Introducing a new map generator:
Biohazard takes an existing map file and randomly selects countries that are deemed hazardous. These countries are removed from the map and marked with a biohazard icon. The map choice determines the amount of wasteland generated, but does not change the original map size in any way. Version 1.0 supports Classic and Deux. You must have the original map file to use the Biohazard version.
As discussed in this Feature Request thread.
Credit for the initial idea goes to The Archer.
Some screen shots:
Classic - Medium
Deux - Extreme
The current map options are fixed. Hopefully I will be able to support more maps in a future version. There are four choices for each map - light, medium, heavy and extreme. These choices determine the amount of hazardous land generated. This is done by percentage so larger maps get more wasteland countries than would a smaller map at the same level. I think that Classic and Deux are pretty similar though, so it works out to roughly 1, 2, 4 and 8 countries in version 1.
Note that this map generator reads your original map file, so you must have the classic or deux installed and without having changed the file name.
Feedback/enhancement ideas?
Last edited by RandomGuy on Thu May 10, 2007 11:21 pm; edited 2 times in total |
|
| Back to top |
|
 |
BombDiggityFresh Lux Addict
Joined: 06 Apr 2007 Posts: 249 Location: The back of my wardrobe
|
Posted: Wed May 09, 2007 2:36 pm Post subject: |
|
|
Really like it, i hope you give some credits to The Archer, who came up with the very first idea.  |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Wed May 09, 2007 2:40 pm Post subject: |
|
|
| Definitely. Credit to The Archer for first bringing up the idea (and issuing a challenge!) and to everyone else who participated in that feature request thread who provided ideas and feedback. |
|
| Back to top |
|
 |
mbauer Not A Truck

Joined: 28 Jun 2004 Posts: 3310 Location: Tallahassee
|
Posted: Wed May 09, 2007 3:03 pm Post subject: |
|
|
I love generators, and this one kicks ass RG. I never play classic because it's so dull and monotanous, but this generator fixes that. Excellent! 5 stars all the way!
MB
Last edited by dustin on Thu Sep 27, 2007 7:36 pm; edited 1 time in total Last edited by mbauer on Wed May 09, 2007 3:04 pm; edited 1 time in total |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Wed May 09, 2007 3:12 pm Post subject: |
|
|
| just wait for Castle Lux - Biohazard! I already tested it with Arms Race...it can make for some interesting maps. And it will probably slow down all the speedsters with how they path through the map. |
|
| Back to top |
|
 |
my wife hates me Lux Ancient

Joined: 22 Sep 2006 Posts: 2323 Location: The Dog House (or sofa)
|
Posted: Wed May 09, 2007 3:40 pm Post subject: |
|
|
| Does the possibility ever exist that a country could be isolated? i.e. Siam is hazardous preventing you from reaching oz... etc. |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Wed May 09, 2007 5:10 pm Post subject: |
|
|
| my wife hates me wrote: | | Does the possibility ever exist that a country could be isolated? i.e. Siam is hazardous preventing you from reaching oz... etc. |
Bomb is right - the generator code checks to make sure no country is isolated. If the random country it picked was Siam, it would detect the map would be invalid and pick again. |
|
| Back to top |
|
 |
Equary_ Luxer
Joined: 29 Apr 2007 Posts: 34
|
Posted: Wed May 09, 2007 6:27 pm Post subject: |
|
|
| i like it it realy makes for a new elimant of game play. is there a tred some where that explains how to make a map genorator? |
|
| Back to top |
|
 |
Kartofile Lux Addict

Joined: 17 Jun 2006 Posts: 255
|
Posted: Wed May 09, 2007 7:02 pm Post subject: |
|
|
Wow, it's great! I've never really liked Classic until now. It really is interesting to have a different map every time.
I assume there's no way to do this, but ideally it would be nice if Biohazard were just one entry in the pull-down list of maps, and then when you clicked New Game it would give you a list of all your maps to choose from, and ask you to select "light" "medium" "heavy" or "extreme"... But I imagine you would have done it like that if it were possible.
So, thank you Archer and RandomGuy! |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Wed May 09, 2007 7:07 pm Post subject: |
|
|
Yeah, I asked about that, but there isn't any point in the process where the map generator can present a screen to the user to make a selection. I've got some ideas though for version 2 that might help.
Equary_ - you write a map generator in java code. You can download the SDK (the same one you download to build a bot) and it has a few examples of map generators included - the built in Lux one, as well as GregM's CastleInfinity, HexInfinity and IslandInfinity. Looking at those helped me immensely.
Last edited by RandomGuy on Wed May 09, 2007 7:12 pm; edited 1 time in total |
|
| Back to top |
|
 |
The Archer Luxer

Joined: 11 Jan 2007 Posts: 140
|
Posted: Wed May 09, 2007 11:03 pm Post subject: |
|
|
| All we gotta do is convince some hosts to use it.. |
|
| Back to top |
|
 |
Bertrand Reaper Creator

Joined: 28 Nov 2005 Posts: 583 Location: Montreal
|
Posted: Thu May 10, 2007 8:03 am Post subject: |
|
|
RandomGuy, congrats on your Biohazard generator, it's a real innovation that has lots of potential. I think that it will get lots of gameplay.
I'm sure that Reaper, and the other bots, will like it a lot: they will adapt to the changing landscape much faster than the slow-thinking, slimy humans that are so set in their ways.
While you have your hands in the code, I have a few suggestions to take the idea further. How about a generator that simulates earthquakes and:
- Randomly deletes connections, creating hidden one-way connections?
- Randomly splits countries in two? Or merges two countries in one?
- Randomly splits continents in two (or more), for example creating deux-like maps out of the classic map? Or merges two continents in one?
- Randomly changes the continents bonuses? And perhaps makes some of them negative?
- And finally, how about implementing all of those suggestions in one generator that would randomly combine all of those changes?
Last edited by Bertrand on Thu May 10, 2007 8:04 am; edited 1 time in total |
|
| Back to top |
|
 |
my wife hates me Lux Ancient

Joined: 22 Sep 2006 Posts: 2323 Location: The Dog House (or sofa)
|
Posted: Thu May 10, 2007 9:29 am Post subject: |
|
|
| Dr. Daniel P. Schreber wrote: |
humans, what need could they possibly serve other then Reaper food...
|
SLOW DOWN!!! - Seriously though. You suggested some awesome ideas. Is there anyway however, that there would be some type of interface, at least at the map maker level to be able to place variables? I envision somthing along the lines of (using the bonus changing as an example)
Bonus - Max Change +5 / Min Change +2 / Frequency Every 2 Rnds
or
Split Country - Split "x" countries every "x" rounds
Without control of the variables, you may find it hard to tweak for playability. (Though thats kind of the point huh) |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Thu May 10, 2007 10:17 am Post subject: |
|
|
| Bertrand wrote: | | - Randomly deletes connections, creating hidden one-way connections? |
Wouldn't be hard at all. This would give the bots a HUGE advantage, though. If the connections changed each time and you had no way to know them until you got there, the bots might be unbeatable.
| Bertrand wrote: | | - Randomly splits countries in two? Or merges two countries in one? |
This could be difficult - the code to combine two country shapes into one (and make it work in the context of the map) is really tricky. Likewise for splitting the countries. It wouldn't be hard to split them, but it could be hard to determine which countries they should/shouldn't connect to after the split.
| Bertrand wrote: | | - Randomly splits continents in two (or more), for example creating deux-like maps out of the classic map? Or merges two continents in one? |
This would be possible. I'd have to figure out where to position the label, how much the bonus should be and what to call the new continent...but all those things can be solved.
| Bertrand wrote: | | - Randomly changes the continents bonuses? And perhaps makes some of them negative? |
This would be easy. Adds a new twist to the biohazard - perhaps a nearby continent has "fallout" and gets a negative bonus.
| Bertrand wrote: | | - And finally, how about implementing all of those suggestions in one generator that would randomly combine all of those changes? |
Would be interesting - I'd need to provide a config file for setting all the variables for the generator so users could specify which options they want and to what degree.
Great suggestions. And you've given me another idea for a different map generator - Blind Lux Generator. It would mask all the countries with a overground file, relocate all the army indicators and off you go. Any map could be played blind. Any interest in that? |
|
| Back to top |
|
 |
Bertrand Reaper Creator

Joined: 28 Nov 2005 Posts: 583 Location: Montreal
|
Posted: Thu May 10, 2007 11:45 am Post subject: |
|
|
| happily married guy wrote: | | Humans = Reaper food |
I don't think that a GUI interface to the generator is currently possible, but it should be pretty easy to control a generator through a config file.
| RandomGuy wrote: | | Wouldn't be hard at all. This would give the bots a HUGE advantage, though. If the connections changed each time and you had no way to know them until you got there, the bots might be unbeatable. |
And that's a good thing, right?
What could be done is to superimpose a graphic on the country, similar to what you did with the biohazard symbol, that would indicate a one-way connection. |
|
| Back to top |
|
 |
BombDiggityFresh Lux Addict
Joined: 06 Apr 2007 Posts: 249 Location: The back of my wardrobe
|
Posted: Thu May 10, 2007 11:53 am Post subject: |
|
|
| Kartofile wrote: | Wow, it's great! I've never really liked Classic until now. It really is interesting to have a different map every time.
I assume there's no way to do this, but ideally it would be nice if Biohazard were just one entry in the pull-down list of maps, and then when you clicked New Game it would give you a list of all your maps to choose from, and ask you to select "light" "medium" "heavy" or "extreme"... But I imagine you would have done it like that if it were possible.
So, thank you Archer and RandomGuy! |
I think the best attempt at something like that would be to perhaps have some sort of text document, where you can throw in some file locations of certain maps you have. Then the generator would pick a map out of that at random. Similar to what Chimera uses to randomly pick bots out of a list.
Or an even better idea....
You have the chatbox in online games don't you? Perhaps make a command for your map generator which you can type in there, such as
/start with,"WWII Europe"
Whatever the user types in the inverted commas, the map generator would search the specified folder in which all the maps are stored under the keyword "WWII Europe", and restart the game, with that map selected.
And about what Bertrand is saying, im not sure I would like random connections added in places where you could just get attacked from nowhere... i would just find that frustrating. I like the idea of splitting countries or continents in two, less the idea of merging them ('cos i like big maps more )
Last edited by BombDiggityFresh on Thu May 10, 2007 11:56 am; edited 2 times in total |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Thu May 10, 2007 12:13 pm Post subject: |
|
|
I don't think the map generator is notified of anything during gameplay - it is used to create the map then it is done. So chat commands would have no effect on a map generator - only bots present in the game hear that.
The one-way connections Bertrand wrote about wouldn't just be random. It'd just be existing two-way connections reduced to one way - a broken link, so to speak. So it wouldn't be anything that isn't there normally, just some things that are usually there wouldn't be.
as far as denoting those connections to players, you're right Bertrand, I could put a graphic there - maybe a rockslide or earthquake crack or something on the map...
And a config file is definitely the way I am going to go - people could list maps, sizes and other settings in a file that the generator would read and build a list of map options off of. |
|
| Back to top |
|
 |
BombDiggityFresh Lux Addict
Joined: 06 Apr 2007 Posts: 249 Location: The back of my wardrobe
|
Posted: Thu May 10, 2007 12:51 pm Post subject: |
|
|
could ask dustin about the chatbox thing...
the program registers commands such as "/start", and "/boot" or whatever else there is, i was thinking that you could add one through the map generator, like people have done to bots, since both implement Java programming |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Thu May 10, 2007 1:17 pm Post subject: |
|
|
the generator is a program that is run and finished before the game starts - it just outputs the map file. The bots have a presence in the game, so they "hear" the chat. So while Lux might hear the command, the map code wouldn't - it'd be up to Lux itself to hear the command and do something.
Since the map generator is no longer loaded, it wouldn't be possible for the biohazard code to hear any chat commands and change anything. |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Thu May 10, 2007 1:42 pm Post subject: |
|
|
Some test runs on a few different maps:
Biohazard castle lux:
Some napalm spread throughout vietnam:
and some biohazard blocks:
 |
|
| Back to top |
|
 |
BombDiggityFresh Lux Addict
Joined: 06 Apr 2007 Posts: 249 Location: The back of my wardrobe
|
Posted: Thu May 10, 2007 2:50 pm Post subject: |
|
|
| RandomGuy wrote: | the generator is a program that is run and finished before the game starts - it just outputs the map file. The bots have a presence in the game, so they "hear" the chat. So while Lux might hear the command, the map code wouldn't - it'd be up to Lux itself to hear the command and do something.
Since the map generator is no longer loaded, it wouldn't be possible for the biohazard code to hear any chat commands and change anything. |
That is kind of what im saying. If this is not possible it wont matter too much. The command is entered and... when the map restarts, the generator is run, and the generator could perhaps read the chatbox window. I don't know a lot about programing as i said, but would you say that the bots run in realtime or something like that and the generator does not... beacuse if it doesnt, you could find whatever code it is in the bot which runs it realtime (by that i mean DURING the game), and perahps use that to allow the generator to pick up any chatlog when it is running. Maybe you should talk to one of the fulltime java junkies to check this out. Im just thinking here..., i dont know a lot about this stuff, but i know some very simple basics.
I know the main pourpose of a generator is to make maps, not interact with the player as such like the bot does, but stick whatever bit of the code it is which allows the bot to interract into the generator and see what happens
P.S. and to change the map which the generator tweaks with you change the file name and location in the code, right?
Last edited by BombDiggityFresh on Thu May 10, 2007 2:57 pm; edited 4 times in total |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Thu May 10, 2007 11:21 pm Post subject: |
|
|
I spent about 20 minutes and tweaked the biohazard code into a "Blind Lux" generator. It is impossible to win against the bots though, and since only the host would see the theme in network play (it would look normal to everyone else) it is more a novelty than anything else.
Here's a screen shot:
Let me know if anyone is interested in inflicting some pain on themselves by trying it... |
|
| Back to top |
|
 |
BombDiggityFresh Lux Addict
Joined: 06 Apr 2007 Posts: 249 Location: The back of my wardrobe
|
Posted: Fri May 11, 2007 10:32 am Post subject: |
|
|
| the screen shot is not there.... |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Fri May 11, 2007 10:54 am Post subject: |
|
|
Imageshack may be having a server glitch - hopefully it will come back and be visible soon.
Last edited by RandomGuy on Fri May 11, 2007 10:54 am; edited 1 time in total |
|
| Back to top |
|
 |
blackj3sus Lux Messiah

Joined: 05 May 2006 Posts: 2020 Location: sillysoft.net/roman-battles
|
Posted: Sat May 12, 2007 12:33 pm Post subject: |
|
|
i love this mod (biohazard) but was wondering...?
could i get one for dragons bane and maybe dark ages map done with black plague instead of biohazards?
Last edited by blackj3sus on Sat May 12, 2007 12:37 pm; edited 1 time in total |
|
| Back to top |
|
 |
RandomGuy Lux Addict

Joined: 05 Mar 2007 Posts: 911 Location: Central American Jungle
|
Posted: Sat May 12, 2007 1:08 pm Post subject: |
|
|
| what would a black plague icon look like? |
|
| Back to top |
|
 |
blackj3sus Lux Messiah

Joined: 05 May 2006 Posts: 2020 Location: sillysoft.net/roman-battles
|
Posted: Sat May 12, 2007 2:00 pm Post subject: |
|
|
or something similar...
Last edited by blackj3sus on Sat May 12, 2007 2:01 pm; edited 1 time in total |
|
| Back to top |
|
 |
Sylocat Lux Ancient

Joined: 11 Sep 2006 Posts: 1405 Location: Wisconsin
|
Posted: Sat May 12, 2007 3:03 pm Post subject: |
|
|
I can't play with Biohazard because I'm on Mac OS 10.3.9 and I can't afford an upgrade. So I guess I can't review this one. |
|
| Back to top |
|
 |
The Archer Luxer

Joined: 11 Jan 2007 Posts: 140
|
Posted: Sat May 12, 2007 10:31 pm Post subject: |
|
|
| blackj3sus wrote: |
or something similar... |
Wasn't the black plague carrier by rats? |
|
| Back to top |
|
 |
Drifter Lux Moderator


Joined: 20 Nov 2005 Posts: 4655 Location: Toad Suck, R-Can-Saw
|
Posted: Sat May 12, 2007 11:14 pm Post subject: |
|
|
No, the Oriental Rat Flea on rats running rampant due to people killing cats because they were evil familars of Satan.
But I like Biohazard, thanks for the host BarStar and the feature RG. |
|
| Back to top |
|
 |
|