Randomly Rotated Blocks on a Map

Questions and answers about the how and why of making maps.
Post Reply
alexx
Private
Private
Posts: 2
Joined: Tue Oct 02, 2007 4:13 pm

Randomly Rotated Blocks on a Map

Post by alexx »

Hi,
this is a older version of my map: http://forums.bzflag.org/viewtopic.php?f=64&t=17453

Like the ducati style it would be cool when the blocks are rotated randomly after restarting the map, but only a few degrees. But they should be on same place. Is there a script or a other solution ?

Thank you for your help.

Greetings,
alexx
User avatar
ahs3
Private First Class
Private First Class
Posts: 327
Joined: Sun Mar 04, 2007 8:33 pm
Location: Press '/' to search
Contact:

Re: Randomly Rotated Blocks on a Map

Post by ahs3 »

bzfs generates ducati maps.

Code: Select all

bzfs -cr -mp 0,10,10,0,0,10
That generates a random map via bzfs, there are many other options for that on the wiki. ---> http://wiki.bzflag.org/Sample_conf



But to generate a random map via a script is simple enough to do.
User avatar
SkillDude
Private First Class
Private First Class
Posts: 336
Joined: Sun Apr 01, 2007 4:50 pm
Location: United States

Re: Randomly Rotated Blocks on a Map

Post by SkillDude »

ahs3 wrote:But to generate a random map via a script is simple enough to do.
Indeed, just to elaborate a little. Server owners can set up a "keepalive" or map rotation script that will start up bzfs, wait until it is dead, and then restart bzfs once again. Before each restart you can then run that script. Shouldn't matter what it is made in, C, Python, BASH scripting, Perl, Ruby, etc. as File I/O is something any language should be able to do. Just run the appropriate script before running bzfs and you should be fine.

ahs3, myself, and a few others know plenty about it if you would like to ask for more specific details.
User avatar
ahs3
Private First Class
Private First Class
Posts: 327
Joined: Sun Mar 04, 2007 8:33 pm
Location: Press '/' to search
Contact:

Re: Randomly Rotated Blocks on a Map

Post by ahs3 »

sigonasr2 wrote: ahs3, myself, and a few others know plenty about it if you would like to ask for more specific details.

For sure.
Post Reply