Space Engineers

Space Engineers

空间锚 | Space Anchor
43 Comments
Silentor  [author] 25 Jun @ 10:24am 
@wildbandit43
I found that I missed a line of code, so I will update it again...
wildbandit43 25 Jun @ 10:12am 
Space Anchor does not turn off now?
Silentor  [author] 25 Jun @ 8:59am 
@Digi
I fixed this issue, it should be due to the projection block problem...
Digi 25 Jun @ 5:03am 
It's because CubeGrid.Physics is null which is to be expected for ghostly grids, as it also happens in at least 2 caes in vanilla: projecting a blueprint with this block or simply copying the grid and then pasting to see the ghost.

My scripting examples [github.com] also include a check to skip projected/ghost grids too :P
Exis 17 Jun @ 4:32pm 
This did not help
Exis 17 Jun @ 4:16pm 
I used ChatGTP to read my crash log (yeah, im kinda lazy)

========================================================================
ChatGPT said:

Your Space Engineers crash log shows a System.NullReferenceException caused by a mod, specifically one with Chinese-named classes—likely related to a mod involving space anchors or gravity manipulation.
🔍 Summary of the Crash

Crash Cause: System.NullReferenceException

Problematic Function: 不言.空间锚.逻辑.空间锚逻辑.清除重力()
(Translated roughly: BuYan.SpaceAnchor.Logic.SpaceAnchorLogic.ClearGravity())

Crash Trigger: During simulation update of a temporary grid (BuildInfo_TemporaryGrid)
=======================================================================

Im gonna try removing Buildinfo and see if it still happens

The crash part of the log: https://pastebin.com/F7iJz1zs
Silentor  [author] 17 Jun @ 10:01am 
@Exis
Hi Exis,
The crash you're experiencing shouldn't be related to this mod. My code doesn't contain any hotbar-related functionality or interactions.
I'd suggest checking other mods that might affect the hotbar system, as the conflict is likely coming from elsewhere. You could try temporarily disabling other mods to isolate which one is causing the issue.
The Space Anchor itself doesn't have any special hotbar behavior programmed into it.
Silentor  [author] 16 Jun @ 7:20pm 
@Exis
It seems that an error occurred after the update. I'll check it again.
Exis 16 Jun @ 6:28pm 
I get a crash whenever i put the anchor in my hotbar. Are there any mods that you know are incompatible with this one?
⌥ꏸЏᕊΣґᕊlΛↁΞ 6 May @ 5:22am 
Thanks to this mod, my ship can operate in atmospheres without any problems. I don't have to attach like millions of atmosphere thrusters to travel on planets as i just need to place down a few of these blocks and keep dampeners on and ships moves in atmosphere just like in space.

This is such a quality of life mod, thank you for creating this mod
Lillian Griffin 8 Nov, 2024 @ 1:11pm 
有挺严重的bug,有的时候空间锚的效果会跨网格生效
例如,我在a船放置了空间锚,尽管它是关闭的,并且a船没有和b船有任何物理连接
没有安装任何空间锚的b船依然会受到空间锚影响,且无视b船的任何驾驶座控制,即使一直按着w,b船也会因a船(甚至已经关闭且没有任何连接)的空间锚只能飞出个位数的速度。
与此同时,a船上的空间锚完全运行正常,关闭抑制器也会正常不受阻力的漂流
移除a船的空间锚后,b船才恢复正常的无阻力漂流和速度
zenol the soviet waffle 1 Aug, 2024 @ 6:16am 
slight bug, when engaged the ship jerks up by a quarter of a meter, causing it to slowly float up away from a planet.
Malpherian 5 Jul, 2024 @ 1:51am 
I'll add this to my server, and see what the players think. Looks Cool.
玄镜天 15 Feb, 2024 @ 2:47am 
之前有个SPACE BREAKER的MOD有着类似的体验。它大大增加了飞船控制的手感使得我不用花费大量的心思在安装反向推进器上,谢谢!
kinngrimm 14 Jan, 2024 @ 6:59am 
this sounds nifty and i just have to play around with this
AnonaCraffter 9 Dec, 2023 @ 6:27pm 
HOW WORK?????????????/
Capt_Ocean1 8 Dec, 2023 @ 2:36pm 
Suggestion: add a value for Gravity say if your dealing with say really high gravity like 10g then process that into having a requirement for more power while active.
Pixel 27 Nov, 2023 @ 1:26am 
Simple and effective mod! Works well with zero to 1000 speed mod. I can slow down than faster than just using the dampeners.
Romeo 26 Nov, 2023 @ 1:53pm 
Great mod 寂语不言丶. My question though... if i have a super carrier with LOTS of other heavy grids on will it account for them as well and keep my carrier floating without thrust or will it still sink? My super carriers always drift down eventually.
Z3R0 16 Nov, 2023 @ 2:25pm 
yeah got to upvote too on this, good job
ANONYME 6 Nov, 2023 @ 8:00am 
Simple idea yet very nice, thanks will upvote
MedvePapus 30 Oct, 2023 @ 11:29am 
Oh I see, thank you! @author
jokerace45 30 Oct, 2023 @ 4:19am 
Can you use more than one to stop faster?
BUGINEITOR 30 Oct, 2023 @ 3:08am 
servers often use mods to increase the limit speed
Silentor  [author] 29 Oct, 2023 @ 9:00pm 
@Beyond_Skill141
It has a different effect than a gyroscope, making a ship immune to gravity, or stopping a ship that's slowing down more quickly (even if it doesn't have any thrusters).
Silentor  [author] 29 Oct, 2023 @ 8:57pm 
@MedvePapus
It can enhance the deceleration effect of thrusters, or stop a ship without any thrusters.
Beyond_Skill141 29 Oct, 2023 @ 7:13pm 
isn't that what a gyroscope would do in space when u turn it to overide? it basically will just keep the ship still?
Vexian 28 Oct, 2023 @ 7:23pm 
Its good
MedvePapus 28 Oct, 2023 @ 12:11pm 
I'm sorry I don't understand the description, what's the point of the block again? Func1 is okay, if ur in gravity, it "ignores" the gravity so the grid wont "sink". But func2 isn't just the damper? like the "Z" button, where you automatically slow down if u dont move?
Leonix 28 Oct, 2023 @ 5:44am 
Thank you 寂语不言丶it doesn't crash anymore... :)
Silentor  [author] 27 Oct, 2023 @ 8:31pm 
@Leonix @EldonRosen
It should no longer crash the game.
Silentor  [author] 27 Oct, 2023 @ 6:40pm 
@Leonix
Ok, I should probably optimize the script a little bit more to make sure this doesn't happen again. There should be an update today.
Leonix 27 Oct, 2023 @ 1:27pm 
Exception occurred: System.NullReferenceException: Object reference not set to an instance of an object.
at BuYanMod.SpaceAnchor.SpaceAnchor.UpdateAfterSimulation()
at VRage.Game.Components.MyGameLogicComponent.VRage.Game.Entity.EntityComponents.Interfaces.IMyGameLogicComponent.UpdateAfterSimulation(Boolean entityUpdate)
at Sandbox.Game.Entities.Cube.MyFunctionalBlock.UpdateAfterSimulation()
at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.UpdateAfterSimulation()
at Sandbox.Game.Entities.MyParallelEntityUpdateOrchestrator.DispatchAfterSimulation()
at Sandbox.Game.Entities.MyEntities.UpdateAfterSimulation()
at Sandbox.Game.World.MySector.UpdateAfterSimulation()
at Sandbox.Game.World.MySession.UpdateComponents()
at Sandbox.Game.World.MySession.Update(MyTimeSpan updateTime)
Leonix 27 Oct, 2023 @ 1:27pm 
at Sandbox.MySandboxGame.Update()
at Sandbox.Engine.Platform.Game.UpdateInternal()
at Sandbox.Engine.Platform.Game.RunSingleFrame()
at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass11_0.<Run>b__0()
at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback)
at Sandbox.Engine.Platform.Game.RunLoop()
at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen)
at SpaceEngineers.MyProgram.Main(String[] args)
at avaness.SpaceEngineersLauncher.Program.StartSpaceEngineers(String[] args)
at avaness.SpaceEngineersLauncher.Program.Main(String[] args)
Silentor  [author] 27 Oct, 2023 @ 8:38am 
@EldonRosen
It works fine in my game.
If you can provide me with the game logs, I might be able to determine what the problem is.
Silentor  [author] 27 Oct, 2023 @ 8:35am 
@EldonRosen
Can you provide the game log?
EldoRosen 27 Oct, 2023 @ 8:25am 
this is not working, it crashing game
Mechanical 27 Oct, 2023 @ 1:23am 
@Lord Skarra
Building a ship in space and you cut off any blocks holding it in place but haven't had a chance to have functioning/fueled thrusters. Another is if a ship has too many thrusters damaged or all the gyros get popped, this will hold it in place.
AlexanderTheWorst 26 Oct, 2023 @ 6:41pm 
checked your mods. you got some nice stuff there
Lord Skarra 26 Oct, 2023 @ 6:17pm 
what would this be useful for? bit confused...? im assuming space station? maybe? idk?
Silentor  [author] 24 Oct, 2023 @ 5:05am 
@Anubis @Phoenix
modpack should be made after I update all mods.
Anubis 23 Oct, 2023 @ 11:22pm 
How about a modpack for all the mods? between this gravity engines and wormhole drilling makes for a great orbital foundry that can move when needed.
Phoenix 23 Oct, 2023 @ 6:19pm 
This sounds incredibly useful. If I can get the number of mods at or below my minimum for workshop uploads, this might be a new addition to one of the factions.

In fact, any chance down the road you might combine the gravity engine and this anchor mod into one pack?