Space Engineers

Space Engineers

131 个评价
Asteroid Filter API
   
奖励
收藏
已收藏
取消收藏
Type: Mod
Mod category: Asteroid
文件大小
发表于
更新日期
600.097 KB
2024 年 4 月 10 日 下午 1:23
2024 年 8 月 4 日 下午 11:59
28 项改动说明 ( 查看 )

订阅以下载
Asteroid Filter API

描述
This API can be used to apply filters to all procedural asteroids as they attempt to spawn. The filters can be used to block individual asteroids from appearing under whatever conditions are defined/registered.

You can create rules to limit asteroid spawning based on:
  • Proximity to planets/planetary rings/other objects
  • Speed of nearby grids
  • A custom 3D distribution curve
  • Random number generation
  • Current player resources
  • Asteroid size or composition
  • A timer
  • Any other logic desired...

Example
Multiple rules can be registered at once with differing priorities to create a complex ruleset to control asteroid spawning. For instance, you could apply rules with priorities:
  • P=0; Restrain asteroids to spawn with a 3D Perlin noise distribution to create random pockets of asteroids surrounded by large voids.
  • P=1; Restrain asteroids so that each has a 50% chance of successfully spawning.
  • P=5; When near certain planets, asteroids will spawn densely (none are removed), overriding the lower priority rules.
  • P=10; Asteroids will not spawn at all when near any grids moving faster than a certain threshold (to prevent collisions).
There are no limit on the number of rules you can apply, so feel free to experiment with different arrangements.

Other Notes
  • The system works by catching procedural asteroids as they spawn and then instantly deleting them if they are deemed invalid.
  • Asteroid spawns are not guaranteed to be deterministic depending on the rules applied, so you might enter an area and see many asteroids only to return later and find it empty. This does not apply to any asteroids that have been modified. Once an asteroid is changed (i.e. voxels), it will stay in the world forever.
  • This system does not spawn any additional asteroids; it can only remove them. Play with higher asteroid density to start with before adding restrictions if you aren't seeing enough of them.
  • Multiplayer is fully supported.

Config Values
https://psteamcommunity.yuanyoumao.com/workshop/filedetails/discussion/3218645300/6690735450901827357/

API Guide
https://psteamcommunity.yuanyoumao.com/workshop/filedetails/discussion/3218645300/6690735095222034427/



Mods That Use This
(Asteroid Filter: Grid Speed) https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3219800568
(Asteroid Filter: Clusters) https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3220848664

Other Mods:
https://psteamcommunity.yuanyoumao.com/id/adrsquared/myworkshopfiles/?appid=244850

Join My Discord for Mod Discussion and Bug Reports
Mods by Echthros[discord.gg]

Support Future Mods/Updates
[ko-fi.com]
[www.paypal.com]
热门讨论 查看全部(2)
0
2024 年 4 月 16 日 下午 1:58
Config Values
Echthros
0
2024 年 4 月 11 日 下午 9:20
Asteroid Filter Mod API
Echthros
14 条留言
CrazyCracker 8 月 31 日 上午 11:11 
Am I able to set the size of asteroids in the config?
Exelsiar 2024 年 12 月 10 日 上午 3:46 
Ahh perfect thank you!
Echthros  [作者] 2024 年 12 月 10 日 上午 3:40 
Yes, they are designed for it.
Exelsiar 2024 年 12 月 10 日 上午 3:35 
Hi is it fine to sub to multiple filter mods?
Phantasm 2024 年 12 月 5 日 上午 2:16 
Thx a lot, I will try
Echthros  [作者] 2024 年 12 月 4 日 下午 3:28 
You might need to delete SANDBOX_0_0_0_.sbsB5 as well (you will get a warning when loading back in the first time). Though I would make a backup of the save first, just in case.
Phantasm 2024 年 12 月 4 日 下午 2:02 
For some reason, all the changes in this file reset the moment I launch the world
Echthros  [作者] 2024 年 12 月 4 日 下午 12:31 
Open the Sandbox.sbc file for that world and look for <ProceduralDensity>. Set it to 0 and save the file. That should remove the normal procedural asteroids.
Phantasm 2024 年 12 月 4 日 上午 7:40 
Hi, can I use this mod to block asteroids from spawning in the usual way and make it so that asteroids spawn only through another mod (Planetary Asteroid Rings), which creates asteroid rings around planets? The problem is that I can't disable spawning in the settings because this is a modded world that has already been created, so the asteroid settings are locked.
Echthros  [作者] 2024 年 12 月 3 日 下午 12:04 
Tens of km, I believe.