Page 1 of 1

[1.0] Lore not registering on profile (nvm. old bug)

Posted: Fri Feb 15, 2013 6:10 pm
by Coolthulhu
I had a problem with constant lore popups ignoring the lore_popup setting. I investigated in debug mode, called

Code: Select all

game.player:registerLoreFound("fearscape-entry)
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.

Code: Select all

if learnt and not self.additional_lore[lore] then game.player:registerLoreFound(lore) end
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.

Re: [1.0] Lore not registering on profile

Posted: Sat Feb 16, 2013 12:14 am
by aardvark
Coolthulhu wrote: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)
In this case, though, you're quite wrong.