Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
/ sm_overview_ahk Public archive

Overview Map Generator in AHK/lua for Scrap Mechanic

Notifications You must be signed in to change notification settings

the1killer/sm_overview_ahk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated !!!

This method for generating an overview map has been succeeded by my tile based overview map: https://github.com/the1killer/sm_overview

Example

https://the1killer.github.io/scrapmechanicmap/

INSTRUCTIONS

!!!! BACKUP YOUR SAVE, not responsible for any issues !!!!

  1. Really backup your save!
  2. Install AutoHotKey
  3. Enable dev mode in SurvivalGame.lua, change if g_survivalDev then to if true then around line 84 after function SurvivalGame.client_onCreate
  4. Add /tp command to SurvivalGame.lua (see SurvivalGame.lua):
    • add /tp to list of chat commands ~line 130
    • add /tp handler ~line 529, before block of commands starting with elseif params[1] == "/clearpathnodes
  5. Reload save if already in game.
  6. Set FOV to 90, see makemap.ahk for other quality settings (alternates for FOV 70 and 90)
  7. Use Borderless Window Mode, disable Depth of Field, recommended turn everything down to low besides view distance
  8. If you resolution is NOT 1080p look at lines 26-34 of the AHK file and change to suit your resolution or choose 1440p by commenting out the 1080p section
  9. Make sure Geforce Experience hotkey is NOT alt+z, this is so we can hide in game UI
  10. Make sure you have nothing in your toolbar 0 slot or 5 slot....
    • Sometimes the tp command hits 5 even though command is sent fine
  11. Make sure /god is on for godmode incase of falling and stops hunger/thirst
  12. Make sure you use /day to set 12:00 time and no time progression for best looking terrain. If you want night you could do /timeofday 1 and /timeprogress off
  13. Double click makemap.ahk script to load the script
  14. Press 5 or 0 or any other empty slot on your toolbar to remove tool from view
  15. Hit Shit+F1 to start the script, Dont touch your mouse and keyboard until its done
  16. Will show a popup "Map Done!" when its finished
  17. Open html/index.html to view your map

Some things to note

  • Shift + F2 to reload the script if you make changes, or to stop it while generating
  • Terrain height especially along edges of images will cause lines to not match up
  • I reccomended you restart your game between map generations, seems to be a memory leak and FPS slow down.
  • Game updates will remove the lua changes, requiring you to re-add them
  • Sometimes the teleport will get stuck in a loop if your body goes into ragdoll
  • If your machine takes a while to render the tiles after teleport change the delay on line ~101 Sleep, 4000
  • How to setup your own free GitHub website

Changelog

  • v1.0.0
    • Initial Release
    • Support for quality 1,2 on 1080p and 1440p





Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Scrap Mechanic is property of Axolot Games AB, I have no affiliation with them.

About

Overview Map Generator in AHK/lua for Scrap Mechanic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published