Calculation for names of cities

Modding school: Learn it from the masters
Post Reply
User avatar
Ficfic
Posts: 53
Joined: 27 Aug 2014 11:13

15 Jun 2016 18:09

Hello, I created a mod to have an unzoom more important, and I reduced the size of the names of cities. But my problem is that now the names of cities on the world map are moved with their locations, do you know a calculation which allows to know the positions correct (x; y) of names of cities in function of the unzoom please? A function f(x) maybe? Thank you.
Sorry if my english is bad.
Last edited by tkk7406 on 15 Jun 2016 21:00, edited 1 time in total.
Reason: Please edit your post, there's no need to post twice in a row

Julien
Posts: 78
Joined: 08 Aug 2013 13:44
Location: Vitry-sur-Seine, proche de Paris (FR)
Contact:

21 Jun 2016 18:38

For those who have not understood what it speaks :

Code: Select all

map_x_offsets[]: 0
map_x_offsets[]: 0
map_x_offsets[]: -50// close zoom for minimap
map_x_offsets[]: -65 // far zoom for monimap
map_x_offsets[]: 0 // city zoom for world map
map_x_offsets[]: -20 // closest zoom for world map
map_x_offsets[]: -20 // middle zoom for world map
map_x_offsets[]: -5 // whole world map zoom

map_y_offsets[]: 0
map_y_offsets[]: -10
map_y_offsets[]: -40
map_y_offsets[]: -20
map_y_offsets[]: 0
map_y_offsets[]: 25
map_y_offsets[]: -5
map_y_offsets[]: -5
He talks about the values of "map_x_offsets" and "map_y_offsets" of the file paris.sii (example)
Go : http://www.scsmods.fr !
Sorry for my bad english, I use Google Traduction. I'm getting better every day ! I'm a beginner mapper. My mods : http://ets2.lt/en/?s=Julien

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

21 Jun 2016 20:52

There is no real formula for it. We usually just change the numbers of the map offsets with trial and error.
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
Ficfic
Posts: 53
Joined: 27 Aug 2014 11:13

22 Jun 2016 14:13

O.K, thank you! :-)



Post Reply

Return to “ProMods Academy”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests