Author Topic: looting script causes client crash  (Read 4902 times)

0 Members and 1 Guest are viewing this topic.

Offline systempanicTopic starter

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 0
  • systempanic has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
looting script causes client crash
« on: August 16, 2011, 09:38:16 PM »
0
Hello, I want to farm gold afk, and have tried several loot scripts... I consistently have UO client crashed after running looting script for a while, maybe 10 minutes or less ..... Is there something I can do to resolve it? thanks.

for example what to modify in CLAw script to avoid client crash?
« Last Edit: August 16, 2011, 09:43:38 PM by systempanic »

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: +861
  • Referrals: 11
    • View Profile
Re: looting script causes client crash
« Reply #1 on: August 17, 2011, 04:02:41 AM »
0
So your saying that using CLAw for looting causes you to crash?

What else are you running? I'm assuming some type of attack script. You need to tell the other scripts you are running to STOP while CLAw is looting.

Put this in the mainloop of ALL the other scripts you run:

Code: [Select]
  set %timeout_looter ( #sCnt + 20 )
  repeat
    namespace copy TM_loot_in_progress from global TM_loot
  until !TM_loot_in_progress <> #TRUE || #sCnt > %timeout_looter

That will A) Wait until the global variable !TM_loot_in_progress is #false (CLAw has finished looting) or B) 20 seconds emergency timeout. You should never take more then 20 seconds to loot.

That should eliminate any script interaction crashes you have with CLAw. Now, if you have trouble with script interactions outside CLAw that's an entirely different matter.
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 systempanicTopic starter

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 0
  • systempanic has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: looting script causes client crash
« Reply #2 on: August 17, 2011, 05:06:56 PM »
0

Cerveza, thank you.

yes, i am using a simple attack script that attack nearest hostile monsters and now have included code snippet u suggested to see how it come out.

 ;D

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: +861
  • Referrals: 11
    • View Profile
Re: looting script causes client crash
« Reply #3 on: August 18, 2011, 03:05:36 AM »
0
Please post your results so that others may benefit from your experience.
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 systempanicTopic starter

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 0
  • systempanic has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: looting script causes client crash
« Reply #4 on: August 19, 2011, 12:48:03 AM »
0

First try using new script it last for 5 hours and crashed, and is much better than before.... will try more...  ;D

Offline camotbik

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +90
  • Referrals: 0
    • View Profile
Re: looting script causes client crash
« Reply #5 on: August 19, 2011, 01:27:02 AM »
0
Could it be that the reason of your crash is your main code? You could post it to take a look at it.
What you witness -- is whatver..
uogamers hybrid.

Offline systempanicTopic starter

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 0
  • systempanic has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: looting script causes client crash
« Reply #6 on: August 21, 2011, 07:37:33 PM »
0
okay, here it goes

In addition to CLAw, I have these two scripts running in the same easyuo.
=== script 1 for EOO =========
set %timeout_looter ( #sCnt + 20 )
repeat
    namespace copy TM_loot_in_progress from global TM_loot
until !TM_loot_in_progress <> #TRUE || #sCnt > %timeout_looter
EVENT MACRO 15 206
WAIT 205s

======script 2 for attacking nearest hostile ==========
set %timeout_looter ( #sCnt + 20 )
repeat
    namespace copy TM_loot_in_progress from global TM_loot
until !TM_loot_in_progress <> #TRUE || #sCnt > %timeout_looter
event macro 3 0 ..
wait 30
set %timeout_looter ( #sCnt + 20 )
repeat
    namespace copy TM_loot_in_progress from global TM_loot
until !TM_loot_in_progress <> #TRUE || #sCnt > %timeout_looter
event macro 52 1
wait 30
set %timeout_looter ( #sCnt + 20 )
repeat
    namespace copy TM_loot_in_progress from global TM_loot
until !TM_loot_in_progress <> #TRUE || #sCnt > %timeout_looter
event macro 53
wait 3s
=========================

Tags: