-
Couldn't load subscription status.
- Fork 32
Add migrations to bump level ids by 200,000,000 #864
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
base: main
Are you sure you want to change the base?
Conversation
|
This will likely break level keys and level links (the in-game objects) |
|
True, but it also goes the other way... if we don't do this level keys & links will be broken in reuploaded levels. I don't think there's much we can do about that, and I think most instances of keys are spam anyways. Level links are a bad thing to break though. |
|
Hmm... what do you think the viability of re-serializing levels is? Maybe that could be a solution - updating every level with a level link/keys with the new IDs? Only thing is we don't have any kind of infrastructure for that. |
|
It would not be a bad idea to get some simple infrastructure for that. might also be useful in the future. it seems to be the best option cuz whats proposed right now just seems like duct tape that we might regret in the future |
|
actually i dont know |
|
I won't go into detail here but I'd like to avoid that library since we (Bonsai) have had issues with the maintainers of that project. I was actually thinking we could just consume CwLib in a Java server. We already plan to support moving workers outside of the main The downside to this is that it requires you to write Java. |
|
Oh, another route could be running CwLib directly within C#. I don't know how practical or usable they are for this case, but there exists a couple projects out there that will allow you to call Java from C#. That would let us skip all the boilerplate database code. But maybe it's still worth it to just write a Java worker because I don't really see anything that's still maintained. |
Some preliminary work for the big archive import. This will allow us to cleanly import everything while keeping all the old level ids from the original servers.
The number 200,000,000 was chosen because it's about double the amount of the highest ID recorded in the dry database, that number being 100,515,565.
The sooner we get this out, the lesser the impact this will have as people continue to upload levels.
Marking as draft because there are a few considerations:
https://lbp.lbpbonsai.com/l/1234. There's also the old LBP.me links, likehttps://lbp.me/v/<some encoded int>.