[Tool/Web/Other] [VB.net FUNCTION] ConvertMap (MTA 1.0.4 AND race to pawn)
#1

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
Code:
GetVersion(mymap)
Will return 1.1.1(race), 1.0.4(normal) or INVALID_VERSION




Convert111
Code:
Convert111(mymap)
Will convert an MTA Race (1.0/1.1.1 map)
It returns the converted Objects.




Convert104
Code:
Convert104(mymap)
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
Reply
#2

Good job again gamer931215, nice release
Reply
#3

Quote:
Originally Posted by Brian_Furious
View Post
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.
Reply
#4

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.
Reply
#5

Quote:
Originally Posted by Remis
View Post
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)