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

No way to make Vanilla objects assignable to Mod objects #130

Open
qcs2017 opened this issue Jul 11, 2020 · 3 comments
Open

No way to make Vanilla objects assignable to Mod objects #130

qcs2017 opened this issue Jul 11, 2020 · 3 comments

Comments

@qcs2017
Copy link

qcs2017 commented Jul 11, 2020

Via the IAssignable.IsAssignableTo() I can make a modded object assignable to another object. Unfortunately, although assignments should always be mutual (if I can assign one object to another, I should always be able to assign the other object to the first), the game does handle that in two instances. This is static and makes in impossible for Mod objects to be assignable to other objects which are not under control of the Mod (like Vanilla objects, or objects from other Mods).

@qcs2017
Copy link
Author

qcs2017 commented Jul 13, 2020

AssignableObjectManager.OnLoad() checks if the assignability is mutual, and because it isn't, it does not load the assignment. I'm blocked.

@qcs2017
Copy link
Author

qcs2017 commented Jul 18, 2020

I was able to create a workaround for the loading issue, so it's not blocking me anymore. However, the issue is not gone. Especially that I can assign a Mod object to a Vanilla object, but not the other way around. :)

@qcs2017
Copy link
Author

qcs2017 commented Aug 19, 2020

Problem with doing the load/save on my own: If the mod gets exceptions while running, it gets disabled, when players then save the airport, the assignments are not saved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant