Jump to content

how to put custum map textures in server?


Recommended Posts

first in meta

A client-side file. Generally these are images, .txd, .col, .dff or .xml files. They'll be downloaded by clients when the resources is started (or on join)

src: client-side file name (can be path too eg. "images/image.png")

and in a client sided script use these functions and click on them for more info:

engineImportTXD 
engineLoadCOL 
engineLoadDFF 
engineLoadTXD 
engineReplaceCOL 
engineReplaceModel 
engineRestoreCOL 
engineRestoreModel 

like this:

if your file is blabla.txd and in a file called Files then in your meta should be:

<file src='Files/blabla.txd' /> 

and in your script

local txd = engineLoadTXD('Files/blabla.txd') 
engineImportTXD(txd, model) 

but add it to onClientResourceStart event

why?

because onClientResourceStart event is triggered when a player downloads the resource so the TXD file is downloaded then load and import the TXD

Good luck.

Link to comment

thanks for tut but i get some errors when is start server im doing .COL i got map and everything but i get these errors look

[2011-06-23 12:53:50] ERROR: Bad 'model' id specified in (line 667)

[2011-06-23 12:53:50] ERROR: Bad 'model' id specified in (line 668)

[2011-06-23 12:53:50] ERROR: Bad 'model' id specified in (line 669)

[2011-06-23 12:53:50] ERROR: Bad 'model' id specified in (line 670)

[2011-06-23 12:53:50] ERROR: Bad 'model' id specified in (line 671)

[2011-06-23 12:53:50] ERROR: Bad 'model' id specified in (line 672)

[2011-06-23 12:53:50] ERROR: Bad 'model' id specified in (line 673

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