random generator

Discussion, updates, modifications, etc for the various map editors...
Post Reply
User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

random generator

Post by hutty »

Here is a java program I mad (with my brother's help) That makes a random/symmetrical bzmap. What makes the program special is instead of making the map out of boxes and pyramids, it makes it out of groups. Then all you have to do is define the group and the map can be filled with any object you can imagine.

Put into simple steps

Step 1: download and run BZRandom 2.0 (its a .jar file, so it runs on all operating systems.

Step 2: in the input field put in the number of objects you would like (this number will be multiplied by 4)

Step 3: press the addictingly large button and choose the name and location of the map file

Step 4:open the new file in notepad and define the groups
sample for a hexagon

Code: Select all

define tree2
arc
  size 10 10 10
  divisions 6
  end
enddef
Step 5: save and run your new random map! :D :D

Other notes: The program may look polished but it is not yet finished. so you may run into problems.

I have also posted a command line version for those who are allergic to GUI's don't worry. The command line version does exactly the same thing.

my sandstorm map that is currently up on my server used a slightly modified version of the program to place cacti and sand dunes. (that version had no symmetry)

and with that i will later come up with variations and ect.

license is Public Domain

source code will be available soon

enjoy

Hutty Jaybird Blue Muncher
Attachments
BZRandom 2.0.zip
Now works! :D
(2.68 KiB) Downloaded 339 times
BZRandom 1.4.zip
command line version
(2.21 KiB) Downloaded 344 times
Last edited by hutty on Fri Mar 05, 2010 3:56 am, edited 2 times in total.
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water
User avatar
Gamma
Private First Class
Private First Class
Posts: 97
Joined: Fri Nov 28, 2008 6:47 pm
Location: USA

Re: random generator

Post by Gamma »

hmm, I tried the Jar file but it doesn't do anything...
Btw I'm running Windows Vista Home Premium 64 bit.
Image

...BZFlag Forever.
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: random generator

Post by blast »

When will the source code be posted? That should be put up ASAP.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: random generator

Post by hutty »

The source code is attached below inside the zip you will find two files a .java file and a folder.

the .java file is the command line source. Written up with notepad++.

the folder has the source for the gui version. It is packaged as a netbeans project.

note: there will be a problem compiling the gui version. when I exported it out as a .jar file it ate up the pictures. So new pictures will have to be made in order for the program to compile.




as for Gamma... Do you have the Java runtime installed? I assumed most computers do but I might have been wrong. Your computer would not know what to do with the file if the runtime isn't installed.

If this is the case visit http://www.java.com/en/download/index.jsp

I hope that fixes your problems
Attachments
BZRandom source.zip
the source code for both versions
(24.17 KiB) Downloaded 339 times
Last edited by hutty on Fri Mar 05, 2010 4:00 am, edited 1 time in total.
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water
User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: random generator

Post by hutty »

Hmm. something is wrong. It is not working on my own computer now.
a little investigation later
It seems that the images have vanished in the official release too.
I will fix this problem when I have time. (later today)

This is a total disaster! the command line version has quit functioning too. :shock:
Last edited by hutty on Wed Mar 03, 2010 12:58 pm, edited 1 time in total.
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water
User avatar
Gamma
Private First Class
Private First Class
Posts: 97
Joined: Fri Nov 28, 2008 6:47 pm
Location: USA

Re: random generator

Post by Gamma »

huttymuncher wrote:
as for Gamma... Do you have the Java runtime installed? I assumed most computers do but I might have been wrong. Your computer would not know what to do with the file if the runtime isn't installed.

If this is the case visit http://www.java.com/en/download/index.jsp

I hope that fixes your problems

Yep, its installed.
Image

...BZFlag Forever.
User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: random generator

Post by hutty »

It's not that.

Something weird happened when compiling so it worked the first day and now it doesn't work.

As for the command line version, it is fixed and the download link is updated.
(The only code difference is changing the file name. The Gui version saves to the same file and things got really messed up.)

I am still trying to fix the GUI version, every-time I almost fix it it gets even more complicated

Next time I will test things better. :doh:
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water
User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: random generator

Post by hutty »

fixed the gui version.

the solution. Remove the images.

No polish, but at least it works. :D

The link at the top is updated.

Source code is also updated
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water
User avatar
Dr Robotnik
Private First Class
Private First Class
Posts: 50
Joined: Thu Dec 27, 2007 7:51 pm

Re: random generator

Post by Dr Robotnik »

just letting you know, the GUI version does not run on the Mac OS X java runtime.
Admin and Support Supervisor for BZAddict. Need a BZFlag map hosted? Register today at bzaddict.net!
My Maps: Plaza (bzaddict.net 5198) Final Zone Collab (bzaddict.net 5199
Snooping as usual I see? Yes, yes you are.
User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: random generator

Post by hutty »

reallY?

i made it on a mac


anyways.. I dont think the gui version worked for anybody, if you want to fix it feel free.It is open source
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water
User avatar
Gamma
Private First Class
Private First Class
Posts: 97
Joined: Fri Nov 28, 2008 6:47 pm
Location: USA

Re: random generator

Post by Gamma »

Actually, I just tried the gui version on win7 64 bit and it works quite nice.
I know I said it wasn't working for me but thats when I was running vista.
Image

...BZFlag Forever.
User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: random generator

Post by hutty »

Nice to hear it works.

Last time you tried it was broken, so you are running a newer version now.
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water
Post Reply