Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-04-18, 17:38


teusz11







Wiek: 29
Na forum: 4652 dni
Posty: 191
Nick w MP: Matevsz

Piwa: 4

Respekt: 50

Witam, jak napisa? w mecie.xml ?eby odczytywa?o pliki ? <file src="folder/nazwa.txd" /> ?

Oraz jak mam jedn? podmiank? pod kilka obiekt?w czyli
txd(, , )
dff...
txd2(, ,)
dff2(, ,)

to w mecie te? pisa? txd2 czy tylko txd z folderu?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-18, 17:48


serek123

Lua, MySql, Sql






Wiek: 27
Na forum: 4334 dni
Posty: 217
Nick w MP: Serek.

Piwa: 374

Respekt: 70

http://mta.dzek.eu
Wstaw tam i ci samo mete zrobi

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-18, 18:05


teusz11







Wiek: 29
Na forum: 4652 dni
Posty: 191
Nick w MP: Matevsz

Piwa: 4

Respekt: 50

Problem w tym ?e nie mam jednego lub dw?ch plik?w txd i dff tylko ok. 150+ wi?c po kolei nie chce dodawa?, i nie wiem czy przyk?ad co opisa?em jest dobry bo nie chce na marne pisa? ?eby poprawia? oraz czy jak mam txd2(, ,) to te? musze je doda? do mety czy tylko pliki g??wne txd z folderu

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-18, 18:19


serek123

Lua, MySql, Sql






Wiek: 27
Na forum: 4334 dni
Posty: 217
Nick w MP: Serek.

Piwa: 374

Respekt: 70

<info type="misc" name="nazwapliku" author="autor" description="" version="1" />
<file src="nazwapodmianki.txd" />
<file src="nazwapodmianki.dff" />
<script type="client" src="replace.lua" />
i dotego plik lua z takim czym?

txd engineLoadTXD("id podmienionego auta.txd")
engineImportTXD(txdid podmienionego auta)
dff engineLoadDFF("id podmienionego auta.dff"id podmienionego auta)
engineReplaceModel(dffid podmienionego auta)


[ Dodano: 2015-04-18, 18:21 ]
lub pobierz przyk?adowy plik z community i popatrz jak on jest z?o?ony

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-18, 18:28


teusz11







Wiek: 29
Na forum: 4652 dni
Posty: 191
Nick w MP: Matevsz

Piwa: 4

Respekt: 50

Dobra inaczej..

1.Sprawa
Mam ok. 150+ plik?w .txd, mam je wrzucone w folderze nazwa_txd
Oraz 150+ dff w folderze nazwa_dff

meta wygl?da tak:
Kod:

<info type="misc" name="nazwapliku" author="autor" description="" version="1" />
<script src="nazwa.lua" type="client" />
<file src="nazwa_txd/plik.txd />
<file src="nazwa_dff/plik.dff />

itp.. Tak to ma wygl?da??

Oraz

2.Sprawa
W lua script mam podmianki, kod:

Kod:

txd = engineLoadTXD("plik.txd")
engineImportTXD(txd, 29)
dff = engineLoadDFF("plik.dff", 29)
engineReplaceModel(dff, 29)

txd2 = engineLoadTXD("plik.txd")
engineImportTXD(txd2, 29)
dff2 = engineLoadDFF("plik.dff", 29)
engineReplaceModel(dff, 29)


I teraz plik plik.txd to normalny plik z folderu nazwa.txd i robi? dwie podmianki pod jeden plik txd. I w mecie wystarczy jak napisze tylko txd czy te? plik z txd2?

Oraz jak podmieni? blipy, posiadam tylko plik .txd

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-18, 18:36


serek123

Lua, MySql, Sql






Wiek: 27
Na forum: 4334 dni
Posty: 217
Nick w MP: Serek.

Piwa: 374

Respekt: 70

nwm czy bd ci dzia?a? poniewasz masz pare rzeczy podmienionych pod jedn?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-18, 20:41


teusz11







Wiek: 29
Na forum: 4652 dni
Posty: 191
Nick w MP: Matevsz

Piwa: 4

Respekt: 50

No wi?c do .Zip wrzuci?em dwa foldery z txd oraz dff, mete i skrypt, podczas uruchomienia konsoli pojawia si? b??d:

error couldn't parse meta file for resource 'nazwa.lua'
Loading for resources 'nazwa.lua' failed.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-18, 21:24


serek123

Lua, MySql, Sql






Wiek: 27
Na forum: 4334 dni
Posty: 217
Nick w MP: Serek.

Piwa: 374

Respekt: 70

A wypisa?e? te pliki w mecie i tym skrypcie nazwy?

[ Dodano: 2015-04-18, 21:25 ]
Masz fragment mojej mety na fele
<info author="nick" version="1" type="script" />
<script src="wheel.lua" type="client" />
<file src="wheel/Access.txd" />
<file src="wheel/Access.dff" />
<file src="wheel/Ahab.txd" />
<file src="wheel/Ahab.dff" />
<file src="wheel/Atomic.txd" />
<file src="wheel/Atomic.dff" />
<file src="wheel/Dollar.txd" />
<file src="wheel/Dollar.dff" />
<file src="wheel/Grove.txd" />
<file src="wheel/Grove.dff" />
<file src="wheel/Import.txd" />
<file src="wheel/Import.dff" />
<file src="wheel/Trance.txd" />
<file src="wheel/Trance.dff" />
<file src="wheel/Virtual.txd" />
<file src="wheel/Virtual.dff" />

[ Dodano: 2015-04-18, 21:26 ]
i tu ten folder
local resourceRoot = getResourceRootElement(getThisResource())

addEventHandler("onClientResourceStart",resourceRoot,
function ()

txd = engineLoadTXD("wheel/Access.txd", 1098 )
engineImportTXD(txd, 1098)

dff = engineLoadDFF("wheel/Access.dff", 1098 )
engineReplaceModel(dff, 1098)

txd = engineLoadTXD("wheel/Ahab.txd", 1097 )
engineImportTXD(txd, 1097)

dff = engineLoadDFF("wheel/Ahab.dff", 1097 )
engineReplaceModel(dff, 1097)

txd = engineLoadTXD("wheel/Atomic.txd", 1096 )
engineImportTXD(txd, 1096)

dff = engineLoadDFF("wheel/Atomic.dff", 1096 )
engineReplaceModel(dff, 1096)

txd = engineLoadTXD("wheel/Dollar.txd", 1085 )
engineImportTXD(txd, 1085)

dff = engineLoadDFF("wheel/Dollar.dff", 1085 )
engineReplaceModel(dff, 1085)

txd = engineLoadTXD("wheel/Grove.txd", 1084 )
engineImportTXD(txd, 1084)

dff = engineLoadDFF("wheel/Grove.dff", 1084 )
engineReplaceModel(dff, 1084)

txd = engineLoadTXD("wheel/Import.txd", 1083 )
engineImportTXD(txd, 1083)

dff = engineLoadDFF("wheel/Import.dff", 1083 )
engineReplaceModel(dff, 1083)

txd = engineLoadTXD("wheel/Trance.txd", 1082 )
engineImportTXD(txd, 1082)

dff = engineLoadDFF("wheel/Trance.dff", 1082 )
engineReplaceModel(dff, 1082)

txd = engineLoadTXD("wheel/Virtual.txd", 1081 )
engineImportTXD(txd, 1081)

dff = engineLoadDFF("wheel/Virtual.dff", 1081 )
engineReplaceModel(dff, 1081)




end)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-18, 22:21


teusz11







Wiek: 29
Na forum: 4652 dni
Posty: 191
Nick w MP: Matevsz

Piwa: 4

Respekt: 50

Przed chwil? w?a?nie wpisa?em ale nadal to samo :(

Fragment meta.xml :

Kod:

<meta>
<info name="GTA_SA_Podmianki" author"Matevsz" type="gamemode" version"1.0.0" />
<script src="GTA_SA_Podmianki.lua" type="client" />



<file src="ulice_txd/a51_ext.txd" />
<file src="ulice_txd/airoads_las.txd" />
<file src="ulice_txd/airport_las.txd" />
<file src="ulice_txd/airport2.txd" />
<file src="ulice_txd/airportroads_sfse.txd" />
<file src="ulice_txd/airprtrunway_las.txd" />
<file src="ulice_txd/backroad_sfs.txd" />
<file src="ulice_txd/barrio1_lae.txd" />
<file src="ulice_txd/bendytunnel_sfse.txd" />
<file src="ulice_txd/carshow_sfse.txd" />
<file src="ulice_txd/civic03_lan.txd" />
<file src="ulice_txd/cn_nwbrigstuff.txd" />

<file src="ulice_dff/a51_gatecontrol.dff" />
<file src="ulice_dff/airoad1b_las.dff" />
<file src="ulice_dff/airport_03_sfse.dff" />
<file src="ulice_dff/airpurtder_las.dff" />
<file src="ulice_dff/backroad_sfs.dff" />
<file src="ulice_dff/bailbonds1_lan.dff" />
<file src="ulice_dff/baybridge1_sfse.dff" />
<file src="ulice_dff/baybridge2_sfse.dff" />
<file src="ulice_dff/baybridge3_sfse.dff" />
<file src="ulice_dff/baybridge4_sfse.dff" />
<file src="ulice_dff/bchcostrd6_las2.dff" />
<file src="ulice_dff/blockaa_las2.dff" />
<file src="ulice_dff/btoland1_las.dff" />


A to fragment skryptu:

Kod:

local resourceRoot = getResourceRootElement(getThisResource())

addEventHandler("onClientResourceStar", resourceRoot,
funtion()



txd = engineLoadTXD("ulice_txd/a51_ext.txd")
engineImportTXD(txd, 16093)
dff = engineLoadDFF("ulice_dff/a51_gatecontrol.dff", 16093)
engineReplaceModel(dff, 16093)

txd = engineLoadTXD("ulice_txd/airoads_las.txd")
engineImportTXD(txd, 4835)
dff = engineLoadDFF("ulice_dff/airoad1b_las.dff", 4835)
engineReplaceModel(dff, 4835)

txd = engineLoadTXD("ulice_txd/airport_las.txd")
engineImportTXD(txd, 4829)
dff = engineLoadDFF("ulice_dff/lasairprt4.dff", 4829)
engineReplaceModel(dff, 4829)

txd = engineLoadTXD("ulice_txd/airport2.txd")
engineImportTXD(txd, 4830)
dff = engineLoadDFF("ulice_dff/lasairprt3.dff", 4830)
engineReplaceModel(dff, 4830)


Nadal ten sam b??d :(

[ Dodano: 2015-04-19, 10:19 ]
@Ref

Pozmienia?em mete i niby dzia?a.. ale, wchodz? na serwer i pobiera mi si? 108 mb czyli tyle ile ma ca?y plik .zip ale nie wida? podmienionych obiekt?w.. co mo?e by? nie tak?

Postaw piwo autorowi tego posta
 

 
Tagi: meta.xml :: pliki :: folderze
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Meta.xml pliki w folderze Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku