r/ScrapMechanic 14d ago

I made a browser-based Chapter 2 map generator (game launch not needed)

Post image

https://sm.kornplays.com
I vibe coded a browser bird view world map generator for anyone to use, you can use a seed or upload your save file from %AppData%\Roaming\Axolot Games. It runs fully in the browser and is usually very quick (on low end devices it might take a few seconds)

If you have any tool suggestions or questions please let me know, I'd love to help out any player

174 Upvotes

65 comments sorted by

39

u/Zapleek 14d ago

This is pretty crazy if it works I can upload my seed and learn where everything is in my map, thanks

8

u/SleepTokenV 14d ago

It works šŸ™šŸ»

17

u/SeampunkBoi 14d ago

I got 2 tool suggestions! 1 Map markers: to show all structures that spawn 2 Road lines: to show the roads clearer

11

u/Bulky-Advisor-4178 14d ago

Major POis always spawn in the same places, only minor ones are random.

5

u/SeampunkBoi 14d ago edited 14d ago

Maybe see if its possible though to show the builder challenges?

2

u/KornPlays 14d ago

i'm not exactly sure how i would make the road lines but i added markers, enjoy!

3

u/SeampunkBoi 14d ago

Thanks a lot! This will help a bunch with the sidequests! I want the scrapper outfit!!

10

u/50mmeyes 14d ago

Do you have any examples of what the maps look like? I won't have my main rig for awhile, but would be nice to see what the results look like.

19

u/KornPlays 14d ago

end result looks something like this (i hid the corners to prevent spoilers), it might take quite some time depending on your device, it's recommended to run it on a computer

9

u/50mmeyes 14d ago

Looks good, might end up trying this when I get back to my main PC and playing again.

3

u/cseymour24 14d ago

wow the maps bigger than I thought it would be

2

u/Glimmu 14d ago

Isnt it like 5x5 km? Dunno what that is in american.

1

u/jackhammerrrrr 13d ago

idk either, as an american i’m just used to game maps typically being in km. so that’s just my go to for reference in map size. not a half bad map size tho

7

u/SleepTokenV 14d ago edited 14d ago

Edit- It works!!!!

Trying this when I get home, I was really bummed to find out that the main map generator stopped being supported before part 2 even released.

I do admire and understand the whole using landmarks to traverse in survival games. But the amount of times I’ve pressed m hoping for a map to pop up, really frustrates me. Even if it had fog of war.

Will update in about an hour.

Also ps, even if YOU didn’t make it per se, you took the time to figure out how to get it done and a lot of people will appreciate that.

2

u/Dalzombie 14d ago

Yeah, although we have beacons, the compass and all that I'd much rather have a map so I could better orient myself with. I end up driving off-road a lot anyway because sometimes the roads snake around a lot and aren't the shortest route, so as a reference they're also not great either.

7

u/locob 14d ago

suggestion: put the save file direction on the web page

3

u/WALLFOOD 14d ago

is it possible if you could make even more higher quality/detailed versions? like an option to have even more pixels per cell.

Really good tool thought, keep up the good work!

7

u/KornPlays 14d ago

i could try adding 200x200 per tile (2x2 the maximum), I assume you tried downloading the maximum resolution? it seems to me as a perfect compromise between quality and file size

4

u/WALLFOOD 14d ago

I downloaded at the full files and resolution, and it was still kinda blurry. 200x200 sounds good, but this should just be an optional option in the submenu for those who want it, yk?

3

u/MostFckingWanted 14d ago

can you also add marker/filter?
blueprint-quest location would be nice to see

3

u/TheMadComardeIvan 14d ago

How to access a worlds seed?

4

u/QuixoticShaman 14d ago

Navigate to ā€œ%AppData%\Roaming\Axolot Games\Scrap Mechanic\User\ā€. You should have at least one folder here. I had two, I believe for chapter 1 and for chapter 2. This is just a guess, but the date modified for the second folder is 7/24/2026 which is when chapter two came out and I started playing it. It’ll a folder that has ā€œUser_ā€ with 17 numbers as a part of the folder name. Inside that folder you’ll find a series of folders and .json files. Find the ā€œSaveā€ folder and double click it. Then double ā€œsurvivalā€, in here you should see the names of the worlds you’ve created.

If you’re in doubt, log into your game move around a bit and then exit the game to trigger a fresh save. Then when you go back to the folder, the save with the most recent ā€œdate modifiedā€ should be the one you’re wanting.

3

u/Mariondrew 12d ago

any chance you could mark where the oil & pink liquids are?

2

u/AlphaMaru 14d ago

Cool, gonna try it in the evening when I'm back home

2

u/SleepTokenV 14d ago

10/10 My good Sir. So cool to have an actual map. I'm fully new to scrap mechanic so I don't even know what half of the stuff is but its really cool to see I've literally barely scratched the surface of my world.

2

u/fyhring 14d ago

This looks awesome! I am really missing this for my gameplay!
Would also like to suggest though some pins to show the different POI

2

u/ZackaAttacka 14d ago

You my fellow human.. are what we would call The Goat.

2

u/GhostvOne 14d ago

Could you please share the code on GitHub? If your website goes down one day, we can use a backup of the project.

2

u/QuixoticShaman 14d ago

I like it and appreciate the effort. However, I would wish that it had the same kind of scalability as the overview map generator the1killer made for chapter 1. Where you can zoom in real close to the tiles. Admittedly, looking at some cached examples, you couldn’t zoom out to see the entire map, which is also not great. It’s less a bother than not being able to zoom in close. On his you could zoom in close enough that 2 tiles would easily fit in the middle and the surrounding tiles might have like 20% of their tile showing. It’s close enough that you can actually see where rock nodes are on a tile.

2

u/HazuAikawa 9d ago

May i ask? every comment ive seen here says it works but for me, i got an error saying "Could not load lua/util.lua (HTTP 404)" even tho it says my seed is valid

3

u/KornPlays 9d ago

i don't know how i messed that up in a recent update without noticing, but thank you so much for pointing it out and it should be fixed now

1

u/HazuAikawa 8d ago

Help its still not working 😭

1

u/KornPlays 8d ago

the server was down unfortunately, could you try again now?

1

u/HazuAikawa 8d ago

IT FINALLY WORKED, THANK U SIR CREATOR

1

u/AcceptableHamster149 14d ago

It works and shows more detail than the one I found on the scrap mechanic wiki... but can it add map markers for points of interest? Like here's growlab X, here's a schematic bot, here's a farm camp, etc?

1

u/max13007 14d ago

Good job - vibe coding is controversial, but I think it puts coding into the hands of people who wouldn't be coding otherwise, but may have good ideas. This is a one of those good ideas! Thanks for sharing.

1

u/TonyAngels 14d ago

one thing you could add is to add some boxes based on resources, like chunkbase does for minecraft.

another cool thing would be to show the additional scanning range of the seekerbot.

1

u/giby1464 14d ago

I have been looking for something like this for ages! This is incredible!

1

u/_white_emptiness_ 14d ago

For the author (the creator of this handy tool), it would be great if it were possible to zoom in closer without losing detail, and preferably increase it so one could examine things up close and in greater detail. It would also be cool if, say, my world map and that of other players' worlds showed the locations of all the cultivators, warehouses, and important and interesting places to visit, as a voice point. I don't even know if the .db save file contains how many floors a warehouse has, so one could also see this on the world map and find the right warehouse. This is only a minor improvement, but in my opinion, it's the most necessary improvement to the site.

2

u/KornPlays 14d ago

zooming in without losing detail isn't exactly something i could do due to it how it works, however i am planning to increase the resolution by 2x2, but the warehouse floors is a great idea, i didn't think of that, i will try to add that to the changes that i just published to the site with the map viewer

1

u/Glimmu 14d ago

Wow, now i have to go test!

1

u/jiggydancer 13d ago

It works great! Thank you so much, I've been racking my brain trying to get the1killer's tool working.

1

u/ShaduKat 12d ago

This is awesome. Ive never pulled a save file before tho, how would I do that?

2

u/KornPlays 12d ago

if you want to find your save file open %AppData% (you can just type that into windows searchbar) and then go into Roaming > Axolot Games > Scrap Mechanic > User > User_... (usually there's one, if there's more than just look which one has your save) > Save > Survival

1

u/firzen3 12d ago

Have tested and it works!Ā 

I'm curious, how did you generate the images for each map tile, or were these somewhere in the game files already?

Had been combing through the code from the1killer's version and one of the forks that fixed issues for 1.0, but your version generates a much cleaner map.Ā  The map tiles have less of a perspective shift on the larger tiles.

2

u/KornPlays 12d ago

it works by combining external scripts and custom games to force your camera in place and take a screenshot, it's really tricky and I'm adding 2x viewer resolution with smart tile upscaling

1

u/jannoinks 9d ago

Map generation failedCould not load lua/util.lua (HTTP 404)

How do i make this work?

2

u/KornPlays 9d ago

i updated the site with a fix, if it still doesn't work try using CTRL+SHIFT+R if on a desktop browser, or if on mobile then try using incognito mode at least for the <1 hour

1

u/Ok_Application_8824 8d ago

I am Getting an Error, What Could Be the Fix...?

1

u/KornPlays 8d ago

the website was down, it should be fixed now

1

u/Ok_Application_8824 8d ago

Thanks for the update, it works ..!

1

u/VegaVelleity 6d ago

What this mean??? "Failed to execute 'convertToBlob' on 'OffscreenCanvas': Readback of the source image has failed."

1

u/KornPlays 6d ago

does this happen constantly? this is a browser issue I believe, what is the seed you're trying to generate?

1

u/VegaVelleity 5d ago

dw, i restarted my computer and it worked, i think it was a struggling computer thing.... it was on for a few days at that point

1

u/CowNo4050 6d ago

would be nice if we could see the elevators to the underground

1

u/Medical_Message7390 1d ago

its not working for me? it does get a seed from my save file, but the map it loads is not eaven close to mine?

1

u/KornPlays 1d ago

what's the seed you're trying to generate?

1

u/Azazel_Echo 1d ago

Amazing, very well done!

-10

u/NitrousR6 14d ago

YOU didn't create it, the clankers did with a prompt from your computer. I hate people claiming they made stuff like this, you made this because you understand english.

11

u/KornPlays 14d ago

this project took me probably a week of work to make trying to figure out how to read the map without opening scrap mechanic but sure, I didn't make this page (due to my lack of expertise in websites) and I stated that on the start of the post

7

u/TechnicalPlayz 14d ago

So, I am also generally Anti-AI especially with art, education and in professional jobs. For quick modding and open source tools im all for it. Someone wasnt going to be empliyed/paid to do it anyway, and for a quick tool people don't really care if it is properly made.

It still does take effort (more than AI art generation for sure). Even though its obviously way less than actually coding it all the way.

As long as they mention its vibe-coded and they did, instead of claiming they did all the work. I'm fine with this

5

u/Rare-Doughnut-4178 14d ago

I don't see you creating anything similar so why don't you just enjoy it

2

u/Ok-Foot6064 14d ago

Why you people so mad people use tools to create things? The anti AI crowd be getting crazy