Giter Site home page Giter Site logo

Comments (13)

Quistar-LAB avatar Quistar-LAB commented on May 26, 2024

If you have the CSL mod, Can you tell if the tree limit is set to your desired limit? If it is, then its the deserialization process that's not supporting Unlimited trees: revisited.
I don't have the source code to Unlimited Trees: Revisited, so I'm not sure how to proceed debugging

from treeanarchy.

cbtendo avatar cbtendo commented on May 26, 2024

yes, the limit is set to what i desired in the option. that works just fine

from treeanarchy.

cbtendo avatar cbtendo commented on May 26, 2024

Wait, I was wrong. the trees are there. it's just.. not rendered until I build something near it.

from treeanarchy.

Quistar-LAB avatar Quistar-LAB commented on May 26, 2024

TreeAnarchy.zip
Please try this. I think I found the problem.
Apparently, tree snapping should not be implemented in Unlimited trees, but should be implemented with MoveIt mod. I just need to expose the possibility of saving and loading the modified Y position of the trees.

from treeanarchy.

cbtendo avatar cbtendo commented on May 26, 2024

ooh so the position is not saved.
I tried using 0.2.1 using a save made with 0.2.0 with the trees position are reseted by building things. but I think the tree position is back to 0 again.

and I after changing to 0.2.1, I tested plopping several trees in empty area, raising them with move it until it floats in the air. save the game, quit to desktop, and loading the save. after loading save, the new tree is gone (not sunk, can't select any tree with move it in the planted area)

from treeanarchy.

Quistar-LAB avatar Quistar-LAB commented on May 26, 2024

It seems I misunderstood the way trees are stored within the buffer by Colossal Order. After a few hours of investigating it. I found out that even if you have 1 tree on the map, it could be stored anywhere in the buffer. (Even at the end of the buffer).
So in order to accommodate this issue. We will have to walkthrough the entire buffer to store the trees, and not be selective as I was doing previously.
I fixed the issue and will be releasing a new version in a few hours.

from treeanarchy.

Quistar-LAB avatar Quistar-LAB commented on May 26, 2024

TreeAnarchy.zip
I just released version 0.3.0
This release should address all the problems you've been encountering. I've described in detail what the issues were in the release tag.
Thanks for your awesome input. It really helped me find the greatest problems in this mod

from treeanarchy.

cbtendo avatar cbtendo commented on May 26, 2024

uuhh.. well... updating to 0.3.0 broke the game. I got this error while loading my 0.2.1 save

Simulation error: Array index is out of range.
at PrefabCollection`1[TreeInfo].GetPrefab (UInt32 index) [0x00000] in :0
at TreeInstance.get_Info () [0x00000] in :0
at TreeManager+Data.AfterDeserialize (ColossalFramework.IO.DataSerializer s) [0x00000] in :0
at ColossalFramework.IO.DataSerializer.Deserialize[Data] (System.IO.Stream stream, Mode mode, ColossalFramework.IO.LegacyResolverHandler customResolver) [0x00000] in :0
at ColossalFramework.IO.DataSerializer.Deserialize[Data] (System.IO.Stream stream, Mode mode) [0x00000] in :0
at LoadingManager+c__IteratorB.MoveNext () [0x00000] in :0
at AsyncTask.Execute () [0x00000] in :0 [Core]

from treeanarchy.

Quistar-LAB avatar Quistar-LAB commented on May 26, 2024

hmmm can you try using one of your previously saved game which was saved using Unlimited Trees Revisited, and try loading the game again. Please make sure to save it to a new save.

from treeanarchy.

Quistar-LAB avatar Quistar-LAB commented on May 26, 2024

I suspect that it was one of the saved game that was using the previous version of this mod. If that's the case, then GetPrefab might be pointing to a wrong index.

from treeanarchy.

Quistar-LAB avatar Quistar-LAB commented on May 26, 2024

BTW loading 0.2.1 cannot be done, because the format has been changed to fix issues that was mentioned above. Please use a new game or a previous save by the original unlimited trees mod. I just remembered what I changed

from treeanarchy.

Quistar-LAB avatar Quistar-LAB commented on May 26, 2024

TreeAnarchy-0.4.1.zip
Please try this version out. It should fix a lot of issue regarding loading games from old Unlimited Tree mod. I found a couple bugs in my codes within the CIL sections.

from treeanarchy.

cbtendo avatar cbtendo commented on May 26, 2024

With 0.4.1 the trees isn't sunk like before. all trees loaded perfectly. and new floating trees are also loaded correctly and not missing. So the issue is fixed for me

from treeanarchy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.