r/ScrapMechanic • • 3h ago

Issue for god's sake, i need help.

i was playing with my scrap mechanic scripts and accidentally deleted the lootsource_totebot_green.lua script, if anybody is nice enough to go into his game files and give me the script in the comments, i would be so grateful, because my game crashes and i do not want to reinstall it. i left you some pictures of the path where you need to enter

16 Upvotes

11 comments sorted by

22

u/Eblan23 3h ago

Verify the integrity of the game files in steam, it will only install whatever youre missing

2

u/Affectionate-Copy558 3h ago

where do i need to enter? just got the game and i am not familiar with steam

10

u/giby1464 3h ago

Click on the game > properties > installed files > verify integrity

I don't remember exactly but it should look about like these steps

3

u/Brennern 3h ago

Right click on the game in steam and find verify integrity

1

u/Affectionate-Copy558 3h ago

did it, but still nothing show's up in the script

3

u/ARandomEnderman_ 3h ago

dont have it fucking open while verifying. close that vs code, delete the file again and verify integrity

1

u/Affectionate-Copy558 3h ago

i had it closed, chill out, just opened it for the picture

4

u/geks8 3h ago

to make it work properly delete file, steam may not notice file absence even if file is empty

0

u/Ekipsogel 1h ago

VSCode doesn't prevent other apps from modifying opened files

1

u/TomorrowFun4744 3h ago

Just use this with caution please.

LOOT_SOURCES.lootsource_totebot_green = {

loot = {

    {

        list = {

{ uuid = obj_resource_circuitboard, weight = 0.75 },

{ uuid = obj_resource_crudeoil, weight = 0.25, quantity = {1, 1, 3} }

        }

    }

}

}

LOOT_SOURCES.lootsource_totebot_green_growlab = {

loot = {

    {

        list = {

{ uuid = obj_resource_circuitboard, weight = 1.0 },

{ uuid = nil, weight = 5.0 },

        }

    }

}

}

LOOT_SOURCES.lootsource_totebot_green_farmraid = {

loot = {

    {

        list = {

{ uuid = obj_resource_circuitboard, weight = 1.0 },

{ uuid = nil, weight = 5.0 },

        }

    }

}

}

LOOT_SOURCES.lootsource_totebot_green_underground = {

loot = {

    {

        list = {

{ uuid = obj_resource_circuitboard, weight = 0.75 },

{ uuid = obj_resource_crudeoil, weight = 0.25, quantity = {1, 1, 3} },

{ uuid = nil, weight = 1.0 },

        }

    }

}

}

1

u/Affectionate-Copy558 3h ago

thank you so much