khonkhortisan / tome-multiplayer

Addon for Tales of Maj'Eyal. Hack to add local multiplayer to a singleplayer game. Non-functional.
1 stars 0 forks source link

message logging #16

Open khonkhortisan opened 6 years ago

khonkhortisan commented 6 years ago

not showing messages for other players getting messages for being hit after control has left, while being unseen by the new player etc. Need to log actions taken or received by all players, and actions taken by enemies that can be seen by any player. Requires searching all party members for main=true instead of just game.player

game.logPlayer

khonkhortisan commented 5 years ago

Situation: MonsterA Player1 MonsterB |wall| MonsterC Player2 MonsterD [logged] Player1 attacks monsterA. [logged] MonsterA attacks Player1. [not logged] MonsterC attacks Player2. [logged] Player2 attacks MonsterC. [not logged] MonsterB attacks Player1. [logged] MonsterD attacks Player2.

It only logs messages that involve what the current game.player can see that turn. Either it's using game.log (instead of game.logPlayer) more than it's supposed to, or it's doing a duplicate self == game.player check before calling game.logPlayer. I would rather not edit all of the calls.

Using two shadowblades with stealth on, it only logged things catching a glimpse of me after my turn and not before.

tome-1 5 10-1542804153

khonkhortisan commented 5 years ago

mod/class/Actor.lua:5073 game.logSeen(self, "%s casts %s.", self.name:capitalize(), ab.name)