SRL Archive - General News

[OCR]Adding new font - error


bg5

2012-01-15 21:18:43

This is my program.

program new;

{$DEFINE SRL5}
{$i srl/srl.simba}
var
text :string;
begin
text :=GetTextAtExWrap(330,206,379,220,1,4,10,0,1,'BigChars');
writeln(text);
end.
Successfully executed.

But if i put folder with new fonts to Simba\Fonts ,then reload Simba and run I'm getting error:

[Error] C:\Users\user\Desktop\Simba\Includes\SRL/SRL/core/text.simba(681:40): Unknown identifier 'UpChars' at line 680

and what is more odd the line 680 in this file is… description of FindNPCChatText.
(*
FindNPCChatText
~~~~~~~~~~~~~~~

.. code-block:: pascal

function FindNPCChatText(txt: string; Action: fnct_ActionOptions): Boolean;

Finds a text said by a NPC in chat. If found it'll perform action,
where action can be:
Nothing - Just return wether its found
Move - Just move the mouse to it
Clickleft - Movemouse & Clickmouse left <--------- line 680
Clickright - MoveMouse & Clickmouse right

.. note::

by Kernel Klink, Nielsie95 & Narcle

Example:

.. code-block:: pascal

*)


I have really no idea. Anyone could help?

KingKong

2012-01-15 21:57:30

restart simba?

bg5

2012-01-15 22:00:38

From: KingKong
restart simba?

doesn't help

Wizzup?

2012-01-16 05:53:20

Did you delete the UpChars folder? It looks like that.

bg5

2012-01-16 08:15:29

No I didnt delete any folder.

Lol
My folder was firstly called MAChars and was in the middle of folder list ( in alphabetic sequence). I renamed it to ZMAChars and it's now on the end of list and my program (with BigChars) compiled ! However:
Error: Exception: Font [ZMAChars] not found. at line 8
(Yes ,I restarted simba after every action)

It looks like Simba is loading determined number of fonts(folders) and if you put new one it can throw out old one?

Anyone can test ,if only I have this problem?