Vice City: Multiplayer

VC:MP Discussion => Support => Bugs and Crashes => Topic started by: EK.IceFlake on Dec 02, 2016, 05:27 AM

Title: [BUG] Sphere interprets color weirdly
Post by: EK.IceFlake on Dec 02, 2016, 05:27 AM
Description
When I make a sphere, the color parameter behaves very weirdly

Reproducible
Always

What you were doing when the bug happened
Trying to make a sphere
They make different colors each time the sphere is created on top of another spheres position, and when standalone, they create some weird color that is not the color you tell them to make
Also, sphere.Color shows the color that the sphere is behaving like
I make this sphere when I am in the server (so not on onscriptload)

What you think caused the bug
A single line of code f*ing things up
Title: Re: [BUG] Sphere interprets color weirdly
Post by: vito on Dec 02, 2016, 06:42 AM
because sphere is pink already
Title: Re: [BUG] Sphere interprets color weirdly
Post by: EK.IceFlake on Dec 02, 2016, 07:03 AM
Quote from: vito on Dec 02, 2016, 06:42 AMbecause sphere is pink already
It worked perfectly in rel003...
Title: Re: [BUG] Sphere interprets color weirdly
Post by: Thijn on Dec 02, 2016, 07:17 AM
Show some code.
Title: Re: [BUG] Sphere interprets color weirdly
Post by: EK.IceFlake on Dec 02, 2016, 07:35 AM
        ECP = ::CreateCheckpoint(null, 39999 + ID, true, ::Vector(EPos[0].tofloat(), EPos[1].tofloat(), EPos[2].tofloat()), ::RGB(0, 192, 192), 1.5);
Title: Re: [BUG] Sphere interprets color weirdly
Post by: Xmair on Dec 02, 2016, 07:44 AM
I think its RGBA.
Title: Re: [BUG] Sphere interprets color weirdly
Post by: EK.IceFlake on Dec 02, 2016, 08:51 AM
Quote from: Xmair on Dec 02, 2016, 07:44 AMI think its RGBA.
Nope, doesn't work
Title: Re: [BUG] Sphere interprets color weirdly
Post by: Anik on Dec 02, 2016, 08:58 AM
At least some reported about it. Also happened with me. The colours of the spheres are not always same as we are trying to make it. Its a bug.
Title: Re: [BUG] Sphere interprets color weirdly
Post by: DizzasTeR on Dec 02, 2016, 11:03 AM
This is confirmed. If you make spheres, sometimes they are not the color you have created them with.
Title: Re: [BUG] Sphere interprets color weirdly
Post by: EK.IceFlake on Dec 02, 2016, 11:16 AM
Quote from: Doom_Kill3R on Dec 02, 2016, 11:03 AMThis is confirmed. If you make spheres, sometimes they are not the color you have created them with.
All the time for me
Title: Re: [BUG] Sphere interprets color weirdly
Post by: Drake on Dec 03, 2016, 03:37 AM
try ARGB
Title: Re: [BUG] Sphere interprets color weirdly
Post by: EK.IceFlake on Dec 03, 2016, 04:46 AM
Quote from: Drake on Dec 03, 2016, 03:37 AMtry ARGB
Works, thanks ;)

This bug should still be fixed so as to not confuse new scripters
Title: Re: [BUG] Sphere interprets color weirdly
Post by: vito on Dec 03, 2016, 01:29 PM
Quote from: Drake on Dec 03, 2016, 03:37 AMtry ARGB
everything is fucked up here
Title: Re: [BUG] Sphere interprets color weirdly
Post by: KAKAN on Dec 03, 2016, 02:48 PM
Quote from: vito on Dec 03, 2016, 01:29 PM
Quote from: Drake on Dec 03, 2016, 03:37 AMtry ARGB
everything is fucked up here
I guess its just the documentation.
Title: Re: [BUG] Sphere interprets color weirdly
Post by: Mötley on Dec 05, 2016, 04:56 AM
Was it in the right output for alpha anyway?