Aktuálny čas je 18 Júl 2019, 19:41 Pokročilé hľadanie

Navody - Ako vytvoriť config.xml

Potrebujete avatar, podpis, background alebo niečo iné. Požiadajte našich uživateľov.


Navody - Ako vytvoriť config.xml

Poslaťod Patres10 » 24 Nov 2013, 19:33

Vysvetlime si pár základných pojmov pre tvorbu a vkladanie grafiky do FM. Ak chcete aby sa váš výtvor načítal v hre, budete potrebovať napísať config.xml. Config napíšete jednoducho v notepade (alebo použijete program, ktorý to spraví za vás). Takto by mal vyzerať (je pre dresy):

Kód: Vybrať všetko
<record>
   <!-- resource manager options -->

   <!-- dont preload anything in this folder -->
   <boolean id="preload" value="false"/>

   <!-- turn off auto mapping -->
   <boolean id="amap" value="false"/>

<!-- logo mappings -->
   <!-- the following XML maps pictures inside this folder into other positions
         in the resource system, which allows this folder to be dropped into any
         place in the graphics folder and still have the game pick up the graphics
         files from the correct places
   -->

   <list id="maps">
      <!-- Created by "VASE MENO" -->
      <record from="NAZOV DRESU" to="graphics/pictures/team/ID MUZSTVA/kits/home"/>
      <record from="NAZOV DRESU" to="graphics/pictures/team/ID MUZSTVA/kits/away"/>
      <record from="NAZOV DRESU" to="graphics/pictures/team/ID MUZSTVA/kits/third"/>
   </list>
</record>


Pre fotky hracov zmenime riadky pre dresy:
Kód: Vybrať všetko
<record from="NAZOV DRESU" to="graphics/pictures/team/ID MUZSTVA/kits/home"/>

na riadky pre fotky:
Kód: Vybrať všetko
<record from="NAZOV FOTKY HRACA" to="graphics/pictures/person/ID HRACA/portrait"/>


Pre loga z:
Kód: Vybrať všetko
<record from="NAZOV DRESU" to="graphics/pictures/team/ID MUZSTVA/kits/home"/>

na:
Kód: Vybrať všetko
<record from="NAZOV LOGA" to="graphics/pictures/club/ID MUZSTVA/logo"/>


vysledny config bude vyzerat nasledovne (ja vsetko ukladam ako ID Hraca/Muzstva a pracuje sa mi potom jednoduchsie):

Kód: Vybrať všetko
<record>
   <!-- resource manager options -->

   <!-- dont preload anything in this folder -->
   <boolean id="preload" value="false"/>

   <!-- turn off auto mapping -->
   <boolean id="amap" value="false"/>

   <!-- logo mappings -->
   <!-- the following XML maps pictures inside this folder into other positions
          in the resource system, which allows this folder to be dropped into any
          place in the graphics folder and still have the game pick up the graphics
          files from the correct places
   -->

   <list id="maps">
      <!-- Created by Patres10 -->
      <record from="986" to="graphics/pictures/club/986/logo"/>
      <record from="1301171" to="graphics/pictures/club/1301171/logo"/>
      <record from="1301175" to="graphics/pictures/club/1301175/logo"/>
      <record from="130871" to="graphics/pictures/club/130871/logo"/>
      <record from="130872" to="graphics/pictures/club/130872/logo"/>
      <record from="130873" to="graphics/pictures/club/130873/logo"/>
      <record from="130874" to="graphics/pictures/club/130874/logo"/>
      <record from="138174" to="graphics/pictures/club/138174/logo"/>
      <record from="1613" to="graphics/pictures/club/1613/logo"/>
      <record from="1614" to="graphics/pictures/club/1614/logo"/>
      <record from="1615" to="graphics/pictures/club/1615/logo"/>
      <record from="1620" to="graphics/pictures/club/1620/logo"/>
      <record from="1622" to="graphics/pictures/club/1622/logo"/>
      <record from="1623" to="graphics/pictures/club/1623/logo"/>
      <record from="1624" to="graphics/pictures/club/1624/logo"/>
      <record from="63000888" to="graphics/pictures/club/63000888/logo"/>
      <record from="63000893" to="graphics/pictures/club/63000893/logo"/>
      <record from="63000895" to="graphics/pictures/club/63000895/logo"/>
      <record from="63000897" to="graphics/pictures/club/63000897/logo"/>
      <record from="63000901" to="graphics/pictures/club/63000901/logo"/>
      <record from="63000904" to="graphics/pictures/club/63000904/logo"/>
      <record from="63000914" to="graphics/pictures/club/63000914/logo"/>
      <record from="63000917" to="graphics/pictures/club/63000917/logo"/>
      <record from="63000920" to="graphics/pictures/club/63000920/logo"/>
      <record from="63002692" to="graphics/pictures/club/63002692/logo"/>
      <record from="63004278" to="graphics/pictures/club/63004278/logo"/>
      <record from="63004281" to="graphics/pictures/club/63004281/logo"/>
      <record from="63007397" to="graphics/pictures/club/63007397/logo"/>
      <record from="63010727" to="graphics/pictures/club/63010727/logo"/>
      <record from="63010797" to="graphics/pictures/club/63010797/logo"/>
      <record from="63010801" to="graphics/pictures/club/63010801/logo"/>
      <record from="63010804" to="graphics/pictures/club/63010804/logo"/>
      <record from="7560018" to="graphics/pictures/club/7560018/logo"/>
      <record from="7560020" to="graphics/pictures/club/7560020/logo"/>
      <record from="7560050" to="graphics/pictures/club/7560050/logo"/>
      <record from="7560706" to="graphics/pictures/club/7560706/logo"/>
      <record from="7562533" to="graphics/pictures/club/7562533/logo"/>
      <record from="7563783" to="graphics/pictures/club/7563783/logo"/>
      <record from="7563786" to="graphics/pictures/club/7563786/logo"/>
      <record from="7564894" to="graphics/pictures/club/7564894/logo"/>
      <record from="7564895" to="graphics/pictures/club/7564895/logo"/>
      <record from="7565209" to="graphics/pictures/club/7565209/logo"/>
   </list>
</record>


Vytvoreny facepack, loga, dresy skopirujeme sem:
C:\Dokuments and Settings\"Meno uzivatela"\Dokuments\Sports Interactive\Football Manager 2014\graphics - tu si mozes vytvorit lubovolny adresar napr. loga, kam skopirujete vsetko co ste vytvorili.

UPOZORNENIE:
Pri fotkach odporucam vytvarat pre kazde muzstvo vlastny adresar. Pri logach a dresoch staci adresar pre ligu.
Obrázok
Obrázok užívateľa
Patres10
Site Admin
Site Admin
 
Príspevky: 1873
Registrovaný: 06 Jún 2013, 19:08
Bydlisko: Bratislava, Slovakia
Som fanúšikom:: FC Nitra & Arsenal FC

Kto je on-line

Užívatelia prezerajúci fórum: Žiadny registrovaný užívateľ nie je prítomný a 1 hosť