Jump to content

MAP - Custom Objects issue


RiD

Recommended Posts

shameful post right here :(

Hello guys, i've been doing a race server but i'm having issues with custom objects. The objects work perfectly in single player (since they were originally made for a SP mod - i used ipl 2 map, and then converted the race map to 1.0 map) but in MTA...

It manages to load the collision, but it doesn't seem to load the TXD and DFF.

noimages.th.jpgnoimages2.th.jpg

Here's the code:

meta.xml

  
<meta> 
    <info gamemodes="race" type="map" name="Beaver City" version="1.0"></info> 
     
    <map src="beaver_city.map" dimension="0"></map> 
    <script src='beaver_city.lua' type='client' /> 
    <!--                      FILES BELOW                      --> 
    <file src="models/beaver_city.txd" type="client"/> 
    <file src="models/beaver_city.col" type="client"/> 
    <file src="models/beaver_city.dff" type="client"/> 
    <file src="models/beaver_city01.col" type="client"/> 
    <file src="models/beaver_city01.dff" type="client"/> 
    <file src="models/beaver_city02.col" type="client"/> 
    <file src="models/beaver_city02.dff" type="client"/> 
    <file src="models/beaver_city03.col" type="client"/> 
    <file src="models/beaver_city03.dff" type="client"/> 
    <file src="models/beaver_city04.col" type="client"/> 
    <file src="models/beaver_city04.dff" type="client"/> 
    <file src="models/beaver_city05.col" type="client"/> 
    <file src="models/beaver_city05.dff" type="client"/> 
    <file src="models/beaver_city06.col" type="client"/> 
    <file src="models/beaver_city06.dff" type="client"/> 
    <file src="models/beaver_city07.col" type="client"/> 
    <file src="models/beaver_city07.dff" type="client"/> 
    <file src="models/beaver_city08.col" type="client"/> 
    <file src="models/beaver_city08.dff" type="client"/> 
    <file src="models/beaver_city09.col" type="client"/> 
    <file src="models/beaver_city09.dff" type="client"/> 
    <file src="models/beaver_city10.col" type="client"/> 
    <file src="models/beaver_city10.dff" type="client"/> 
    <file src="models/beaver_city11.col" type="client"/> 
    <file src="models/beaver_city11.dff" type="client"/> 
    <file src="models/beaver_city12.col" type="client"/> 
    <file src="models/beaver_city12.dff" type="client"/> 
    <file src="models/beaver_city13.col" type="client"/> 
    <file src="models/beaver_city13.dff" type="client"/> 
    <file src="models/beaver_city14.col" type="client"/> 
    <file src="models/beaver_city14.dff" type="client"/> 
    <file src="models/beaver_city15.col" type="client"/> 
    <file src="models/beaver_city15.dff" type="client"/> 
</meta> 
  

beaver_city.lua

function importBeaverCity() 
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8300) 
    col = engineLoadCOL ( "models/beaver_city.col" ) 
    dff = engineLoadDFF("wheel/beaver_city.dff", 0) 
    engineReplaceCOL ( col, 8300 ) 
    engineReplaceModel(dff, 8300) 
    engineSetModelLODDistance(8300, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8301) 
    col = engineLoadCOL ( "models/beaver_city01.col" ) 
    dff = engineLoadDFF("wheel/beaver_city01.dff", 0 ) 
    engineReplaceCOL ( col, 8301 ) 
    engineReplaceModel(dff, 8301) 
    engineSetModelLODDistance(8301, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8302) 
    col = engineLoadCOL ( "models/beaver_city02.col" ) 
    dff = engineLoadDFF("wheel/beaver_city02.dff", 0 ) 
    engineReplaceCOL ( col, 8302 ) 
    engineReplaceModel(dff, 8302 ) 
    engineSetModelLODDistance(8302, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8303) 
    col = engineLoadCOL ( "models/beaver_city03.col" ) 
    dff = engineLoadDFF("wheel/beaver_city03.dff", 0 ) 
    engineReplaceCOL ( col, 8303 ) 
    engineReplaceModel(dff, 8303 ) 
    engineSetModelLODDistance(8303, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8304) 
    col = engineLoadCOL ( "models/beaver_city04.col" ) 
    dff = engineLoadDFF("wheel/beaver_city04.dff", 0 ) 
    engineReplaceCOL ( col, 8304 ) 
    engineReplaceModel(dff, 8304 ) 
    engineSetModelLODDistance(8304, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8305) 
    col = engineLoadCOL ( "models/beaver_city05.col" ) 
    dff = engineLoadDFF("wheel/beaver_city05.dff", 0 ) 
    engineReplaceCOL ( col, 8305 ) 
    engineReplaceModel(dff, 8305 ) 
    engineSetModelLODDistance(8305, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8306) 
    col = engineLoadCOL ( "models/beaver_city06.col" ) 
    dff = engineLoadDFF("wheel/beaver_city06.dff", 0 ) 
    engineReplaceCOL ( col, 8306 ) 
    engineReplaceModel(dff, 8306 ) 
    engineSetModelLODDistance(8306, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8307) 
    col = engineLoadCOL ( "models/beaver_city07.col" ) 
    dff = engineLoadDFF("wheel/beaver_city07.dff", 0 ) 
    engineReplaceCOL ( col, 8307 ) 
    engineReplaceModel(dff, 8307 ) 
    engineSetModelLODDistance(8307, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8308) 
    col = engineLoadCOL ( "models/beaver_city08.col" ) 
    dff = engineLoadDFF("wheel/beaver_city08.dff", 0 ) 
    engineReplaceCOL ( col, 8308 ) 
    engineReplaceModel(dff, 8308 ) 
engineSetModelLODDistance(8308, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8309) 
    col = engineLoadCOL ( "models/beaver_city09.col" ) 
    dff = engineLoadDFF("wheel/beaver_city09.dff", 0 ) 
    engineReplaceCOL ( col, 8309 ) 
    engineReplaceModel(dff, 8309 ) 
    engineSetModelLODDistance(8309, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8310) 
    col = engineLoadCOL ( "models/beaver_city10.col" ) 
    dff = engineLoadDFF("wheel/beaver_city10.dff", 0 ) 
    engineReplaceCOL ( col, 8310 ) 
    engineReplaceModel(dff, 8310 ) 
    engineSetModelLODDistance(8310, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8311) 
    col = engineLoadCOL ( "models/beaver_city11.col" ) 
    dff = engineLoadDFF("wheel/beaver_city11.dff", 0 ) 
    engineReplaceCOL ( col, 8311 ) 
    engineReplaceModel(dff, 8311 ) 
    engineSetModelLODDistance(8311, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8312) 
    col = engineLoadCOL ( "models/beaver_city12.col" ) 
    dff = engineLoadDFF("wheel/beaver_city12.dff", 0 ) 
    engineReplaceCOL ( col, 8312 ) 
    engineReplaceModel(dff, 8312 ) 
    engineSetModelLODDistance(8312, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8313) 
    col = engineLoadCOL ( "models/beaver_city13.col" ) 
    dff = engineLoadDFF("wheel/beaver_city13.dff", 0 ) 
    engineReplaceCOL ( col, 8313 ) 
    engineReplaceModel(dff, 8313 ) 
    engineSetModelLODDistance(8313, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8314) 
    col = engineLoadCOL ( "models/beaver_city14.col" ) 
    dff = engineLoadDFF("wheel/beaver_city14.dff", 0 ) 
    engineReplaceCOL ( col, 8314 ) 
    engineReplaceModel(dff, 8314 ) 
    engineSetModelLODDistance(8314, 2000) 
     
    txd = engineLoadTXD("models/beaver_city.txd" ) 
        engineImportTXD(txd, 8315) 
    col = engineLoadCOL ( "models/beaver_city15.col" ) 
    dff = engineLoadDFF("wheel/beaver_city15.dff", 0 ) 
    engineReplaceCOL ( col, 8315 ) 
    engineReplaceModel(dff, 8315 ) 
    engineSetModelLODDistance(8315, 2000) 
     
end 
  
setTimer ( importBeaverCity, 3000, 1) 

The TXDs, DFFs and COLs are placed in /models/

PS: I'm not a good scripter, so my friend is helping me - however he's encountering difficulties with this too, since we were owners of a sa-mp server (it's closed, we're making (at least trying) a server in MTA)

So, could anyone help me? :)

EDIT: the server is on the latest nightly (mtasa-1.1-untested-3036-20110822-net1BD)

Edited by Guest
Link to comment

LOL!!!! I seriously can't believe how I couldn't notice this...

But seriously, thanks for the reply because I bet I would only notice that error 1 month later,

On the other side, i think i need a pair of glasses...

Link to comment

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...