Simple, Basic Mapping Script Thread
Re: Mapping
Here's an example:
make a script called colorEvent, give it the event handler colorEvent as well
make a script called colorEvent, give it the event handler colorEvent as well
This will color rooms highlighted, you can do display(arg) in the code to get all the arguments provided, arguments 3..n are room ids
Re: Mapping
Thanks,
that is extremely useful. I did this with it
Its remarkable how much you can map with so little code, functions etc
Also later i did this for adding doors
I was trying to find a away to pass an argument using the addMapEvent function as well as the arg table but couldn't get it to work. This is kinda clunky but it works just fine.
that is extremely useful. I did this with it
and also
I hate walking up/down steps and not knowing where I am on them, so I like to group them on the same z level and offset them. This works becase my mud is just n,s,w,e,u,d so the u,d go where ne,sw would be.
Its remarkable how much you can map with so little code, functions etc
Also later i did this for adding doors
I have up / down in the function but not in the menu. I'm not sure if you can make up/down doors but either way its no big deal really to adjust it.
I was trying to find a away to pass an argument using the addMapEvent function as well as the arg table but couldn't get it to work. This is kinda clunky but it works just fine.
Last edited by Silvine on Sun Jan 13, 2013 1:19 am, edited 1 time in total.
Re: Mapping
I've starting getting a couple of strange lines on my map, and ideas why? When I move around they disappear and my exits look ok. I tried deleting a room but the strange line tends to move to another room. It seems to happen on up/down rooms. Thanks
Re: Mapping
I have a load of text labels on the map, but depending on the zoom, I can't read the labels. Is it possible to update them all somehow so that they won't scale with the zoom?
Some labels predate the showOnTop property, but they are all set to background for the one more recent ones.
below are the labels in zone 1 below are the properties of label 1 in zone 1 I saw this on the API
labelID = createMapLabel(areaID, text, posx, posy, posz, fgRed, fgGreen, fgBlue, bgRed, bgGreen, bgBlue, zoom, fontSize, showOnTop, noScaling)
But don't know if I can alter my existing labels or do I have to make new ones?
I don't want to try and write code to iterate through all the labels and mess up the whole map, any suggestions please?
Some labels predate the showOnTop property, but they are all set to background for the one more recent ones.
below are the labels in zone 1 below are the properties of label 1 in zone 1 I saw this on the API
labelID = createMapLabel(areaID, text, posx, posy, posz, fgRed, fgGreen, fgBlue, bgRed, bgGreen, bgBlue, zoom, fontSize, showOnTop, noScaling)
But don't know if I can alter my existing labels or do I have to make new ones?
I don't want to try and write code to iterate through all the labels and mess up the whole map, any suggestions please?
Re: Mapping
Using screen space labels imho isn't a good idea, but you can use scalable map space labels with larger label png sizes to get better quality fonts when scaling. The higher the quality of the font, the more RAM is being used of course, so don't overdo it.
You don't have to be afraid of breaking anything because you can roll back your map to older save states.
You don't have to be afraid of breaking anything because you can roll back your map to older save states.
Re: Mapping
What would you recommend for labels? The labels are basically just pointers to zones or mobs so I have a frame of reference. I don't want or need anything fancy, functional works well for me.
I'm not sure I understand what you mean by screen space labels.
It turns out I've 212 labels and don't really want to create them all again
I'm not sure I understand what you mean by screen space labels.
It turns out I've 212 labels and don't really want to create them all again
- Attachments
-
- labels.PNG (26.76 KiB) Viewed 13050 times
Re: Mapping
You don't need to recreate them manually. Checkout the respective map label api and do this programatically.
Re: Mapping
Ok its a bit confused looking but hey it works
makes every label size 10 font, cyan, and stays readable no matter how the map is zoomed. It neatened the whole thing up nicely.
makes every label size 10 font, cyan, and stays readable no matter how the map is zoomed. It neatened the whole thing up nicely.
- Attachments
-
- labelsfixed.PNG (39.92 KiB) Viewed 13031 times
Re: Mapping
So, its time to try and make a small package, with the aliases, scripts, and keys. I can get those into an .xml but how do I add the map?
I tried to make a blank profile as suggested somewhere in the doc's but it won't let me without putting in a server address and port.
Thanks in advance.
I tried to make a blank profile as suggested somewhere in the doc's but it won't let me without putting in a server address and port.
Thanks in advance.