[1.0] Lore not registering on profile (nvm. old bug)
Posted: Fri Feb 15, 2013 6:10 pm
I had a problem with constant lore popups ignoring the lore_popup setting. I investigated in debug mode, called directly and noticed that it created a lore.profile in my online profile directory.
It also created the table profile.mod.lore (and lore.lore and lore.lore["fearscape-entry"]) in the lua interpreter.
I'm using http://svn.net-core.org/repos/t-engine4 ... tyLore.lua as a reference (I don't expect the 1.0 version to differ) and I noticed a bit of code that I don't understand the purpose of. Why only when additional_lore[lore] is not set? I manually checked additional_lore["Cloak of Deception"] (which I acquired in the game, not though debug commands) and it exists, meaning that (unless I'm missing something) registerLoreFound("Cloak of Deception") shouldn't be called.
Other possibly important stuff:
Before registering the online profile, I have played a while in the offline mode. I might have logged on the registered profile after playing offline without first restarting the game.
I have moved some of the profile and settings files to check if it will fix the problem (it didn't). *.profile files were regenerated properly (still no lore.profile).
EDIT: OK, changed the title.
Code: Select all
game.player:registerLoreFound("fearscape-entry)
It also created the table profile.mod.lore (and lore.lore and lore.lore["fearscape-entry"]) in the lua interpreter.
I'm using http://svn.net-core.org/repos/t-engine4 ... tyLore.lua as a reference (I don't expect the 1.0 version to differ) and I noticed a bit of code that I don't understand the purpose of.
Code: Select all
if learnt and not self.additional_lore[lore] then game.player:registerLoreFound(lore) end
Other possibly important stuff:
Before registering the online profile, I have played a while in the offline mode. I might have logged on the registered profile after playing offline without first restarting the game.
I have moved some of the profile and settings files to check if it will fix the problem (it didn't). *.profile files were regenerated properly (still no lore.profile).
EDIT: OK, changed the title.