Giter VIP home page Giter VIP logo

spceng_lr-oredetect's Introduction

Visit my workshop page:
http://steamcommunity.com/id/KK4DUY/myworkshopfiles/?appid=244850

UPDATED 2021-03-07: Deprecated 8x detector in favor of a 6x detector. Rewrite files based on current "stock" files. Implemented progression and block groups.

Longer range Ore Detectors for both Large and Small grids are added, at 2x, 4x and 6x powers. The 8x detector still exists so it won't break existing saves/blueprints, but I strongly recommend against it's use.

The only changed items are the range and build component counts, all artwork etc is unchanged.

Ore detectors have stupidly short range. This is annoying. This mod adds some higher power alternatives. Costs are "linear" in that, for 2x the detection range, 2x the detector components are required. Power consumption can't be modded (at least not without code mods) - at least from what I found [url=https://github.com/KeenSoftwareHouse/SpaceEngineers/blob/master/Sources/Sandbox.Game/Definitions/MyOreDetectorDefinition.cs]in the source.[/url]

Code is on [url=https://github.com/draeath/SpcEng_LR-OreDetect]github.[/url] While I haven't tagged a license, you're free to do whatever you like with this. You don't need to ask, you don't need to tell me.

CAUTION: CPU load goes up by the cube of the multiplier. The in-terminal maximum range has no effect on this. The 8x detector causes 512 times more "ore detector queries" than the 1x detector, because every voxel in the maximum allowable range is checked. The in-game terminal range setting is consulted after this scan. Planets make this even more obvious.

If you run into performance problems, turn the block off (or shut the grid down) and wait. It can take a long time for the backlog to clear, so watch your sim speed. Alternatively, save and exit to the menu (this clears the detector queries queue). Since the block is unpowered when you come back, it shouldn't scan again. I recommend removing the detector and replacing it with a smaller multiplier in this case.

The more space CPU cycles you have the further you can push things before it becomes a problem. The trouble is it isn't a linear change like, say, increasing shadow details. You're fine until you cross a threshold (where the detector query processing can't keep up with the incoming queries) and which point it tanks hard.

I don't believe there's anything I can do about this, but you're welcome to have a look. I believe [url=https://github.com/KeenSoftwareHouse/SpaceEngineers/blob/a109106fc0ded66bdd5da70e099646203c56550f/Sources/Sandbox.Game/Game/Entities/Blocks/MyOreDetectorComponent.cs#L148-L171]this is the location of interest.

spceng_lr-oredetect's People

Contributors

draeath avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

spceng_lr-oredetect's Issues

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.