SEModCommunity / SE-Community-Mod-API

Space Engineers Community Modding API
GNU Lesser General Public License v3.0
60 stars 47 forks source link

Unable to Move Station Object #84

Open ghost opened 10 years ago

ghost commented 10 years ago

I am unable to move a station object in the game. I can change the x,y,z coordinates of the station in the console and the distance value will update, but no change is seen in the game. As a test we convert the station to a ship and we were then able to move it. When importing the station into the world the pre-existing coordinate were also no preserved, it was placed at a random point approx 600km away.

chessmaster42 commented 10 years ago

This is due to the way that static cube grids work in the game. They cannot be moved. So for the time being importing a station will put it out at that random point. This is a safety mechanism of the import that wasn't intended for stations but for ships, floating objects, etc. that can be moved.

A temporary solution would be to change the station to a ship, move it where you like, build a single block with a merge block and merge it back into a station.

We will hopefully have a better solution for stations in the future but this is easier said than done.

ghost commented 10 years ago

Understood, thanks. Would another possible option be to import using the chat command and have the option to specify coordinates? Could you also clarify the use of the /import command? I haven't gotten that tonwork, does the file need to be in a specific location?

Sent via the Samsung GALAXY S®4, an AT&T 4G LTE smartphone

-------- Original message -------- From: Joseph Pearson Date:07/30/2014 12:54 PM (GMT-05:00) To: SEModCommunity/SE-Community-Mod-API Cc: Nathan Lauterstein Subject: Re: [SE-Community-Mod-API] Unable to Move Station Object (#84)

This is due to the way that static cube grids work in the game. They cannot be moved. So for the time being importing a station will put it out at that random point. This is a safety mechanism of the import that wasn't intended for stations but for ships, floating objects, etc. that can be moved.

A temporary solution would be to change the station to a ship, move it where you like, build a single block with a merge block and merge it back into a station.

We will hopefully have a better solution for stations in the future but this is easier said than done.

— Reply to this email directly or view it on GitHubhttps://github.com/SEModCommunity/SE-Community-Mod-API/issues/84#issuecomment-50645356.

ghost commented 10 years ago

Actually for stations, I would prefer them to be imported to the coordinates saved in the sbc file. I'm usually restoring stations for players who's bases have been destroyed by griefers.

chessmaster42 commented 10 years ago

Quick note on this: the import has been fixed as of the last main release so that imported ships now properly obey the position defined in the file. But if there is no position then it will generate a random position as before.

ghost commented 10 years ago

Worked great, I was able to import a station right where I needed. If I need to tweak the position of the station I can just mod the sbc file and re-import. So that solutions works for me.

fvgoulet commented 9 years ago

This enhancement should be simple enough to do, simply set the position of the deserialized cubegrid to where we want to create the cubegrid