Updating Item's behaviour

Open discussion forum. For topics that do not fit anywhere else.
Post Reply
blckfire
Apprentice Poster
Posts: 54
Joined: Thu Feb 26, 2015 10:28 am

Updating Item's behaviour

Post by blckfire »

So, I've redone the way a menu works for some items in the game.

Problem is that these items are not updating to the new gump. Even, when I destroy the item and create a new one. Do I need to delete all of those items before creating a new one to have the update on it?
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Re: Updating Item's behaviour

Post by Yukiko »

Are you sure the script compiled with no errors? If there was an error the old compiled script will still be the one that runs. Also, did you restart after compiling the new script? Sorry if these seem like silly questions but it's easy to miss a compile error.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: Updating Item's behaviour

Post by CWO »

You wouldn't need to restart if it's just a use script. Just unload the old script. Unless you changed the itemdesc.cfg entry which would require a restart.
blckfire
Apprentice Poster
Posts: 54
Joined: Thu Feb 26, 2015 10:28 am

Re: Updating Item's behaviour

Post by blckfire »

Everything compiled without errors...

I unloaded everything first and since that didn't work I also restarted.

I'm on POL96. Can this be related?

I'm using a test server. So I don't have to affect my community until everyhing is ready to be launched.

I use the same pc to run the live and test server. They run in different ports and in different users' accounts.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: Updating Item's behaviour

Post by CWO »

Are you doing an item use script? If so, it should update after compiling and unloading. Are you sure you're updating the correct script? Have you tried just a simple SendSysMessage(who, "test"); in the beginning of the script just to see if it's doing anything? If you're redoing gumps/menus, does your shard have any type of gump caching system?
blckfire
Apprentice Poster
Posts: 54
Joined: Thu Feb 26, 2015 10:28 am

Re: Updating Item's behaviour

Post by blckfire »

I tried it and the first time it worked.

Can this be because I have a control script running on this item?

Edit: I modified the .src file compiled and I got a sendsysmessage. Problem is that my Gump drawing Information is inside and include file and when I update this file and compile the .src nothing happens.
blckfire
Apprentice Poster
Posts: 54
Joined: Thu Feb 26, 2015 10:28 am

Re: Updating Item's behaviour

Post by blckfire »

Figure out the problem...

I'm using a versioning system to keep track of the changes on the live and test servers and although I made it ignore changes on ecompile.cfg it still updated those changes. So I was trying to compile the scripts on test server with the scripts on the live version.

I think this one is now closed.
Post Reply