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
Randomly Rotated Blocks on a Map
- ahs3
- 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
bzfs generates ducati maps.
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.
Code: Select all
bzfs -cr -mp 0,10,10,0,0,10
But to generate a random map via a script is simple enough to do.
Re: Randomly Rotated Blocks on a Map
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 wrote:But to generate a random map via a script is simple enough to do.
ahs3, myself, and a few others know plenty about it if you would like to ask for more specific details.
- ahs3
- 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
sigonasr2 wrote: ahs3, myself, and a few others know plenty about it if you would like to ask for more specific details.
For sure.