PenUltima Online

It is currently Wed Aug 20, 2008 2:22 pm

All times are UTC - 4 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Option: DoNotCacheScripts 0/1
PostPosted: Tue Mar 11, 2008 4:24 am 
Offline
User avatar

Joined: Fri Feb 10, 2006 4:15 am
Posts: 202
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 5:03 am 
Offline

Joined: Sat Feb 04, 2006 9:49 pm
Posts: 732
Location: Chicago, IL USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 11, 2008 5:25 am 
Offline
User avatar

Joined: Fri Feb 10, 2006 4:15 am
Posts: 202
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".


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 4 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl