Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
The line "local g_robots = {" is missing in the file "survival_loot.lua"
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()
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