ID:189778
 
runtime error: type mismatch
proc name: GetWidth (/dmifont/proc/GetWidth)
usr: RaeKwon (/mob)
src: Comic Sans MS 7pt (AA 16) (/dmifont/ComicSansMS7pt_AA16)
call stack:
Comic Sans MS 7pt (AA 16) (/dmifont/ComicSansMS7pt_AA16): GetWidth("is happenin", /dmifonttextline (/dmifonttextline), 0)
/dmifonttextline (/dmifonttextline): New("is happenin", Comic Sans MS 7pt (AA 16) (/dmifont/ComicSansMS7pt_AA16), 0, 13, /dmifonttextline (/dmifonttextline), null)
/dmifonttextline (/dmifonttextline): New("hey dudes what\nis happenin", Comic Sans MS 7pt (AA 16) (/dmifont/ComicSansMS7pt_AA16), 0, 0, 2, null)
Comic Sans MS 7pt (AA 16) (/dmifont/ComicSansMS7pt_AA16): GetLinesMultiFont(/list (/list), 60, 2, 0, 30, /list (/list))
/talkbubble (/talkbubble): New(RaeKwon (/mob), /list (/list))
RaeKwon (/mob): Say("hey dudes what is happenin")


I get that runtime everytime I say something longer than one row of writing.

RaeKwon
Can you show the exact Say() verb you're using? Specifically, what calls DrawTextMultiFont()? It'll help me figure out where this is going wrong.

You probably don't need DrawTextMultiFont() though if you're not going to use multi-font capability. Still, it'll be nice to track down the bug.

Lummox JR
In response to Lummox JR
Lummox JR wrote:
Can you show the exact Say() verb you're using? Specifically, what calls DrawTextMultiFont()? It'll help me figure out where this is going wrong.

You probably don't need DrawTextMultiFont() though if you're not going to use multi-font capability. Still, it'll be nice to track down the bug.

Lummox JR

Click here, it's a screenshot of what happens.

RaeKwon
In response to RaeKwon
Thanks. I managed to track the bug down to the line-splitting in dmifonttextline/New(), where I forgot to add the flags argument. While I was at it I found another minor bug.

The fix has been uploaded.

Lummox JR