Page 1 of 1

.unloadall script?

Posted: Tue Aug 15, 2006 4:26 am
by Terryl
Is there one allready made? Because I am not the worlds best scripter and it would be easier for me to be able to focus on other stuff :p

Posted: Tue Aug 15, 2006 4:27 am
by Austin

Code: Select all

use uo;
use os;

program UnloadAll(mobile)
     var num := Unload_Scripts("");
     SendSysMessage(mobile, "Unloaded "+num+" scripts.");
     return 1;
endprogram

http://svn.sourceforge.net/viewvc/pol-d ... iew=markup

Posted: Tue Aug 15, 2006 5:20 am
by Terryl
Austin wrote:

Code: Select all

use uo;
use os;

program UnloadAll(mobile)
     var num := Unload_Scripts("");
     SendSysMessage(mobile, "Unloaded "+num+" scripts.");
     return 1;
endprogram

http://svn.sourceforge.net/viewvc/pol-d ... iew=markup
Thanks :) Another thing, is there a way to like reload objtypes.txt without restarting the server?

Posted: Tue Aug 15, 2006 6:01 am
by Shinigami
Terryl wrote:Another thing, is there a way to like reload objtypes.txt without restarting the server?
reload? it is never loaded...

Shinigami

Posted: Tue Aug 15, 2006 6:08 am
by Terryl
Shinigami wrote:
Terryl wrote:Another thing, is there a way to like reload objtypes.txt without restarting the server?
reload? it is never loaded...

Shinigami
Weird... Because the changes I made in it isn't picked up by the server, it is still like I haven't changed the file at all :/

Posted: Tue Aug 15, 2006 6:13 am
by Shinigami
the server will generate this file an each restart as a result of reading all itemdesc.cfg's. it was never made to be an input file - change your itemdesc.cfg's.

Shinigami

Posted: Tue Aug 15, 2006 7:02 am
by Terryl
Shinigami wrote:the server will generate this file an each restart as a result of reading all itemdesc.cfg's. it was never made to be an input file - change your itemdesc.cfg's.

Shinigami
I allready have, and it still is like I haven't changed it

Posted: Tue Aug 15, 2006 7:16 am
by Shinigami
hmm... u've changed one of your itemdesc.cfg's? and than u've [re]started your Pol-server? and nothing was changed inside objtypes.txt? if it is so, did u've checked, that the package where your itemdesc.cfg is located was set to active (check the pkg.cfg inside same folder)?

Shinigami

Posted: Tue Aug 15, 2006 7:25 am
by Terryl
Shinigami wrote:hmm... u've changed one of your itemdesc.cfg's? and than u've [re]started your Pol-server? and nothing was changed inside objtypes.txt? if it is so, did u've checked, that the package where your itemdesc.cfg is located was set to active (check the pkg.cfg inside same folder)?

Shinigami
No no :P I haven't restarted the server, I am wondering if these changes can be done without restarting

Posted: Tue Aug 15, 2006 12:40 pm
by Pierce
You didn't understand Shini's post. That's not a file the server is reading. That's a file the server is making for your information. It only shows the objtypes you are using in all your itemdesc.cfg. So it is just an information file for you to see e.g. in which pkg an objtype is used or which objtype is free.

Posted: Tue Aug 15, 2006 1:04 pm
by Terryl
Pierce wrote:You didn't understand Shini's post. That's not a file the server is reading. That's a file the server is making for your information. It only shows the objtypes you are using in all your itemdesc.cfg. So it is just an information file for you to see e.g. in which pkg an objtype is used or which objtype is free.
Yeah, but why doesn't the server see my changes in the itemdesc files without a restart? :(

Posted: Tue Aug 15, 2006 1:25 pm
by Shinigami
because the server will not accept modification of itemdesc.cfg's on runtime. there are tons of reasons... main point could be data integrity and/or performance

Shinigami

Posted: Tue Aug 15, 2006 1:30 pm
by Terryl
Shinigami wrote:because the server will not accept modification of itemdesc.cfg's on runtime. there are tons of reasons... main point could be data integrity and/or performance

Shinigami
Okay, thanks, that kind sucks :P But still, thanks anyway :)