Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Plugins ➜ Background Image

Background Image

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Serris   (12 posts)  Bio
Date Sat 19 Jun 2010 08:03 PM (UTC)
Message
I recently updated MUSH from 4.40 to 4.43 for some of the lua modules. I -hate- the black background and I used a textured background image exactly like that from Achaea's Nexus client using this code:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, June 19, 2010, 12:56 PM -->
<!-- MuClient version 4.43 -->

<!-- Plugin "Background2" generated by Plugin Wizard -->

<muclient>
<plugin
   name="Background2"
   id="a92d3920c3c07b26853182cd"
   language="Lua"
   save_state="y"
   date_written="2010-06-19 12:56:00"
   requires="4.43"
   version="1.0"
   >

</plugin>


<!--  Get our standard constants -->

<include name="constants.lua"/>

<!--  Script  -->


<script>
<![CDATA[
SetBackgroundImage ("clientbg.png", 13)
]]>
</script>


</muclient>


The background image was placed in the worlds folder and worked perfectly until this update. Is there any way I can get this plugin to work again?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 19 Jun 2010 09:39 PM (UTC)

Amended on Sat 19 Jun 2010 09:41 PM (UTC) by Nick Gammon

Message
Try specifically mentioning the folder. GetInfo (66) is the location of the MUSHclient.exe file. So use this modified version and move the PNG file to the same directory as MUSHclient is.



<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, June 19, 2010, 12:56 PM -->
<!-- MuClient version 4.43 -->

<!-- Plugin "Background2" generated by Plugin Wizard -->

<muclient>
<plugin
   name="Background2"
   id="a92d3920c3c07b26853182cd"
   language="Lua"
   save_state="y"
   date_written="2010-06-19 12:56:00"
   requires="4.43"
   version="1.0"
   >

</plugin>

<!--  Script  -->


<script>
<![CDATA[
check (SetBackgroundImage (GetInfo (66) .. "clientbg.png", 13))
]]>
</script>


</muclient>


[EDIT] I added the "check" function - this reports the error message (eg. file not found, wrong file format). This will help in debugging when you install the plugin.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Serris   (12 posts)  Bio
Date Reply #2 on Sat 19 Jun 2010 09:56 PM (UTC)
Message
Worked. Many thanks as always.
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.


10,924 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.