Game Dev Studio

Game Dev Studio

评价数不足
Poisonous Water Cooler
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
14.784 KB
2018 年 7 月 29 日 上午 9:53
2018 年 7 月 29 日 下午 12:01
2 项改动说明 ( 查看 )

订阅以下载
Poisonous Water Cooler

描述
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 条留言
霧之湖自殺日記 2023 年 3 月 27 日 上午 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 2020 年 1 月 13 日 下午 8: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 2020 年 1 月 13 日 下午 8: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 2019 年 9 月 26 日 下午 5:03 
10/10 would give to my entire family
phantom 2018 年 11 月 26 日 上午 2:56 
lmao. damn funny idea
hai 2018 年 9 月 18 日 下午 1:25 
These example mods are funny