statistics
People Online: 15
Today's Visitors: 69
Total Visitors: 3,793,400
May 22, 2012, 10:35:48 PM
Shoutbox
   
 
[DevTeam] [Zeke]: I love that I get emailed when someone reports spam on the boards, but I can't do anything about it.
[DevTeam] [Nachonut]: lol i got you
[DevTeam] [Astaldo]: How about "hide email address from public checked" and it's still visible in all my posts...
[DevTeam] [Astaldo]: I'd delete my account on this site, but by the time I realized the problem half the spambots on the planet had it already
[Developer] [Pazza]: Astaldo if you log out and view your profile with a refresh you'll see that your email is hidden.
[Developer] [Pazza]: Your user level on the forums permit you to see emails even though they are marked hidden.
[DevTeam] [Astaldo]: Ah.. thanks for the clarification and apologies for "crying wolf" in that case :
[DevTeam] [Kaidenn]: PAZZA! i miss you.
[DevTeam] [Nachonut]: Lol, it's funny how it takes spam message reports to get me to come back
[DevTeam] [sylvanaar]: Check out the beta tester forum. Need alpha testers and feedback so I can come up with a maintenance plan.
[Developer] [Pazza]: loaded some new spam prevention modules... lets see if this stops the bastards.
[DevTeam] [Maziel]: Thought I'd check in and say Howdy Doody from Australia
[DevTeam] [Maziel]: Yeah the spam from shoes salesmen was becoming insane
[Guest] [Delakando]: What ever happened to the ability to track friend's location by wim? Other then just showing their general zone location.
Zeke pokes his head around the corner.
[DevTeam] [Zeke]: Anybody home?
[Guest] [Theillur]: I would like to know if it is just me.
[Guest] [Theillur]: http://www.wimaddon.com/forums/index.php/topic,1796.0.html
[Guest] [Nev]: I'm here
[Guest] [Nev]: I don't think anyone else is though
[Guest] [tomasio]: great site [url=http://freeonlinemusicvideos.net].[/url] [url=http://freepeopleclothing.org].[/url]
[Guest] [Theillur]: Nev it is not working for Zeke as well.
[DevTeam] [lothaer]: im here
[DevTeam] [lothaer]: ...
lothaer yawns sleepily.
[DevTeam] [lothaer]: sooooooooooooooooo
[Guest] [j3ff]: Hello. It is very quiet. I would love a response to my thread directly below your "Been very quiet" thread!
[DevTeam] [lothaer]: Check out my new post in the Skins forum
[DevTeam] [lothaer]: Posted a new download in the skins forum check it out
[DevTeam] [lothaer]: Zeke, Maziel, Pazza, Nachonut, sylvanaar, Kaidenn, Astaldo where are you?
[DevTeam] [lothaer]: It would be a real shame if WIM was left to die.
[DevTeam] [lothaer]: i think these forums are dead, Sylvanaar dosnt post on them as he only bug fixes when possible. WIMs future isnt very bright
[Guest] [justgiz]: Yea, its rather sad.
[Guest] [silvercola]: I wish it had skype
[DevTeam] [lothaer]: noy possible for a addon to do.
[DevTeam] [lothaer]: ...........
[Guest] [elzershark]: where is the download file?
lothaer beckons everyone over to you.
[DevTeam] [lothaer]: has anyone been able to take WIM to the beta yet?
[DevTeam] [lothaer]: PTR*
[DevTeam] [Maziel]: *sticks head up and looks around*
lothaer cries.
[DevTeam] [lothaer]: who the hell flagged my post as spam?
[Guest] [primalforce]: Hey guys
[DevTeam] [lothaer]: hello Primalforce.
[DevTeam] [lothaer]: PAZZA COME BACK!!!
[DevTeam] [Nachonut]: Ahhh memories
[Guest] [Ignis]: wtb update
[DevTeam] [lothaer]: soooo.....
Pazza starts to complain... Kinda reminds you of Sloans dont it?
 
   
   
News: World of Warcraft v4.0.1
 
Pages: [1]
Print
Author Topic: WoW 3.1.0 compatibility issues (code inside)  (Read 1948 times)
Astaldo
Beta Tester
Jr. Member
*

Karma: +1/-0
Offline Offline

Posts: 61


View Profile
« on: February 28, 2009, 09:22:51 AM »

WIM 3.0.6 breaks on 2 things in the current 3.1.0 build.

First issue is not an issue with WIM code but with the included Astrolabe library.
Temporary "fix" to stop Astrolabe bugging out is to disable support for minimap rotation.

Changes needed: Astrolabe rev92
1. Replace occurrences of MiniMapCompassRing with MinimapCompassTexture.
2. Find occurrences of minimapRotationOffset and hardcode them to 0.
minimapRotationOffset = 0;

This essentially disables support for rotating minimap in Astrolabe so it is not a real fix,
but it stops Astrolabe bugging out and refusing to load which subsequently breaks WIM.
Slightly longer explanation:
MiniMapCompassRing was a Model object in 3.0.x that has a :GetFacing() method for getting rotation in radians.

The replacement MinimapCompassTexture is a Texture object that has no method for getting rotation.
A way to work around that is by using the returns from MinimapCompassTexture:GetTexCoord() and using trig functions to derive the rotation from the TL-BL set of cartesian coords (first 4 returns from GetTexCoord())

Zootfizzle said that in a subsequent ptr build they're introducing a
local degrees = GetPlayerFacing();
so I chose not to spend time creating a user function to derive rotation from GetTexCoord()
to replace the now non-existing :GetFacing() in Astrolabe.

Second issue is with actual WIM code.
It is related to changes in the ChatFrame_AddMessageEventFilter("event", filterfunc) function.
the filterfunc signature has changed from
function filterfunc (message)
 if condition1 then
    return true
 end
 return false
end

to

function filterfunc (self, event, ...)
 if condition1 then
    return true, ...
 end
 return false, ...
end

Following changes are needed to WIM code:
WIM.lua line 254 and below
Code:
local function honorChatFrameEventFilter(event, ...)
local chatFilters = _G.ChatFrame_GetMessageEventFilters(event);
if chatFilters then
local filter = false;
for _, filterFunc in pairs(chatFilters) do
filter, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11 = filterFunc(event, ...);
if filter then
return true, ...;
end
end
end
return false, ...;
end
WIM.lua line 276 in the eventhandler also needs to be changed accordingly to
Code:
if(honorChatFrameEventFilter(event, ...)) then

I did also change Modules\WhisperEngine.lua
line 618 to
Code:
local msg = select(1, ...);
and line 621 to
Code:
local win = Windows[FormatUserName(string.match(msg, ERR_CHAT_PLAYER_NOT_FOUND_S)) or "NIL"];

WIM works on 3.1.0 after that.

PS. I'd be happy to test and report/help debug for wow 3.1.0.
Logged
Pazza
Administrator
Hero Member
*****

Karma: +89/-15
Offline Offline

Posts: 1375


Effin A


View Profile WWW
« Reply #1 on: February 28, 2009, 11:38:52 AM »

Thanks a lot for this... And the chat filtering seems like it could be of great use!
Logged

My hobbies consume way too much time :-).
Astaldo
Beta Tester
Jr. Member
*

Karma: +1/-0
Offline Offline

Posts: 61


View Profile
« Reply #2 on: March 07, 2009, 12:05:15 PM »

Drop in replacement for Astrolabe r100 for 3.1 ptr.

Using the new GetPlayerFacing(); wrapped in 3.1 build checks.

In other words it will work both on live and ptr.

Note for any users that would replace Astrolabe with this on ptr:
Astrolabe is a library, it can be present in several addons.
You'll need to replace it in all or risk an old version getting loaded.

Most importantly this is a user submitted/totally unsupported modification.
Use at your own risk.


That said it's a working 3.0.x/3.1 Astrolabe  Wink

In other news the recent WIM beta builds (r155+) with this Astrolabe
are error-free on the PTR with one minor annoyance (no lua errors).
The Social window pops up when you /w someone (at the /who tab).
Logged
Pages: [1]
Print
Jump to:  

You must be logged in to send a message to the shout box.
     
  test stamp