EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Spell Support (https://www.eqemulator.org/forums/forumdisplay.php?f=664)
-   -   Spells that vanish after a relog? (https://www.eqemulator.org/forums/showthread.php?t=32508)

cylynex2 11-19-2010 10:35 PM

Spells that vanish after a relog?
 
Custom spells seem to be vanishing after relogging. It is still memmed, but does not seem to be in the spellbook anywhere. Ideas? Not even sure which log to look at for this one.

cylynex2 11-19-2010 11:42 PM

Sorry, not just after a relog, but anytime you die it disappears.

cylynex2 11-20-2010 07:15 PM

Found the solution with some help from Trevius - custom spells were 21086-21098. Apparently there's some problem with scribable spells having IDs that high. I moved the spells to lower IDs and regenerated the spells_us.txt file and it's working fine now.

trevius 11-29-2010 05:36 AM

I think I figured out the reason why this happens and it doesn't look to be a client issue after-all. The problem seems to be from the code here:

client_packet.cpp line 8700:
Code:

        for(uint32 spellInt= 0; spellInt < MAX_PP_SPELLBOOK; spellInt++)
        {
                if (m_pp.spell_book[spellInt] < 3 || m_pp.spell_book[spellInt] > 20000)
                        m_pp.spell_book[spellInt] = 0xFFFFFFFF;
        }

I think we just need to change the 20000 there to something more like 30000.

ChaosSlayerZ 11-29-2010 11:57 AM

but is there is a hard client cap on max spell id?
Like Titanium only allows 9999 spells?

trevius 11-30-2010 03:12 AM

Quote:

Originally Posted by ChaosSlayerZ (Post 194606)
but is there is a hard client cap on max spell id?
Like Titanium only allows 9999 spells?

There may be, but I have seen no proof of one yet. I thought this issue was originally proof of a limitation (like maybe 19999), but now I am pretty sure that is not the case.

ChaosSlayerZ 11-30-2010 11:52 AM

does this mean that we can actually use spell IDs above 9999 for T client?

Secrets 11-30-2010 12:43 PM

Quote:

Originally Posted by ChaosSlayerZ (Post 194652)
does this mean that we can actually use spell IDs above 9999 for T client?

You can't use IDs above 9999 on titanium due to how it reads the spellfile and how SOE put the buffer size at a fixed rate to only support 10k spells. There's a function within the EQ client that has the actual number in all the clients, in Titanium it is 10000, SoD has 23000, etc.

They appear as unknown spells for the client limitation. If you are able to #cast them and have the effect show up though that's not a client limitation.


All times are GMT -4. The time now is 03:26 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.