Page 1 of 1

random generator

Posted: Mon Mar 01, 2010 11:35 pm
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

Re: random generator

Posted: Wed Mar 03, 2010 1:12 am
by Gamma
hmm, I tried the Jar file but it doesn't do anything...
Btw I'm running Windows Vista Home Premium 64 bit.

Re: random generator

Posted: Wed Mar 03, 2010 6:13 am
by blast
When will the source code be posted? That should be put up ASAP.

Re: random generator

Posted: Wed Mar 03, 2010 12:44 pm
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

Re: random generator

Posted: Wed Mar 03, 2010 12:54 pm
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:

Re: random generator

Posted: Wed Mar 03, 2010 12:57 pm
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.

Re: random generator

Posted: Wed Mar 03, 2010 11:06 pm
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:

Re: random generator

Posted: Fri Mar 05, 2010 3:54 am
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

Re: random generator

Posted: Wed Aug 11, 2010 6:51 pm
by Dr Robotnik
just letting you know, the GUI version does not run on the Mac OS X java runtime.

Re: random generator

Posted: Sat Oct 02, 2010 3:07 am
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

Re: random generator

Posted: Sat Oct 02, 2010 4:06 am
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.

Re: random generator

Posted: Wed Oct 20, 2010 5:07 pm
by hutty
Nice to hear it works.

Last time you tried it was broken, so you are running a newer version now.