Kamtar Posted May 20, 2014 Share Posted May 20, 2014 Bijoul a tous, Mon problème est le suivant : j'ai trouver un script sur le web, et l'est modifier pour moi mais il ne fonctionne plus ... Ces un script qui modifie la texture de certain objet. Voila le script et le meta, si vous savez y faire, je vous en serrais reconnaissant. txd = engineLoadTXD ( "skins/aerobase.txd" ) engineImportTXD ( txd, 2289 ) col = engineLoadCOL ( "skins/aerobase.col" ) engineReplaceCOL ( col, 2289 ) dff = engineLoadDFF ( "skins/aerobase.dff", 0 ) engineReplaceModel ( dff, 2289 ) engineSetModelLODDistance(2289, 500) Link to comment
ma2med Posted May 20, 2014 Share Posted May 20, 2014 Bijoul a tous,Mon problème est le suivant : j'ai trouver un script sur le web, et l'est modifier pour moi mais il ne fonctionne plus ... Ces un script qui modifie la texture de certain objet. Voila le script et le meta, si vous savez y faire, je vous en serrais reconnaissant. txd = engineLoadTXD ( "skins/aerobase.txd" ) engineImportTXD ( txd, 2289 ) col = engineLoadCOL ( "skins/aerobase.col" ) engineReplaceCOL ( col, 2289 ) dff = engineLoadDFF ( "skins/aerobase.dff", 0 ) engineReplaceModel ( dff, 2289 ) engineSetModelLODDistance(2289, 500) Remplace seulement le script que tu as trouver par : function onload() txd = engineLoadTXD ( "skins/aerobase.txd" ) engineImportTXD ( txd, 2289 ) col = engineLoadCOL ( "skins/aerobase.col" ) engineReplaceCOL ( col, 2289 ) dff = engineLoadDFF ( "skins/aerobase.dff", 0 ) engineReplaceModel ( dff, 2289 ) engineSetModelLODDistance(2289, 500) end addEventHandler ( "onResourceStart", getRootElement(), onload ) Nomme le client.lua le script au dessus. Et dans le meta.xml ( tu as oublier une ligne ) Link to comment
Kamtar Posted May 20, 2014 Author Share Posted May 20, 2014 Merci mais sa ne fonctionne pas bien plus.. Link to comment
ma2med Posted May 20, 2014 Share Posted May 20, 2014 Merci mais sa ne fonctionne pas bien plus.. Mhh.. Passe moi ton scripts que je puisse voir comment c'est. Link to comment
Kamtar Posted May 20, 2014 Author Share Posted May 20, 2014 sans avoir apporter les motif sa donne sa: client.lua txd = engineLoadTXD ( "skins/aerobase.txd" ) engineImportTXD ( txd, 1779 ) col = engineLoadCOL ( "skins/aerobase.col" ) engineReplaceCOL ( col, 1779 ) dff = engineLoadDFF ( "skins/aerobase.dff", 0 ) engineReplaceModel ( dff, 1779 ) engineSetModelLODDistance(1779, 500) txd = engineLoadTXD ( "skins/deadbody.txd" ) engineImportTXD ( txd, 1777 ) col = engineLoadCOL ( "skins/deadbody.col" ) engineReplaceCOL ( col, 1777 ) dff = engineLoadDFF ( "skins/deadbody.dff", 0 ) engineReplaceModel ( dff, 1777 ) engineSetModelLODDistance(1777, 500) txd = engineLoadTXD ( "skins/dortoir.txd" ) engineImportTXD ( txd, 1773 ) col = engineLoadCOL ( "skins/dortoir.col" ) engineReplaceCOL ( col, 1773 ) dff = engineLoadDFF ( "skins/dortoir.dff", 0 ) engineReplaceModel ( dff, 1773 ) engineSetModelLODDistance(1773, 500) txd = engineLoadTXD ( "skins/eglise.txd" ) engineImportTXD ( txd, 1733 ) col = engineLoadCOL ( "skins/eglise.col" ) engineReplaceCOL ( col, 1733 ) dff = engineLoadDFF ( "skins/eglise.dff", 0 ) engineReplaceModel ( dff, 1733 ) engineSetModelLODDistance(1733, 500) txd = engineLoadTXD ( "skins/eolienne.txd" ) engineImportTXD ( txd, 1574 ) col = engineLoadCOL ( "skins/eolienne.col" ) engineReplaceCOL ( col, 1574 ) dff = engineLoadDFF ( "skins/eolienne.dff", 0 ) engineReplaceModel ( dff, 1574 ) engineSetModelLODDistance(1574, 500) txd = engineLoadTXD ( "skins/firestation.txd" ) engineImportTXD ( txd, 1549 ) col = engineLoadCOL ( "skins/firestation.col" ) engineReplaceCOL ( col, 1549 ) dff = engineLoadDFF ( "skins/firestation.dff", 0 ) engineReplaceModel ( dff, 1549 ) engineSetModelLODDistance(1549, 500) txd = engineLoadTXD ( "skins/grandabattoir.txd" ) engineImportTXD ( txd, 1462 ) col = engineLoadCOL ( "skins/grandabattoir.col" ) engineReplaceCOL ( col, 1462 ) dff = engineLoadDFF ( "skins/grandabattoir.dff", 0 ) engineReplaceModel ( dff, 1462 ) engineSetModelLODDistance(1462, 500) txd = engineLoadTXD ( "skins/petitabattoir.txd" ) engineImportTXD ( txd, 2743 ) col = engineLoadCOL ( "skins/petitabattoir.col" ) engineReplaceCOL ( col, 2743 ) dff = engineLoadDFF ( "skins/petitabattoir.dff", 0 ) engineReplaceModel ( dff, 2743 ) engineSetModelLODDistance(2743, 500) txd = engineLoadTXD ( "skins/grandgrange.txd" ) engineImportTXD ( txd, 2744 ) col = engineLoadCOL ( "skins/grandgrange.col" ) engineReplaceCOL ( col, 2744 ) dff = engineLoadDFF ( "skins/grandgrange.dff", 0 ) engineReplaceModel ( dff, 2744 ) engineSetModelLODDistance(2744, 500) txd = engineLoadTXD ( "skins/petitgrange.txd" ) engineImportTXD ( txd, 2756 ) col = engineLoadCOL ( "skins/petitgrange.col" ) engineReplaceCOL ( col, 2756 ) dff = engineLoadDFF ( "skins/petitgrange.dff", 0 ) engineReplaceModel ( dff, 2756 ) engineSetModelLODDistance(2756, 500) txd = engineLoadTXD ( "skins/hangar.txd" ) engineImportTXD ( txd, 2757 ) col = engineLoadCOL ( "skins/hangar.col" ) engineReplaceCOL ( col, 2757 ) dff = engineLoadDFF ( "skins/hangar.dff", 0 ) engineReplaceModel ( dff, 2757 ) engineSetModelLODDistance(2757, 500) txd = engineLoadTXD ( "skins/maison.txd" ) engineImportTXD ( txd, 2758 ) col = engineLoadCOL ( "skins/maison.col" ) engineReplaceCOL ( col, 2758 ) dff = engineLoadDFF ( "skins/maison.dff", 0 ) engineReplaceModel ( dff, 2758 ) engineSetModelLODDistance(2758, 500) txd = engineLoadTXD ( "skins/medictent.txd" ) engineImportTXD ( txd, 2759 ) col = engineLoadCOL ( "skins/medictent.col" ) engineReplaceCOL ( col, 2759 ) dff = engineLoadDFF ( "skins/medictent.dff", 0 ) engineReplaceModel ( dff, 2759 ) engineSetModelLODDistance(2759, 500) txd = engineLoadTXD ( "skins/mirador.txd" ) engineImportTXD ( txd, 2760 ) col = engineLoadCOL ( "skins/mirador.col" ) engineReplaceCOL ( col, 2760 ) dff = engineLoadDFF ( "skins/mirador.dff", 0 ) engineReplaceModel ( dff, 2760 ) engineSetModelLODDistance(2760, 500) meta.xml <meta> <file src="skins/aerobase.txd" /> <file src="skins/aerobase.dff" /> <file src="skins/aerobase.col" /> <file src="skins/deadbody.txd" /> <file src="skins/deadbody.dff" /> <file src="skins/deadbody.col" /> <file src="skins/dortoir.txd" /> <file src="skins/dortoir.dff" /> <file src="skins/dortoir.col" /> <file src="skins/eglise.txd" /> <file src="skins/eglise.dff" /> <file src="skins/eglise.col" /> <file src="skins/eolienne.txd" /> <file src="skins/eolienne.dff" /> <file src="skins/eolienne.col" /> <file src="skins/firestation.txd" /> <file src="skins/firestation.dff" /> <file src="skins/firestation.col" /> <file src="skins/grandabattoir.txd" /> <file src="skins/grandabattoir.dff" /> <file src="skins/grandabattoir.col" /> <file src="skins/petitabattoir.txd" /> <file src="skins/petitabattoir.dff" /> <file src="skins/petitabattoir.col" /> <file src="skins/grandgrange.txd" /> <file src="skins/grandgrange.dff" /> <file src="skins/grandgrange.col" /> <file src="skins/petitgrange.txd" /> <file src="skins/petitgrange.dff" /> <file src="skins/petitgrange.col" /> <file src="skins/hangar.txd" /> <file src="skins/hangar.dff" /> <file src="skins/hangar.col" /> <file src="skins/maison.txd" /> <file src="skins/maison.dff" /> <file src="skins/maison.col" /> <file src="skins/medictent.txd" /> <file src="skins/medictent.dff" /> <file src="skins/medictent.col" /> <file src="skins/mirador.txd" /> <file src="skins/mirador.dff" /> <file src="skins/mirador.col" /> </meta> Mais je me demande si sa viens pas de mon mta car j'ai tester certain script qui ne fonctionne pas non plus. Link to comment
ma2med Posted May 20, 2014 Share Posted May 20, 2014 sans avoir apporter les motif sa donne sa:client.lua txd = engineLoadTXD ( "skins/aerobase.txd" ) engineImportTXD ( txd, 1779 ) col = engineLoadCOL ( "skins/aerobase.col" ) engineReplaceCOL ( col, 1779 ) dff = engineLoadDFF ( "skins/aerobase.dff", 0 ) engineReplaceModel ( dff, 1779 ) engineSetModelLODDistance(1779, 500) txd = engineLoadTXD ( "skins/deadbody.txd" ) engineImportTXD ( txd, 1777 ) col = engineLoadCOL ( "skins/deadbody.col" ) engineReplaceCOL ( col, 1777 ) dff = engineLoadDFF ( "skins/deadbody.dff", 0 ) engineReplaceModel ( dff, 1777 ) engineSetModelLODDistance(1777, 500) txd = engineLoadTXD ( "skins/dortoir.txd" ) engineImportTXD ( txd, 1773 ) col = engineLoadCOL ( "skins/dortoir.col" ) engineReplaceCOL ( col, 1773 ) dff = engineLoadDFF ( "skins/dortoir.dff", 0 ) engineReplaceModel ( dff, 1773 ) engineSetModelLODDistance(1773, 500) txd = engineLoadTXD ( "skins/eglise.txd" ) engineImportTXD ( txd, 1733 ) col = engineLoadCOL ( "skins/eglise.col" ) engineReplaceCOL ( col, 1733 ) dff = engineLoadDFF ( "skins/eglise.dff", 0 ) engineReplaceModel ( dff, 1733 ) engineSetModelLODDistance(1733, 500) txd = engineLoadTXD ( "skins/eolienne.txd" ) engineImportTXD ( txd, 1574 ) col = engineLoadCOL ( "skins/eolienne.col" ) engineReplaceCOL ( col, 1574 ) dff = engineLoadDFF ( "skins/eolienne.dff", 0 ) engineReplaceModel ( dff, 1574 ) engineSetModelLODDistance(1574, 500) txd = engineLoadTXD ( "skins/firestation.txd" ) engineImportTXD ( txd, 1549 ) col = engineLoadCOL ( "skins/firestation.col" ) engineReplaceCOL ( col, 1549 ) dff = engineLoadDFF ( "skins/firestation.dff", 0 ) engineReplaceModel ( dff, 1549 ) engineSetModelLODDistance(1549, 500) txd = engineLoadTXD ( "skins/grandabattoir.txd" ) engineImportTXD ( txd, 1462 ) col = engineLoadCOL ( "skins/grandabattoir.col" ) engineReplaceCOL ( col, 1462 ) dff = engineLoadDFF ( "skins/grandabattoir.dff", 0 ) engineReplaceModel ( dff, 1462 ) engineSetModelLODDistance(1462, 500) txd = engineLoadTXD ( "skins/petitabattoir.txd" ) engineImportTXD ( txd, 2743 ) col = engineLoadCOL ( "skins/petitabattoir.col" ) engineReplaceCOL ( col, 2743 ) dff = engineLoadDFF ( "skins/petitabattoir.dff", 0 ) engineReplaceModel ( dff, 2743 ) engineSetModelLODDistance(2743, 500) txd = engineLoadTXD ( "skins/grandgrange.txd" ) engineImportTXD ( txd, 2744 ) col = engineLoadCOL ( "skins/grandgrange.col" ) engineReplaceCOL ( col, 2744 ) dff = engineLoadDFF ( "skins/grandgrange.dff", 0 ) engineReplaceModel ( dff, 2744 ) engineSetModelLODDistance(2744, 500) txd = engineLoadTXD ( "skins/petitgrange.txd" ) engineImportTXD ( txd, 2756 ) col = engineLoadCOL ( "skins/petitgrange.col" ) engineReplaceCOL ( col, 2756 ) dff = engineLoadDFF ( "skins/petitgrange.dff", 0 ) engineReplaceModel ( dff, 2756 ) engineSetModelLODDistance(2756, 500) txd = engineLoadTXD ( "skins/hangar.txd" ) engineImportTXD ( txd, 2757 ) col = engineLoadCOL ( "skins/hangar.col" ) engineReplaceCOL ( col, 2757 ) dff = engineLoadDFF ( "skins/hangar.dff", 0 ) engineReplaceModel ( dff, 2757 ) engineSetModelLODDistance(2757, 500) txd = engineLoadTXD ( "skins/maison.txd" ) engineImportTXD ( txd, 2758 ) col = engineLoadCOL ( "skins/maison.col" ) engineReplaceCOL ( col, 2758 ) dff = engineLoadDFF ( "skins/maison.dff", 0 ) engineReplaceModel ( dff, 2758 ) engineSetModelLODDistance(2758, 500) txd = engineLoadTXD ( "skins/medictent.txd" ) engineImportTXD ( txd, 2759 ) col = engineLoadCOL ( "skins/medictent.col" ) engineReplaceCOL ( col, 2759 ) dff = engineLoadDFF ( "skins/medictent.dff", 0 ) engineReplaceModel ( dff, 2759 ) engineSetModelLODDistance(2759, 500) txd = engineLoadTXD ( "skins/mirador.txd" ) engineImportTXD ( txd, 2760 ) col = engineLoadCOL ( "skins/mirador.col" ) engineReplaceCOL ( col, 2760 ) dff = engineLoadDFF ( "skins/mirador.dff", 0 ) engineReplaceModel ( dff, 2760 ) engineSetModelLODDistance(2760, 500) meta.xml <meta> <file src="skins/aerobase.txd" /> <file src="skins/aerobase.dff" /> <file src="skins/aerobase.col" /> <file src="skins/deadbody.txd" /> <file src="skins/deadbody.dff" /> <file src="skins/deadbody.col" /> <file src="skins/dortoir.txd" /> <file src="skins/dortoir.dff" /> <file src="skins/dortoir.col" /> <file src="skins/eglise.txd" /> <file src="skins/eglise.dff" /> <file src="skins/eglise.col" /> <file src="skins/eolienne.txd" /> <file src="skins/eolienne.dff" /> <file src="skins/eolienne.col" /> <file src="skins/firestation.txd" /> <file src="skins/firestation.dff" /> <file src="skins/firestation.col" /> <file src="skins/grandabattoir.txd" /> <file src="skins/grandabattoir.dff" /> <file src="skins/grandabattoir.col" /> <file src="skins/petitabattoir.txd" /> <file src="skins/petitabattoir.dff" /> <file src="skins/petitabattoir.col" /> <file src="skins/grandgrange.txd" /> <file src="skins/grandgrange.dff" /> <file src="skins/grandgrange.col" /> <file src="skins/petitgrange.txd" /> <file src="skins/petitgrange.dff" /> <file src="skins/petitgrange.col" /> <file src="skins/hangar.txd" /> <file src="skins/hangar.dff" /> <file src="skins/hangar.col" /> <file src="skins/maison.txd" /> <file src="skins/maison.dff" /> <file src="skins/maison.col" /> <file src="skins/medictent.txd" /> <file src="skins/medictent.dff" /> <file src="skins/medictent.col" /> <file src="skins/mirador.txd" /> <file src="skins/mirador.dff" /> <file src="skins/mirador.col" /> </meta> Mais je me demande si sa viens pas de mon mta car j'ai tester certain script qui ne fonctionne pas non plus. Bah... Rajoute cette ligne dans meta.xml: Link to comment
Kamtar Posted May 20, 2014 Author Share Posted May 20, 2014 J'ai peut etre trouver une solution.. Je testerais demain, mais merci quand meme. Link to comment
Kamtar Posted May 21, 2014 Author Share Posted May 21, 2014 Le script fonctionne, ces juste mon MTA qui ne veut plus lire les cript.. Vraiment bizard .. Merci pour ton aide bro' 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