zaneboy2 Posted September 9, 2012 Share Posted September 9, 2012 Hello all! I created this account here cause I have a rather annoying problem. I'm trying to start mapping on a decent level with MTA (did some mappings before). So far I managed to implement the 0.3 SAMP objects into MTA which is great. Now I'm trying to remove standard objects/buildings in SA so I'm able to map over them. I already did some research and visited the removeWorldModel wiki page and several other topics spread across this forum. I spent a lot of hours searching for a decent guide/tutorial but so far I haven't found one. I already created my own .lua script and edited all the required things in the meta.xml file but so far without any luck. Even when I copied some examples from the removeWorldModel wiki page into the .lua file. For some reason the objects I tried to remove so far are not removed when using the script. I see many topics of people who also have problems with deleting objects but at least they already managed to delete certain objects, so some usable information must be available somewhere right? Therefore I'm asking if someone would be that kind to give me a decent explanation from beginning to end on how to setup the script and actually manage to delete an object in MTA. Much appreciation in advance and kind regards, zaneboy Link to comment
Jaysds1 Posted September 9, 2012 Share Posted September 9, 2012 Please read this: viewtopic.php?f=15&t=43425&hilit=+removeWorldModel Link to comment
zaneboy2 Posted September 9, 2012 Author Share Posted September 9, 2012 Thanks for the reply! I tried some things with the information provided there but no success. To test, I attempted to remove the big ear object from the map. In the screenshot below are all my files (.lua file and meta.xml file). I don't know if I scripted something wrong or not. I also tried to go around the map in the map editor in order to let everything reload in case it would have been streamed already. screenshot: http://img441.imageshack.us/img441/8748 ... shotpv.png Thanks for the assistance so far! Link to comment
denny199 Posted September 9, 2012 Share Posted September 9, 2012 I think that your'e removed only the object, remove the LOD too. Link to comment
zaneboy2 Posted September 10, 2012 Author Share Posted September 10, 2012 I hovered with the crosshair icon at the object and it didn't show any LOD ID so I suppose it doesn't have any. Link to comment
Jaysds1 Posted September 10, 2012 Share Posted September 10, 2012 if you're removing the whole world, then it wouldn't be easy to find the LOD's, plus, use this function: setOcclusionsEnabled oh, and there's an example with in the function above to remove all the world models Link to comment
zaneboy2 Posted September 10, 2012 Author Share Posted September 10, 2012 Even that didn't work. I don't know what I'm doing wrong here. Even downloaded Notepad++ and redid everything, thinking that the normal notepad could give some problems but it seems that it doesn't make a difference. I suppose MTA doesn't use the .lua file at all then? Meaning that I might have forgot something, I don't know what exactly. Cause you only need to edit the meta.xml file in order to link the .lua file to MTA, right? Link to comment
Jaysds1 Posted September 10, 2012 Share Posted September 10, 2012 yup, read here: Meta.xml Link to comment
zaneboy2 Posted September 10, 2012 Author Share Posted September 10, 2012 Alright, checked my meta.xml file, rechecked my .lua file and it still won't work for me. All the objects still appear in game, even when I zoom out and back in much in order to let everything re-stream. I honestly don't know my problem here. Link to comment
Jaysds1 Posted September 10, 2012 Share Posted September 10, 2012 Did you set it server-side? it's better. Link to comment
zaneboy2 Posted September 11, 2012 Author Share Posted September 11, 2012 Sorry for the bump but; where do I need to place these files? I read on the wiki that they need to be put in the resources map file as I always thought they had to be in the map file itself. I did put them in the resources map file but still no effect. Maybe I place them in a totally wrong directory? Link to comment
dzek (varez) Posted September 11, 2012 Share Posted September 11, 2012 If you try to remove elements just for Map Editor just create resource removing all objects and start it AFTER you start map editor. After you finish this map be sure to include this script with a map file. Notice that loading a map in map editor DOES NOT execute scripts included within that map resource. And I hope you will stay with MTA, not just use MTA for creating SAMP maps. Link to comment
Jaysds1 Posted September 11, 2012 Share Posted September 11, 2012 well, all the resource/folders are suppose to be under 'C:\Program Files\MTA San Andreas 1.4\server\mods\deathmatch\resources' anything in that folder is a resource. If you want to make your resources separate from these resource, then you would need to create a folder and add '[' at the beginning/front and ']' at the end/back. Example: '[Jaysds1_Resources]'. and please note, there's not suppose to be any spaces for the file/script names and/or resources, if you want to place a space, use '_' instead. Link to comment
zaneboy2 Posted September 12, 2012 Author Share Posted September 12, 2012 I did everything Jaysds1 stated and no effect. If you try to remove elements just for Map Editor just create resource removing all objects and start it AFTER you start map editor. And how exactly do I start a resource after I started the map editor? Sorry but I'm a total "newbie" when it comes to scripting etc. I tried to search the wiki too but I probably don't know very well where to search correctly. And I hope you will stay with MTA, not just use MTA for creating SAMP maps. No worries on that. Link to comment
Jaysds1 Posted September 13, 2012 Share Posted September 13, 2012 And how exactly do I start a resource after I started the map editor? Sorry but I'm a total "newbie" when it comes to scripting etc. I tried to search the wiki too but I probably don't know very well where to search correctly. well, first you would need to login to your 'Admin' account in order to start/restart/stop a resource. If you don't know how to do this, please read this: https://wiki.multitheftauto.com/wiki/Ser ... nistrators and if you want to know any server commands then, please read this: Console Link to comment
zaneboy2 Posted September 13, 2012 Author Share Posted September 13, 2012 Alright, thanks for the help so far, I'm getting somewhere! But I'm not across the finish yet. I created my admin account, did the whole procedure as stated in the wiki. Once in the map editor again I logged in, did a refresh to update my resources and when I typed start resourcename it gave the message "start: Resource could not be found". I did place the removeworldmodel files (client.lua, server.lua and meta.xml) in a map and added the '[ ]' brackets and placed it in C:\Program Files (x86)\MTA San Andreas 1.3\server\mods\deathmatch\resources directory. Any idea what could have gone wrong? Link to comment
zaneboy2 Posted September 14, 2012 Author Share Posted September 14, 2012 Update: Renamed the folder without the '[ ]' and it worked! Special thanks to Jaysds1 and dzek for their contribution! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now