[Include] [Converter] removeWorldObject(MTA) to RemoveBuildingForPlayer(SAMP)
#1

Hey. Few days ago, I made a converter that will convert removeWorldObject(removes gtasa object in mta map editor) to RemoveBuildingForPlayer. Currently, there is no way to convert it(even with convertffs or delux converter). So that's why I made it. I got an idea from here; https://sampforum.blast.hk/showthread.php?tid=426489

How to use:
It's easy and fast.
- Copy your .map file to Scriptfiles folder.
- Open any gamemode like grandlarc, bare, or anything.
- Find OnGameModeInit and type:-
Convert("yourmapfilename.map");
- Compile it.
- Now run samp-server.exe and.. that's it! You're done. The converted codes are saved in scriptfiles folder called Converted.pwn

Screenshots
MTA
http://imgffs.com/i/v3i4h.png (some objects are not visible in the image because of draw distance in MTA)
SAMP
http://imgffs.com/i/4bNOU.png

Updated! Thanks to Sanguy
Quote:
Originally Posted by Sanguy
Посмотреть сообщение
GOOD NEWS GUYS, newbienewb has given me permission to release my fixed and updated version!!! I give credits to newbienewb for creating the original include. All I did was fix it and add some new features. Just like the original version, you NEED sscanf for it to work!

http://www.mediafire.com/download.php?6uvbluaygwdjo54
http://www.mediafire.com/download.php?7g1g479kr7qa81x

Download both of those files.

Now, instructions on use:

- Copy your .map file to Scriptfiles folder.

- Open RWOconverter.pwn in pawno

- Replace "Convert(_______________.map);" with "Convert(MAP NAME HERE .map);"
NOTE: this new version has the ability to generate RemoveBuilding lines for an object's LODs, as well. If you want to utilize that functionality(highly recommended), uncomment the Convertlod line and the coding below it

- Compile the script.

- Add RWOconverter to server.cfg and run samp-server.exe.

If you did it properly, there should be a file in Scriptfiles called Converted.pwn(AND Convertedlod.pwn if you used the lod functionality) containing the new RemoveBuildingforPlayer lines. You can now make your map using them(NOTICE: if you used the lod option, then when you open the new convertedlod.pwn, ignore or delete the lines that have a zero for the modelid. Those were for objects that have no LODs)

Tips & Tricks: if you encounter the old problem where the include doesn't convert all the removeworldobject entries, try increasing the string lengths and the pragma(if you get stack/heap notices upon compiling the .pwn).

PM me if you found any bug.
Reply
#2

This is really nice, thanks a lot! ^^
Reply
#3

Bug: it puts all the converted buildings in one line on the file, so it can't convert more than about 10 objects.
It doesn't put each object on a new line.
Reply
#4

Hey i tryed it but when i do it,it says symbol Convert and iґve done all your steps would you mind making a download link with everything setup so the only thing i do is fill in the map name and stuff



C:\Users\Basjee\Desktop\Converter\gamemodes\bare.p wn(63 -- 64) : error 017: undefined symbol "Convert"


Код:
public OnGameModeInit()
{
-
Convert("testvoordelete.map")
	SetGameModeText("Bare Script");
	ShowPlayerMarkers(1);
	ShowNameTags(1);
	AllowAdminTeleport(1);

	AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);

	return 1;
}
Reply
#5

@Jason
Make sure to have the Include added in your gamemode.

#include <idk>

Make sure to have testvoordelete.map added in your scriptfiles folder.

& make sure to have the include added in pawno > includes..

As far i know, ''Bare.amx'' (Standard Samp gamemode) doenst have sscanf.
Dont forget to install it.
Reply
#6

Did it already.


Faff could you edit the file i showed and make it how it's supposed to be,As you know i am a noob and i am just doing it for some easy mta mapping with deleting obj's
Reply
#7

What file do ya' mean?

Anyways, Try the ''Server Support'' section, They may help you out.
Reply
#8

Excuse me, but I needed this for a map I was making and I encountered the same problems everyone else had. Eventually, I managed to fix the issues and add a new optional feature: The ability to not only convert the entries for the objects, but also for the LODs of the objects as well. If the author gives me permission, I will post the fixed version here.

FIXED: the include now writes each entry on a separate line AND can convert more than 10 objects before dying(upper limit unknown, but I have tested it with 54 objects + LODs)

ADDED: the ability to convert the LOD as well, so you can remove both the object and it's lod.
Reply
#9

HELP!
Why do I have, for example, 76 remote sites, to convert 8 or 9 objects?
Reply
#10

? do you mean you have 76 but it only converted 9? I fixed that, but I can't post the fix w/o permission.
Reply
#11

Regretfully
Reply
#12

GOOD NEWS GUYS, newbienewb has given me permission to release my fixed and updated version!!! I give credits to newbienewb for creating the original include. All I did was fix it and add some new features. Just like the original version, you NEED sscanf for it to work!

http://www.mediafire.com/download.php?6uvbluaygwdjo54
http://www.mediafire.com/download.php?7g1g479kr7qa81x

Download both of those files.

Now, instructions on use:

- Copy your .map file to Scriptfiles folder.

- Open RWOconverter.pwn in pawno

- Replace "Convert(_______________.map);" with "Convert(MAP NAME HERE .map);"
NOTE: this new version has the ability to generate RemoveBuilding lines for an object's LODs, as well. If you want to utilize that functionality(highly recommended), uncomment the Convertlod line and the coding below it

- Compile the script.

- Add RWOconverter to server.cfg and run samp-server.exe.

If you did it properly, there should be a file in Scriptfiles called Converted.pwn(AND Convertedlod.pwn if you used the lod functionality) containing the new RemoveBuildingforPlayer lines. You can now make your map using them(NOTICE: if you used the lod option, then when you open the new convertedlod.pwn, ignore or delete the lines that have a zero for the modelid. Those were for objects that have no LODs)

Tips & Tricks: if you encounter the old problem where the include doesn't convert all the removeworldobject entries, try increasing the string lengths and the pragma(if you get stack/heap notices upon compiling the .pwn).
Reply
#13

Quote:
Originally Posted by Sanguy
View Post
GOOD NEWS GUYS, newbienewb has given me permission to release my fixed and updated version!!! I give credits to newbienewb for creating the original include. All I did was fix it and add some new features. Just like the original version, you NEED sscanf for it to work!

http://www.mediafire.com/download.php?6uvbluaygwdjo54
http://www.mediafire.com/download.php?7g1g479kr7qa81x

Download both of those files.

Now, instructions on use:

- Copy your .map file to Scriptfiles folder.

- Open RWOconverter.pwn in pawno

- Replace "Convert(_______________.map);" with "Convert(MAP NAME HERE .map);"
NOTE: this new version has the ability to generate RemoveBuilding lines for an object's LODs, as well. If you want to utilize that functionality(highly recommended), uncomment the Convertlod line and the coding below it

- Compile the script.

- Add RWOconverter to server.cfg and run samp-server.exe.

If you did it properly, there should be a file in Scriptfiles called Converted.pwn(AND Convertedlod.pwn if you used the lod functionality) containing the new RemoveBuildingforPlayer lines. You can now make your map using them(NOTICE: if you used the lod option, then when you open the new convertedlod.pwn, ignore or delete the lines that have a zero for the modelid. Those were for objects that have no LODs)

Tips & Tricks: if you encounter the old problem where the include doesn't convert all the removeworldobject entries, try increasing the string lengths and the pragma(if you get stack/heap notices upon compiling the .pwn).
Thank you so much!
Reply
#14

Just use http://convertffs.com/
Reply
#15

Quote:
Originally Posted by Fredrick
View Post
Read all the first post then reply!
Reply
#16

O; i never knew that such function Exists in MTA lol
thanks for telling , pretty usefUll
Reply
#17

Oh.. it's good, but it's bugged..
Also, i convert all my worldobject to removebuilding, and.. the convertion it's incomplete..
Because?
Reply
#18

Look: http://imgur.com/0pRDdjF,jhAAwZ5#1

After, in the .pwn http://imgur.com/0pRDdjF,jhAAwZ5#0..

Because? Sorry doble post, i not has uploaded the image.. left.
Reply
#19

Have you tried the fixed version I posted?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)