ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: gimlet on July 22, 2012, 11:43:00 AM

Title: Namespace
Post by: gimlet on July 22, 2012, 11:43:00 AM
Where are namespace vatiables saved?
pushin and popin for UO
Title: Re: Namespace
Post by: 12TimesOver on July 24, 2012, 01:48:52 AM
In memory.
Title: Re: Namespace
Post by: gimlet on July 24, 2012, 06:22:30 AM
In memory.

So do they go away when i shut down easyuo? or client? pr reboot?
Title: Re: Namespace
Post by: 12TimesOver on July 24, 2012, 09:12:10 AM
I'm going to assume when you shutdown euox
Title: Re: Namespace
Post by: dxrom on July 24, 2012, 01:34:38 PM
They are held in a volatile medium, so yes.
Title: Re: Namespace
Post by: TrailMyx on July 24, 2012, 03:06:06 PM
As long as you keep EUOX.exe open, the global namespace variables will remain in memory for any instance of a script tab that you run.  Closing a script tab, or restarting a script in a tab will reset the local namespace variables.  The only way to have either local or global namespace variables persist is to save them to an external medium.  The NGFS is a good example of how to do this quickly.  It basically takes all the registered variables and stores them in persistent variables in your registry.
Title: Re: Namespace
Post by: gimlet on July 24, 2012, 05:29:06 PM
Thanks guys i think i understand now