饥荒联机版

饥荒联机版

Limit Prefab
cs8425  [开发者] 2016 年 2 月 22 日 上午 9:52
Bug Reports
Report Bugs here

It's better to have some error log and the way to reproduce.
最后由 cs8425 编辑于; 2016 年 2 月 22 日 上午 9:52
< >
正在显示第 1 - 7 条,共 7 条留言
墨仝 2016 年 2 月 22 日 下午 7:44 
there's a crash log,please take a look, ver 167083

[00:00:53]: [string "../mods/workshop-609675532/modmain.lua"]:200: attempt to call method 'HasTag' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-609675532/modmain.lua:200 in (field) fn (Lua) <197-213>
scripts/scheduler.lua:194 in (method) OnTick (Lua) <168-225>
scripts/scheduler.lua:406 in (global) RunScheduler (Lua) <404-412>
scripts/update.lua:166 in () ? (Lua) <150-223>
cs8425  [开发者] 2016 年 2 月 22 日 下午 10:01 
引用自 江户川新之助
there's a crash log,please take a look, ver 167083

[00:00:53]: [string "../mods/workshop-609675532/modmain.lua"]:200: attempt to call method 'HasTag' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-609675532/modmain.lua:200 in (field) fn (Lua) <197-213>
scripts/scheduler.lua:194 in (method) OnTick (Lua) <168-225>
scripts/scheduler.lua:406 in (global) RunScheduler (Lua) <404-412>
scripts/update.lua:166 in () ? (Lua) <150-223>

Which "despawn mode" and "counting mode" did you used?
And what "limit_table" did you configure?

If you "despawn mode" set to "remove newest",
I think I figure out the problem.
It should be fix now.
墨仝 2016 年 2 月 22 日 下午 10:14 
引用自 cs8425
引用自 江户川新之助
there's a crash log,please take a look, ver 167083

[00:00:53]: [string "../mods/workshop-609675532/modmain.lua"]:200: attempt to call method 'HasTag' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-609675532/modmain.lua:200 in (field) fn (Lua) <197-213>
scripts/scheduler.lua:194 in (method) OnTick (Lua) <168-225>
scripts/scheduler.lua:406 in (global) RunScheduler (Lua) <404-412>
scripts/update.lua:166 in () ? (Lua) <150-223>

Which "despawn mode" and "counting mode" did you used?
And what "limit_table" did you configure?

If you "despawn mode" set to "remove newest",
I think I figure out the problem.
It should be fix now.

here's my settings

configuration_options =
{
despawn_delay = 0.1,
despawn_mode = "NEW",
limit_table = {
frog = 40,
worm = 40,
spider_dropper = 40,
......ect
},
cloudnaeris 2016 年 3 月 1 日 上午 8:07 
Hey, me again. Been using the mod to great effect lately. Got it set up now with dedicated server and it's working great! I basically set it up on the client, copy everything over to dedicated, then configure modmain instead of overrides. The only bug I think that is left is virtually the same as the blue hound pets. If you limit walrus = x then it crashes on winter. I just took the limit off as it wasn't really causing lag for me. I have a mod that introduces large mactusk cities and one was in a very dangerous location we needed to get by but I don't really like disabling things to make it easier anyway. I more like this mod to prevent excess prefabs offscreen than the ones in my immediate area. Low priority for me for sure, but thought since it was on the subject I would let you know. As always, great mod!
cs8425  [开发者] 2016 年 3 月 3 日 上午 1:08 
引用自 cloudnaeris
Hey, me again. Been using the mod to great effect lately. Got it set up now with dedicated server and it's working great! I basically set it up on the client, copy everything over to dedicated, then configure modmain instead of overrides. The only bug I think that is left is virtually the same as the blue hound pets. If you limit walrus = x then it crashes on winter. I just took the limit off as it wasn't really causing lag for me. I have a mod that introduces large mactusk cities and one was in a very dangerous location we needed to get by but I don't really like disabling things to make it easier anyway. I more like this mod to prevent excess prefabs offscreen than the ones in my immediate area. Low priority for me for sure, but thought since it was on the subject I would let you know. As always, great mod!
OK, I will try to fix it as soon as I could. Thanks for your report.

EDIT:
I fix it now.
Leader & follower chain: "walrus" -> "little_walrus" -> "icehound"
If despawn the leader will also despawn it's follower.
最后由 cs8425 编辑于; 2016 年 3 月 3 日 上午 6:18
PokerFace🎭 2016 年 11 月 2 日 下午 7:15 
In this mod, the items which was skip to remove will be never remove or despawn by this mod, I suggest that u can add a detector to musure when the items drop on the ground by the player, the items will be add to the list wihich use to remove items.




E.g. When I have a axe, and when I set the table like axe=0, then when I create a axe in my inventory, then this item will be skip because it's no on the ground, but after I put this axe on the ground, it will not be removed, because it already remove from the detect list, And it will never remove by this mod again.


So what should do is to add a detector, when the player put the items which already skip by the mod on the ground, the detector can add this items to the remove or despawn list.


I hole that I explain it clearly:bbtcat:
最后由 PokerFace🎭 编辑于; 2016 年 11 月 2 日 下午 7:36
cs8425  [开发者] 2017 年 7 月 25 日 上午 10:12 
@PokerFace🎭
Got it.
Need to bind event on player drop/move items, and count it again.
I'm sorry that currently I do not have time to develop, test, update the MOD.
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50