Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crops grow state aren't saved on logout #2124

Open
Lilobast opened this issue Mar 10, 2024 · 4 comments · May be fixed by #2137
Open

Crops grow state aren't saved on logout #2124

Lilobast opened this issue Mar 10, 2024 · 4 comments · May be fixed by #2137
Labels
Status: verified Issue is verified to occur on latest version Type: bug

Comments

@Lilobast
Copy link

Are you on the latest version of Nitrox?

Yes, I'm on the latest commit of the repo (only for experts).

Which OS are you playing on?

Windows

On which platform did you buy Subnautica?

Steam

Describe the issue.

When planting crops on growbed they appear and grow normally until the player disconnect.
On reconnect, the crop is still in the growbed, but isn't present physically and can't be picked up.

On reconnect:
image
image

Describe the steps you took to encounter the bug.

Create a new server,
build a few base pieces and a growbed inside,
plant a crop in the growbed,
wait a bit to it to grow
disconnect,
reconnect.

Relevant log output

Game log:
https://pastebin.com/2s071VXh
Server log:
(too large for pastebin)
server-20240310.log

@Lilobast Lilobast added Status: to verify Issue is currently not verified by trusted user Type: bug labels Mar 10, 2024
@Elektronixx
Copy link

Can confirm this is also the case for me.
(Also playing latest commit of the repo)

@dartasen dartasen added Status: verified Issue is verified to occur on latest version and removed Status: to verify Issue is currently not verified by trusted user labels Apr 14, 2024
@RomikB
Copy link

RomikB commented Apr 19, 2024

Same problem. I move far away from a crops and then get back. The crops are disappear. With this bug farming is impossible.

@Haphestia
Copy link

Haphestia commented Jan 21, 2025

Been poking at this. It does save a plant progress value which gets loaded again.

The Planter doesn't seem to exist yet when the Plantable is deserialized.
PlantableMetadataProcessor will always see growingPlant as null, and do nothing with the stored progress variable.

I tried to force it to recreate the plant, but have not yet been successful.

Edit:
plantable.currentPlanter is null after deserialization, likely relevant.

Edit 2:
The items contained in the planter are in seed form, and decomposing, after re-loading the area. This implies that the planter doesn't invoke its Spawn() function, as I believe that triggers the cycle that would replace those seeds with plants, disable decomposition, and create the growingPlant/GrownPlant as required. Not 100% on anything, still wrapping my head around a lot of stuff. Just tinkering and sharing my observations so far.

Edit 3:
I missed that this is already being worked on in a much more elegant fashion over here: #2137
Mentioning in case anyone else ends up here.

@NikeLaosClericus
Copy link

It seems like using the fastgrow command after joining will bring the plants in the growbed back to life.
You can then turn it off again after that and they seem to work fine (until you disconnect again).

@tornac1234 tornac1234 linked a pull request Feb 23, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: verified Issue is verified to occur on latest version Type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants