WorldMap_LocalInfo

07/14/2020 08:39 JellyBitz#1
I'm pretty curious about how some NPC's and gates inside town maps are showing their respective tooltip description but ouside towns (worldmap) doesn't.

Also the Fortress Gate icon from worldmap it's the only one having this tooltip description.
[Only registered and activated users can see links. Click Here To Register...]

This is not happening on iSRO type files where are shown correctly on worldmap.

I even ended up having this info.
Code:
# ________ WORLDMAP_LOCALINFO ________
1 ##### Service
99652 ##### Unique Npc Map ID
2 ##### Type : 1 - Zone; 2 - Point
interface\worldmap\map\xy_npc.ddj ##### Icon
NPC 아이콘 ##### Name 1
왕궁 조사단 이자둔 ##### Name 2
몽환의 사막 필드 ##### Name 3
0 ##### Open Regional Map
0 ##### Location Regional Map
81 ##### xSector
78 ##### ySector
24 ##### x pixel
5 ##### y pixel
16 ##### width
16 ##### height
0 ##### used on zones types maybe RGB color?
0 ##### used on zones types maybe RGB color?
0 ##### used on zones types maybe RGB color?
0 #####
0 #####
1 ##### Use Description(?)
SN_NPC_AR_SPECIAL_INVESTIGATION_1 ##### Description
It's possible create the Fortress Gate tooltip behavior for npc and gates icons somehow in worldmap? A tricky media.pk2 edit that I'm missing on this line arguments? Maybe an ASM edition it's the only way? Or some DLL injection? (:

What I'm looking for in worldmap not only town maps..
[Only registered and activated users can see links. Click Here To Register...]
07/15/2020 05:15 sarkoplata#2
It's not supported in VSRO 188, but supported on newer files.
I'm not sure if it's a support issue. It could be a simple check on the sro_client as well.
07/28/2020 13:06 bimbum*#3
Quote:
Originally Posted by JellyBitz View Post
I'm pretty curious about how some NPC's and gates inside town maps are showing their respective tooltip description but ouside towns (worldmap) doesn't.

Also the Fortress Gate icon from worldmap it's the only one having this tooltip description.
[Only registered and activated users can see links. Click Here To Register...]

This is not happening on iSRO type files where are shown correctly on worldmap.

I even ended up having this info.
Code:
# ________ WORLDMAP_LOCALINFO ________
1 ##### Service
99652 ##### Unique Npc Map ID
2 ##### Type : 1 - Zone; 2 - Point
interface\worldmap\map\xy_npc.ddj ##### Icon
NPC 아이콘 ##### Name 1
왕궁 조사단 이자둔 ##### Name 2
몽환의 사막 필드 ##### Name 3
0 ##### Open Regional Map
0 ##### Location Regional Map
81 ##### xSector
78 ##### ySector
24 ##### x pixel
5 ##### y pixel
16 ##### width
16 ##### height
0 ##### used on zones types maybe RGB color?
0 ##### used on zones types maybe RGB color?
0 ##### used on zones types maybe RGB color?
0 #####
0 #####
1 ##### Use Description(?)
SN_NPC_AR_SPECIAL_INVESTIGATION_1 ##### Description
It's possible create the Fortress Gate tooltip behavior for npc and gates icons somehow in worldmap? A tricky media.pk2 edit that I'm missing on this line arguments? Maybe an ASM edition it's the only way? Or some DLL injection? (:

What I'm looking for in worldmap not only town maps..
[Only registered and activated users can see links. Click Here To Register...]
i wonder how do we specify x,y
03/31/2021 19:35 leo2111#4
Quote:
Originally Posted by sarkoplata View Post
It's not supported in VSRO 188, but supported on newer files.
I'm not sure if it's a support issue. It could be a simple check on the sro_client as well.
it's not sro_client , it's pure media.pk2 edit
02/15/2023 15:54 ahmed007boss#5
anyone managed to specify x,y ?
02/16/2023 20:29 JellyBitz#6
Quote:
Originally Posted by ahmed007boss View Post
anyone managed to specify x,y ?
SQL script to make it easier to use.
PHP Code:
-- Game Coordinates
DECLARE @_@X INT 0
DECLARE @_@Y INT 0

-- Fix offset position from from map layer
SET 
@_@+= 192
SET 
@_@+= 192*2
-- Transform into relative position
DECLARE @_@PosX INT ABS(@_@X) % 768
DECLARE @_@PosZ INT ABS(@_@Y) % 768
-- Fix direction
IF @_@0 SET @_@PosX 768 - @_@PosX
IF @_@0 SET @_@PosZ 768 - @_@PosZ
-- Extract Region values and fix offset position from map layer
DECLARE @_@RX INT = (@_@- @_@PosX) / 192 134
DECLARE @_@RZ INT = (@_@- @_@PosZ) / 192 93

-- Result
SELECT CONCAT
('interface/worldmap/map/map_world_',@_@RX,'x',@_@RZ,'.ddj') AS 'Media.pk2', @_@PosX*128/768 AS 'Pixel X', (128-(@_@PosZ*128/768)) AS 'Pixel Y' 
02/18/2023 13:46 kingklosa#7
how to get x y pixels ?
10/15/2023 12:10 *Deadly#8
Quote:
Originally Posted by kingklosa View Post
how to get x y pixels ?
let me know if you found it using db region x y z please, thanks in advance.
10/15/2023 19:35 notHype*#9
Quote:
Originally Posted by *Deadly View Post
let me know if you found it using db region x y z please, thanks in advance.
Yes. It is using the X/Z coordinates from _RefRegion; however, I recommend using the /frame command. It's much easier and both give the same coordinates.
10/16/2023 01:26 *Deadly#10
Quote:
Originally Posted by notHype* View Post
Yes. It is using the X/Z coordinates from _RefRegion; however, I recommend using the /frame command. It's much easier and both give the same coordinates.
The hardest part is finding the pixel x and y of that x/z map file.