Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2010, 08:12 PM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default LDON Merchant Caps?

Seems a player has gotten up to 58,000+ Guks (he can't remember exact number) and the total lifetime points under Guk's Reset to 700...

Seems like the system is highly unstable atm, including Ruj merchants not working just general point issues..

King
Reply With Quote
  #2  
Old 01-24-2010, 09:00 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Quote:
Originally Posted by KingMort View Post
Seems like the system is highly unstable atm, including Ruj merchants not working just general point issues..

King
Ruj works just fine, that's the theme I am doing now.
Reply With Quote
  #3  
Old 01-25-2010, 01:16 AM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default

Hmm are you 32bit ? I'm 64bit and it doesn't seem to function at all...

I'm also getting the recipe components not showing in tradeskill items..

Also have you tried to give yourself like say 100,000 points in a particular theme? it seems to wig out


Is there some way to compile in 32bit mode under a 64 bit os ? Because i'm just totally lost i'll admit
Reply With Quote
  #4  
Old 01-25-2010, 02:02 AM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

i have windows xp 64bit prof and i used all 32 bit programs to do my server
Reply With Quote
  #5  
Old 01-25-2010, 05:05 PM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default

We use Debian x64

And I do not know how to compile with 32bit... I really wish I did though due to all the weird problems it causes
Reply With Quote
  #6  
Old 01-25-2010, 05:23 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Quote:
Originally Posted by KingMort View Post
Seems a player has gotten up to 58,000+ Guks (he can't remember exact number) and the total lifetime points under Guk's Reset to 700...
There is a check in client_packet.cpp around line 7735 which resets your ldon points to zero if any of them exceed 65535. Maybe that's causing your issue.

client_packet.cpp
Code:
        //validate adventure points, this cap is arbitrary
        if(m_pp.ldon_points_guk < 0 || m_pp.ldon_points_guk > 0xFFFF) m_pp.ldon_points_guk = 0;
        if(m_pp.ldon_points_mir < 0 || m_pp.ldon_points_mir > 0xFFFF) m_pp.ldon_points_mir = 0;
        if(m_pp.ldon_points_mmc < 0 || m_pp.ldon_points_mmc > 0xFFFF) m_pp.ldon_points_mmc = 0;
        if(m_pp.ldon_points_ruj < 0 || m_pp.ldon_points_ruj > 0xFFFF) m_pp.ldon_points_ruj = 0;
        if(m_pp.ldon_points_tak < 0 || m_pp.ldon_points_tak > 0xFFFF) m_pp.ldon_points_tak = 0;
        if(m_pp.ldon_points_available < 0 || m_pp.ldon_points_available > 0xFFFF) m_pp.ldon_points_available = 0;
the ldon points fields in the Player Profile are signed 32 bit integers, which can hold values up to +2,147,483,647
Reply With Quote
  #7  
Old 01-26-2010, 12:15 AM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default

Is there anyway to fix this ?
Reply With Quote
  #8  
Old 01-26-2010, 09:53 AM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

Quote:
//validate adventure points, this cap is arbitrary
As derision said, the db entries are signed 32 bit integers, so you can change the 'reset cap' to 2,147,483,647 if you want.
Reply With Quote
  #9  
Old 01-26-2010, 05:11 PM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default

I'm sorry to be a n00blet but what exactly do I change.. And what do i change it too..
Reply With Quote
  #10  
Old 01-26-2010, 06:56 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

You should be able to change this:

Code:
        //validate adventure points, this cap is arbitrary
        if(m_pp.ldon_points_guk < 0 || m_pp.ldon_points_guk > 0xFFFF) m_pp.ldon_points_guk = 0;
        if(m_pp.ldon_points_mir < 0 || m_pp.ldon_points_mir > 0xFFFF) m_pp.ldon_points_mir = 0;
        if(m_pp.ldon_points_mmc < 0 || m_pp.ldon_points_mmc > 0xFFFF) m_pp.ldon_points_mmc = 0;
        if(m_pp.ldon_points_ruj < 0 || m_pp.ldon_points_ruj > 0xFFFF) m_pp.ldon_points_ruj = 0;
        if(m_pp.ldon_points_tak < 0 || m_pp.ldon_points_tak > 0xFFFF) m_pp.ldon_points_tak = 0;
        if(m_pp.ldon_points_available < 0 || m_pp.ldon_points_available > 0xFFFF) m_pp.ldon_points_available = 0;
To this:

Code:
        //validate adventure points, this cap is arbitrary
        if(m_pp.ldon_points_guk < 0 || m_pp.ldon_points_guk > 0xFFFFFFFF) m_pp.ldon_points_guk = 0;
        if(m_pp.ldon_points_mir < 0 || m_pp.ldon_points_mir > 0xFFFFFFFF) m_pp.ldon_points_mir = 0;
        if(m_pp.ldon_points_mmc < 0 || m_pp.ldon_points_mmc > 0xFFFFFFFF) m_pp.ldon_points_mmc = 0;
        if(m_pp.ldon_points_ruj < 0 || m_pp.ldon_points_ruj > 0xFFFFFFFF) m_pp.ldon_points_ruj = 0;
        if(m_pp.ldon_points_tak < 0 || m_pp.ldon_points_tak > 0xFFFFFFFF) m_pp.ldon_points_tak = 0;
        if(m_pp.ldon_points_available < 0 || m_pp.ldon_points_available > 0xFFFFFFFF) m_pp.ldon_points_available = 0;
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #11  
Old 01-26-2010, 08:52 PM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default

Awesome thanks a ton
Reply With Quote
  #12  
Old 01-26-2010, 09:02 PM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

Out of curiosity sake, why is the code comparing to a hex value? I know 0xFFFFFFFF is equivalent to 2,147,483,647. Did the original programmer just do that for legibility purposes?
Reply With Quote
  #13  
Old 01-26-2010, 11:11 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Just a guess, but I think it would be easier to remember 0xFFFFFFFF than 2147483647. It is also probably easier to make sure the number is correct when reading over the code.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #14  
Old 01-27-2010, 05:05 PM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default

Alright put the code in and compiled and it worked great I was able to give myself Millions of points in a certain theme.. Really appreciate the help !

Is the same type of limiting also on stuff like Maxdmg ? if so how would i go about adjusting that..

King
Reply With Quote
Reply


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 08:32 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3