The_Taker Posted June 23, 2011 Share Posted June 23, 2011 anyone know how to put custum texture maps in server? Link to comment
JR10 Posted June 23, 2011 Share Posted June 23, 2011 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
The_Taker Posted June 23, 2011 Author Share Posted June 23, 2011 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
JR10 Posted June 23, 2011 Share Posted June 23, 2011 engineImportTXD(txd, model) You must replace model with a number "model" of the object you want to replace. Link to comment
The_Taker Posted June 24, 2011 Author Share Posted June 24, 2011 oh yea thanks it worked Link to comment
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