EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   Client showing spell effects. (https://www.eqemulator.org/forums/showthread.php?t=25644)

Aonelyn 07-07-2008 12:02 PM

Client showing spell effects.
 
How do i enable this on my server?

Aonelyn 07-07-2008 03:33 PM

let me clarify this, When you cast a spell, or get a spell casted on you, how do you see what the spell does to you via client?

trevius 07-07-2008 04:15 PM

You are wanting the text to appear that describes the effect of the spell once it is cast on you? If so, that is something that happens automatically if you run a Linux server (but it can be turned off on Linux). I don't know how to enable that in Windows, if that is what you are wanting.

If you just want to see the particle effects, all you have to do is "/showspell effects on".

Aonelyn 07-07-2008 05:10 PM

yeah the linux thing is what i was looking for.


Thanks mate.

Weldarr 09-04-2008 03:42 AM

Quote:

Originally Posted by trevius (Post 152102)
You are wanting the text to appear that describes the effect of the spell once it is cast on you? If so, that is something that happens automatically if you run a Linux server (but it can be turned off on Linux). I don't know how to enable that in Windows, if that is what you are wanting.

If you just want to see the particle effects, all you have to do is "/showspell effects on".

Has anyone found a way to enable this for windows?

AndMetal 09-04-2008 08:21 PM

Quote:

Originally Posted by Weldarr (Post 155204)
Has anyone found a way to enable this for windows?

You have to define SPELL_EFFECT_SPAM when compiling zone. In Linux, it is defined in the makefile:
Code:

DFLAGS=-DEQDEBUG=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -DFIELD_ITEMS -DCOMBINED -DAPP_OPCODE_SIZE=2 -Di386
I haven't compiled anything in Windows, so I'm not sure what exactly you would need to do in Visual Studio to set this up.

Angelox 09-04-2008 08:44 PM

Quote:

Originally Posted by AndMetal (Post 155252)
You have to define SPELL_EFFECT_SPAM when compiling zone. In Linux, it is defined in the makefile:
Code:

DFLAGS=-DEQDEBUG=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -DFIELD_ITEMS -DCOMBINED -DAPP_OPCODE_SIZE=2 -Di386
I haven't compiled anything in Windows, so I'm not sure what exactly you would need to do in Visual Studio to set this up.

I think there's a post somewhere that says this will not work for windows, or actually nothing will work for windows and this issue -

Secrets 09-06-2008 07:39 AM

Quote:

Originally Posted by Weldarr (Post 155204)
Has anyone found a way to enable this for windows?

I could've sworn you could just go into zone/spells.cpp and
Code:

#define SPELL_EFFECTS_SPAM
It works the same for windows as it does linux. I haven't tested this, so don't blame me if it goes boom!

AndMetal 09-07-2008 03:15 AM

Quote:

Originally Posted by Secrets (Post 155335)
I could've sworn you could just go into zone/spells.cpp and
Code:

#define SPELL_EFFECTS_SPAM
It works the same for windows as it does linux. I haven't tested this, so don't blame me if it goes boom!

It looks like all of the SPELL_EFFECT_SPAM uses are in zone/spell_effects.cpp, so you should be able to add it near the top:
Code:

#include "../common/debug.h"
#include "spdat.h"
#include "masterentity.h"
#include "../common/packet_dump.h"
#include "../common/moremath.h"
#include "../common/Item.h"
#include "worldserver.h"
#include "../common/skills.h"
#include "../common/bodytypes.h"
#include "../common/classes.h"
#include "../common/rulesys.h"
#include <math.h>
#include <assert.h>
#ifndef WIN32
#include <stdlib.h>
#include "../common/unix.h"
#endif
#define SPELL_EFFECT_SPAM


Congdar 09-07-2008 12:39 PM

spell spam SPELL_EFFECT_SPAM
 
I had this enabled at one time for windows.

1. In VC2005, right click on the Zone section and select Properties.
2. On the left side of the Zone Property Pages window select the C/C++ Preprocessor section under Configuration Properties.
3. On the right side of the Zone Property Pages window select Preprocessor Settings, these are the compiler settings.
4. Click on the tiny button on the right end of the Preprocessor Settings to open the Preprocessor Definitions window.
5. Edit SPELL_EFFECT_SPAM into its own line at the top of the list of compiler options.
6. Select OK to exit the Preprocessor Definitions window.
7. Select OK to exit the Zone Property Pages window.
8. Rebuild the executables.

trevius 10-02-2008 12:11 AM

I see that on the most recent SVN builds, the spell effect spam is gone even from Linux. If possible, I think it would be awesome if we could add it back in, but make a new rule to allow it to be turned on or off easily.

I am unsure where this check would come in, since the spell effect spam check is done so many times in the spell_effects.cpp file. Does anyone know where this rule check would go in? Maybe in defining SPELL_EFFECT_SPAM?

Code:

if(RuleB(Spells, EnableSpellEffectSpam)){
Once that part is figured out, the only other thing would be to add the actual rule in like this:

ruletypes.h - Add this line to the Spells Category:
Code:

RULE_BOOL (Spells, EnableSpellEffectSpam, false) //Enable or Disable spell effect text spam
Then the optional SQL would be this:
Code:

Insert into rule_values values (0, 'Spells:EnableSpellEffectSpam', false);


All times are GMT -4. The time now is 09:54 PM.

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