Author Topic: (Unfinished) Advanced CLAw for OEUO  (Read 9412 times)

0 Members and 1 Guest are viewing this topic.

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
(Unfinished) Advanced CLAw for OEUO
« on: September 19, 2015, 12:22:49 PM »
0
Just releasing this for posterity. 

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
TM_CLAW_lua.zip
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +123
  • Referrals: 1
    • View Profile
Re: (Unfinished) Advanced CLAw for OEUO
« Reply #1 on: September 19, 2015, 12:39:07 PM »
0
Oeuo Still exists?
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

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: (Unfinished) Advanced CLAw for OEUO
« Reply #2 on: September 19, 2015, 02:12:31 PM »
0
Oeuo Still exists?

Heh, yeh.  I remember the time when I was super-excited about it.  I still have my timing analysis of this execution vs. EUO and it was quite shocking how much faster the OEUO stuff was.  Honestly, from what I'm finding OEUO is way faster than Stealth (.NET).  (sorry Crome... :p )

But the UI integration was a trainwreck..

Here's a conversation I had with Cerveza regarding my initial findings:

---------------------------------------------------------
(Originally posted on October 02, 2010, 10:34:08 PM)

Here's an even more impressive test.  I have single expression evaluation working so things like:

Magery > 10

Are evaluated in this example (113 pieces of jewelry):

(16 active rules)

Code: [Select]
FINDITEM time: 5.597000 seconds for 112 items
Hit Chance Increase match!
Strength Bonus match!
Hit Chance Increase match!
Dexterity Bonus match!
Magery match!
Magery match!
Luck match!
Luck match!
Dexterity Bonus match!
Luck match!
Magery match!
Hit Chance Increase match!
Intelligence Bonus match!
Luck match!
Lower Reagent Cost match!
Luck match!
Luck match!
Strength Bonus match!
Luck match!
Container eval time: 5.710000 seconds for 112 items
Rules executed = 2912
done looting

So the script executed 2912 rules in 113 milliseconds.  That means each rule takes 38.8 microseconds.  Going back to the CLAw, @9-15 milliseconds/rule, that means this script is 250-390 times faster.  This would take the old CLAw 26.2-43.7 seconds instead of 113 milliseconds.

Ah, math.  Annoying because people will still bitch about that 5.597 seconds it takes OEUO to do the finditem.  The event property doesn't add much overhead at all; that's all FINDITEM.

Will probably be able to really get some interesting looting profiles with OEUO!
« Last Edit: September 19, 2015, 02:19:35 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: