Gravity Generators need to specify a subtype ID by default

captainbladej52 shared this feedback 3 years ago
Submitted

Reported this previously as a bug and was told it's not a bug and to post it here. Quite simply put the Gravity Generator and Spherical Gravity Generator do not specify a subtype ID in the gravity SBC file. Quite simply put gravity generators need to specify a subtype ID in the SBC files. As is right now they are the only blocks that I have seen that do not specify a subtype ID. Currently as it sits now the gravity generators are the only types of blocks that I have seen that don't specify a subtype ID. This can potentially lead to crashing for any gravity generator type mod or similar item based around that type of block, especially if folks don't know how to go into the base files of the game to make a correction. Even the jump drive has a subtype ID specified by default in the SBC files as shown below.


<Id>
   <TypeId>JumpDrive</TypeId>
   <SubtypeId>LargeJumpDrive</SubtypeId>
</Id>


currently the gravity generator code sits as:


<Id>
  <TypeId>GravityGenerator</TypeId>
  <SubtypeId />
</Id>

A simple change of 2 lines of code could bring greater stability to gravity generator and gravity type mods as a whole.


<Id>
        <TypeId>GravityGenerator</TypeId>
        <SubtypeId>GravityGenerator</SubtypeId>
      </Id>

<Id>
        <TypeId>GravityGeneratorSphere</TypeId>
        <SubtypeId>GravityGeneratorSphere</SubtypeId>
      </Id>

Folks can make the changes above to the base files of the game, however it will get overridden with each update to the game or verification. Having blocks as a whole specify subtype IDs will make modding as a whole potentially easier and more stable, especially for those who may not have the necessary knowledge of how to implement the fixes above. A very small change overall to the default files for greater stability of mods and less chance of a crash overall.

Replies (1)

photo
1

Since this I have also discovered that if folks change the SBC file for the gravity generator definitions to enable gravity generator modding on the player side, it registers them as a different type of block in various blueprints. This means folks would have replace all gravity generators in their blueprints. Gravity generators already present in the world are uneffected. Unless gravity generators are made to specify a subtype id, we will continue to see instability with gravity generator centric mods as well as potential crashing associate with it.

Leave a Comment
 
Attach a file