Fixed Reload commands

Discussion in 'Legacy Discussion' started by ΛerO*p1nou, Jan 5, 2014.

  1. ΛerO*p1nou

    ΛerO*p1nou Naked Wanderer

    hello evrybody,

    I noticed in the script oxidecore.lua the presence of a reloading commands. could you tell me how it works .

    Thanks you all.

    :)
     
    thoomasfn and Richii like this.
  2. German Hoeffner

    German Hoeffner Community Admin Community Admin

    It's ran through rcon, it will reload all plugins as far as I know. Pretty sure @thomasfn or @Ryan Skidmore could tell more about it!
     
    Last edited: Jan 5, 2014
    thoomasfn and Richii like this.
  3. Ryan Skidmore

    Ryan Skidmore Developer

    /reload *pluginname* will reload the plugin, so if you've changed the plugin file then you can call that and the new code will run.
     
    thoomasfn and Richii like this.
  4. German Hoeffner

    German Hoeffner Community Admin Community Admin

    What does /reloadcore do?
     
    thoomasfn and Richii like this.
  5. Ryan Skidmore

    Ryan Skidmore Developer

    I assume, reload the oxide core.
     
    thoomasfn and Richii like this.
  6. German Hoeffner

    German Hoeffner Community Admin Community Admin

    Does it reload the plugins?
     
    thoomasfn and Richii like this.
  7. Ryan Skidmore

    Ryan Skidmore Developer

    I think so.
     
    thoomasfn, Richii and German Hoeffner like this.
  8. ΛerO*p1nou

    ΛerO*p1nou Naked Wanderer

    thx for the reply.
    the commande is oxide.reload "script" or oxide.reloadcore for complet reload
    thx and nice job ;)
     
    thoomasfn and Richii like this.
  9. Mcello

    Mcello Shack Builder

    Does this means that you dont have to restart your server when you reload core ?
     
    thoomasfn and Richii like this.
  10. thomasfn

    thomasfn Developer Oxide Developer

    Reloading the core reloads oxidecore.lua (so unless you change that plugin, it won't do anything useful). oxide.reload will reload a specific plugin. Sometimes it doesn't work so great though; the safest bet is to restart the server.
     
    thoomasfn and Richii like this.
  11. Mcello

    Mcello Shack Builder


    Thank you
     
    thoomasfn and Richii like this.
  12. element

    element Naked Wanderer

    Any way to get a command to reload a plugin or load a new plugin without having to restart the server?
     
    thoomasfn and Richii like this.
  13. rexas

    rexas Airdrop Stalker Plugin Developer

    cs.reloadplugin(string)
    ex:
    cs.reloadplugin( "motd" )

    Not sure if you can load a new plugin with out restarting.
     
    thoomasfn and Richii like this.
  14. element

    element Naked Wanderer

    Is this a console command or API function?
     
    thoomasfn and Richii like this.
  15. Mcello

    Mcello Shack Builder

    F1 console: oxide.reload
    but that dont work for all plugins some plugins just need a restart
     
    thoomasfn and Richii like this.
  16. rexas

    rexas Airdrop Stalker Plugin Developer

    cs.reloadplugin(string) is for plugins
    oxide.reload pluginName is for console if you have rcon and oxide installed (as @Mcello said)
     
    thoomasfn and Richii like this.
  17. b3ck

    b3ck Wood Hoarder

    do any of these commands work right now? the chat commands give me a 'unknown command' notice, and I get no response in the rcon =/

    -b3ck
     
    thoomasfn and Richii like this.
  18. oyci3c

    oyci3c Wood Hoarder

    Does this works?
    Tried to reload basic doorshare.lua and got some Oxide error.
    When typed oxide.reload doorshare (without .lua) it restarted my server :<
    It would really help me develop or debug some plugins without restarting the server.
     
    Richii likes this.
  19. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Make sure you are using the correct version of Door Sharing for the version of Oxide you have installed. If you have specific errors when using Door Sharing, please ask in its thread.

    Locking this thread, as the FAQ covers how to use the reload commands.
     
  20. JoKiiE

    JoKiiE Naked Wanderer

    oxide.reload <-- This doesnt work for me