Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 54 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Fixing GHR 
Author Message
Joined:Mon Nov 03, 2008 5:37 pmPosts: 388 Realm Region: Europe Realm Name: Kult der Verdammten
Post Re: Fixing GHR
have encountered that when altered so, it does not longer
trade GHI Items

had an error in above code
Code:
GHI:RecieveRawMessage(...) end)

should be
Code:
GHR:RecieveRawMessage(...) end)


I guess ...

also ...
Code:
function GHR:RecieveRawMessage(prefix,text,distribution,sender)
   local sucess, t = serial:Deserialize(text);
   GHR:ReceiveMessage(prefix, sender, distribution, unpack(t));
end


could possibly be edited to

Code:
function GHR:RecieveRawMessage(prefix,text,distribution,sender)
   GHR:RecieveMessage(prefix, sender, distribution, text);
end


Or maybe it could be shortened way more.

I'm quite new to ace ... so I'm kind of stuck ...

I even had a version where GHI and GHR are running with each other ...

Code:
-- ================================ Communication  ================================
-- start ACE
GHR = LibStub("AceComm-3.0");
--- Set Up Ace
function GHR_InitAce()
   GHR:RegisterComm("GHR", function(...) GHR:RecieveMessage(...) end)
end
function GHR:RecieveMessage(prefix, sender, distribution, oldRecieve, meta, arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12)

   if oldRecieve == true then
      GHR_RecieveData("GHR"..meta,arg1,sender)
   else
   
   end
end

In the last version ... no errors where triggered but the functions like increasing
the reputation did no longer work for others exept the user itself.

But via items the reputation can be set


Mon Feb 08, 2010 1:18 am
Profile WWW
Joined:Mon Nov 03, 2008 5:37 pmPosts: 388 Realm Region: Europe Realm Name: Kult der Verdammten
Post Re: Fixing GHR
Can I may request access to the GHR project on CurseForge?
As I may upload files for review?

So far done ...

  • splitted up the ghr.lua file to several files
    • may need review for moving function to more suitable "module"
  • Added localization to GHR
  • altered comm interface in parts to ace 3 (further testing is needed)


ToDo:

  • investigate the TargetFrame-Vertex-Color error
  • faction connection error


Wed Feb 10, 2010 11:49 am
Profile WWW
Site Admin
Joined:Mon Jun 16, 2008 7:25 pmPosts: 1539 Realm Region: Europe Realm Name: Argent Dawn
Post Re: Fixing GHR
That sounds great.

I can give you access to ghr, but I just need to know who your curse user is.

*edit* never mind, I saw your curse friendship request now. I have added you now.


Wed Feb 10, 2010 2:49 pm
Profile
Joined:Mon Nov 03, 2008 5:37 pmPosts: 388 Realm Region: Europe Realm Name: Kult der Verdammten
Post Re: Fixing GHR
Pilus wrote:
never mind, I saw your curse friendship request now. I have added you now.


Image


Wed Feb 10, 2010 4:15 pm
Profile WWW
Joined:Mon Nov 03, 2008 5:37 pmPosts: 388 Realm Region: Europe Realm Name: Kult der Verdammten
Post Re: Fixing GHR
still working on some comm issues. And also investigating the frame and list issues.


Fri Feb 12, 2010 2:47 pm
Profile WWW
Site Admin
Joined:Mon Jun 16, 2008 7:25 pmPosts: 1539 Realm Region: Europe Realm Name: Argent Dawn
Post Re: Fixing GHR
What is the frame and list issues?


Fri Feb 12, 2010 2:58 pm
Profile
Joined:Mon Nov 03, 2008 5:37 pmPosts: 388 Realm Region: Europe Realm Name: Kult der Verdammten
Post Re: Fixing GHR
Frame issue is the target portrait frame and list issue is that.

The linked faction error was a local problem caused by some old data.


Last edited by Laruna on Fri Feb 12, 2010 6:49 pm, edited 1 time in total.

Fri Feb 12, 2010 3:49 pm
Profile WWW
Joined:Mon Nov 03, 2008 5:37 pmPosts: 388 Realm Region: Europe Realm Name: Kult der Verdammten
Post Re: Fixing GHR
If you may want to take a look at the current state you find
GHR on http://blog.jackprince.de/nv/GHR.zip

Currently trying to figure out how to send the data proper ...
kind of stuck right now.


Fri Feb 12, 2010 6:25 pm
Profile WWW
Joined:Fri Jan 15, 2010 7:30 pmPosts: 63
Post Re: Fixing GHR
What are you stuck on regarding sending data?


Fri Feb 12, 2010 6:37 pm
Profile
Joined:Mon Nov 03, 2008 5:37 pmPosts: 388 Realm Region: Europe Realm Name: Kult der Verdammten
Post Re: Fixing GHR
With the code at the start of the thread it worked. but surpressed the GHI data sending.

With my actual code is just does not work with sending data.

I'm not quite sure if I just loose some data while sending or if
the prefix is wrong or something else.

I'm quite new to addon based lua coding and data sending.

You may like to take a look at the code within the linked version of GHR (see post above).

Edit: zip updated again @17.58 MEZ


Fri Feb 12, 2010 6:53 pm
Profile WWW
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 54 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Powered by phpBB © phpBB Group.
Designed by Laruna