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

deserialization error with SetTargetToNearbyBlockNode #109

Open
keturn opened this issue Jun 13, 2022 · 1 comment
Open

deserialization error with SetTargetToNearbyBlockNode #109

keturn opened this issue Jun 13, 2022 · 1 comment
Labels
Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness

Comments

@keturn
Copy link
Contributor

keturn commented Jun 13, 2022

While loading a game, I see an error:

ERROR o.t.e.u.gson.UriTypeAdapterFactory - URI type interface org.terasology.engine.core.Uri lacks String constructor

From peeking at variables in the stack trace, it seems this is coming from trying to figure out SetTargetToNearbyBlock during Terasology's LoadPrefabs step, and I think it's because gson is trying to figure out what to do with STTNB.movementPluginSystem. (because PluginSystem has a field with Map<Uri, Function<>>)

Should that field be marked transient? Or should something in BehaviorTreeFormat or BehaviorTreeBuilder know that fields marked @In should be skipped, since they expect to be handled by runtime dependency injection and not serialized data?

@keturn keturn added the Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness label Jun 13, 2022
@keturn
Copy link
Contributor Author

keturn commented Jun 13, 2022

Oh, this maybe only happens on my experimental branch, in which case it might not be the module's fault. But it would be very useful to know the answer regardless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness
Projects
None yet
Development

No branches or pull requests

1 participant