Space Engineers

Space Engineers

75 ratings
Easier Grid Takeovers
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script
File Size
Posted
Updated
7.033 KB
26 Jan, 2019 @ 12:33am
4 Jul, 2021 @ 3:38am
10 Change Notes ( view )

Subscribe to download
Easier Grid Takeovers

Description
This mod was completely inspired by the great work of Meridius IX/Lucas and Ensou with their similar concept https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1172408535. At one point theirs wasn't working, so seeing as I missed it a lot I banged together this one. It uses a different approach so it doesn't share any code, just the inspiration (thanks guys.)

In essence, once all control seats (including cockpits) and remote controls on a grid have been taken over, all the other functional blocks will progressively change their ownership to match, automatically. There are a few differences, if you're used to Easy NPC Takeovers:

* Cryo chambers and passenger seats do not count as control blocks, nor do toilets, desks, couches, etc. If you can steer a ship directly from it, or it's a Remote Control, it counts. Hint: if it has no LCD it's not a control block.
* Other blocks don't all change simultaneously, but rather one at a time per control block, at around 2 sec intervals
* Multiple players from one faction can hack blocks and the takeover will occur
* It's not restricted to NPC grids - PvP players can use this to take over other players' grids
* Each "converted" block will have ownership set to the player who owns the control block doing the converting, and will be set to No Share. This is because all players not in a faction, are considered to be in a "null" faction, so it's kind of a lockdown precaution
* Converted blocks will not count towards the new owners' block limits or PCU count. This is a plus on my servers as I set low limits as an incentive to capture NPCs and obtain their gear. Not sure if this is changeable, modders/devs give me a yell if you know how as I could make an alternative version.

UPDATE: I have added PCU transfer in a couple of other mods... basically whomever owns the majority of blocks on a grid (i.e. if you can rename it) will acquire all PCU on that grid.

Mod compatibility & info
* Should work with modded cockpit and remote control block types which inherit vanilla ObjectBuilder types
* Because light blocks, passenger seats, thrusters, wheels don't have ownership, they're excluded from the conversion checking process. Modded blocks derived from one of these types probably won't convert. I think it's unlikely someone will make a block based on one of these which actually needs ownership.

Detailed mechanics of operation, in case anyone actually cares lol:
Hack a control block and it goes into "ready to convert" mode, for 5 minutes. During this time it conducts a check every 2 sec of all the other control blocks on its grid - if even one has different faction ownership, it doesn't do anything. If they ARE all the same faction, it'll get a list of all functional blocks on the grid belonging to another faction, and convert a random one to its faction. Once the grid is all one faction, it will reset completely (it will also reset after 5 mins to save resources.) Obviously if there are multiple control blocks, the conversion will happen pretty quickly as they each operate separately.

During the conversion period an enemy can attempt to stop the process by grinding any control block. Once it hits the "functional" line it will stop converting blocks, and once it's below the "hacking" line all the others will stop too.

Tested working on a dedicated server. Enjoy!
30 Comments
Piolp 21 Jun @ 2:01pm 
Free blowy if you update this. lol
Jeffers 18 Sep, 2023 @ 1:21am 
Is there a list of all items that must be hacked? I'm having trouble finding out what I need to hack
Sensational Being 5 Aug, 2022 @ 8:24am 
Ok the trick about setting a control seat to nobody when there isn't one to start with is great
jonn19  [author] 31 Jan, 2022 @ 6:56pm 
Hi Sir Vap, anything is possible but right now I'm having a SE break. I kinda feel the mission to locate a hidden RC should still be needed, especially if you're taking over a player's ship (encourage a hidden one or two on PvP servers!) Having said that am not immune from the WHERE THE HELL IS THE RC ON THIS THING? annoyance, have been there a few times myself.
Cigarette 18 Jan, 2022 @ 12:45pm 
Would it be possible to take some inspiration from Hostile Takeover and highlight required blocks when taking out the Grinder?

I have trouble finding the blocks, and i'm not the biggest fan on stripping down ships to find a RC block in the middle of nowhere in it.
jonn19  [author] 23 Feb, 2021 @ 2:46am 
Cool man. Yeah the block needs to see you as an enemy which IIRC it doesn't if you're in creative. That's to avoid issues if you're co-building a ship with faction mates, could change ownership of other blocks and lock people out of doors etc.

If you are playing survival and you are neutral with the grid e.g. trade NPC faction, you can hack the blocks and set them to Nobody. That will convert all blocks to owned by Nobody, which of course you can then just assign to yourself instantly.
kennet0508 22 Feb, 2021 @ 9:03am 
Update: You were completely right, by changing to creative mode, setting the block to space pirates (since i wasnt allowed to change ownership to space pirates in survival.) then going back to survival mode, "hacking" the remote control started turning the grid.

Its not optimal as it was cuite immersion breaking to do that entire process to get it, but what can you do, thanks for the help!
kennet0508 20 Nov, 2020 @ 11:40pm 
Nice! ill test it out in Survival and see if i can get it working
jonn19  [author] 20 Nov, 2020 @ 9:38pm 
Hi Kennet. Good question! I think that if you build a control block (I'd suggest remote control, cheapest in parts IIRC) and change its ownership to Nobody, then the other blocks will change ownership from e.g. SPRT to Nobody and you can just claim 'em.

I'd guess that it didn't work for you in creative because enabling access to all terminals in Space Master screen, means you don't get recognised as "enemy" in block-player relations code. Yeah turrets still target you but for some reason the block-player relations flag is what's reset with access all terminals. If you set to SPRT, then turn off access all, wait a few seconds then hack, you might find it works.
kennet0508 11 Nov, 2020 @ 4:05pm 
Any way to convert grids that do not have a pre existing control seat/Cockpit?

Example, i came across a distress signal, where there were no control seats,. how would one go about capturing that?

I tried building a control seat in creative and transferring it to space pirates, then preceed to hack it. but that didnt seem to do the trick