[0.45b] Planted pear trees doesnt work [SOLVED]

[0.45b] Planted pear trees doesnt work [SOLVED]

Postby supermalparit » Mon Apr 30, 2012 1:06 am

This is so embaracing, so, let me post about it.

When the planted pear bushes grow into a planted pear tree, this one dissapear.

Quick fix:
Search this lines on items.xml
Code: Select all
   <plantedpeartree>
      <name esES="Peral plantado">Planted pear tree</name>
      <habitat>grass1</habitat>
      
      <locked>true</locked>
      <action>qchopfruittrees</action>
      <action>qharvestppear</action>
   </plantedpeartree>


And add the line
Code: Select all
<habitat>humus</habitat>

after this one
Code: Select all
<habitat>grass1</habitat>



So, they have to look like this:
Code: Select all
   <plantedpeartree>
      <name esES="Peral plantado">Planted pear tree</name>
      <habitat>grass1</habitat>
      <habitat>humus</habitat>

      <locked>true</locked>
      <action>qchopfruittrees</action>
      <action>qharvestppear</action>
   </plantedpeartree>


Sorry for the inconvenience.



Edit: One more change has to be made:
Locate:
Code: Select all
   <plantedharvestedpeartree>
      <name esES="Peral plantado">Planted pear tree</name>
      <habitat>grass1</habitat>
      <habitat>humus</habitat>
      <maxAge>1d2880+6400</maxAge>
      <maxAgeItem>peartree</maxAgeItem>
      <action>qchop</action>
   </plantedharvestedpeartree>


and change the <maxAgeItem> tag by:
Code: Select all
<maxAgeItem>plantedpeartree</maxAgeItem>


So, the result:
Code: Select all
   <plantedharvestedpeartree>
      <name esES="Peral plantado">Planted pear tree</name>
      <habitat>grass1</habitat>
      <habitat>humus</habitat>
      <maxAge>1d2880+6400</maxAge>
      <maxAgeItem>plantedpeartree</maxAgeItem>
      <action>qchop</action>
   </plantedharvestedpeartree>
Xavi Canal
Image
User avatar
supermalparit
Towns team
 
Posts: 2326
Joined: Thu Oct 27, 2011 11:57 pm

Re: [0.45b] Planted pear trees doesnt work [SOLVED]

Postby Military » Mon Apr 30, 2012 5:28 am

i did that they grow now but when the townies harvest them they turn into regular pear trees, so they will never get auto harvested again
User avatar
Military
 
Posts: 317
Joined: Fri Apr 06, 2012 12:52 am

Re: [0.45b] Planted pear trees doesnt work [SOLVED]

Postby supermalparit » Mon Apr 30, 2012 5:31 am

That's correct, I edited the solution.
Xavi Canal
Image
User avatar
supermalparit
Towns team
 
Posts: 2326
Joined: Thu Oct 27, 2011 11:57 pm

Re: [0.45b] Planted pear trees doesnt work [SOLVED]

Postby Military » Mon Apr 30, 2012 2:52 pm

thanks the planted pears work great now! :D
User avatar
Military
 
Posts: 317
Joined: Fri Apr 06, 2012 12:52 am

Re: [0.45b] Planted pear trees doesnt work [SOLVED]

Postby richard2mitchell » Mon Apr 30, 2012 3:31 pm

I am new to all of this how do i do this?
richard2mitchell
 
Posts: 124
Joined: Fri Apr 13, 2012 7:40 am

Re: [0.45b] Planted pear trees doesnt work [SOLVED]

Postby MadSpy » Mon Apr 30, 2012 3:41 pm

You need to open the file \Towns\Data\items.xml in a text editor (like Notepad).

Then edit the code so it matches the changes above. Next time you restart the game, the pear trees will work again. :D
MadSpy
 
Posts: 17
Joined: Mon Apr 23, 2012 1:57 pm

Re: [0.45b] Planted pear trees doesnt work [SOLVED]

Postby Malk » Mon Apr 30, 2012 5:04 pm

I recommend the notepad++.

Edit.: This bug is related with the fact that I can't gather the planted pear and apple trees?
Malk
 
Posts: 1
Joined: Mon Apr 30, 2012 4:46 pm

Re: [0.45b] Planted pear trees doesnt work [SOLVED]

Postby AzemOcram » Mon Apr 30, 2012 6:46 pm

Thank you so very much. I looked here the second I noticed my pear saplings/bushes disappearing without growing.
AzemOcram
 
Posts: 24
Joined: Wed Apr 25, 2012 1:03 am

Re: [0.45b] Planted pear trees doesnt work [SOLVED]

Postby napredator » Mon Apr 30, 2012 9:52 pm

Code: Select all
[30-Apr-2012 22:49:23][ItemManager] Error obtaining values from items.xml file [com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 4-byte UTF-8 sequence.]
napredator
 
Posts: 6
Joined: Mon Apr 30, 2012 9:51 pm

Re: [0.45b] Planted pear trees doesnt work [SOLVED]

Postby supermalparit » Mon Apr 30, 2012 10:11 pm

You saved the file in a non-UTF format.
Please, use the original file again and, when you save the file use the "Save as..." and check the format field
Xavi Canal
Image
User avatar
supermalparit
Towns team
 
Posts: 2326
Joined: Thu Oct 27, 2011 11:57 pm

Next

Return to Solved

Who is online

Users browsing this forum: No registered users and 0 guests