SphereCommunity
Cartography - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Cartography (/Thread-Cartography)



Cartography - Van Glan Bloom - 02-14-2017 11:36 PM

Hello guys.
Today i find a bug in cartography skill referring to sphere 56d. When I try to create a map using the blank maps this error appears in the console.

Code:
13:15:ERROR:(sphere_skillmenu.scp,565)Undefined keyword 'DRAWMAP'

This is what's in the script.

Code:
[SKILLMENU sm_cartography]
What sort of map do you want to draw ?

ON=i_mapadd1 Detail Map
TEST=CARTOGRAPHY 5.0
DRAWMAP=200

Some one can help me? Thx


RE: Cartography - darksun84 - 02-14-2017 11:46 PM

Not a bug, DRAWMAP was removed two/three years ago:

Code:
Removed obsolete DRAWMAP hardcoded function. The behavior is now softcoded using @Create on map items.


Take a look here:

Code:
[ITEMDEF i_map_local]
ID=i_map
NAME=local map
RESOURCES=1 i_map_blank
SKILLMAKE=CARTOGRAPHY 0.0, t_cartography
VALUE=3

ON=@Create
IF (<SRC>)
LOCAL.Radius=<eval 64+((<SRC.CARTOGRAPHY>*2)/10)>
MORE1=<eval ((<SRC.P.X>-<LOCAL.Radius>)*010000)+(<SRC.P.Y>-<LOCAL.Radius>)>
MORE2=<eval ((<SRC.P.X>+<LOCAL.Radius>)*010000)+(<SRC.P.Y>+<LOCAL.Radius>)>
ENDIF



RE: Cartography - Coruja - 02-15-2017 03:13 AM

indeed, you just need to update your sm_cartography skillmenu (sphere_skillmenu.scp) and also these map items (sphere_item_profession_cartographer.scp)