Game Dev Studio

Game Dev Studio

Ikke nok vurderinger
Poisonous Water Cooler
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
14.784 KB
29. juli 2018 kl. 9:53
29. juli 2018 kl. 12:01
2 ændringsbemærkninger ( vis )

Abonner for at downloade
Poisonous Water Cooler

Beskrivelse
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 kommentarer
霧之湖自殺日記 27. mar. 2023 kl. 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. jan. 2020 kl. 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. jan. 2020 kl. 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. sep. 2019 kl. 17:03 
10/10 would give to my entire family
phantom 26. nov. 2018 kl. 2:56 
lmao. damn funny idea
hai 18. sep. 2018 kl. 13:25 
These example mods are funny