Queue Issue Part 2

Post your mods and custom content here

Re: Queue Issue Part 2

Postby Haggy » Tue Oct 08, 2013 7:30 pm

See no error, I just wonder something:

<pick>PGoldD</pick>
<replaceCellItem>GoldD</replaceCellItem> <===
<createItem>GoldD</createItem>

There is no reference to a field, where you use it. You pick the subject there, and then you want to replace the item. Theoretically, there is no one more. And then you create a new object. Even if that only works with creating an object out of the air, the Townie then discarding the object and then build the new one. And I think the repealed should be destroyed. Exchange the >pick< to >move<. No great effort or?
My English is bad. Sorry, but this will not Change.

Schreib einfach in deutsch zurück ;)

Haggys Mod Comp.
User avatar
Haggy
 
Posts: 528
Joined: Sun Apr 21, 2013 3:34 am

Re: Queue Issue Part 2

Postby YetiChow » Wed Oct 09, 2013 2:16 am

Haggy wrote:See no error, I just wonder something:

<pick>PGoldD</pick>
<replaceCellItem>GoldD</replaceCellItem> <===
<createItem>GoldD</createItem>

There is no reference to a field, where you use it. You pick the subject there, and then you want to replace the item. Theoretically, there is no one more. And then you create a new object. Even if that only works with creating an object out of the air, the Townie then discarding the object and then build the new one. And I think the repealed should be destroyed. Exchange the >pick< to >move<. No great effort or?


Actaully, that would be the error Haggy, you're completely right - there's nothing in the cell to be replaced after the gold has been picked up, which would be why it's not working. The way to fix it would be to use <move useSource="true">PGoldD</move> instead of <pick>, as you say, which would make the townies move to the gold and replace it with the processed gold before creating another one.

Hopefully that is a bit easier for the OP to read as well... :lol:
What's that you're eating? A nice, juicy apple? You weren't supposed to eat that you fool, you were supposed to make it into a pie! - last words recorded words of Francis D'Avre before he went looking for snowcherries, but found a hungry Yeti instead.
User avatar
YetiChow
 
Posts: 3149
Joined: Wed Apr 25, 2012 9:26 am
Location: Cramped between a Yeti's small intestine and its stomach... trying not to dissolve!

Re: Queue Issue Part 2

Postby JackPS9 » Wed Oct 09, 2013 1:59 pm

alright I'll try it.

Edit:
Nope tried with move useSource and still not working

Edit 2:
Works just not on stockpiles for some dumb reason........
JackPS9
 
Posts: 1088
Joined: Mon Sep 03, 2012 4:15 pm

Re: Queue Issue Part 2

Postby Haggy » Wed Oct 09, 2013 4:53 pm

Try this:

Code: Select all
<action>
      <id>SplitIron</id>
      <name>Separate Pile of Iron Dust</name>
      <priorityID>itemconstruction</priorityID>
      <generatedItem>IronD</generatedItem>
      <queue>
         <move>PIronD</move>
         <replaceCellItem>XIronD</replaceCellItem> <== MaxAgeItem
         <createItem>IronD</createItem>
      </queue>
   </action>


X-IronD
(maxAge1)
(maxAgeItem = IronD)

The problem is, hold your ends with the first object which is connected with the "tag". In the "Replace" command already.

Code: Select all
<action>
      <id>SplitIron</id>
      <name>Separate Pile of Iron Dust</name>
      <priorityID>itemconstruction</priorityID>
      <generatedItem>IronD</generatedItem>    <== Command-tag-item
      <queue>
         <move>PIronD</move>
         <replaceCellItem>IronD</replaceCellItem>  <== Command-tag-item was completed
         <createItem>IronD</createItem>
      </queue>
   </action>
My English is bad. Sorry, but this will not Change.

Schreib einfach in deutsch zurück ;)

Haggys Mod Comp.
User avatar
Haggy
 
Posts: 528
Joined: Sun Apr 21, 2013 3:34 am

Re: Queue Issue Part 2

Postby JackPS9 » Thu Oct 10, 2013 1:03 am

Haggy it works, its just you cant seem to replace stuff on stockpiles for some reason.......
JackPS9
 
Posts: 1088
Joined: Mon Sep 03, 2012 4:15 pm

Previous

Return to Modding

Who is online

Users browsing this forum: No registered users and 5 guests