You are not logged in.

Dear visitor, welcome to AnnoZone Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Dschdo

Vollmatrose

  • "Dschdo" started this thread

Posts: 107

Date of registration: Oct 26th 2009

  • Send private message

1

Saturday, November 7th 2020, 6:06pm

Anpassung Pendlerkai funktioniert so nicht

Hallo zusammen,

mir ist der Pendlerkai ein wenig zu teuer, deshalb wollte ich die laufenden Kosten in der assets.xml des Mods für den Kai ab Arbeitern anpassen.

Ich habe dazu am Ende der Datei vor dem </ModOps> folgendes eingefügt:

Source code

1
2
3
4
5
6
7
8
9
10
11
  <ModOp Type="replace" GUID='101642' Path="/Values/Maintenance/Maintenances">
          <Maintenance>
          <Maintenances>
            <Item>
              <Product>1010017</Product>
              <Amount>500</Amount>
              <InactiveAmount>250</InactiveAmount>
            </Item>
          </Maintenances>
        </Maintenance>
  </ModOp>


Nur leider scheint das so nicht ganz zu funktionieren, denn jetzt verbraucht der Kai gar keine Wartungskosten mehr. Kann mir bitte jemand sagen, was ich hier falsch gemacht habe? Danke :D :blumen:

Dschdo

Vollmatrose

  • "Dschdo" started this thread

Posts: 107

Date of registration: Oct 26th 2009

  • Send private message

2

Sunday, November 8th 2020, 11:56am

Ich hab den Fehler mittlerweile selbst gefunden, richtig müsste es so stehen:

Source code

1
2
3
4
5
6
7
8
9
  <ModOp Type="replace" GUID='101642' Path="/Values/Maintenance/Maintenances/Item[Product='1010017']">

            <Item>
              <Product>1010017</Product>
              <Amount>500</Amount>
              <InactiveAmount>250</InactiveAmount>
            </Item>

  </ModOp>