Go Back   EQEmulator Home > EQEmulator Forums > Development > Development: Custom Code

Development: Custom Code This is for code thatdoes not emulate live and wont be added to the official code.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2012, 02:15 PM
jsr
Hill Giant
 
Join Date: Aug 2008
Location: melbourne
Posts: 187
Default

This is still helpful as it virtually confirms a client cap but not calculation based on the spell file's base cast time value.. If it was getting the haste value from the spell file, I'd be having client issues at 50%+ haste not 100%+. So there should be a way to trick the client into using the right value (at least for the description).

Thanks again.
Reply With Quote
  #2  
Old 02-24-2012, 03:30 AM
jsr
Hill Giant
 
Join Date: Aug 2008
Location: melbourne
Posts: 187
Default

Have this working well enough, but still hoping to find a way to trick the client so that it shows the correct casting times.

To do this I need to be able to call a spell haste value when a spell is cast. At the moment, GetActSpellCastTime performs all of the haste calculations and returns a a modified cast time. I want to split these out into two functions, one to return spell haste as a value, and then the original function will call that and return the modified cast time. Seems simple enough..

Apparently not! After re-writing the two functions the code compiles without any issues, but when it comes to build I get these link errors.

Code:
3>pets.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Mob::GetCastReducer(unsigned short,int)" (?GetCastReducer@Mob@@UAEHGH@Z)
3>PlayerCorpse.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Mob::GetCastReducer(unsigned short,int)" (?GetCastReducer@Mob@@UAEHGH@Z)
3>beacon.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Mob::GetCastReducer(unsigned short,int)" (?GetCastReducer@Mob@@UAEHGH@Z)
3>horse.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Mob::GetCastReducer(unsigned short,int)" (?GetCastReducer@Mob@@UAEHGH@Z)
3>mob.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Mob::GetCastReducer(unsigned short,int)" (?GetCastReducer@Mob@@UAEHGH@Z)
3>npc.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Mob::GetCastReducer(unsigned short,int)" (?GetCastReducer@Mob@@UAEHGH@Z)
I have no issues with a build using the original code, so clearly I've missed something obvious to a native C++ dev. Hoping someone might be able to outline the high level steps to complete when adding a new function?

Cheers,
-Jsr
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 07:08 AM.


 

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