Category | Farming Simulator 19 |
Created | 06.02.2019 08:27 |
John Jackson (Unknown) | 06.02.2019 08:27 |
---|---|
fs19 pda icon in wrong location this is my frist map everything else works fine |
Bilbo Beutlin (BBeutlin) | 06.02.2019 10:34 |
---|---|
The icon location in PDA is related to center of map. You need an offset to minimap values. For a default (1x) map 1024. Example: The minimap location is 200, 400 - then the icon position is (200 - 1024), (400 - 1024) => -824, -624 |
William B (parzival) | 06.02.2019 14:48 |
---|---|
I am also looking for the same thing, where is the file that needs to be changed, and can you explain how to determine the correct position thanks in advance |
Bilbo Beutlin (BBeutlin) | 06.02.2019 15:41 |
---|---|
Icons which need explicite positioning are in the associated "map*.xml" -> <hotspots>. For calculating the right display position see post above. |
John Jackson (Unknown) | 06.02.2019 16:34 |
---|---|
ok what would need be change here is what my says imageUVs="268 8 240 240" xMapPos="0" zMapPos="0" |
John Jackson (Unknown) | 06.02.2019 16:38 |
---|---|
ok what would need be change here is what my says imageUVs="268 8 240 240" xMapPos="0" zMapPos="0" |
Bilbo Beutlin (BBeutlin) | 06.02.2019 17:20 |
---|---|
*sigh* You really need an explanation? At least 'xMapPos' and 'zMapPos' should be self-explanatory: the x,z coordinates from minimap minus offset. The offset is half of the map size (see map.xml <map width=".." height=".." > ) The 'imageUVs' determine the kind of icon (position and size in gfx array). |
John Jackson (Unknown) | 06.02.2019 17:55 |
---|---|
the map width 2048 height 2048 |
William B (parzival) | 06.02.2019 18:18 |
---|---|
Thanks for the information, if there is no hotspot in the map.xml then the deafualt shop location from the source would be used? also can multiple shop icons be listed on the map? |
Bilbo Beutlin (BBeutlin) | 06.02.2019 21:22 |
---|---|
The 'ShopTrigger' doesn't create a PDA icon itself. The icon must be added in the map.xml. In the map.xml you can add as many icons as you wish. They have no relevance to gameplay except for PDA display and 'teleport' player. |
Bilbo Beutlin (BBeutlin) | 06.02.2019 22:24 |
---|---|
Addendum: I've just noticed that my 1st post might be unclear and corrected it. The x,z values (translations) in editor you can use without converting. But the x,z coordinates in PDA minimap need a conversion (by offset). |
William B (parzival) | 07.02.2019 01:10 |
---|---|
thanks for the info, do the same rules apply on a 4096x4096 map, with negative values, the shop icon is going everywhere but where it is wanted to be, |
William B (parzival) | 07.02.2019 04:19 |
---|---|
to simplify, is this correct? you take the location you want the icon to be on the map by using the editor location of that spot minus the dimensions of the map. x -1040 in editor minus 4096 = -5136 z 656 in editor minus 4096 = -3531 this is the wrong place on the map. |
Bilbo Beutlin (BBeutlin) | 07.02.2019 08:40 |
---|---|
The editor translation values are also related to center of map. That means you don't need to re-calculate x-z, you can carry over directly the values to the x-zMapPos in xml. But if you take the ingame minimap coordinates (which begin top left 0-0) then you must subtract the offset: HALF of map width/height. |
William B (parzival) | 09.02.2019 20:30 |
---|---|
thanks got it |
Note: Log in to post. Create a new account here.