[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Wine
. . -> [Subject]  OpenSuSe 11.1 - MUSH 4.41 - Treant System for Lusternia
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

OpenSuSe 11.1 - MUSH 4.41 - Treant System for Lusternia

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Chade   (13 posts)  [Biography] bio
Date Fri 10 Jul 2009 05:12 PM (UTC)  quote  ]
Message
Hi,

Just installed OpenSuSe Linux 11.1 a lovely little operating system (Dual Booting it with Windows 7) and trying to get a mud system called Treant to work under WINE. I've managed to get MUSHClient to install properly but when it comes to opening my Treant.mcl file from my windows install (copied into the WINE file system) MUSHClient crashes with no error messages.

This also happens if I try to load plugins not associated with the Treant operating systems.

Anyone have any ideas?

Mike

[Go to top] top

Posted by Nick Gammon   Australia  (19,534 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 10 Jul 2009 10:31 PM (UTC)  quote  ]
Message
Which version of Wine are you using?

Under some versions of Wine, opening the internal notepad windows crashed the client for some reason (this doesn't happen under Windows).

What seemed to work was to change the Wine emulation (in the Wine configuration) to emulate Windows 98, then the problem went away.

Also, upgrade to the latest Wine if you don't have it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Chade   (13 posts)  [Biography] bio
Date Reply #2 on Sat 11 Jul 2009 05:28 AM (UTC)  quote  ]
Message
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>
[Go to top] top

Posted by Chade   (13 posts)  [Biography] bio
Date Reply #3 on Sat 11 Jul 2009 05:29 AM (UTC)  quote  ]
Message
Oh, just as a note, originally the above code said this:

-- If we haven't already created the map window, do so now
if not self.win then
WindowCreate("treant_map", 0, 0, 300, 300, 6, 1, ColourNameToRGB("black"))
WindowFont("treant_map", "map", "Lucida Console", 8, false, false, false, false)

I changed it to:
-- 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)

Both versions show the Miniwindows in the top left hand corner of the screen.
[Go to top] top

Posted by Nick Gammon   Australia  (19,534 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Sat 11 Jul 2009 05:44 AM (UTC)  quote  ]

Amended on Sat 11 Jul 2009 05:45 AM (UTC) by Nick Gammon

Message
Seemed to work OK for me under Ubuntu. I tried this:


WindowCreate ("map", 0, 0, 300, 300, 6, 1, 0xCC00)
WindowShow "map"


That showed a green box on the top right-hand corner.

Can you try that in an Immediate window? Ctrl+I.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Chade   (13 posts)  [Biography] bio
Date Reply #5 on Sat 11 Jul 2009 06:09 AM (UTC)  quote  ]
Message
Thanks,

Tried the code and it showed a green box in the upper right hand corner, tried replacing the code in the plugin with your code but same problem, it displays up in the top left corner rather than the top right corner. Any way I could change the above plugin to make the map window movable so I could just specify a location on screen by drag and drop?
[Go to top] top

Posted by Chade   (13 posts)  [Biography] bio
Date Reply #6 on Sat 11 Jul 2009 06:11 AM (UTC)  quote  ]
Message
Wait, I hadn't modified the code in all places to say treant_map rather than just map. Problem solved. Nick you are a legend!
[Go to top] top

Posted by Brian500   (1 post)  [Biography] bio
Date Reply #7 on Wed 31 Mar 2010 03:59 AM (UTC)  quote  ]
Message
Nice work! It looks that you are highly expert blogger. Your post is an excellent example of why I keep coming back to read your excellent quality content that is forever updated.

GREAT SIGHT IN THE WORLD
Thank's
BRIAN
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


5,815 views.

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]