-
Notifications
You must be signed in to change notification settings - Fork 12
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
MyPlot Support #17
MyPlot Support #17
Conversation
I've done some light work on comparing the calculations between MyPlot and CPlot. It looks like all the X and Z values for any input rasterized coordinates need offset by the road width for the world generation and position calculations to match up, so it should be easy to add a coordinateOffset value to the WorldSettings for the value to be made available wherever necessary. |
Yeah, if I remember correctly, x=0 and z=0 should be the beginning of a plot in MyPlot, while it is the beginning of the road in this plugin. |
I have a working version using a simple offset variable saved in the WorldSettings. Would you like me to PR to this branch? |
Sure! |
I like the idea of the plugin being a drop-in replacement, but the data of the plots does also need to be transferred, so that would need to be addressed as well and would require at least having MyPlot's config file existing to get their provider settings. |
The largest inconsistency I see currently is the economy system. MyPlot has prices stored on a per-plot basis, but the prices are locked into the configured values for CPlot. Is it preferred to drop the individual data for the CPlot config values? As for data sync between the different identifier types, all we need to do is check the player's offline save data for the XUID. As long as the server is XUID validated (which PM is by default), we can use the XUID and UUID interchangeably and match them to the player's name as the file name to sync the data. |
Oh, I didn't know such a feature existed. It would be unfortunate if those data would just be lost, although it's not that big of a deal. Don't you need to disable xbox auth to use proxies like WaterdogPE? Is the XUID still saved then? |
A feature like auctioning plots or any other extended economy functionality can be extracted into its own plugin easily. That may be a good idea to do for setting individual plot prices. The data import for those features could then also be moved into the new plugin. I believe WaterdogPE and other proxies are supposed to relay the xuid information to the server for validation still. I will do a bit of research to find more info on how that works. |
Yeah, I was thinking about moving the whole economy part to a different plugin, so even the provider classes, etc. But still debating about that. I did some work towards this today and there should be no longer any direct dependencies on the UUID, XUID or name, apart from basic player verification. So as long as either one of those three options is known, there should be no problems. |
It seems I've got dementia. |
In my fork I made use of that property as a world-type differentiator along with the offset value |
603b90c
to
60635e3
Compare
7d6c7a0
to
60635e3
Compare
I gave this a second thought. I don't want to fragment this plugin into a dozen of smaller pieces. |
This one should be ready for testing and can be downloaded at poggit |
…nt() Signed-off-by: ColinHDev <colinheidfeld@gmail.com>
# Conflicts: # src/ColinHDev/CPlot/provider/DataProvider.php
So, I did some testing and now no longer noticed any errors with the imported data. |
No description provided.