SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 18/03/2007, 03:29 PM   #11
oostcoast
Little Clucker
 
Join Date: Jan 2007
Posts: 17
Reputation: 0
Default Re: [APPLICATION] X-Treme SA:MP Vehicle Map Plotting Utility || Latest Version: 1.0

very usefull!!!!!!!

idea for next version:
click on map to insert cars
__________________
oostcoast is offline   Reply With Quote
Old 18/03/2007, 03:37 PM   #12
Xtreme
Huge Clucker
 
Join Date: Jan 2007
Posts: 301
Reputation: 17
Default Re: [APPLICATION] X-Treme SA:MP Vehicle Map Plotting Utility || Latest Version:

Quote:
Originally Posted by oostcoast
very usefull!!!!!!!

idea for next version:
click on map to insert cars
Thanks .

About your idea, the SA map might seem very accurate, but it is off in spots; but this is a great idea for future versions though.
Xtreme is offline   Reply With Quote
Old 18/03/2007, 04:56 PM   #13
yom
Gangsta
 
Join Date: Jul 2006
Posts: 988
Reputation: 6
Default Re: [APPLICATION] X-Treme SA:MP Vehicle Map Plotting Utility || Latest Version:

Cool thing,

I agree with Simon, as i personally don't use AddStaticVehicle, you should allow users to paste any coordinates.

Oh, it seems that the source contain 2 times the same thing.
yom is offline   Reply With Quote
Old 18/03/2007, 05:00 PM   #14
Xtreme
Huge Clucker
 
Join Date: Jan 2007
Posts: 301
Reputation: 17
Default Re: [APPLICATION] X-Treme SA:MP Vehicle Map Plotting Utility || Latest Version:

Quote:
Originally Posted by yom
I agree with Simon, as i personally don't use AddStaticVehicle, you should allow users to paste any coordinates.
For this next version I will not pay attention to arrays, but I will in the version after the next one.

Quote:
Originally Posted by yom
Oh, it seems that the source contain 2 times the same thing.
Yeah thanks, I just noticed it when I was starting today's update . That would explain the irrational size of the rar.


Xtreme is offline   Reply With Quote
Old 18/03/2007, 06:10 PM   #15
boylett
Huge Clucker
 
Join Date: Jul 2006
Posts: 441
Reputation: 0
Default Re: [APPLICATION] X-Treme SA:MP Vehicle Map Plotting Utility || Latest Version:

Quote:
Originally Posted by [N20
Xtreme ]
Thanks guys for the comments appreciate it.

The San Andreas map is about 5920 units long, so you would set up the porportion:

For the X Coordinate:

XCoord Scaled Coord (Out)
_______ = ____________________
5920 Map's Image Length

And after that, for the X coord you would add half of the map's length to it.

For the Y Coordinate:

(-1*YCoord) Scaled Coord (Out)
____________ = ____________________
5920 Map's Image Length

So that it is mirrored.
And after that, once again, you would add half the map's length to it.

Hope that helped .
hmmm I dont quite get it

I tried what you said with 2 completely different coords. And i got these:
Code:
x1: 767.99971846581
y1: 767.99976180499

x2: 768.00012037307
y2: 767.99977599659
So I must be going wrong somewhere because they are all almost the same..

These are my functions:
Code:
<?
function XCoord($coord)
{
	$conv = $coord/5920;
	$conv = $conv/1536; // 1536 is the width of the image
	echo $conv+(1536/2)."</br>";
}

function YCoord($coord)
{
	$conv = $coord/5920;
	$conv = $conv/1536; // 1536 is also the height of the image
	echo $conv+(1536/2)."</br>";
}
?>
boylett is offline   Reply With Quote
Old 18/03/2007, 06:17 PM   #16
Xtreme
Huge Clucker
 
Join Date: Jan 2007
Posts: 301
Reputation: 17
Default Re: [APPLICATION] X-Treme SA:MP Vehicle Map Plotting Utility || Latest Version:

Here are the corrected functions:

Code:
<?
function XCoord($coord) {
 $conv = ((($coord * 512) / 5920) + (1536 / 2));
 echo $conv;
}

function YCoord($coord) {
 $conv = (((-1 * $coord * 512) / 5920) + (1536 / 2));
 echo $conv;
}
?>
Xtreme is offline   Reply With Quote
Old 18/03/2007, 06:33 PM   #17
boylett
Huge Clucker
 
Join Date: Jul 2006
Posts: 441
Reputation: 0
Default Re: [APPLICATION] X-Treme SA:MP Vehicle Map Plotting Utility || Latest Version:

Thanks man
boylett is offline   Reply With Quote
Old 18/03/2007, 06:38 PM   #18
Xtreme
Huge Clucker
 
Join Date: Jan 2007
Posts: 301
Reputation: 17
Default Re: [APPLICATION] X-Treme SA:MP Vehicle Map Plotting Utility || Latest Version:

No problem . Don't forget that you can always add a variable to store the map size if you keep changing it :P.
Xtreme is offline   Reply With Quote
Old 18/03/2007, 06:52 PM   #19
Redirect Left
High-roller
 
Redirect Left's Avatar
 
Join Date: Mar 2007
Location: Yorkshire, England
Posts: 1,025
Reputation: 362
Default Re: [APPLICATION] X-Treme SA:MP Vehicle Map Plotting Utility || Latest Version:

Woah, Very, Very, Very Nice!
Redirect Left is offline   Reply With Quote
Old 18/03/2007, 07:03 PM   #20
boylett
Huge Clucker
 
Join Date: Jul 2006
Posts: 441
Reputation: 0
Default Re: [APPLICATION] X-Treme SA:MP Vehicle Map Plotting Utility || Latest Version:

Quote:
Originally Posted by [N20
Xtreme ]
No problem . Don't forget that you can always add a variable to store the map size if you keep changing it :P.
Yeah, it didnt work at first, I had to change the 5920 to something smaller, I kept testing and now its around 2000. So yeah it works now
boylett is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [GAMEMODE] X-Treme Dogfight || Version : 1.1 (Paused) Xtreme Gamemode Scripts 25 22/08/2013 03:53 AM
[SA:MP 0.3a Ultimate Version] Big Crash TheNooB Help Archive 6 23/10/2009 08:25 PM
[Application] Caneman's SA:MP Easy Peasy [Version: 2.0] Crazycamel Filterscripts 64 31/08/2009 11:36 AM
[Application] Caneman's Teleport Code Generator [Version: 4.0] Crazycamel Filterscripts 34 27/05/2009 09:32 PM
[GameMode] [GM] UGG! - Ultimate Gun Game [Beta]Version 1.0 |Eng/Por/Ger| Lordy Gamemode Scripts 17 02/05/2009 05:58 AM


All times are GMT. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.