Jump to content
  • 0

Sura dissipate hab bug cause lag


serex

Question

19 answers to this question

Recommended Posts

  • 0
  • Former Staff

Hi, in my server when a player (sura) use his hability (dissipate) it cause some lag on the other player. How I can fix it?

I'm not sure if there's a fix for that problem.

The official still has it.

  • Love 1
Link to comment
  • 0

I assume there's no fix for that unless you rebuild skill or Compute() function by yourself.

In short, when Sura uses his skill --> game is checking and fixing every stat on your character, it happens as many times as many buffs you have on.

 

I know, it's so sad.  :unsure:

Link to comment
  • 0

Yay, managed to fix it, though I made some new functions based on the original ones but it doesn't matter now.

If you want to fix lag issues you must go to char_affect.cpp and find this:

bool CHARACTER::RemoveAffect(CAffect * pkAff)

Not gonna post a complete fix so have fun with it! :D

The rest of the functions that are linked to that one (and would be nice to do something with them):

void CHARACTER::ComputeAffect(CAffect * pkAff, bool bAdd)
bool CHARACTER::RemoveAffect(DWORD dwType)
void CHARACTER::RemoveGoodAffect()

Proof here:

suraskill.gif

 

or link_to_optimized_version

dem ymir coders, everything so complicated :wub: 

 

Regards,

newja

Link to comment
  • 0
  • Developer
2 minutes ago, Horinna said:

@Syreldar thanks, the lag is gone, but here is the "new bug":

Hidden Content

    Give reaction to this post to see the hidden content.

Hidden Content

    Give reaction to this post to see the hidden content.

Sorry, what's the bug? The stats are correctly updating.

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to comment
  • 0
  • Developer
2 minutes ago, Horinna said:

05dab7de19f29c151335f7a3ddbc3f61.gif

@Syreldar with you fix the effect doesnt removed - look :)

I'll look into it.

 

can you screenshot your CHARACTER::RemoveAffect(CAffect * pkAff) ?

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to comment
  • 0
  • Developer
Just now, Horinna said:

@Syreldar thanks :) here is an another gif:
cae245c983f407c2c0b3cb1c9b186dd2.gif

can you screenshot your CHARACTER::RemoveAffect(CAffect * pkAff) ?

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to comment
  • 0
  • Developer
25 minutes ago, Horinna said:

b7c669a095684592d83a0e96536ccda0.png

can you add me on skype? I can help you better!

contact: aresyournightmare

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.