Better Chatting


Provides advanced chat functionality

Utilities
2 months ago
1.1 - 2.0
1.71K

g Clash with Factorio and Conquer: Tiberian Dawn

2 months ago

I've put together a set of mods with lots of new planets added and unfortunately if I add both this mod and https://mods.factorio.com/mod/Factorio-Tiberium then the game errors when I load a game:

The mod Better Chatting (0.4.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event better-chat::on_player_left_game (ID 50)
better-chat/runtime/ChatHistoryManager.lua:145: attempt to index field '?' (a nil value)
stack traceback:
better-chat/runtime/ChatHistoryManager.lua:145: in function 'add_message'
better-chat/runtime/handle_messages.lua:228: in function 'send_message'
better-chat/runtime/events.lua:72: in function <better-chat/runtime/events.lua:69>

2 months ago

Can I have the save that errors when you load it?

In my attempts to recreate the crash, I'm not getting anything...

2 months ago

Nevermind. I recreated it. The issue is that the force is created in Tiberium's init handler, and I'm using the event_handler so it doesn't process events until on_load which is after the on_init of other mods...

2 months ago

Wait... Or not??
The usage of event_handler is unpublished.. Either way it definitely is missing the creation of the force.

I have pushed a new version that adds a few lines to the configuration changed handler that should fix it. Not sure if it's a good fix, but it is fixed.

It also seems like Tiberium doesn't support my mod, so any messages it prints to chat (which it seems like it has), will be made ephemeral.

2 months ago

Thanks. I spoke to their devs as well and they've implemented some changes so hopefully between the two, it'll start to work. In case you're still looking into it, it turns out if you take a save with Better Chat and add Tiberian it fails, but if you take one with Tiberian and add Better Chat, it works. If you'd still like a save, I should be able to generate a problem one.

2 months ago

If it still happens with 0.4.6, then yes please. Otherwise it should be fixed

New response