Lemongrass Posted April 14, 2013 Group: Developer Topic Count: 28 Topics Per Day: 0.01 Content Count: 547 Reputation: 270 Joined: 11/08/11 Last Seen: June 10, 2024 Share Posted April 14, 2013 So I just talked to Namine210(http://rathena.org/board/user/1399-namine210/). She mentioned that she would like to have a parameterized @reloadscript command. She told me, she would like to be able to reload seperate core parts of the scripts, in particular the mob scripts. I agree with her idea and want to take it even further! What do you guys think of a parameterized version which features: @reloadscript: reloads everything @reloadscript custom: reloads custom files @reloadscript guild: reloads guild files @reloadscript job: reloads job files @reloadscript mobs: reloads mob files @reloadscript npc: reloads npc files @reloadscript warp: reloads warp files These optional parameters could be based on the conf files related to it. So since you are the users, what would you think of this feature? 2 Quote Link to comment Share on other sites More sharing options...
Judas Posted April 14, 2013 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 2244 Reputation: 182 Joined: 11/19/11 Last Seen: September 15, 2024 Share Posted April 14, 2013 should of been from the start Quote Link to comment Share on other sites More sharing options...
Docubo Posted April 15, 2013 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 117 Reputation: 8 Joined: 05/07/12 Last Seen: May 12, 2024 Share Posted April 15, 2013 Sounds good Quote Link to comment Share on other sites More sharing options...
Mootie Posted April 15, 2013 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 815 Reputation: 86 Joined: 10/26/12 Last Seen: June 10, 2022 Share Posted April 15, 2013 Can you add mapflag also group.conf no reason to restart the whole server as well. Quote Link to comment Share on other sites More sharing options...
kamikaze666 Posted April 15, 2013 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 92 Reputation: 8 Joined: 01/11/13 Last Seen: September 29, 2015 Share Posted April 15, 2013 this is amazing i was thinking bout it yesterday only, as its really a pain if you edit one script and have to unnecessarily reload all Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 15, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted April 15, 2013 this is amazing i was thinking bout it yesterday only, as its really a pain if you edit one script and have to unnecessarily reload all we have @loadnpc / @unloadnpc / @unloadnpcfile @topic i dont think this is needed... most of the users..who have edited alot files in the npc folder..i think just simply type @reloadscript and reload all ...else just restart server.. i believe that add @reloadscript with different optional parameters is not necessary... not really useful... Quote Link to comment Share on other sites More sharing options...
Tragedy Posted April 16, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 37 Reputation: 11 Joined: 11/10/11 Last Seen: March 26, 2021 Share Posted April 16, 2013 +1 Quote Link to comment Share on other sites More sharing options...
Euphy Posted April 17, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted April 17, 2013 Lemongrass, where exactly were you thinking to take the parameters from? I could only come up with: Read the import lines in the scripts_main.conf file, ignoring pre-re/re directories (?). Make the command import scripts_<parameter>.conf, checking if the path exists and then loading both pre-re/re directories (if they exist). Hardcode them (preferably not). Or was there something else you had in mind? Quote Link to comment Share on other sites More sharing options...
Lemongrass Posted April 17, 2013 Group: Developer Topic Count: 28 Topics Per Day: 0.01 Content Count: 547 Reputation: 270 Joined: 11/08/11 Last Seen: June 10, 2024 Author Share Posted April 17, 2013 I would just read the corresponding conf file in the main directory or if it lies in re/pre re will be precompiled. All of the parameters I pointed out are basically names of conf files. It wouldnt work out for warps or monsters inside of other script files though 1 Quote Link to comment Share on other sites More sharing options...
kamikaze666 Posted April 19, 2013 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 92 Reputation: 8 Joined: 01/11/13 Last Seen: September 29, 2015 Share Posted April 19, 2013 (edited) @Emistry agreed... but the @loadnpc requires the entire path "npc\xxxx\xxx.txt" Edited April 19, 2013 by kamikaze666 Quote Link to comment Share on other sites More sharing options...
Cydh Posted April 20, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted April 20, 2013 and maybe @reload mapflag or something for re-define a mapflag, atleast for using setbattleflag("pk_mode",1); it only change the flag value, but not turn map become flag.pvp.. so, setbattleflag("pk_mode",1) -> @reload mapflag Quote Link to comment Share on other sites More sharing options...
Capuche Posted April 21, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted April 21, 2013 (edited) I agree with Lemongrass even if it need a lot of work to adapt this. Maybe it's another subject, another suggest but I take this opportunity to give my point of view : When I was a scripter gm newbie (it's not about 40 years, I'm not so old even if I'm telling my story) it was hard to play with all the @reload command and I take a lot of time to find what command I must do to reload the file I want (it need some test to find the right @reload for some db files) => I think the reload commands are not clearly identified from the beginning. I would prefer: @reload <empty> --> give help --> give all reload command and the file it reloads (if need) like -- itemdb : item_db, item_db2 etc.. -- skilldb : skill_db, etc.. and a space between @reload and the command (a submenu is more clear) @reload script @reload skilldb etc.. Edited April 21, 2013 by Capuche 2 Quote Link to comment Share on other sites More sharing options...
Akinari Posted June 11, 2013 Group: Members Topic Count: 32 Topics Per Day: 0.01 Content Count: 247 Reputation: 207 Joined: 10/23/12 Last Seen: March 2, 2022 Share Posted June 11, 2013 This was partially implemented in r17326. It can still be expanded so I will be leaving this open for further discussion. Personally, I want a versatile way to unload mapflags, maybe something like @unloadflag pvp (removes PvP mapflag from all maps). 1 Quote Link to comment Share on other sites More sharing options...
utofaery Posted April 24, 2015 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 228 Reputation: 19 Joined: 10/27/12 Last Seen: March 17, 2019 Share Posted April 24, 2015 I be all in for this only if I can run the command from an item script or within npc script of which I am unable to do so right now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.