Sparroe Posted July 9, 2014 Posted July 9, 2014 (edited) Hi, Not sure if this belongs here, but I'm a bit confused with mapping on my lan-only server. I've downloaded a racetrack map, but it came in a bunch of .dff's and .col's. I've added custom cars and such to my server before, so I tried to add these files the same way. When I went into the map editor for my server to add the track, I couldn't find the models anywhere. Clearly, I've done something wrong. Can anyone help? Thanks. Edited July 14, 2014 by Guest
Derp42 Posted July 10, 2014 Posted July 10, 2014 You can check all the mods by press F5 in the map editor and spawning the moded vehicle. If you need maps of any gamemode(Specially RPG) like Bases/Islands/Jails then contact me. Skype:deadlytushal
Sparroe Posted July 10, 2014 Author Posted July 10, 2014 You can check all the mods by press F5 in the map editor and spawning the moded vehicle. Yes, but how can I spawn in modded objects and such?
_sEEk_ Posted July 10, 2014 Posted July 10, 2014 How did you added the models? Post the code. The Crew Gaming
Sparroe Posted July 11, 2014 Author Posted July 11, 2014 How did you added the models? Post the code. Apologies in advance for any mistakes I've made. I don't really know what I'm doing. Meta <meta> <file src="object.txd" /> <file src="object1.dff" /> <file src="object1.col" /> <file src="object2.dff" /> <file src="object2.col" /> <file src="object3.dff" /> <file src="object3.col" /> <file src="object4.dff" /> <file src="object4.col" /> <file src="object5.dff" /> <file src="object5.col" /> <info type="map" version="1.0"></info> <map src="map1.map" dimension="0"></map> <settings> <setting name="#minplayers" value="[ 0 ]"></setting> <setting name="#maxplayers" value="[ 128 ]"></setting> <setting name="#gravity" value="[ 0.008000 ]"></setting> <setting name="#weather" value="[ 0 ]"></setting> <setting name="#time" value="12:0"></setting> <setting name="#locked_time" value="[ false ]"></setting> <setting name="#waveheight" value="[ 0 ]"></setting> <setting name="#gamespeed" value="[ 1 ]"></setting> </settings> <script src="mapEditorScriptingExtension_s.lua"></script> </meta> Object lua (This part's probably wrong) function object() txd = engineLoadTXD ( "object.txd" ) engineImportTXD ( txd, 3914 ) engineImportTXD ( txd, 3911 ) engineImportTXD ( txd, 3905 ) engineImportTXD ( txd, 3907 ) engineImportTXD ( txd, 3906 ) col = engineLoadCOL ( "object1.col" ) col1 = engineLoadCOL ( "object2.col" ) col2 = engineLoadCOL ( "object3.col" ) col3 = engineLoadCOL ( "object4.col" ) col4 = engineLoadCOL ( "object5.col" ) dff = engineLoadDFF ( "object1.dff", 0 ) dff1 = engineLoadDFF ( "object2.dff", 0 ) dff2 = engineLoadDFF ( "object3.dff", 0 ) dff3 = engineLoadDFF ( "object4.dff", 0 ) dff4 = engineLoadDFF ( "object5.dff", 0 ) engineReplaceCOL ( col, 3914 ) engineReplaceCOL ( col1, 3911 ) engineReplaceCOL ( col2, 3905 ) engineReplaceCOL ( col3, 3907 ) engineReplaceCOL ( col4, 3906 ) engineReplaceModel ( dff, 3914 ) engineReplaceModel ( dff1, 3911 ) engineReplaceModel ( dff2, 3905 ) engineReplaceModel ( dff3, 3907 ) engineReplaceModel ( dff4, 3906 ) engineSetModelLODDistance(3914, 2000) engineSetModelLODDistance(3911, 2000) engineSetModelLODDistance(3905, 2000) engineSetModelLODDistance(3907, 2000) engineSetModelLODDistance(3906, 2000) end
_sEEk_ Posted July 11, 2014 Posted July 11, 2014 You don't have the script added to meta.xml The Crew Gaming
Sparroe Posted July 12, 2014 Author Posted July 12, 2014 You don't have the script added to meta.xml Alright, I added it, but now the console is giving m a new error. "attempt to call global 'engineLoadTXD' (a nil value)"
denny199 Posted July 13, 2014 Posted July 13, 2014 Place it client side, Sometimes I dream about cheese
Sparroe Posted July 14, 2014 Author Posted July 14, 2014 Place it client side, That fixed the errors but the objects still aren't being replaced. Are the objects meant to be in there own separate resource? Or do I just keep them inside the map folder? Edit: I've somehow figured it out myself. Thanks for all the help guys.
denny199 Posted July 14, 2014 Posted July 14, 2014 Np, I wanted to say today that you can try it in a different resource, since you are testing in map editor. Sometimes I dream about cheese
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