Cannot write to file menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    johnbl's Avatar Active Member
    Reputation
    33
    Join Date
    Dec 2016
    Posts
    129
    Thanks G/R
    350/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cannot write to file

    Hi, I'm trying to get some info written to a text file but I always get the following exception:
    PHP Code:
    2018.01.06 21:11:00.399    suspicious plugins behavior in plugin file'E:\TH\Plugins\User\TestPlugin.cs'possibly trying to access the disk
    At first, I thought this was because I was trying to use File.Open and writeline. So I decided to look how it worked with the ParagonCapture plugin and noticed there's already the method Hud.TextLog.Log, but I still keep getting the same exception.

    Can someone tell me what's wrong with this plugin?

    PHP Code:
    using System;
    using Turbo.Plugins.Default;

    namespace 
    Turbo.Plugins.User
    {
        public class 
    TestPlugin BasePluginINewAreaHandlerISnoArea
        
    {
            
            public 
    TestPlugin()
            {
                
    Enabled true;
            }
            
            public 
    override void Load(IController hud)
            {
                
    base.Load(hud);
            }

            public 
    void OnNewArea(bool newGameISnoArea area)
            {
                if (
    area.IsTown)
                {
                        
    Hud.TextLog.Log("areatest"area.NameLocalized);
                }
            }
        }


    Cannot write to file
  2. #2
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins Purchaser Authenticator enabled
    Reputation
    3696
    Join Date
    Jul 2012
    Posts
    2,532
    Thanks G/R
    46/3338
    Trade Feedback
    0 (0%)
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    make sure you restarted HUD. the file above should not give you an error
    Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...

  3. #3
    johnbl's Avatar Active Member
    Reputation
    33
    Join Date
    Dec 2016
    Posts
    129
    Thanks G/R
    350/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, it worked now with the new version. I don't know what I was doing wrong.

Similar Threads

  1. Reading bag contents/writing to a file
    By Gankenstein in forum WoW Memory Editing
    Replies: 6
    Last Post: 01-11-2010, 10:26 AM
  2. LUA Help (reading from/writing to files)
    By tagala in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-05-2009, 06:48 PM
  3. [HELP] writing to the bottom of a text file
    By SacredSpenny in forum Programming
    Replies: 4
    Last Post: 05-10-2009, 10:31 PM
  4. Cannot connect to MySQL Database
    By awa5523 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 09-06-2007, 03:59 PM
  5. Cannot find the files to edit :(
    By Rekro in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 01-01-2007, 06:07 PM
All times are GMT -5. The time now is 04:43 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search