The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cartography
Author Message
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #1
Cartography
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
02-14-2017 11:36 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Cartography
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
(This post was last modified: 02-14-2017 11:46 PM by darksun84.)
02-14-2017 11:46 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: Cartography
indeed, you just need to update your sm_cartography skillmenu (sphere_skillmenu.scp) and also these map items (sphere_item_profession_cartographer.scp)
02-15-2017 03:13 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)