Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Map coordinates into positions

Joined
Jul 17, 2007
Messages
665
Reaction score
104
Hi where can check the min max region (example between -3200 and +3200, between -5000 and +5000) i looking for convert coords into ingame position for 1.4.2
 
Elite Diviner
Joined
Jan 5, 2017
Messages
477
Reaction score
349
server side gs.conf gives region for each map...

client side configs.pck/map_param.ini is converted to map position values per each map... at the top of that file is how the values are generated in chinese...

if you are working with a map that is new or not original pw map then enter the map with a toon, turn on debug command d_showpos and travel full north, south, etc until you have your full region then convert using the instructions from map_param... will take a bit of trial and error...
 
Upvote 0
Newbie Spellweaver
Joined
Aug 30, 2011
Messages
6
Reaction score
3
static QString ConvertToClientX(double x)
{
double cx = 400 + std::trunc(x * 0.1);
return QString::number(cx);
}


static QString ConvertToClientY(double y)
{
double cy = std::trunc(y * 0.1);
return QString::number(cy);
}


static QString ConvertToClientZ(double z)
{
double cz = 550 + std::trunc(z * 0.1);
return QString::number(cz);
}
 
Upvote 0
Joined
Jul 17, 2007
Messages
665
Reaction score
104
static QString ConvertToClientX(double x)
{
double cx = 400 + std::trunc(x * 0.1);
return QString::number(cx);
}


static QString ConvertToClientY(double y)
{
double cy = std::trunc(y * 0.1);
return QString::number(cy);
}


static QString ConvertToClientZ(double z)
{
double cz = 550 + std::trunc(z * 0.1);
return QString::number(cz);
}
very cool, it is works :D
 
Upvote 0
Back
Top