ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Moving a territory on PDA map

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  03:26:22  1 March 2013
profilee-mailreply Message URLTo the Top
te47
Senior Resident
 

 
On forum: 06/03/2010
Messages: 415
Moving a territory on PDA map

I recently added a new map to my mod, but I'm not happy with its preexisting location on the PDA world map. How can I move it? I thought it was "offset" in game_levels.ltx, but changing that doesn't seem to do anything.
  06:48:56  1 March 2013
profilee-mailreply Message URLTo the Top
nashathedog
Senior Resident
 

 
On forum: 01/31/2011
Messages: 8022
config\game_maps_single.ltx

global_rect = ??????????????


This next lot of text was info for COP that was given by Smrt I do not know if it stands true to SHOC but it looks like it should so it may help.


I'm gonna try to explain the positioning the way I did it
for the maps that I hand-painted from scratch,
it's definitely not a perfect solution (very trial & error) and there are
certainly more proper ways to do it, but it might help anyway.

First of all some basics conclusions I made:
1. the bound_rect value in level.ltx determines the size of your terrain map,
once you got the values (demo_record or SDK), stick to it.
2. the global_rect value in game_maps_single.ltx determines at what size your
map is displayed, on the global map as well as on the minimap.
3. the first value represents the left border of your map, the third value
represents the right border.
4. the second value represents the upper border of your map, the fourth
value represents the lower border.

for better understanding:
lets say you start with a global_rect of
800.0, 825.0, 1200.0, 1125.0
that means your map has a width of 400 (difference between the 1st&3rd value)
and a height of 300 (difference between the 2nd&4th value)
*note: a map like predbannik would be a square, I increased the 3rd global_rect value
by 100 for this 'tutorial'*

resulting conclusion and the messy trial and error part:
if you just want to move your terrain map on the global map you need to keep the
difference between 1st & 3rd and 2nd & 4th values,
i.e. if you want to move it to the left by 300 your new global_rect would be
500.0, 825.0, 900.0, 1125.0

if your minimap is stretched or squeezed you need to alter the difference
between 1st & 3rd and 2nd & 4th value

Recommendations for this:
- don't adjust width and height at the same time, very confusing^^)
- use steps of no less than 50.0 for rough positioning, you can always fine tune later.
- position your terrain on the global map first, then take care of the squeezing.
- once you found your position on the global map, never change the 1st or 2nd value
(too keep your terrain in position on the global map),
only edit the 3rd & 4th (for stretching/squeezing)

lots of text but hopefully more understandable than the wicked calculations from the russian mod wiki
(my brain melted trying to understand the logic behind that one).
  08:37:21  1 March 2013
profilee-mailreply Message URLTo the Top
te47
Senior Resident
 

 
On forum: 06/03/2010
Messages: 415
Thanks! Worked perfectly. This new map is now exactly where I want it.
  17:01:03  1 March 2013
profilee-mailreply Message URLTo the Top
Bangalore
Robberbaron
(Resident)

 

 
On forum: 02/17/2008
 

Message edited by:
Bangalore
03/02/2013 11:07:27
Messages: 1148
Problem is solved, but here is a Javascript based tool, to add and move level maps on SOC global map, and then get the global rect values with one click:

http://www.mediafire.com/?4hzb62mwflpj29b

Start with index.html, add maps via editing game_maps_single_css_my.js and adding map textures in png format, drag with mouse the level maps on global map, then get global rect values with pressing Get Ltx.

Author: Xiani
Finetuned by me for SOC, with Dead City and Darkscape.
  00:49:42  2 March 2013
profilee-mailreply Message URLTo the Top
te47
Senior Resident
 

 
On forum: 06/03/2010
Messages: 415
Cool, thanks. That method saves a lot of time.
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2020 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.