Author Topic: TrailMyx's Next Generation File System (TM_NGFS)  (Read 75281 times)

0 Members and 2 Guests are viewing this topic.

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Next Generation File System (TM_NGFS)
« Reply #135 on: April 02, 2012, 04:17:15 PM »
+1
I didn't think about that.  Lol.  No cruel joke, but the truth.  I'm almost done with a version for you to play with.  Not many people use this, but it's a great tool.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Next Generation File System (TM_NGFS)
« Reply #136 on: September 30, 2013, 12:28:07 PM »
+1
Oh man, I totally forgot to post this.  Actually looking at the code I remember now why I didn't.  It's *almost* done.  Not quite, but almost.  Perhaps I can get it finished; I hate leaving this useful bit of code unreleased.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Nylar

  • Jr. Member
  • **
  • Posts: 11
  • Activity:
    0%
  • Reputation Power: 1
  • Nylar has no influence.
  • Respect: +7
  • Referrals: 1
    • View Profile
Re: TrailMyx's Next Generation File System (TM_NGFS)
« Reply #137 on: February 03, 2015, 02:10:05 AM »
-1
Heh let me Necro this and ask the obvious question...

Did you ever 'Finish' it?

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Next Generation File System (TM_NGFS)
« Reply #138 on: February 03, 2015, 09:51:39 PM »
-1
Well the NGFS is finished.  The manager/viewer isn't quite yet.  I have the viewer a bit more functional,  but didn't quite get all the functions complete that I had envisioned.   I might post what I have so far as soon as I can go back and verify what works.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Crisis

  • Global Moderator
  • *
  • *
  • Posts: 3084
  • Activity:
    2.6%
  • Reputation Power: 42
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +566
  • Referrals: 2
    • View Profile
Re: TrailMyx's Next Generation File System (TM_NGFS)
« Reply #139 on: March 15, 2015, 07:32:29 PM »
-1
That would be cool!

Offline Trigs

  • Jr. Member
  • **
  • Posts: 22
  • Activity:
    0%
  • Reputation Power: 1
  • Trigs has no influence.
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: TrailMyx's Next Generation File System (TM_NGFS)
« Reply #140 on: August 31, 2018, 05:28:12 AM »
-1
Hey TM,

I've been playing with a handful of your file system based scripts lately, and think I noticed an issue across a few of them.

With the stuff you added for allowing "call" or "gosub" I think there is a mismatch in same variable names:

Code: [Select]
if !TM_FunctionCalled = #TRUE ; successfully called function.
  exit
if %0 = N/A
  display ok You may not run this script directly.
else
  display ok Function " , %1 , " not found.
stop

However, at the end of all the subs:
Code: [Select]
sub TM_NGFS_GetFSIndexVal
  namespace push
  namespace local TM_NGFS , _ , %1
  set #RESULT *TM_FS . %1
  namespace pop
  set !TM_Function_found #TRUE
return #RESULT

TM_Function_found  =/= TM_FunctionCalled

It's a simple enough fix I think, unless I'm missing some reason for them being different.


EDIT: As a second note - though I'm not sure if will accomplish anything, it seems that subsequent calls to this and the AFS both cause client crashes. It could be the way I'm using them but them seem to work fine 90% of the time. Often times when "loading" in either case it will just crash the UO client to desktop... it seems weird

I love the concept, the viewer is really nice and I have some ideas I'd love to implement using these features but having a hard time debugging the crashes :(
« Last Edit: August 31, 2018, 06:18:55 AM by Trigs »

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Next Generation File System (TM_NGFS)
« Reply #141 on: August 31, 2018, 07:38:56 AM »
+1
I think you're right.  Gotta love when cut/paste goes wacky!  Looks like I just bolted on the call handler, so the easiest fix for that is to just change this:

Code: easyuo
  1. if !TM_FunctionCalled = #TRUE ; successfully called function.
  2.   exit
  3. if %0 = N/A
  4.   display ok You may not run this script directly.
  5. else
  6.   display ok Function " , %1 , " not found.
  7. stop
  8.  


to this:

Code: easyuo
  1. if !TM_Function_found = #TRUE ; successfully called function.
  2.   exit
  3. if %0 = N/A
  4.   display ok You may not run this script directly.
  5. else
  6.   display ok Function " , %1 , " not found.
  7. stop
  8.  
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Trigs

  • Jr. Member
  • **
  • Posts: 22
  • Activity:
    0%
  • Reputation Power: 1
  • Trigs has no influence.
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: TrailMyx's Next Generation File System (TM_NGFS)
« Reply #142 on: August 31, 2018, 07:55:26 AM »
+1
I think you're right.  Gotta love when cut/paste goes wacky!  Looks like I just bolted on the call handler, so the easiest fix for that is to just change this:

Yea, that's what I ended up changing as well. I believe the same issue was present in TM_AdvancedFileSystem ( http://www.scriptuo.com/index.php?topic=22.0 )  I didn't check any others.

Any thoughts on the client crash?

Here's my use case:

Code: [Select]
call tm_ngfs.txt TM_NGFS_InitializeScript TrigBot

// some code to init
call tm_ngfs.txt TM_NGFS_RegisterVariables TrigBot std std scriptEndTime
call tm_ngfs.txt TM_NGFS_SaveVariables TrigBot

// bunch more code running script
call tm_ngfs.txt TM_NGFS_LoadVariables TrigBot // Crashes client here

I'm going to do a little more testing in isolation - I'll report back if I have a fully repeatable crash.

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13310
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +3089
  • Referrals: 34
    • View Profile
    • ScriptUO
Re: TrailMyx's Next Generation File System (TM_NGFS)
« Reply #143 on: August 31, 2018, 10:02:00 AM »
+1
Unsure about that.  Any script that heavily uses namespaces seems to be a little more susceptible to crashing.  It's kinda always been that way.

I normally get around many of the crashing by not using "call" at all and just importing the subs I need into my code.  Makes debugging easier also.
Please read the ScriptUO site RULES
Come play RIFT with me!