#361
|
||||
|
||||
It's amazing how many things I can accidentally break by introducing 1 perfectly innocent looking line of code.
__________________
Steven Peeler Designer/programmer Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, Drox Operative 2, & Din's Champion Wishlist Din's Champion |
#362
|
|||
|
|||
Can I ask what the line of code was?
|
#363
|
||||
|
||||
Of course. The offending line was:
setAlpha( databaseEntry->getFloatValue( "Alpha" ) ); This just sets the alpha value for an entity based on the value in its database entry. Looks and sounds perfectly ok doesn't it? Too bad if a value in the database isn't specified it defaults to 0. So all of a sudden half of the objects in the game disappeared and effects would show up late, flicker, or never show up.
__________________
Steven Peeler Designer/programmer Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, Drox Operative 2, & Din's Champion Wishlist Din's Champion |
#364
|
|||
|
|||
So the correction is just
if (databaseEntry->contains("Alpha")) setAlpha(databaseEntry->getFloatValue("Alpha")); else setAlpha(1.0); (tabs aren't showing up for some reason) ? |
#365
|
||||
|
||||
I could have done that but in this case I only needed that line of code for one thing so I moved the alpha value into the shader instead.
__________________
Steven Peeler Designer/programmer Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, Drox Operative 2, & Din's Champion Wishlist Din's Champion |
#366
|
||||
|
||||
This kind of goes with my last thing, but sometimes I wish I had another programmer to blame bugs on
__________________
Steven Peeler Designer/programmer Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, Drox Operative 2, & Din's Champion Wishlist Din's Champion |
#367
|
||||
|
||||
by seeing this post you agree to not sue Soldak or join any class action lawsuits against us (this is a joke of course
__________________
Steven Peeler Designer/programmer Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, Drox Operative 2, & Din's Champion Wishlist Din's Champion |
#368
|
||||
|
||||
Quote:
__________________
Stephen A. Hornback |
#369
|
|||
|
|||
This was a strange tweet until I read the Sony story and got the joke
|
#370
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|