How to make the damage display like that?

01/02/2019 16:04 LookAtTheFlower#1
How i can make the damage display in that way?
This requires changes in the source or something with DmgEffect.dds?
[Only registered and activated users can see links. Click Here To Register...]
01/02/2019 20:16 Dr. Peacock#2
Source changes and dds changes, Yes.
Just look at the Render function of Dealed-Damage.
01/02/2019 21:27 LookAtTheFlower#3
Quote:
Originally Posted by Dr. Peacock View Post
Source changes and dds changes, Yes.
Just look at the Render function of Dealed-Damage.
Dealed-Damage? where i can find this? :)
thanks.
01/04/2019 10:50 69BOLT69#4
_Common ^ ^
01/04/2019 17:13 LookAtTheFlower#5
Quote:
Originally Posted by 69BOLT69 View Post
_Common ^ ^
Yeah but which file exactly? WndField.cpp?
01/04/2019 19:07 Nιgнтмαяε#6
2dRender.cpp
01/08/2019 04:28 yazuka21#7
Here's the example:

Code:
				if ( (nLength - (i + 1)) % 3 == 0 && nLength - (i + 1) != 0 )
					fX += 10;
That makes spaces into your damage instead of *dot* ( . ).
01/08/2019 06:47 kevinkraus#8
Quote:
Originally Posted by yazuka21 View Post
Here's the example:

Code:
				if ( (nLength - (i + 1)) % 3 == 0 && nLength - (i + 1) != 0 )
					fX += 10;
That makes spaces into your damage instead of *dot* ( . ).
Code:
				if ((nLength - (i)) % 3 == 0 && nLength - (i + 1) != 0)
					fX += 10;
i think the i + 1 creates a bug :P

- Kevin
01/08/2019 10:16 yazuka21#9
Quote:
Originally Posted by kevinkraus View Post
Code:
				if ((nLength - (i)) % 3 == 0 && nLength - (i + 1) != 0)
					fX += 10;
i think the i + 1 creates a bug :P

- Kevin
:P Fix Fix Fix
01/08/2019 11:57 LookAtTheFlower#10
Quote:
Originally Posted by yazuka21 View Post
Here's the example:

Code:
				if ( (nLength - (i + 1)) % 3 == 0 && nLength - (i + 1) != 0 )
					fX += 10;
That makes spaces into your damage instead of *dot* ( . ).
How to fix it?
Quote:
g:\V19 Test\Source\_Common\2DRender.cpp(537): error C2065: 'i' : undeclared identifier
g:\V19 Test\Source\_Common\2DRender.cpp(537): error C3861: 'i': identifier not found, even with argument-dependent lookup
g:\V19 Test\Source\_Common\2DRender.cpp(538): error C2065: 'fX' : undeclared identifier



01/08/2019 12:47 netHoxInc#11
Im not sure why you consider working on coding, if you dont know what the errors are telling you. This regards coding basics, I'd advice you to stop here, and start with Hello-World Scripts to understand what you're actually doing. Cuz you dont seem to know lol.

For the quesiton itself: i and fX must be declared, for example like int i = 0;
Since im not familar with the flyff source, it'll be declared either in the function where ur code is itself, or in th 2DRender.h (if existant). But the cpp file makes more sense to me.

Good luck.

Edit/Note: Im more familar to C# coding, but the explaination should fit c++ just fine too. Also dont get my first comment wrong tho, it's not ment bad. Knowing the Basics will help you further investigate problems on your own, even tho I personally dont mind if people seek for help. I do that once in a while too i guess. Who's not hu? p:
01/08/2019 14:20 ディオニュソス#12
Quote:
Originally Posted by LookAtTheFlower View Post
How to fix it?
In stdafx.cpp from your neuz add
Code:
int i = 0;
int fX = 0;
at the end of the file.

In stdafx.h add
Code:
extern int i;
extern int fX;
at the end of the file
01/08/2019 14:48 LookAtTheFlower#13
Quote:
Originally Posted by netHoxInc View Post
Im not sure why you consider working on coding, if you dont know what the errors are telling you. This regards coding basics, I'd advice you to stop here, and start with Hello-World Scripts to understand what you're actually doing. Cuz you dont seem to know lol.

For the quesiton itself: i and fX must be declared, for example like int i = 0;
Since im not familar with the flyff source, it'll be declared either in the function where ur code is itself, or in th 2DRender.h (if existant). But the cpp file makes more sense to me.

Good luck.

Edit/Note: Im more familar to C# coding, but the explaination should fit c++ just fine too. Also dont get my first comment wrong tho, it's not ment bad. Knowing the Basics will help you further investigate problems on your own, even tho I personally dont mind if people seek for help. I do that once in a while too i guess. Who's not hu? p:
All good bro :)
You're not wrong, but if i won't try, how would i know?
Thanks everyone :).
01/08/2019 16:43 yazuka21#14
There's nothing to do with other source file, it is just 2drender.cpp :) you should look for proper place to put that code.
01/10/2019 10:35 xTwiLightx#15
Quote:
Originally Posted by ディオニュソス View Post
In stdafx.cpp from your neuz add
Code:
int i = 0;
int fX = 0;
at the end of the file.

In stdafx.h add
Code:
extern int i;
extern int fX;
at the end of the file
Declare temporary incrementing variables inside stdafx (precompiled header for MFC applications)? Wtf.

Btw, fX is a FLOAT, not an int.