midspace / midspace/Space-Engineers-Admin-script-mod
Custom World Rules (Gridsize, max blocks of (sub)type per grid)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 43
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
/setgridmax # to set a limit to blocks per grid.
/setblockmax blockid # to set a limit to the amount of a block type on a grid.
reading a back a bit i guess this was already asked for, 2k blocks sounds brutally low. :)This mod with all its features already is a must have tool for any SE Admin. One request I must insist you add, and it has been brought up before and thats block limits. I am only asking for the ability to place a limit on a per or basis. The same feature as what Essentials has. I rely on Essentials for this feature, but I have had recent issues with SESE/Essentials. Having this feature in your mod would mean I could still have these limits under vanilla frontend.
Just writing down some thoughts on the topic. Might be at least approachable, even though there certainly are ways to violate the rules in some way.
- Merges: Sandbox.ModAPI.IMyShipMergeBlock.BeforeMerge could be used for proximity checks. If we could stop the merge with that, we can prevent merging grids to a too large grid or a grid that violates the rules.
- Admin warnings about possible violations.
Probably a dumb thing to try: Max number of grids. Cannot determine in a safe way who owns a grid.
Thoughts on how to violate rules and maybe how to stop them are appreciated.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files or tests. Start by locating the existing handlers for /setgridmax and /setblockmax, then review the Space Engineers IMyShipMergeBlock.BeforeMerge entry point mentioned in the proposal. Done should define and enforce grid, block-type, and subtype limits, including the discussed merge cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100