![]() |
Gmap Generator
2 Attachment(s)
Script: Attachment 45896 ( Stupid percent symbols D: )
Basically lets you create a gmap with any dimension wanted (Not sure though, because of the maxlooplimit). Anyways, to the point, or.., to the examples! Let's say we named the wnpc GmapGenerator or something. PHP Code:
Now, how can I get these gmaps to work online? :O!?!?!?!?!?! Some steps: 1) Move all the files that were generated (.gmap and .nw files) into levels/ or somwhere levels are downloadable. 2) Go into server options and look for "gmaps=". There you simply put the filename of the (.gmap) file (without the .gmap ending). (For example, gmaps=testgmap,) 3) Add this line to a script that the player(s) have clientside: loadmap(gmapname);, and again, the name of the (.gmap) file without the .gmap ending (Example: loadmap("testgmap");) (Only do this if necessary) 4) Say this in rc chat: /updatelevel gmapname.gmap (Example: /updatelevel testgmap.gmap) 5) Now you can warp to your gmap. 6) If it is not working, get someone to restart the gserver. 7) Still not working? Start over. ----- More examples: PHP Code:
If you want a script to be added to all the generated levels, add it to the template level =) ---- Suggestions on how to improve are welcome, and please post bugs if found =) Also, here's the template level I used: Attachment 45895 For some reason plain boards (Boards with only AA (upper left grass tile) tiles) aren't saved to the .nw file. Edit: I just noticed I did all the link detection in a rather.. repetive and odd way.. next update will be a rewrite of the links :o |
Good job :)
|
rep ++
|
neat, rep++
|
Very nifty :)
|
This is nice.
Though I would still use the offline gmap generator because the input image allows basic customization. |
thanks everyone =D
Quote:
|
okay so you make the wepnpc
the you make the other script wich where do we put to? because some people might be confused |
Quote:
|
Not bad. May I suggest a feature though? I didn't look through the whole code, but it seemed you are copying the naming format of the standalone generator. I suggest changing the format and adding two more parameters, center x and center y, so the map can be extended in every direction at any time easily, just like you can do it with my generator :p
|
Quote:
Just because you get it as well as other programmers does not mean everyone without knowledge in the field will. There is no reason to put him down. I won't ask here however, eventually I'll find a tutorial that is helpful. PHP Code:
-EDIT- Actually it doesn't seem possible for a Mac user to do this... .exes... youtube videos talking about the level editor.. its all a bunch of voodoo witchcraft us cool cats can't use or something. :[ |
Tip: Make it more clear that you are having an issue with the script and need help otherwise your post just looks like spam.
Remove "GmapGenerator." (or replace it with this.) at the top there, since the function is in your script. Your (npcserver) should also have the following in it's folder rights: r levels/nalik_caves.nw rw levels/nalik_caverns/*.gmap rw levels/nalik_caverns/*.nw After applying the script it should work fine provided the script isn't broken. |
I don't know, I thought I said I put it in a level npc online.. but since I don't know exactly what I was supposed to do I can't say if it was right or wrong.. only that it did not work. Then I tried to do more research on it...
I know in server options we already had gmap= type things so I did add that.. As well as the level, folder, ganis, txt, .graal and .nw rights too... (why do we still add .graal?) Anyway, Cbk sent me this link http://www.graal.us/tools/generatelevels.html which has helped amazingly and exactly what I needed. (I suppose it works in this thread in case others see it and only want something simple.) From the starting post, it just seemed like you add in all the text from the script, edit the first part, then stick in the other thing under onCreated and it would do the rest for you.. Maybe it is like that and somehow I did it wrong, or maybe I did it wrong entirely.. Although eventually I got the solution by link. o.O;; Thank you though! |
All times are GMT +2. The time now is 12:58 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.