Author Topic: Maxweight script setup - question  (Read 3000 times)

0 Members and 1 Guest are viewing this topic.

Offline GemviperTopic starter

  • Sr. Member
  • *
  • Posts: 481
  • Activity:
    0%
  • Reputation Power: 0
  • Gemviper hides in shadows.
  • Respect: +57
  • Referrals: 2
    • View Profile
Maxweight script setup - question
« on: October 06, 2015, 06:12:38 PM »
0
- A player backpack can hold 550 stones maximum even if the character is strong enough to carry more

- A player can weigh 590 stones maximum when counting worn gear(550 pack plus 40 more for gear that isn't counted against the 550 weight cap if it's worn)

- A typical fully geared player with 140 strength total that is carrying the max 550 stones in his pack will weight somewhere between 580 and 590 stones and the in game status bar will say 580/590, you're not overloaded.

If you open the EUO status bar, however, it says that MAXWEIGHT is only 530 stones despite the game status bar saying 550 is available in the pack, there's a 20 stone discrepancy between EUO max pack weight and the in game max pack weight.

Scripting using maxweight results in a failed attempt at 531 stones even if you could carry 550 in your pack in total. Where is this 20 stone reduction coming from? Is this a bug? The stats being displayed for my character are accurate in EUO but the #Maxweight for my pack is not, it's 20 stone short.
« Last Edit: October 07, 2015, 12:08:34 AM by Gemviper »

Offline GemviperTopic starter

  • Sr. Member
  • *
  • Posts: 481
  • Activity:
    0%
  • Reputation Power: 0
  • Gemviper hides in shadows.
  • Respect: +57
  • Referrals: 2
    • View Profile
Re: Maxweight script setup - question
« Reply #1 on: October 06, 2015, 11:58:45 PM »
0
I suppose I could change the code to count weight in a different way than by using #Maxweight but that's what it's there for, I wish I knew where the missing 20 stone has gone. I stopped trying to figure it out but 20 stone is quite a few good items at idoc so if someone figures it out, eventually, do tell!
« Last Edit: October 07, 2015, 12:09:23 AM by Gemviper »

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Maxweight script setup - question
« Reply #2 on: October 07, 2015, 03:37:14 AM »
0
There could be so many ways how this could be calculated or displayed wrong. I can count you up a few possiblities :

1) The Client Display Wrong.
2) The EasyUO Display Wrong.
3) The Client Stores a SubWeight like for Stamina Check or whatever anywhere and EasyUO reads from wrong Memory Location.
4) EasyUO reads correct but displays Wrong (or do some sub calculations like for StaminaCheck).


You could start to strike out the possible ways by comparing how other tools read maxweight by checking
tools like UOSteam\Razor\Stealth (they read packets) if they get same maxweight then it is something on EUO. If they get also incorrect MaxWeight, it could be Client sends different data and EUO do some subchecks and manipulate data.

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Maxweight script setup - question
« Reply #3 on: October 07, 2015, 04:03:07 AM »
0
What is the race of the character in question? There used to be a bug for elf characters that you had to work around when using #maxweight, that might not be it but it seems that this could still exist.
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline GemviperTopic starter

  • Sr. Member
  • *
  • Posts: 481
  • Activity:
    0%
  • Reputation Power: 0
  • Gemviper hides in shadows.
  • Respect: +57
  • Referrals: 2
    • View Profile
Re: Maxweight script setup - question
« Reply #4 on: October 07, 2015, 05:52:17 AM »
0
All my characters are human. I took all armor off to rule that out and nothing changed, it stayed 20 stone off. I did however manage to pick up 550 stone into an empty pack with a test script using max weight, even though it says 530 is maxweight, so it's not affecting me that I know of.

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Maxweight script setup - question
« Reply #5 on: October 07, 2015, 07:09:30 AM »
0
well i dont think easyuo have a weight check on drag\drop so you need to figure out a way to handle it as you need.

I i personaly analysed what would be my "most weight" stack and checked weigth that if i move item that i wont over limit. worked good in past 10 years

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Maxweight script setup - question
« Reply #6 on: October 09, 2015, 08:30:01 AM »
0
If you event property #backpackid    what does it say the weight is ??    If it shows the correct weight you could parse the  string  and forget about #maxweight
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Maxweight script setup - question
« Reply #7 on: October 09, 2015, 11:08:08 AM »
0
I just look at my #maxweight,
Human easyuo show 386 but UO 446 in statbar
Garg     easyuo show 502 but UO 502 in statbar     
elf         easyuo show 481 but UO 481 in statbar             
« Last Edit: October 09, 2015, 11:51:13 AM by The Ghost »

Offline GemviperTopic starter

  • Sr. Member
  • *
  • Posts: 481
  • Activity:
    0%
  • Reputation Power: 0
  • Gemviper hides in shadows.
  • Respect: +57
  • Referrals: 2
    • View Profile
Re: Maxweight script setup - question
« Reply #8 on: October 09, 2015, 05:59:20 PM »
0
The nice part of checking against MAXWEIGHT is that the weight updates as you load up items, parsing it any other way and you run into math problems if anything goes wrong.

It seems to be a human character thing, perhaps due to the bonuses humans get not being included? If so this little bug has been around a loooong time :)

Tags: