Code Help !!

Started by DEMAN, November 30, 2008, 02:13:48 PM

Previous topic - Next topic

DEMAN

PLAYER SKULLOMANIA'S HELPER (34) IN STATE 2093: 182.0000001153 WARNIG: EXPRESSION TRUNCATED TO INTEGER

dose any one know what wrong with this code

[State 66,3]
type = palfx
trigger1 = RootDist Y <= 230
time = 2
add = (230-(RootDist Y)),(230-(RootDist Y)),(230-(RootDist Y))


and after some test I find only this part

(230-(RootDist Y)),(230-(RootDist Y)),(230-(RootDist Y))

that make a bug flood when turn on Debug mode.

oh but it work find. I just want to know why it give back bug report ?


† Today you beg for your life, but one day you will beg me for your death †

Rajaa Retired

Ceil

Floor

use one of those, to get rid of the debgu error. some flags are going to give debug error when they are decimals.

DEMAN

It didn't help... or I not really sure how to use it

add = 230-(Ceil(RootDist Y)),230-(Ceil(RootDist Y)),230-(Ceil(RootDist Y))

still give debug error.


† Today you beg for your life, but one day you will beg me for your death †

Rajaa Retired

#3
put it on the outside of the total value

ceil(stuff)

BC

truncated i think means numbers shortened or limited after the decimal point.
Accepting commissions

Rajaa Retired

it means he is expressing an abnormal integer.

BC

ah ok thanks.

just went by a quote from wiki

QuoteIn mathematics, truncation is the term for limiting the number of digits right of the decimal point, by discarding the least significant ones.
Accepting commissions

Rajaa Retired

when i say abnormal, i mean it's abnormal to use in that situation, oh well words have more than one definition.

DEMAN

add = Ceil(230-(RootDist Y)),Ceil(230-(RootDist Y)),Ceil(230-(RootDist Y))

still the same.

Is it about Mugen can't keep up with this code or something? (but It dose work in game)


† Today you beg for your life, but one day you will beg me for your death †

Rajaa Retired

#9
weird, maybe Cyanide knows, last time i check it was only the mul function that gave error when it went below 0 or above 256 :P

Bastard Mami

Search for another instance of similar code, sine that one should be already fixed.