Coder Social home page Coder Social logo

space-engineers-stuff's Introduction

Space Engineers Stuff

Random code related to the Space Engineers game (steam).

Feedback, questions, ideas, etc. file an issue. Pull requests welcome!

Good resources:

space-engineers-stuff's People

Contributors

stalkr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

bdcarrillo

space-engineers-stuff's Issues

threat score: estimate block count from grid mass

From SylphicXen's comment on https://steamcommunity.com/sharedfiles/filedetails/?id=2498906212

Might I suggest a possible way to estimate the block count of armor? If you can accurately get the counts of functional blocks that are exposed to in-game scripting, you can subtract their combined weights (since weights of default blocks at the very least don't change) and guess that the nonfunctional blocks are light armor or heavy armor, depending on user choice.

It won't be accurate, but perhaps it can be an alternative for people who don't want to look up the block count in info, and/or don't need a completely accurate estimation of the score.

You can even provide a prefix to the result like โ‰ˆ to show that it's not completely accurate.

Good idea!

The grid would need a cockpit (IMyShipController) so we can call .CalculateShipMass() and use BaseMass. We'll need a big table to subtract each terminal block mass (I'll need to find that somewhere, maybe you have a link already?), then we can make a guess how many armor blocks is the rest. We could even provide a range of worst/best case, from smallest light armor to biggest heavy armor.

Also the good news is that the total block count has a minor effect on the threat score compared to the other blocks because the total block count is divided by 100 (code), so in practice I don't expect a large swing on the final threat score.

I don't know if or when I'll implement this, but tracking the idea in this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.