Injection
Добавить в игру через Steam
Нажмите «Подписаться»
На странице Steam войдите в аккаунт, если потребуется.
Подписаться
О материале
«Injection» — материал мастерской Scrap Mechanic. Постройки, новые блоки, детали и игровые режимы. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
New version of this mod
This mod does not work anymore and will not be updated. Use Syringe instead. Be aware that Syringe is not a drop-in replacement but has a very similar protocol. https://steamcommunity.com/sharedfiles/filedetails/?id=1771470800
Read the instructions carefully before commenting
What this mod is NOT
A general purpose tool to add any feature to the game, as in editing game code or injecting proprietary code.
What this mod is
Injector parts allow receiving input from the Injector Application by direct memory editing. The Injector Application is only the middle man between the output signal of the Scrap Mechanic Injector mod parts and the software that sends instructions to the Injector Application on which output values to set for all Injector parts on a specific channel. Injection in this case means editing the games memory. It does not mean adding new code which executes in the memory of the game. Concretely only 8 bytes of memory per part (one double float) is written every update.
How it's done
When started, the Injector application searches for injector parts. An injector part contains a unique key with seemingly random values, which consists of 2048 numbers. If the application finds this unique key in the game's memory, it remembers it as a part of an injector part's script and will update the input and output values 40 times a second. Every time before updating (reading and writing output/input values), the entire key is checked to be correct. This is done to ensure that the part's script was not deleted (because the part was removed) to prevent writing into memory at places it shouldn't write into at.
How to use it
- Subscribe
- Open the explorer and navigate to the path "\SteamApps\workshop\content\387990\1612610240" Your steam folder is probably in "C:\Program Files (x86)\Steam". This is the mod's folder. It contains the Injector application.
- Move the application whereever you want, just to be easier to find. It can also stay where it is. I suggest creating a shortcut to this folder, because updates of the mod will add the new version of the application in there again.
- Read the readme.txt included with the mod. It is also inside the application
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.