Thank you!
Switching over to Windows 98 emulation mode fixed 90% of my problems, had to reload a few plugins due to different installation paths but that was easy.
My only problem now is I have a miniwindows plugin as part of the system - shown below. The miniwindows loads fine, my problem is where its located, under windows it appears in the top right hand corner of the screen away from the MUD text, in Linux it shows in the top left corner, right over the main text out.
Anyone have any ideas?
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
<plugin
name="TreantMap"
author="Iasmos"
id="93775d3ce4eba9997b61e920"
language="Lua"
purpose="Captures Lusternia in-game map into a miniwindow view."
date_written="2008-09-19"
requires="4.36"
version="1.3"
>
</plugin>
<triggers>
<trigger
back_colour="8"
enabled="y"
group="Treant_Mapping"
match="^\-\-\-.+? v\d+ \-\-\-+$"
match_back_colour="y"
match_bold="y"
match_text_colour="y"
name="mapstart__"
omit_from_output="y"
regexp="y"
script="map_redirect"
send_to="14"
sequence="1000"
text_colour="12"
>
</trigger>
<trigger
back_colour="8"
enabled="y"
group="Treant_Mapping"
match="^\-\-\-.+? [\-\d]+\:[\-\d]+\:[\-\d]+ \-\-\-+$"
match_back_colour="y"
match_bold="y"
match_text_colour="y"
name="mapfinish__"
omit_from_output="y"
regexp="y"
script="map_redirect"
send_to="14"
sequence="1000"
text_colour="12"
>
</trigger>
<trigger
enabled="n"
group="Treant_Mapping"
match=".+"
name="mapcapture__"
omit_from_output="y"
regexp="y"
script="map_redirect"
send_to="14"
sequence="8000"
text_colour="12"
>
</trigger>
<trigger
enabled="y"
group="Treant_Mapping"
match="^Password correct\. Welcome to Lusternia\.$"
name="mapinit__"
regexp="y"
send_to="12"
sequence="8000"
>
<send>Send("map")</send>
</trigger>
</triggers>
<!-- Script -->
<script>
<![CDATA[
if not map then
map = {}
end
-- First line of the in-game map detected, start the capturing process
function map:start(line, styles)
EnableTrigger("mapcapture__", true)
-- If we haven't already created the map window, do so now
if not self.win then
WindowCreate("treant_map", 0, 0, 0, 0, 6, 1, ColourNameToRGB("black"))
WindowFont("treant_map", "map", "Lucida Console", 8, false, false, false, false)
self.width = WindowFontInfo("treant_map", "map", 7) * 47
self.line_height = WindowFontInfo("treant_map", "map", 1)
-- Re-create the window to fit the text using the chosen font
WindowCreate("treant_map", 0, 0, self.width, self.line_height * 25, 6, 1, ColourNameToRGB("black"))
WindowFont("treant_map", "map", "Lucida Console", 8, false, false, false, false)
WindowShow("treant_map", true)
self.win = true
end
WindowRectOp("treant_map", 2, 0, 0, self.width, self.line_height * 25, ColourNameToRGB("black"))
local left = 0
for _,s in ipairs(styles) do
left = left + WindowText("treant_map", "map", s.text, left, 0, 0, 0, s.textcolour)
end
self.lines = 1
end
-- Last line of the in-game map detected, close the capturing process
function map:finish(line, styles)
local left = 0
for _,s in ipairs(styles) do
left = left + WindowText("treant_map", "map", s.text, left, self.lines * self.line_height, 0, 0, s.textcolour)
end
EnableTrigger("mapcapture__", false)
end
-- The map being displayed, one line at a time
function map:capture(line, styles)
local left = 0
for _,s in ipairs(styles) do
left = left + WindowText("treant_map", "map", s.text, left, self.lines * self.line_height, 0, 0, s.textcolour)
end
self.lines = self.lines + 1
end
function map_redirect(name, line, wildcards, styles)
if name == "mapstart__" then
map:start(line, styles)
elseif name == "mapfinish__" then
map:finish(line, styles)
else
map:capture(line, styles)
end
end
]]>
</script>
</muclient>
|