Author Topic: TrailMyx's Advanced Journal Handler  (Read 66618 times)

0 Members and 1 Guest are viewing this topic.

Offline Katu

  • Jr. Member
  • **
  • Posts: 43
  • Activity:
    0%
  • Reputation Power: 2
  • Katu has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: TrailMyx's Advanced Journal Handler
« Reply #30 on: April 05, 2010, 01:15:52 PM »
+1
Aye, i really needed that kind of mod. After that i started to work on other mod..
Ever wanted to pick variables from the text?
If someone says you my ID:JFHGUFK and my TARGET:JNGYRD my HP:83.
I modded your scanner to pick these up :)


Offline JackCiaran

  • Jr. Member
  • **
  • Posts: 35
  • Activity:
    0%
  • Reputation Power: 1
  • JackCiaran has no influence.
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: TrailMyx's Advanced Journal Handler
« Reply #31 on: April 06, 2010, 06:49:41 PM »
+1
I understand this very well but something I haven't picked up on yet is "#LPC"
im guessing its like lines per count? and the smaller the number following it means smaller search range for more accuracy search time? I hate guessing at things that might be obvious but Id really like someone to let me know for sure =)

Scrripty

  • Guest
Re: TrailMyx's Advanced Journal Handler
« Reply #32 on: April 06, 2010, 07:06:19 PM »
+1
I understand this very well but something I haven't picked up on yet is "#LPC"
im guessing its like lines per count? and the smaller the number following it means smaller search range for more accuracy search time? I hate guessing at things that might be obvious but Id really like someone to let me know for sure =)

#LPC is lines per cycle.  Goto easyuo.com to read up on it.  It's more of an advanced topic imo that needs some reading.

Offline JackCiaran

  • Jr. Member
  • **
  • Posts: 35
  • Activity:
    0%
  • Reputation Power: 1
  • JackCiaran has no influence.
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: TrailMyx's Advanced Journal Handler
« Reply #33 on: April 06, 2010, 07:15:59 PM »
+1
wow i just read it over there and its alot easier to understand but putting it to use in other situations is probably harder than this journal scanner but again ty Twinkle McNugget!

Scrripty

  • Guest
Re: TrailMyx's Advanced Journal Handler
« Reply #34 on: April 06, 2010, 08:51:14 PM »
+1
wow i just read it over there and its alot easier to understand but putting it to use in other situations is probably harder than this journal scanner but again ty Twinkle McNugget!

Mainly what you're going to use it for is cranking up the #LPC when you're doing cpu intensive things.  And also lowering the cpu usage when you're doing things that dont require a ton of cpu time.  Like in a non critical loop or repeat, you can set the #lpc very low so it's not taking up tons of cpu cycles.  There's also times you CANT crank it up or it will mess with certain functions.  That's why I say it's kind of an advanced topic.  It's not hard to understand tho. 

Offline baldielocks

  • Sr. Member
  • *
  • Posts: 301
  • Activity:
    0%
  • Reputation Power: 4
  • baldielocks has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 5
    • View Profile
Re: TrailMyx's Advanced Journal Handler
« Reply #35 on: July 22, 2010, 04:34:11 PM »
+1
I put the new scanner in my Sliem quester, and checked it in SUO. Sohuld I be concerne with this?
Code: [Select]
Method count: 56
Command count: 56
*** Pass 1 - Label accounting:
*** Warning - GOSUB %1 - Line 220 has no matching SUBroutine
*** Warning - GOSUB %1 - Line 222 has no matching SUBroutine
*** Warning - GOSUB %1 - Line 224 has no matching SUBroutine
*** Warning - GOSUB %1 - Line 226 has no matching SUBroutine
*** Warning - GOSUB %1 - Line 228 has no matching SUBroutine
*** Warning - GOSUB %1 - Line 230 has no matching SUBroutine
*** Warning - GOSUB %1 - Line 232 has no matching SUBroutine
*** Warning - GOSUB %1 - Line 234 has no matching SUBroutine
*** Warning - GOSUB %1 - Line 236 has no matching SUBroutine
*** Warning - GOSUB %1 - Line 238 has no matching SUBroutine
*** Warning - GOSUB %1 - Line 240 has no matching SUBroutine
Subroutine labels = 5
Tag labels = 2
18 Code block(s).
11 Warnings(s) encountered.
*** Pass 2 - Execution [SYNTAXCHECK]

Offline Paulonius

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +162
  • Referrals: 1
    • View Profile
Re: TrailMyx's Advanced Journal Handler
« Reply #36 on: July 22, 2010, 04:35:52 PM »
+1
Probably not an issue. Most of TM's subs have multiple functions and will error like that if there is something you are not using.
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: TrailMyx's Advanced Journal Handler
« Reply #37 on: April 25, 2011, 05:28:28 PM »
+1
Why does "You must wait" work with this but "too far away" not?

    gosub TM_AdvJournalScan LORE VALID too_far_away You_must_wait
    if #result = #true
    {
      set %skipit TRUE
      return
    }

I tried

    gosub TM_AdvJournalScan LORE NULL too_far_away You_must_wait
    if #result = #true
    {
      set %skipit TRUE
      return
    }

Also, still didn't work.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: TrailMyx's Advanced Journal Handler
« Reply #38 on: April 25, 2011, 05:31:03 PM »
+1
It's gotta be the targetting... lemme put a wait in.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Neo

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: TrailMyx's Advanced Journal Handler
« Reply #39 on: August 16, 2011, 03:54:07 PM »
+1
I've used this for the first time in the Ter Mur lumber I wrote, and I must say, I love this!

Thank you very much for sharing!
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • 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: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: TrailMyx's Advanced Journal Handler
« Reply #40 on: August 16, 2011, 04:01:56 PM »
+1
I've used this for the first time in the Ter Mur lumber I wrote, and I must say, I love this!

Thank you very much for sharing!

Once you get the gist of how these work, they can really simplify your journal scanning world.  Especially when you are scanning for two or more completely unrelated things.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline OMGBurgers

  • Hero Member
  • *
  • Posts: 800
  • Activity:
    0%
  • Reputation Power: 7
  • OMGBurgers has no influence.
  • Respect: +44
  • Referrals: 0
    • View Profile
Re: TrailMyx's Advanced Journal Handler
« Reply #41 on: January 11, 2012, 07:00:13 PM »
+1
if i do a scan for VALID_ADVANCE for multiple arguments, is there any variable returned that says which one it found?  i was thinking that would make it real easy to throw in like 8 arguments, then afterwards by the result could do a number of different things by which one it found without having to do like 4 calls.  right now im doin this...

Code: [Select]
      gosub TM_AdvJournalScan fish VALID_ADVANCE You_pull_out Your_fishing_pole_bends_as_you You_fish_a_while,_but_fail Your_fishing_pole_nearly_breaks! You_struggle_and_fight_to_pull
      if #result = #true
         return CONTINUE
      gosub TM_AdvJournalScan fish VALID_ADVANCE The_fish_don't_seem_to_be_biting
      if #result = #true
         return MOVE

but i was thinking i could do:
Code: [Select]
      gosub TM_AdvJournalScan fish VALID_ADVANCE You_pull_out Your_fishing_pole_bends_as_you You_fish_a_while,_but_fail Your_fishing_pole_nearly_breaks! You_struggle_and_fight_to_pull The_fish_don't_seem_to_be_biting
      if #result in You_pull_out_Your_fishing_pole_bends_as_you_You_fish_a_while,_but_fail_Your_fishing_pole_nearly_breaks!_You_struggle_and_fight_to_pull
         return CONTINUE
      if #result = The_fish_don't_seem_to_be_biting
         return MOVE

that way i dont need to call it multiple times.

does that make any sense?  or would it really not matter much?  i dont know if you read my other post but im just brainstorming ways to try to make things faster by reducing all the high LPC calling subs/functions/scripts.

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • 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: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: TrailMyx's Advanced Journal Handler
« Reply #42 on: January 11, 2012, 07:10:54 PM »
+1
Funny you should ask.  I have a set of these I never published.  Lemme try and find them.  It'll return the "trigger" of the match.
« Last Edit: January 11, 2012, 07:17:07 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • 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: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: TrailMyx's Advanced Journal Handler
« Reply #43 on: January 11, 2012, 07:27:20 PM »
+1
Ok, I pieced together the trigger stuff.  Check out version 1.2.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline OMGBurgers

  • Hero Member
  • *
  • Posts: 800
  • Activity:
    0%
  • Reputation Power: 7
  • OMGBurgers has no influence.
  • Respect: +44
  • Referrals: 0
    • View Profile
Re: TrailMyx's Advanced Journal Handler
« Reply #44 on: January 11, 2012, 07:30:19 PM »
+1
wow awesome!  cant wait to try it out :)  the freeshard i play has been down for hours today for a new patch...  but i'll mess around with it tomorrow. thanks a bunch!