Updated screendump +mpackage
Re: Updated screendump +mpackage
Well it's something you'll have to find out as part of your project I guess, since the full html that was made passed validation, it was alright.
Re: Updated screendump +mpackage
Do the attachments on this need updating? or has it already been updated?
Re: Updated screendump +mpackage
Updating what for... ?
Re: Updated screendump +mpackage
some code was posted after, Was wondering if that needed to be added to the script/attachments?
Re: Updated screendump +mpackage
It doesn't need to be updated, I don't believe. No harm in trying to use it and seeing if background colours work.
Re: Updated screendump +mpackage
thanks I justthought to ask before using it
Re: Updated screendump +mpackage
I found a bug with this script I think. I had to write this instead, using selectSection, which is a little more precise than selectString:
The problem I've got is that if a letter is repeated in the line, then the first colour read gets applied to the second one!
the second one is actually the last character on the line, so selectString scans for a single letter, which it has a high chance of finding before the end of the line. It happened before with a line like
the second ess picked up the colour formatting of the first ess in Darkness
Code: Select all
for i=1,#myline do
selectSection(i-1,1)
moveCursor(i,getLineNumber())
local fr,fg,fb = getFgColor()
local br,bg,bb = getBgColor()
local ftri = fr .. "," .. fg .. "," .. fb
local btri = br .. "," .. bg .. "," .. bb
local colour = "<" .. ftri .. ":" .. btri .. ">"
table.insert(lineColour, colour)
end
the second one is actually the last character on the line, so selectString scans for a single letter, which it has a high chance of finding before the end of the line. It happened before with a line like
Code: Select all
'(Darkness) The glass of Leng (worthless)'
Wod
CthulhuMUD
www.cthulhumud.com
A hugely entertaining MUD based on the horror writings of HP Lovecraft.
CthulhuMUD
www.cthulhumud.com
A hugely entertaining MUD based on the horror writings of HP Lovecraft.