[Tool/Web/Other] [VB.net FUNCTION] ConvertMap (MTA 1.0.4 AND race to pawn) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (
https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] [VB.net FUNCTION] ConvertMap (MTA 1.0.4 AND race to pawn) (
/showthread.php?tid=171472)
[VB.net FUNCTION] ConvertMap (MTA 1.0.4 AND race to pawn) -
gamer931215 - 26.08.2010
Features:
Converts all objects from MTA Race, and all objects AND cars from mta 1.0.4
if you need more, just edit it for yourself, you know now how it works
First you need to open the .map file yourself and get the data! you can do this my putting this on declarations:
Code:
dim mymap a string = my.computer.filesystem.readalltext("C:\Users\Gamer\Desktop\grove_stunt.map")
the mymap (stringname) and directory is just an example! but you get the idea by now i hope
These are my functions:
GetVersion
Will return 1.1.1(race), 1.0.4(normal) or INVALID_VERSION
Convert111
Will convert an MTA Race (1.0/1.1.1 map)
It returns the converted
Objects.
Convert104
Will convert an regular MTA map
It returns the converted
Cars AND
Objects.
Functions download:
http://pastebin.com/Q2nJEVCM
I hope i can help some guys out with this
Re: [VB.net FUNCTION] ConvertMap (MTA 1.0.4 AND race to pawn) -
Brian_Furious - 26.08.2010
Good job again gamer931215, nice release
Re: [VB.net FUNCTION] ConvertMap (MTA 1.0.4 AND race to pawn) -
gamer931215 - 26.08.2010
Quote:
Originally Posted by Brian_Furious
Good job again gamer931215, nice release
|
Thanks

well in my pawnferter they are a little more advanced, because it also converts checkpoints etc. But yes this will help much vb.net beginners and maybe stimulate them for creating there own converter i hope.
I've never been an fan of online-services like convertFFS, however serverFFS works good then but many of these services always have errors/problems when you need them the most. And if you are on an laptop at a friend, and dont have internet you cant use them.
Re: [VB.net FUNCTION] ConvertMap (MTA 1.0.4 AND race to pawn) -
Remis - 27.08.2010
Nice release, I always looked for a source how to convert the coordinates of race to SA-MP.
But some questions / suggestions:
Why did you choose 1.0.4 and not 1.0.3 or 1.0.5? The map syntax is the same between the whole 1.0.x series. So it would be better to just return 1.0.x or 1.0.
And the script could also make problems with the next MTA SA release - 1.1.x with the same version number as the old race series.
And why didn't you make the version in the convert function as argument? Convert104 and Convert111 look a bit ugly.
Re: [VB.net FUNCTION] ConvertMap (MTA 1.0.4 AND race to pawn) -
gamer931215 - 27.08.2010
Quote:
Originally Posted by Remis
Nice release, I always looked for a source how to convert the coordinates of race to SA-MP.
But some questions / suggestions:
Why did you choose 1.0.4 and not 1.0.3 or 1.0.5? The map syntax is the same between the whole 1.0.x series. So it would be better to just return 1.0.x or 1.0.
And the script could also make problems with the next MTA SA release - 1.1.x with the same version number as the old race series.
And why didn't you make the version in the convert function as argument? Convert104 and Convert111 look a bit ugly.
|
Thanks
But at those names, is so goddamn hard to change the titles and two lines at getversion ?:P
All the boring/confusing job is done so it is very easy to edit if you have a little knowledge of vb.net