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?
Updating Item's behaviour
Re: Updating Item's behaviour
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.
Re: Updating Item's behaviour
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.
Re: Updating Item's behaviour
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.
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.
Re: Updating Item's behaviour
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?
Re: Updating Item's behaviour
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.
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.
Re: Updating Item's behaviour
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.
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.