PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Option: DoNotCacheScripts 0/1

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
ncrsn



Joined: 10 Feb 2006
Posts: 107

PostPosted: Tue Mar 11, 2008 4:24 am    Post subject: Option: DoNotCacheScripts 0/1 Reply with quote

Should this option exist, POL would not cache any processed script - or would check if the cached script is outdated (and reload if it is) before it is used.

Difference to the CacheInteractiveScripts option would be that even the non-interactive scripts started using Start_Script or Run_Script_To_Completion would be reloaded before use.

Because of the lack of this option, it is necessary to either add a Unload_Scripts(the_one_being_debugged) into scripts or spam unload-command every time before the testing.


I can live without this option, but with this, I'd have more time for that.

Author Message
CWO



Joined: 04 Feb 2006
Posts: 677
Location: Chicago, IL USA

PostPosted: Tue Mar 11, 2008 5:03 am    Post subject: Reply with quote

It does exist already.

CacheInteractiveScripts 0/1 in pol.cfg.

This will cause POL to read the every script off of your hard drive every time its run. This isn't recommended for active shards though because it will cause a lot of hard drive reading which might result in lag depending on the type of hard drive you have.

Author Message
ncrsn



Joined: 10 Feb 2006
Posts: 107

PostPosted: Tue Mar 11, 2008 5:25 am    Post subject: Reply with quote

Yes, CacheInteractScripts exists, but it does not work that way.

You can test this writing a script A with content Start_Script(B);. B is script with Print("1");. Compile, run A. Modify B to print out "2". Recompile it. Rerun A. Console will print "1".

Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty