Race to winzone script
Race to winzone script
Hi,
Here is a script to generate race to winzone maps. I post it here before I lost it. Kind of quick n dirty but whatever. It generate the map and the everytime.cfg.
Here is a script to generate race to winzone maps. I post it here before I lost it. Kind of quick n dirty but whatever. It generate the map and the everytime.cfg.
- Attachments
-
- racemapmaker.v2.php.tar.gz
- (6 KiB) Downloaded 413 times
Last edited by voodoo on Sat Sep 30, 2006 10:07 pm, edited 2 times in total.
I update it today accordingly to some comment I receive. Some infos are printed as round message (seed, number of axes and death zones (or pillars).
The seed is also concatenated with map name... so if you really like a map, note the seed as it can be recompute
Many people ask for infinite brake but some others tell me that limited brake is a good idea as well so I choose to set it randomly ... check round message to know it
Any comment is welcome ...
The seed is also concatenated with map name... so if you really like a map, note the seed as it can be recompute
Many people ask for infinite brake but some others tell me that limited brake is a good idea as well so I choose to set it randomly ... check round message to know it
Any comment is welcome ...
I've updated (again) the archive : more tweaking and a major bug fix :
1 - The script use to stop in an incorrectly manage case, so no files were generated. Now it cant happens anymore : new track on each round.
2 - The seeding was default (manage by php) and use to be often the same leading to repeated track. I use a different seeding function which leads to much better result. Not perfect yet. Any efficient seed generation function's welcome.
3 - some minor changes in parameters generation, title, etc.
The server will be down from monday the 2nd of october to the end of january as I leave to Peru and will not have a good connexion over there.
Feel free to setup your own server hehe
1 - The script use to stop in an incorrectly manage case, so no files were generated. Now it cant happens anymore : new track on each round.
2 - The seeding was default (manage by php) and use to be often the same leading to repeated track. I use a different seeding function which leads to much better result. Not perfect yet. Any efficient seed generation function's welcome.
3 - some minor changes in parameters generation, title, etc.
The server will be down from monday the 2nd of october to the end of january as I leave to Peru and will not have a good connexion over there.
Feel free to setup your own server hehe
New version of the script written with wrtl to allow multi-round tracks. I'll set up a server once I'll be back to France.
- Attachments
-
- racemapmaker.v0.3.8.php.tar.gz
- (10.8 KiB) Downloaded 374 times
I fixed some points. Still some weird spawn points but cant figured out why for the moment. Here is a new version anyway ...
[update]
I reposted the script after wrtl post... should not happens anymore.
[update]
I reposted the script after wrtl post... should not happens anymore.
- Attachments
-
- racemapmaker.v0.3.8.php.tar.gz
- (11.21 KiB) Downloaded 353 times
Last edited by voodoo on Wed Nov 22, 2006 5:48 pm, edited 3 times in total.
- wrtlprnft
- Reverse Outside Corner Grinder
- Posts: 1679
- Joined: Wed Jan 04, 2006 4:42 am
- Location: 0x08048000
- Contact:
Thanks, installed it and it works. The uncentred obstacles make the maps even harder
One minor trouble that I solved myself: You need to put the DTD on your repository, and don't ever put it into the resource root due to name conflicts, always put it into your own dir (and adjust the path).
One minor trouble that I solved myself: You need to put the DTD on your repository, and don't ever put it into the resource root due to name conflicts, always put it into your own dir (and adjust the path).
There's no place like ::1
- kyle
- Reverse Outside Corner Grinder
- Posts: 1876
- Joined: Thu Jun 08, 2006 3:33 pm
- Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
- Contact:
Hate to tell you this but. I was on 3 different maps the started out by dieing.
Also i think because it is using zone's version 2 the hud cam doesent delete previous zones.
Also i think because it is using zone's version 2 the hud cam doesent delete previous zones.
- Attachments
-
- MAps.zip
- Maps that you die at start
- (10.26 KiB) Downloaded 352 times
- wrtlprnft
- Reverse Outside Corner Grinder
- Posts: 1679
- Joined: Wed Jan 04, 2006 4:42 am
- Location: 0x08048000
- Contact:
Yeah, I think voodoo is working on the die at start thing.
I've seen that zone thing now, too (previously I thought it was a bug on the 0.3.0 client, but it's in the latest trunk as well). It only happens in the first round, and only if you're not the first guy to play on the server (that's why I didn't see it).
My guess is that at the round end, the zones aren't deleted on the server, but are automatically on the client. Then if a client joins later it receives all zones that were ever there and displays them until their deletion next round.
Probably a reference problem. philippeqc's code is heavily relying on boost::shared_ptrs, and there's probably a reference to every zone that's not cleaned…
I've seen that zone thing now, too (previously I thought it was a bug on the 0.3.0 client, but it's in the latest trunk as well). It only happens in the first round, and only if you're not the first guy to play on the server (that's why I didn't see it).
My guess is that at the round end, the zones aren't deleted on the server, but are automatically on the client. Then if a client joins later it receives all zones that were ever there and displays them until their deletion next round.
Probably a reference problem. philippeqc's code is heavily relying on boost::shared_ptrs, and there's probably a reference to every zone that's not cleaned…
There's no place like ::1
- kyle
- Reverse Outside Corner Grinder
- Posts: 1876
- Joined: Thu Jun 08, 2006 3:33 pm
- Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
- Contact:
I was the first one to play and it builds up every map.wrtlprnft wrote:It only happens in the first round, and only if you're not the first guy to play on the server (that's why I didn't see it).
I think that is something with the client and Zones version 2.
when i play and notice them adding up every round i try to find people with 0.3.0 to see if it happens to them too.