Jump to content

What am I doing wrong?


Stacey

Recommended Posts

Posted (edited)

Hi I've been creating maps for SA for years now, but I am new to MTA as I have only just discovered you can add your own custom models to server.

So i followed a few tutorials online to add models to a server but they always have the same outcome, the original model is never being replaced. I followed 4 tutorials atleast 3 times but still nothing.

Firstly I created and exported a simple carpark in 3DS max

9k4ft4.png

Added to my IMG, IDE and IPL to test before I put into MTA and it worked fine.

1st time I tried adding a model to MTA i just copied their script and changed the file names to carpark.dff, ect, but it didn't work, I created a basic script to add the message "did it work?" for when i start the script and that worked fine.

So I fiddled around with the 1st script to try and get it working but it only come up with the "did it work" text.

I tried another tutorial and this time they used 50's map exporting script to create a .map file and automatically create the meta and lua, but it's doing exactly the same thing. When I type 'start test' (name of resource folder) in the console, the loading bar comes up and "did it work" comes up but when I search the ID that my model is meant to be replacing it hasn't changed.

2v2zigk.png

2hs81et.png

20pqbs1.png

Is there another command I should be typing? Is my script wrong? Can somebody please help me?

I have a couple of ideas but not sure, in the .lua file, there are "..'s" next to the file names, are they meant to be there?

Also the first script I made didnt have "temp" next to local. Do you think these are the problem? This script was auto generated so I don't think it would be the problem

Edited by Guest
Posted

The paths basically translate to map/carparkcarpark.dff and the same for .col and .txd. Remove the "/carpark" from the modelNames table.

Also, there's no function called engineReplaceTXD, it's engineImportTXD. You should first import the txd, then replace the model.

Posted

oh i see, when it created the LUA automatically, i assumed i had to insert the model names myself, and also the exporter doesnt work with TXD's so i attempted to add it myself lol fail. Thanks i will try it now

Posted

thanks for your help. The model worked :D

But like you said the TXD is not being loaded. I've only just seen your reply so I will try it now.

So you mean like this?..

2j1tmdj.png

Posted

Thank you :) it's very basic though, didnt want to waste too much time on it so I just used 3 seamless textures with a box uvw map. Going to unwrap some better textures from it now that I know how to add it to MTA :D

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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