Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2008, 07:46 PM
bleh9
Fire Beetle
 
Join Date: Jul 2007
Posts: 3
Default

Quote:
Originally Posted by James76 View Post
I replaced any "x++" with "++x" for example, because its actually faster and you only need the post-increment on something like "myarray[x++]" which increments x after reading from the array, or "myarray[++x]" which increments x before reading from the array. Its faster because the post-increment has to push the value to return on the stack before incrementing.
Maybe I'm missing something, but myarray[x++] isn't the same as myarray[++x]. Also, ++x and x++ often optimized the same.

Last edited by bleh9; 09-19-2008 at 03:47 AM.. Reason: clarification
Reply With Quote
  #2  
Old 09-18-2008, 07:52 PM
James76
Sarnak
 
Join Date: Sep 2008
Location: Canada
Posts: 53
Default

Quote:
Originally Posted by bleh9 View Post
Maybe I'm missing something, but myarray[x++] isn't the same as myarray[++x]. Also, ++x and x++ often compile to the same thing.
I said that you don't need x++ UNLESS you're using it on a line such as "myarray[...]" where it actually matters, where more than one segment is processed before the rest of the statement. I even defined what post-increment and pre-increment means. Why am I defending myself?

And assuming it will compile to the same thing is incorrect, it will only do so if the specific optimization flag is set on the gcc execution. Assuming anything is poor code, its always better to implement as intended.
__________________
Expert developer, I do it for a living.
Don't let the "Junior" tag fool you.
Reply With Quote
  #3  
Old 09-21-2008, 06:49 AM
James76
Sarnak
 
Join Date: Sep 2008
Location: Canada
Posts: 53
Arrow

OK, the attack.cpp file replacement is ready. Just subtle changes throughout. The major change is damage bonus.... That monks get +20%, and at level 50 (and every five levels) you gain +15% damage. It looked like that's what was intended in the original source, but the math was screwing it up.

Here is it.

- Test the ripostes if you like, the discipline is Furious for warriors, at level 56.

- Combat damage significantly increased.. both for you and against you.. Lets see if its still balanced? Solo-raids should become more difficult.

I still have my database mobs ATK and Accuracy set to my last stated update based on level. I'd like people to test that and let me know if the code's defaults should be more on par with that, or find better generic values.. Maybe raid mobs should get 2x the values? You get the idea.

Enjoy the ripostes! They can trigger now on every attack instead of every hit.
__________________
Expert developer, I do it for a living.
Don't let the "Junior" tag fool you.
Reply With Quote
  #4  
Old 09-24-2008, 09:09 AM
James76
Sarnak
 
Join Date: Sep 2008
Location: Canada
Posts: 53
Default Bump...?

Anybody bring this in to their builds?
__________________
Expert developer, I do it for a living.
Don't let the "Junior" tag fool you.
Reply With Quote
  #5  
Old 09-24-2008, 09:30 AM
renoofturks1
Sarnak
 
Join Date: Jan 2008
Posts: 60
Default

I am hoping to test it tonight.
Reply With Quote
  #6  
Old 10-07-2008, 02:26 PM
James76
Sarnak
 
Join Date: Sep 2008
Location: Canada
Posts: 53
Angry umm...?

These combat fixes were so important to the emulator, but they appear to be overlooked? There should also be an additional change, a riposte should beat an "automatic hit", since I recall a duel I had between my warrior and a ranger, he triggered auto hits, and I wielded the slowest 2H with the highest damage I found at that time, activated auto-riposte, and he died in seconds. So, is this still getting looked at? Is anybody using this? Seems like changes are like trying to move mountains. I'm just trying to shake things up and make everything better.
__________________
Expert developer, I do it for a living.
Don't let the "Junior" tag fool you.
Reply With Quote
  #7  
Old 10-07-2008, 02:44 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

I totally missed this. I will add it to my server tonight and start playing with it.
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 04:58 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