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

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Coolthulhu
Yeek
Posts: 14
Joined: Wed Jan 09, 2013 12:45 am

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

#1 Post 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.
Last edited by Coolthulhu on Sat Feb 16, 2013 7:08 am, edited 1 time in total.

aardvark
Wyrmic
Posts: 200
Joined: Wed Aug 22, 2012 12:16 am

Re: [1.0] Lore not registering on profile

#2 Post 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.

Post Reply