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 ➜ Lua ➜ serialize.save error

serialize.save error

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


Posted by Shadoweave   (42 posts)  Bio
Date Wed 02 Jan 2008 10:37 AM (UTC)

Amended on Wed 02 Jan 2008 10:40 AM (UTC) by Shadoweave

Message
Ok, this is the function that calls serialize.save:

function logout ()
require "serialize"
SetVariable ("enchantments", serialize.save ("enchantments"))
end --function

The variable "enchantments":

<variable name="enchantments">enchantments = {}
  enchantments.kingdom = "ring131138"
  enchantments.perfection = "ring98681"
  enchantments.mercy = "ring69437"
  enchantments.cleanse = "ring108387"</variable>

It used to work as it should, but now I get this error message:

Run-time error
World: Lusternia
Function/Sub: logout called by trigger
Reason: processing trigger "logout"
C:\Program Files\MUSHclient\lua\serialize.lua:78: Variable 'enchantments' does not exist
stack traceback:
        [C]: in function 'assert'
        C:\Program Files\MUSHclient\lua\serialize.lua:78: in function 'save'
        [string "Script file"]:2422: in function <[string "Script file"]:2419>

Any ideas what is wrong?

EDIT: nevermind, it was my fault, somehow the "enchantments" table got deleted while the mud was connected.
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.


9,076 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.