Tycoon

by gerpara

Become the transportation tycoon of Nauvis! Collect food from farms, craft delicious food and useful utilities, grow your cities, and cater to the needs of an ever-growing population.

Content
4 months ago
1.1
3.58K
Transportation Manufacturing

i Crash

1 year, 2 months ago

When you destroy your own town hall it crashes your game.
Error while running event tycoon::on_nth_tick(60)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__tycoon
/control.lua:613: in function 'listSpecialCityBuildings'
tycoon/control.lua:718: in function 'updateProvidedAmounts'
tycoon/control.lua:996: in function 'areBasicNeedsMet'
tycoon/control.lua:1089: in function <tycoon/control.lua:1086>
Also we should be able to build our own stuff.

1 year, 2 months ago
(updated 1 year, 2 months ago)

When you destroy your own town hall it crashes your game.
Error while running event tycoon::on_nth_tick(60)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__tycoon
/control.lua:613: in function 'listSpecialCityBuildings'
tycoon/control.lua:718: in function 'updateProvidedAmounts'
tycoon/control.lua:996: in function 'areBasicNeedsMet'
tycoon/control.lua:1089: in function <tycoon/control.lua:1086>
Also we should be able to build our own factories like wheat, apples and meat.

Another crash: When you dismount the water tower while the quest is on it crashes

Error while running event tycoon::on_player_mined_item (ID 8)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__tycoon
/tycoon-story.lua:107: in function 'condition'
core/lualib/story.lua:93: in function 'story_update'
tycoon/tycoon-story.lua:383: in function <tycoon/tycoon-story.lua:381>

1 year, 2 months ago

Heya, thank you for the report! I've created an issue to track them, and will fix it soon.

Was there any reason you decided to destroy the town center? Or was that from biters?

1 year, 2 months ago

I fixed this crash in 0.0.16

1 year, 2 months ago

Hello! I see you're still alowing the player to remove the Town Center. Maybe you could set the Town Center to be indestructable by the player by setting minable = false.

https://lua-api.factorio.com/latest/classes/LuaEntity.html#minable

Although then it could still be destroyed by biters. If you want to prevent that too you could set destructable.
https://lua-api.factorio.com/latest/classes/LuaEntity.html#destructible

Don't know if this is helpful, just thought I'd share :)

1 year, 2 months ago

Heya, thank you for the report! I've created an issue to track them, and will fix it soon.

Was there any reason you decided to destroy the town center? Or was that from biters?
Testing.
Also there's another way to crash the game by destroying the town hall and crafting for example a water tower on a quest.

1 year, 2 months ago

Heya, thank you for the report! I've created an issue to track them, and will fix it soon.

Was there any reason you decided to destroy the town center? Or was that from biters?
Testing.
Also there's another way to crash the game by destroying the town hall and crafting for example a water tower on a quest.

Error while running event tycoon::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__tycoon
/tycoon-story.lua:70: in function 'action'
core/lualib/story.lua:99: in function 'story_update'
tycoon/tycoon-story.lua:392: in function <tycoon/tycoon-story.lua:390>

1 year, 2 months ago

Heya, thank you for the report! I've created an issue to track them, and will fix it soon.

Was there any reason you decided to destroy the town center? Or was that from biters?
Testing.
Also there's another way to crash the game by destroying the town hall and crafting for example a water tower on a quest.

Error while running event tycoon::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__tycoon
/tycoon-story.lua:70: in function 'action'
core/lualib/story.lua:99: in function 'story_update'
tycoon/tycoon-story.lua:392: in function <tycoon/tycoon-story.lua:390>

Also a visual bug on the university

1 year, 2 months ago

Hello! I see you're still alowing the player to remove the Town Center. Maybe you could set the Town Center to be indestructable by the player by setting minable = false.

https://lua-api.factorio.com/latest/classes/LuaEntity.html#minable

Although then it could still be destroyed by biters. If you want to prevent that too you could set destructable.
https://lua-api.factorio.com/latest/classes/LuaEntity.html#destructible

Don't know if this is helpful, just thought I'd share :)

Thank you! I was looking for something like this. Will add it soon :)

1 year, 2 months ago

Also a visual bug on the university

Could you tell me more what the visual bug is about? I recall the selection/collision box being wrong sometimes, but thought it might be a dev thing.

1 year, 2 months ago

It's a sprite issue on the entrance where some of the entrance is seperated

1 year, 2 months ago

Will be fixed in the next release :)

1 year, 2 months ago

Die Mod Tycoon (0.0.19) hat einen Fehler verursacht, der nicht behoben werden kann.
Bitte informiere den Autor der Mod über diesen Fehler.

Error while running event tycoon::on_nth_tick(60)
tycoon/city.lua:900: attempt to index field '?' (a nil value)
stack traceback:
tycoon/city.lua:900: in function 'completeConstruction'
tycoon/control.lua:807: in function 'newCityGrowth'
tycoon/control.lua:968: in function <tycoon/control.lua:959>

1 year, 2 months ago

Seeing that this happens again and I can't really pinpoint why, I created an issue to harden the code: https://github.com/bahrmichael/factorio-tycoon/issues/127

New response