PenUltima Online

It is currently Fri Sep 05, 2008 5:44 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Changing include files?
PostPosted: Mon Aug 28, 2006 1:54 am 
Offline

Joined: Thu Aug 10, 2006 9:59 am
Posts: 32
What do I have to do after changing include files? Because right now I am trying to fix something that makes enemies run away after a certain time of not doing dmg (they regain max hp while running away too which sucks even more). But no changes, even erasing loads of text in the include files show after I restarted shard and recreated the npc. Do I have to do something more for changes to take effect?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 9:31 am 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 747
Location: Chicago, IL USA
you have to recompile every script that uses that include. Or at least all the scripts with the include that you want the changes to take effect on. Then either restart the NPCs or reboot the shard. It should work after that.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 2:48 pm 
Offline

Joined: Thu Aug 10, 2006 9:59 am
Posts: 32
CWO wrote:
you have to recompile every script that uses that include. Or at least all the scripts with the include that you want the changes to take effect on. Then either restart the NPCs or reboot the shard. It should work after that.


Ahh, okay ;) it was the recompiling I didnt do :p thx


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 6:46 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 747
Location: Chicago, IL USA
Any time you make any change to .src or .inc, you must recompile then unload the script or reboot the shard (better to just .unload scriptname). For NPCs, you can just restart them after compiling and unloading and the change will be loaded. Almost everything else unless continuously running forever should work with the change after compiling and doing .unload scriptname in game.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 8:50 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1122
Location: Southern Central USA
I think though that for scripts like start.src it does require a restart. I don't think you can just unload them since they only get executed at startup.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 29, 2006 5:09 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 747
Location: Chicago, IL USA
Well, if you somehow executed it it would and with changes applied. Why wouldnt it? I think you could possibly start_script a start.src unless theres some internal core block of it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 29, 2006 10:00 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1122
Location: Southern Central USA
Why it wouldn't is because 'start' scripts are designed to run once during an instance of the emulator; when it starts. Atleast that's my understanding. I could be mistaken and if I am I apologize.

You could create a special set of scripts to run all the 'start' scripts for one special condition, ie. for an unloadall situation. But then that seems more bother than it's worth.

My primary reason for posting the comment was to note one special situation where a restart is necessary under normal conditions. For most every other script mod an unloadall will do fine.

I'm just trying to cover all bases. Though it might not happen I could imagine someone beating their head against the wall because they changed a 'start' script, did an unloadall and then couldn't figure out why the changes didn't take effect.
:)

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: Yahoo [Bot] 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