[Exception] "suspicious code in plugin file ... possibly trying to access the disk" menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Saah's Avatar Member
    Reputation
    4
    Join Date
    Sep 2013
    Posts
    62
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Exception] "suspicious code in plugin file ... possibly trying to access the disk"

    Code:
    suspicious code in plugin file: '...\Plugins\My\MyOtherPlayersPlugin.cs': possibly trying to access the disk.
    I just added a block of
    Code:
                    public void Customize()
    		{
    			// Disable original OtherPlayersPlugin file.
    			Hud.TogglePlugin<Turbo.Plugins.Default.OtherPlayersPlugin>(false);
    		}
    above "public override void Load(IController hud)"

    after that, while trying to figure it out, i commented that block (all 5 lines), even then this exception still persists. What does it mean and why it raises?
    Last edited by Saah; 07-20-2020 at 07:48 PM.

    [Exception] &quot;suspicious code in plugin file ... possibly trying to access the disk&quot;
  2. #2
    Saah's Avatar Member
    Reputation
    4
    Join Date
    Sep 2013
    Posts
    62
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im not sure what the problem was (maybe some wrong byte in a text file), but while experimenting with creating a new file (copying default file and then editing it from scratch), i noticed a different exception:
    Code:
    "Member Name Cannot Be the Same as Enclosing Type"
    then to fix it, in code block
    Code:
        public class MyOtherPlayersPlugin : BasePlugin, IInGameWorldPainter
        {
            public Dictionary<HeroClass, WorldDecoratorCollection> DecoratorByClass { get; set; } = new Dictionary<HeroClass, WorldDecoratorCollection>();
            public float NameOffsetZ { get; set; } = 8.0f;
    
            public void MyOtherPlayersPlugin()
            {
                Enabled = true;
            }
    i had to either comment
    Code:
            public void MyOtherPlayersPlugin()
            {
                Enabled = true;
            }
    or rename
    "public void MyOtherPlayersPlugin()"
    to something like:
    "public void My1OtherPlayersPlugin()",
    because it must be different from a class name, which we can see from first code block.

    This name related requirement is random (probably bugged), same addons earlier worked fine with the same names, some other addons still work fine with the same names., but that is a possible cause of topic's discussed bug.

    Update:
    probably im wrong about this workaround, when name is different - plugin does not raise exceptions, but it doesn't work (unlike my other plugin, which does not require different names and works well). Looks like compiling is bugged on my pc.
    Last edited by Saah; 07-21-2020 at 08:29 PM.

  3. #3
    Saah's Avatar Member
    Reputation
    4
    Join Date
    Sep 2013
    Posts
    62
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    also i noticed, that using "Customize()" function from inside of any plugin (other than the "PluginCustomizationPlugin.cs" ) to disable a default plugin - does not work, even without any visible exceptions. So i am still disabling them from "PluginCustomizationPlugin" as the only working way to disable some plugin.

Similar Threads

  1. Replies: 2
    Last Post: 11-21-2020, 06:22 PM
  2. [Question] Is there a way to access the "too far" state for plugins?
    By User5981 in forum TurboHUD Discussions
    Replies: 2
    Last Post: 01-20-2019, 08:27 AM
  3. geting error when trying to hook the herb and mine box in the general option
    By wolfseye in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 08-16-2012, 09:10 AM
  4. How to access the menu in the pic?
    By zell01 in forum Diablo 3 General
    Replies: 6
    Last Post: 07-29-2012, 10:35 PM
  5. [WTS/WTT] Be Specific in what you are trying to sell or trade.
    By [Soul Eater] in forum Members Only Accounts And CD Keys Buy Sell
    Replies: 4
    Last Post: 03-08-2009, 12:59 AM
All times are GMT -5. The time now is 03:48 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search