Forum begins after the advertisement:


[Part 13] Time Stopping Bug with Harvestable Crops

Home Forums Video Game Tutorial Series Creating a Farming RPG in Unity [Part 13] Time Stopping Bug with Harvestable Crops

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #16816
    Jonathan Teo
    Level 18
    Moderator
    Helpful?
    Up
    3
    ::

    A viewer encountered the following problem: When cabbages reach harvestable state (on day 4, around 8am), the game clock stops advancing. Player movement, obstacles, and inventory still function normally. The error message indicates an “ArgumentOutOfRangeException” with array index being out of range, affecting multiple scripts including LandManager, CropBehavior, and TimeManager.

    The ArgumentOutOfRangeException typically occurs when trying to access an invalid array index. Suggested troubleshooting steps:

    1. Check LandManager component in the Unity Inspector for empty array elements
    2. Double-click the error in Unity’s Console to locate the specific problematic line in Visual Studio
    3. Focus debugging efforts on the LandManager.OnCropStateChange() method where the error likely originates

    The ArgumentOutOfRangeException typically occurs when trying to access an invalid array index. Suggested troubleshooting steps Check LandManager component in the Unity Inspector for empty array elements Double-click the error in Unity’s Console to locate the specific problematic line in Visual Studio Focus debugging efforts on the LandManager.OnCropStateChange() method where the error likely originates

    and 1 other person have upvoted this post.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: