Scrap Mechanic

Scrap Mechanic

Not enough ratings
Blue Totebot Character
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
5.289 MB
Feb 1 @ 3:19pm
Feb 2 @ 10:11am
3 Change Notes ( view )

Subscribe to download
Blue Totebot Character

Description
Blue Totebot Character

This mod adds Blue Totebot character to the game, they spawn near GlowGorps in water or in creative with capsules


FEATURES:
  • Can be placed as capsule in creative mode
  • They spawn around GlowGorps in water in Survival mode
  • Custom character model with new sets of anims ( spinning saw on head and opening mouth when attacking )
  • They do not take a part in raids
  • They learn which objects are dangerous a.k.a once they touch a saw blade, they will avoid it in the future
  • It also adds Farmbot drill head as an object in creative
  • Blue totebots are able to change swimming height, it adds new danger to water world
How to use it:

FOR CREATIVE:
1. Open: SM game/Data/Character/charactersets.json under "characterSetList": line add:
"$CONTENT_91717b52-6975-4ee2-8df7-ed2928c6fd93/Character/BlueTotebot/totebot_blue.json",

Done

Now place a Blue Totebot capsule from Mods tab and hit it with a sledgehammer


FOR SURVIVAL:
1. Open: SM game/Survival/Character/charactersets.json under "characterSetList": line add:
"$CONTENT_91717b52-6975-4ee2-8df7-ed2928c6fd93/Character/BlueTotebot/totebot_blue.json",

2. Open SM game/Survival/Scripts/game/survival_spawns.lua and search for:
elseif tag == "GLOWGORP" then
3. Under it, add this line:
if math.random(1,2) == 1 then sm.unit.createUnit(sm.uuid.new("1a49ff17-6972-4381-ad6e-ff3fd53e321c"), sm.vec3.new(node.position.x,node.position.y,-2.2),toYaw( node.rotation ) ) end

Done

Use /spawn 1a49ff17-6972-4381-ad6e-ff3fd53e321c if you want to just spawn it in survival mode
14 Comments
Kwazimodo Mar 18 @ 3:13am 
lophatkao, hi!
The line "local g_robots = {" is missing in the file "survival_loot.lua"
m̵͔͠a̵̭̰̎s̶̙͠ Mar 14 @ 5:16am 
please create a garbage bot, and these robots are top
ikey07  [author] Mar 2 @ 4:21pm 
Thanks for the comment, although, now you see why i didnt bother to add it in first place
lophatkao Mar 1 @ 4:08am 
fixing loot drops for all 3 colors (requires file editing!)
things you need to add are in bold

find in mod "/scripts/Totebot***Unit.lua" and open it (*** is the color)
it top section under the rest, add a new dofile line
dofile "$SURVIVAL_DATA/Scripts/game/survival_loot.lua"

scroll a few lines down, just above "local g_robots = {" add in local SurvivalGame

scroll down to "function Totebot***Unit.server_onCreate ( self )" (remember *** is the color)
add as next line
SurvivalGame = _G.SurvivalGame or sm.game.getLimitedInventory()

save file, that's it
-----
why do you need to do this?
mods don't run in the same memory space as the normal game internals, so they can't access game global variables
loot spawning only triggers if SurvivalGame variable exists / is true
the only api call i could find that could differentiate between survival and not is getLimitedInventory()
ZΞLDΛK Feb 7 @ 4:40am 
but it will break custom games
ZΞLDΛK Feb 6 @ 8:30am 
@ikey07 it's possible to make them as a non file mod
and i'm currently working on a mod to automate the process
you just need to put them in a custom game and set it as dependency of your b&p mod
Бен Feb 5 @ 7:03am 
It's more complicated but it works in Custom Game but that mod is not fully developed, there is no loot etc.
Бен Feb 5 @ 6:33am 
does this support Custom Game?
ikey07  [author] Feb 4 @ 11:00am 
Its not possible to make it as no file mod, and yeah, I might compile them all in a single mod, not sure yet
Albert Feb 4 @ 10:21am 
could you make these totebot mods into one mod? that would save lot of time for others. also, is it possible to make this mod not a file one?