Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.31 KB

Uninstalling.md

File metadata and controls

43 lines (29 loc) · 1.31 KB

Uninstalling Traits

Ares plugins plug IN easily, but taking them out requires a bit of code fiddling.

  1. Open the tinker page (Admin -> Tinker) in the web portal with a coder character.

  2. Copy/paste the following to the tinker file, right below module AresMUSH. This will let us clear out the database fields.

   class Character
      attribute :traits
    end
  1. Add the following code to the handle method of the tinker file.
   begin 
      Traits.uninstall_plugin
      Manage.uninstall_plugin("traits")
      client.emit_success "Plugin uninstalled."
      
    rescue Exception => e
      Global.logger.debug "Error loading plugin: #{e}  backtrace=#{e.backtrace[0,10]}"
      client.emit_failure "Error uninstalling plugin: #{e}"
    end
  1. Click "Save" on the tinker page.

  2. Switch to a game client window and run the tinker command.

  3. Switch back to the web portal tinker page and click "Reset".

  4. Manually remove all plugin's files from your server (and GitHub fork, if applicable), including:

    • aresmush/plugins/traits
    • aresmush/game/config/traits.yml
    • Web portal files - See the /webportal folder in this repo for a specific list of files.
  5. Run the load all command.

  6. Run the website/deploy command.