Page 1 of 1

Char dump "Last Messages" uses carriage returns

Posted: Wed Jul 14, 2010 6:02 pm
by greycat

Code: Select all

h) iron greatsword
   #67AD00#3.00 Encumbrance.
    Type: weapon / greatsword

  [Last Messages]

War bear hits Narvol for    16.00 physical damage   .^M   Talent Shield Pummel is ready to use.^MNarvol uses Shield Pummel.^MNarvol misses war bear.^M
Etc.

Yeah, it killed me. Bastard used Knockback when I was THIS close to killing it, and that was way more damage than it had previously been doing (thus I didn't think I needed to heal just yet), leaving me at -1 HP.

Anyway. The char dump code should use newlines, not carriage returns. Or at the very least it should be consistent in choosing which one it uses (the other parts all use newlines).

Re: Char dump "Last Messages" uses carriage returns

Posted: Wed Jul 14, 2010 6:14 pm
by shani
Oops... my bad. Fixed.
If you have the patience to fix it manually go to
/game/modules/tome/dialogs/CharacterSheet

and change line 417 from this

Code: Select all

nl(table.concat(game.logdisplay:getLines(40), "\r"):gsub("#.-#", "   "))
to this

Code: Select all

nl(table.concat(game.logdisplay:getLines(40), "\n"):gsub("#.-#", "   "))

Re: Char dump "Last Messages" uses carriage returns

Posted: Wed Jul 14, 2010 6:18 pm
by darkgod
fixed