TorchAPI / Torch

An extensible modding framework and improved client/DS for Space Engineers. Still a work in progress!
Apache License 2.0
146 stars 76 forks source link

Simple Improvement to Keen per player block limit method #187

Closed Murllin closed 2 years ago

Murllin commented 6 years ago

Torch Version: 1.3.0.8 SE Version: 1.185.800

Expected Behavior

Limits for similar block types

Observed Behavior

Similar block types, but different block pair names require individually listed limits.

Currently on modded servers like mine (and I'm sure plenty others) players end up with additional blocks like more efficient Refineries, Batteries, Oxygen/Hydrogen tanks and more importantly Weapons and Thrusters.

Each of the added blocks have a separate block pair name so in order to limit over use of these blocks I have to use the Keen limits of listing each and every block pair name. For example: I have a tiered thruster mod pack that adds four addition tiers of each thruster type. So in the end I now have to use 30 different block limits to keep these thrusters under control, and stop players from adding 500 thrusters to a single grid. Another example would be weapons packs that add a handful of new weapon types to build. Again I now have 7 different limits written just to control over building.

My suggestion for this would be some kind of functionality in Torch to simply create a base limit amount and then be able to assign any number of block pair names to that single limit.

So In the Thruster example above, I'd like like to allow every player on my server to be able to build 300 Thrusters. So in torch I would create a general "Thruster limit" and then assign all 30 block pair names of the tiered thruster mod to that limit and then voila, players can now build freely any type of ship big or small; atmospheric, ions, hydro thrusters, it doesn't matter. They have 300 thrusters to play with either all on one ship or spread out across multiple ships.

Same for the Weapons. Say I want to allow players to build 30 Gatling Type guns and 30 Missile Type. I can make 2 different "Weapon Limit" Categories and assign which ever block pair names of different weapons to each group.

I'm pretty sure this is something that could be done with in game scripting but I feel it would be better used as a torch feature so that it could be used with any modded blocks not just ones that a script would be specifically written for.