Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2009, 08:33 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Updating a single bug thread might be a lot of work. I think it would be better to have a SoF development section that could be used to track this, at least until the server for that client is mature enough.
Reply With Quote
  #2  
Old 03-02-2009, 08:54 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I am pretty good at keeping track of things and making sure they are updated regularly. If an admin wants to add a temporary section for it, that is fine too, but I think things would be just fine using a single thread or 2 for it.

When I created the SoF_struct.h file, most of it was a direct copy from the Titanium one. Then, I went through and updated all of the structs I could find to match with what ShowEQ showed for them and still tried to match what Titanium showed where I could so that it would be a logical blend of the 2 that would hopefully work.

If the SoF struct is correct and it is expecting the Titanium struct, the simple explanation is that we only need to create an encode/decode for that packet. It should be pretty easy for me to do that later. I have a basic write-up wiki page on how to do encode/decode for this type of stuff if you wanted to take a stab at it.

Here is the wiki page for encode/decode:
http://www.eqemulator.net/wiki/wikka...a=EncodeDecode
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 03-02-2009, 09:05 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

gotcha. that's what I was looking for yesterday when I was fooling around with it.
Reply With Quote
  #4  
Old 03-03-2009, 12:01 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Andrew80k, or anyone else that wants to try it, here are the encodes/decodes for buff related structures. Simply add these to the files listed (anywhere in the file near where the other similar encode/decode is) and then recompile and test if it works:

SoF_ops.h
Code:
E(OP_Buff)
D(OP_Buff)
SoF.cpp
Code:
ENCODE(OP_Buff) {
        ENCODE_LENGTH_EXACT(SpellBuffFade_Struct);
        SETUP_DIRECT_ENCODE(SpellBuffFade_Struct, structs::SpellBuffFade_Struct);
        OUT(slot);
        OUT(level);
        OUT(effect);
        OUT(spellid);
        OUT(duration);
//	OUT(playerId); // Global ID of Player that cast the buff - This isn't set to be used yet
        OUT(slotid);
        OUT(bufffade);
        FINISH_ENCODE();
}

DECODE(OP_Buff) {
        DECODE_LENGTH_ATLEAST(structs::SpellBuffFade_Struct);
        SETUP_DIRECT_DECODE(SpellBuffFade_Struct, structs::SpellBuffFade_Struct);
        IN(slot);
        IN(level);
        IN(effect);
        IN(spellid);
        IN(duration);
//	IN(playerId); // Global ID of Player that cast the buff - This isn't set to be used yet
        IN(slotid);
        IN(bufffade);
        FINISH_DIRECT_DECODE();
}
If the SoF structures I have set in the SoF_structs.h file are correct, these encodes/decodes should probably work to fix all current buff related issues in SoF. If no one is able to try it and confirm if it fixed it or not before I get home, I will be testing it myself later. If this works when I test it, I will get it updated on the SVN ASAP.

I am sure there are probably a few more encode/decode structure issues like this from the structures I modified for SoF based on what the ShowEQ structs were set to. By adding in the proper encodes/decodes, I think it should be able to knock out most of the smaller issues like this pretty quickly. I am not 100% sure that both OP_Buff and OP_BuffFadeMsg need both an encode and a decode, but it doesn't hurt to have both set that way. I would have to check how they are sent on Titanium and/or EQLive to see for sure if both are needed like that.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 03-05-2009 at 12:17 PM..
Reply With Quote
  #5  
Old 03-03-2009, 01:03 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

I made a little progress I think. I got the size mismatch errors to go away, but the buff still fades as soon as it is cast, and unfortunately, it really does fade. But I think that is actually progress. I'll continue to fool with it until I figure it out.
Reply With Quote
  #6  
Old 03-03-2009, 01:07 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

You tried the changes I posted and that still happens? I will play with it when I get home. I imagine it shouldn't be hard to get this working properly.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #7  
Old 03-03-2009, 01:15 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by trevius View Post
You tried the changes I posted and that still happens? I will play with it when I get home. I imagine it shouldn't be hard to get this working properly.
No mine were a bit different and I had actually come up with what I thought was wrong with my initial foray into this. I was coding it similar to what you have now when you posted.
Reply With Quote
  #8  
Old 03-03-2009, 01:25 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by Andrew80k View Post
No mine were a bit different and I had actually come up with what I thought was wrong with my initial foray into this. I was coding it similar to what you have now when you posted.
Now outbound is the wrong size. I'll fool with it some more tomorrow if you don't fix it tonight.
Reply With Quote
  #9  
Old 03-03-2009, 01:14 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Working on this now. I got it compiled and installed, starting the server. Will get back to you in a few.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:55 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3