Jump to content

New custom objects, anims, vehs, skins...


Piorun

Recommended Posts

Just like gravitation limits you from going straight up into the sky there are some things that limit you in gta as well.

The limitation you are referring to is the unique object limitation in gta3.img?

I was under the impression that he was proposing something for MTA which would bypass gta3.img's object limitation, since (presumably) objects would be 'added' using LUA, rather than inserted into GTA's game files. Maybe I'm misunderstanding what he is suggesting.

I'd secretly been hoping something like that would be possible in MTA1.1, it's a pain in the arse scouting for unused objects to replace.

Link to comment

Adding custom ID's would be possible, but GTA have some limits for adding ID's. Adding more than (rounded value, idk exact, in VC it was around 70?) ~100 will cause game not to load (and trying to hack into GTA memory (like MTA) - so after game is loaded - will probably crash MTA).

As for vehicles - it's not so easy to add vehicle ID. Probably it's limited (low limit) too.

Link to comment

If MTA SA could imitate new IDs itself by replacing models which are not in use and restoring them when needed, there would be no need to change GTA SA limits. That's scriptable, but custom models functions don't work well enough. MTA SA already does a little bit of replacing/restoring: when you replace some ID, new objects are created with it, but GTA SA internal objects remain the same. However, they are replaced too, if a custom object with the same model ID is streamed in. So what MTA does is replacing models when objects using them are visible and restoring them when no object using that ID is near.

Link to comment
when you replace some ID, new objects are created with it, but GTA SA internal objects remain the same

not true, at least for me, and i believe it SHOULD be not true. test it again mate ;)

I tested it again and it works exactly how I described that. I used ID 13050, which is used by world object at the center of the map. When I replace that ID and create an object far from the center of the map, original object remains the same. When I create object near the original one, then original object has custom model too, resulting in a hole at the center of the map. So why shouldn't what I wrote be true if that would mess up the original map? I think YOU should test it again by putting custom object further from the world object.

Link to comment

I downloaded "sk8park" or however this res was called - it's located in Santa Maria's Beach (or however its called - this one in LS). After running this - if you will go for a trip to SF - you will see huge skatepark and hovering ramps and loops around the city. It was working like that for me, my sister, 2 friends, and probably everyone on the server. Maybe something is updated recently to change this behaviour? I'll try this today's evening.

Link to comment

Fix for everyone who has trouble with this:

-Import an object, but be sure the original object is far away from your replacement

-Replace it when you come nearby your custom object

-Revert it to the default object if you leave the replaced object

Like this you would be able to even replace the biggest buildings, without anyone notices.

Link to comment

The problem is when you want to use your object multiple times :P

onClientElementStreamIn and onClientElementStreamOut wouldn't be enough, every stream out you will have to get all objects within stream range, check if there is object with your ID, then unload object if there isn't any other object with this id.

Link to comment

You tried replacing and restoring Interior objects? Kayl and I had been using interior objects as the basis for custom model replacements for months, I don't think we encountered any instability or problems with them that made them unusable. Not that I can recall, anyway. Though he's got some l33t scripting skillz so he may have tried a few different techniques or something, I don't know.

Either way, the main advantage is that they do not conflict with other objects on the map, so you can put it wherever you like on the map without having to worry about your replacement being too close to an original object.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...