27 - Global error (nil value) in Wintergrasp
What steps will reproduce the problem?
1. Attempt to mount using a SmartMount hotkey keybinding while in Wintergrasp
What is the expected output? What do you see instead?
Flying mount when battle not in progress, ground mount when battle is in progress
What version of the product are you using?
Livestock, v1.3.7
Do you have an error log of what happened?
Yes...
Date: 2011-02-21 14:25:01
ID: 1
Error occured in: Global
Count: 14
Message: ..\AddOns\Livestock\Livestock.lua line 1067:
attempt to call global 'GetWintergraspWaitTime' (a nil value)
Debug:
[C]: GetWintergraspWaitTime()
Livestock\Livestock.lua:1067 LandOrFlying()
Livestock\Livestock.lua:1135 SmartPreClick()
[string "*:PreClick"]:1:
[string "*:PreClick"]:1
Please provide any additional information below.
- 5 comments
- 5 comments
Facts
- Last updated
- Mar 26, 2011
- Reported
- Feb 21, 2011
- Status
- Fixed - Developer made requested changes. QA should verify.
- Type
- Defect - A shortcoming, fault, or imperfection
- Priority
- Medium - Normal priority.
- Votes
- 0
- Reply
- #5
Ackis Mar 19, 2011 at 17:34 UTC - 0 likesYeah that last code update works.
BFAK:Ackis,90710388,2f62cbb4c100385c86df0c1418f5ac5a2cb1a2bc3f2a18f13291792dbb3a1480
- Reply
- #4
Kharthus Mar 15, 2011 at 05:32 UTC - 0 likesIs it working now? I'm not really playing much currently.
- Reply
- #3
Ackis Mar 10, 2011 at 01:14 UTC - 0 likesGot a chance to test in a battle and there's something wrong. I wasn't able to troubleshoot it however.
I just updated the code, tested it out a bit more this time.
- Reply
- #2
Ackis Mar 09, 2011 at 00:11 UTC - 0 likesBoth.
Simple fix:
http://wowprogramming.com/docs/api/GetWorldPVPAreaInfo
Replace/add this to line 1067:
Add this to line 1183 (after the if statement):
Change line 1195 to:
Line numbers are based on previous line additions. Should be easy to figure out.
- Reply
- #1
Kharthus Feb 26, 2011 at 18:52 UTC - 0 likesDuring a battle or not?