[Script] Random Map Generation |
Mikuhl « Citoyen » 1382993520000
| 0 | ||
This is something I made quite a while ago when Lua was first released in Tribe Houses. Probably not the cleanest of code but it is quite cool. I prettied it up a bit and decided to release it. https://paste.moepl.eu/view/6b511c52 a dit : A lot is defined in the beginning so you can configure it however you like. You will might also notice that sometimes the hole is covered up. As of now I don't know of any simple way to fix it. |
Safwanrockz « Censeur » 1382994660000
| 0 | ||
Amg, it seems really complex to make ;o Will try it once I get on tfm~ e/ I suggest copying the code either to pastebin or paste.moepl, because it can't be fully copied from here :x |
0 | ||
Ctrl + A ^^ |
Mikuhl « Citoyen » 1382996460000
| 0 | ||
Safwanrockz a dit : Is this some mac problem or something? I can fully copy it. This is why you dont buy macs people. |
Mousechris « Censeur » 1382996700000
| 0 | ||
Jsilv a dit : Ctrl + A also copys everything else in his post |
0 | ||
Mousechris a dit : Then you delete it :p That's what I did anyway. |
Mikuhl « Citoyen » 1382998500000
| 0 | ||
I added a link for you people who dont know how to use scroll wheels. |
0 | ||
Jaackster a dit : Trackpad though pls |
Xxninjazxx « Citoyen » 1383004260000
| 0 | ||
Jsilv a dit : wireless mouse please Also this can make impossible maps.... |
Mikuhl « Citoyen » 1383005040000
| 0 | ||
Xxninjazxx a dit : Yeah. Not sure how to overcome this without doing advanced length and width checks. :/ |
Theleetcoder « Citoyen » 1383011700000
| 0 | ||
So cool. *-* This script demonstrate it possible to "interract" with xml code with lua. The *#labyrinth room too. |
Shamousey « Consul » 1383012960000
| 0 | ||
Theleetcoder a dit : Of course it's possible anyway, it's just string manipulation! However #labyrinth doesn't really use any XML, it uses conjuration. #derby has a great example of random map generation, most of the maps played there are generated on-the-spot. |
Theleetcoder « Citoyen » 1383013200000
| 0 | ||
Shamousey a dit : :go to #derby: EDIT: Maps are really Lua generated?! O.0 |
Shamousey « Consul » 1383013860000
| 0 | ||
Theleetcoder a dit : (This may be getting a bit off-topic considering it's not related to the map generator posted in the OP). Some maps are generated in #derby, some are user made. You can use /info to find out. Maps like this were generated. |
Xanmeow « Citoyen » 1383089760000
| 0 | ||
can you disable shaman please? when I try to do the disable shaman thing I just break it >.< |
Xrstilo 1383091560000
| | ||
[Modéré par Shamousey, raison : Spam post.] |
Theleetcoder « Citoyen » 1383092820000
| 0 | ||
Shamousey a dit : Wow, nice algorythm *-*. Off Topic: I'm trying to make my own map generator with Javascript and Html5 canvas to display the final map. :) |
Grimrice « Citoyen » 1386035700000
| 0 | ||
error i found |
Elmikle « Consul » 1409502060000
| 0 | ||
Wow! It is too awesome! |
Jojololly « Citoyen » 1409569020000
| 0 | ||
My mac can copy basically unlimited amounts of things o.o |