Crafted and placed a relog anchor, interacted with it, got the message that it would be safe to log out and back in on the ship. Tried having someone move the ship, and when i logged back in, my location was not saved.
image.png
Crafted and placed a relog anchor, interacted with it, got the message that it would be safe to log out and back in on the ship. Tried having someone move the ship, and when i logged back in, my location was not saved.
image.png
yeah I thought this was a forge problem that couldn’t be fixed but this proves otherwise. I don’t know when I’ll be able to fix it but I will have a look again. I’m fairly sure respawning works? It’s probably how I’m saving the data
Also just thought of this, idk if it’s useful to you, but respawning works without the relogs mod. Comes with Valkyrien skies now I guess, or maybe create/clockwork/a dependency somewhere.
I’m fairly sure this didn’t use to happen when I released it, so it’s probably some kind of update that has happened to MC, fabric VS etc in the meantime that causes this
Totally fair, would love a fix but also no pressure if you’ve moved on to other things, I understand.
I appreciate the understanding, thank you
😄 I will take a look tomorrow again and see if I can work it out, can’t guarantee I will be we shall see
The best solution is I just re write it without attachments because I clearly don’t know how they work in this context, but that’s what I was originally planning anyway so I might be able to work on that today
@waggy https://modrinth.com/mod/valkyrien-relogs/version/0.2.0 have a try of this one, I think it should work now. The minor change is that only one person can be a ship officer now and it is always the first person to click on the block, since someone could just dissasemble the ship anyways right now.
Doing some testing. So far, seems that if the ship is stationary when the player logs off and logs on, the player will be on the ship when they log on. If a ship is in motion, it seems that a player will log on with the ship but not be moving with it, if the ship continues moving while they log in the player will be stationary while they load in and if the ship moves far enough, they may fall off. This works for our needs, information provided in case you want to troubleshoot further. Happy to do additional testing at your request. These tests were performed using motion along a combination of all 3 axes as well as rotation, and a ship of appx. 50 blocks in length moving at least a full ship length each test.
This is a problem with mobs loading in too, probably all entities. I wonder how hard would be to fix
if you find this works in your scenarios, I might cross and backport it since ive actually made the mod entirely simpler by removing the need for VS attatchements lol
Tbh I have a solution to this kinda. I just have to keep the player in there relative spawn position for like 30 seconds or so or maybe even less
Also, would this solve the issue of logging out on a moving ship? (Also seems to be broken)
it takes a while for physics to apply to mobs as G_Mungus says, so just need to keep on putting them in the right place until it would start acting
My first thought is to make a potion effect call “tied to the deck” which for its duration puts you in your log in location and then can deal with some of the tags I use when it ends
Is there any way to check in code if physics is applying yet? Cuz everyone’s load time is gonna be different, and having to wait half a minute just because joe schmo in timbuktu can’t load well sounds frustrating
if I could find some notion of the speed of the ship maybe I could do it, but at the same time it might be ok to just do 5 seconds from player join, I cant see it being longer than that, because as soon as the player entity is loaded on the server is the main idea
like the player doesnt get a level object until loaded, or has a blank uuid, or something like that
I might also just be able to say, detect the player sneaks and then have to potion effect immediatly end if I took that route
so as soon as you are able to do inputs, you just tap sneak, and then you start moving fine
Of these, sneaking sounds like the least Intrusive option, that way you can set the potion effect really long to catch weird edge cases
I mean, logging out on a moving ship will work fine, it determines your relative ship position by drawing a line downwards until it hits a ship block, its the logging back in that can cause problems
I have a team of players ready to stress test anything you like
but now when you log back on you should be effectively “floating” above where you would log in on the ship and then you can press shift to go about your day
and if it breaks (it shouldnt) you can also make a player not stuck by /tag player remove VaReLO
ngl your understanding of how modders do projects is really what got me to update it - so many people demand that something should be fixed, but you where actually nice about it
Well I would hate to be mean when asking you a favor??? I would just try and fix it myself as to not trouble you but it’s been so long since I’ve coded for anything, let alone minecraft, it would be weeks of study before I could even take a crack at it
for whatever reason a lot of players dont see it as a favour, more like ive made them cold soup at a restaurant lol
This conversation is on Discord · Reply there