#cannot join a dedicated server because of two entities sharing the same id (?)

1 messages · Page 1 of 1 (latest)

timid ridge
#

would it perhaps be possible to delete one of the aforementioned entities?

#

i was not able to find an entity with an ID of 1941 anywhere in the world folder

jolly swallow
#

its a physics entity

#

not stored with normal entities

#

(the name is misleading, its not an entity at all)

#

anyway uh

#

to delete it your going to need to open up ships.dat

#

which is rather tricky

timid ridge
#

where can i find it?

jolly swallow
#

in your world save

#

in uh

#

data folder somehwere?

timid ridge
#

ship data?

jolly swallow
#

yeah

timid ridge
#

alr

jolly swallow
#

How to read ships.dat

Open it in any nbt viewer (aka https://www.brandonfowler.me/nbtreader/ )
Data is just bytes
Copy it, paste into a file, and open as text
It's just a serialized json
Ascii encoding

It’ll then look a lot nicer if you put it into https://jsonformatter.org/

You can then see that there’s some data, and then a “ships” list (square brackets) full of ship dictionary’s (curly brackets) and each ship has an id value. You can search for your troublesome id and then delete the curly brackets group it’s in
So for example:
ships: [
{
“id”: good,
“etc”: “data”
},
{
“id”: bad,
“etc”: “data”
},
{
“id”: good2,
“etc”: “data”
}
]

Would become:
ships: [
{
“id”: good,
“etc”: “data”
},
{
“id”: good2,
“etc”: “data”
}
]

Then do all the steps to open the file in reverse
(serialize the json, then turn the ascii string into bytes, then put it back in the ships.dat)

But before you put the file back into the world I would recommend making a backup, just in case you screw something up you don’t want to delete all your ship data

timid ridge
#

oooh boy...

#

this is going to be fun

jolly swallow
#

i tried to make a python thing to automate this

#

idr if i finished it

timid ridge
#

no worries

jolly swallow
#

ah i did finish it

#

want to send your ship.dat and ill remove it?

timid ridge
jolly swallow
#

hmm

#

it didn't find that id

#

maybe physics entities are different?

timid ridge
#

weird

#

wait

#

the server console spams about there being entities generated

#

like in the thousands

#

maybe it really doesnt exist in the folder

#

given how its id is 1941 we can assume its a random piece of wanderlite

#

hmm

#

this might be a dumb question but is it possible to tell how much data does a ship carry?

#

because there are only 2 constructs actually made using VS and the other 2000 apparently is just wanderlite ore

jolly swallow
#

well but

#

they aren't stored as ships

#

so idk

timid ridge
#

im dumb nvm

#

what about date of creation?

#

since there is no particular ship with this id we could just delete anything above a certain threshold

#

alright

#

i think im going to have an aneurysm because i wanted to try to get the server to crash and it didnt

#

i tried removing clockwork earlier but it didnt work at first

#

i guess booting it up twice since deleting the mod fixes the issue itself

#

5 hours of troubleshooting clockwork breaking the game

jolly swallow
#

wait you removed clcokwork?

#

im suprised that worked

timid ridge
#

i dont ever want to see that god forsaken ore ever again

timid ridge
#

the server shat the bed as soon as i tried to boot it up without it so i added it back

jolly swallow
#

ah that makes sense

timid ridge
#

tried joining again but it still kicked me and died

jolly swallow
#

what uh

#

version of clockwork do you have

timid ridge
#

but now it realized "ah, i forgot there is no wanderlite around. my bad g"

timid ridge
south bramble
timid ridge
#

this will be the 3rd server with vs i did in which everything broke except for interactive somehow

south bramble
south bramble
#

clockwork ore shouldn't do that

#

mostly because it's not a phys entity

timid ridge
#

6 gabogotrillion wanderlite ore entities!

south bramble
#

afaik only 2 addons make phys entities, and that's vmod and trackwork

#

vmod is creative only, so do you have trackwork?

timid ridge
#

i do

#

but that was not the issue

south bramble
timid ridge
#

removing clockwork fixed it in an instant two instants

south bramble
#

🤔

timid ridge
#

it all points towards wanderlite

#

without a doubt

south bramble
#

i still think it was trackwork

#

anyways whatever

timid ridge
#

so ummm

#

is there a way to prevent it from spawning?

#

do you think this could work?

south bramble
#

it should generate as a normal ore

#

so just a datapack will probably work

#

idk anything about datapacks though