Char dump "Last Messages" uses carriage returns

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Char dump "Last Messages" uses carriage returns

#1 Post 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).

shani
Halfling
Posts: 83
Joined: Tue Aug 22, 2006 9:27 am
Location: Israel

Re: Char dump "Last Messages" uses carriage returns

#2 Post 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("#.-#", "   "))

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Char dump "Last Messages" uses carriage returns

#3 Post by darkgod »

fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply