World refill plugin does not work

Discussion in 'Guides and Tutorials' started by rodor03, Feb 16, 2019.

  1. rodor03

    rodor03 Level 0

    Joined:
    Feb 11, 2019
    Messages:
    1
    Plugin world refill It's not working on my server. Help

    Here is that writes in the console:

    [Server API] Error Startup aborted due to an exception in the Server API initialization: System.InvalidOperationException: Failed to load assembly "World Refill Updated.dll". ---> System.InvalidOperationException: Could not create an instance of plugin class "WorldRefill_Updated.TestPlugin". ---> System.TypeLoadException: Could not load type 'WorldRefill_Updated.TestPlugin' from assembly 'World Refill Updated, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00020] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00089] in <8f2c484307284b51944a1a13a14c0266>:0 at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x00243] in <8f2c484307284b51944a1a13a14c0266>:0 --- End of inner exception stack trace --- at TerrariaApi.Server.ServerApi.LoadPlugins () [0x00217] in <1498ccee3bc746fbbb4c96e1caa989d3>:0 --- End of inner exception stack trace --- at TerrariaApi.Server.ServerApi.LoadPlugins () [0x00256] in <1498ccee3bc746fbbb4c96e1caa989d3>:0 at TerrariaApi.Server.ServerApi.Initialize (System.String[] commandLineArgs, Terraria.Main game) [0x00110] in <1498ccee3bc746fbbb4c96e1caa989d3>:0 at TerrariaApi.Server.HookManager.InitialiseAPI () [0x0004e] in <1498ccee3bc746fbbb4c96e1caa989d3>:0
     
  2. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    636
    Already sent you the link, but just in case, I'll say it here as well. Use Replenisher instead; I can vouch for the version I sent you working, and it even has a feature to automagically replenish chosen resources every X minutes (check the config file).

    Be warned that on trees, setting it to 1 will not just spawn a single tree; rather, it's the number of times the plugin will try to fill your world with trees. Ores may work the same way, but I don't really know, since I don't use that feature because it makes caves ugly.
     
    • Like Like x 1