Game Dev Studio

Game Dev Studio

Ei tarpeeksi arvosteluja
Poisonous Water Cooler
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tiedostokoko
Julkaistu
Päivitetty
14.784 KB
29.7.2018 klo 9.53
29.7.2018 klo 12.01
2 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Poisonous Water Cooler

Kuvaus
This mod is an example mod for mod developers which shows how various systems work and is not intended to be used for actual gameplay. It is meant to show how loading of textures, creation of spritesheets, registration of new office objects and a new object category tab works.

It adds a water dispenser that kills any employee that drinks from it.

Please download the mod and look through its files to see how it all works.
6 kommenttia
霧之湖自殺日記 27.3.2023 klo 11.22 
Angelic Burrito,
poisonous_water_cooler.lua
On Line2:
objectCategories:registerNew({
id = "poison",
icon = "tab_poison",
iconActive = "tab_poison",
display = _T("OBJECT_CATEGORY_POISON", "Poison") -- the _T call is a shortcut to translation.get
})
its works for me
Angelic Burrito 13.1.2020 klo 20.50 
Forgot to say: tried on both an already-existing save and a new one (both of the "Introduction" scenario); the only other mod is "Real Manufacturer's and Platforms"
Angelic Burrito 13.1.2020 klo 20.48 
Hey, I know this is an example mod so maybe it doesn't really matter but I'm getting a crash on mouse-over of the poison icon of the new object category tab.
Here's the traceback:
75249:1912: attempt to index local 'struct' (a nil value)

75249:1912: in function 'allocateSprite'
5841:197: in function 'updateSprites'
75249:2232: in function '_updateSprites'
75249:354: in function 'drawPanels'
75249:247: in function '_performDrawing'
75249:214: in function 'performDrawing'
3963:57: in function 'draw'
321:14: in function 'draw'
4254:141: in function 'draw'
[C]: in function 'xpcall'
Lord carrot 26.9.2019 klo 17.03 
10/10 would give to my entire family
phantom 26.11.2018 klo 2.56 
lmao. damn funny idea
hai 18.9.2018 klo 13.25 
These example mods are funny