Quote:
Hmm... either I've done something wrong (possible, but I don't think so), or the new Anaconda (npc) is flashing on and off like a
Belisha beacon.
No errors in the log - can anyone confirm this?
I saw this during testing - there's still some shipdata.plist references to the old version of the anaconda in your game somewhere - the little orange blinking lights texture got shifted into a new texture map, if you have an anaconda looking for this texture in the wrong place it won't find it and the whole hull blinks on/off instead of in just a few small spots
the NPC anacondas need these shader definitions:-
Edit: oops, just noticed a bug, line 211 in shipdata.plist 'PaintColor' should be
uPaintColor I'll fix it in the oxp and in the code snippet below
Code:
shaders =
{
"griff_anaconda_diffuse.png" =
{
vertex_shader = "griff_normalmap_ships.vertex";
fragment_shader = "griff_anaconda_b_channel_decals.fragment";
textures =
(
"griff_anaconda_diffuse.png",
"griff_anaconda_normal.png",
"griff_anaconda_hull_effects.png",
{name = "griff_decals_set1.png"; repeat_s = "yes";}
);
uniforms =
{
uDiffuseMap = { type = texture; value = 0; };
uNormalMap = { type = texture; value = 1; };
uEffectsMap = { type = texture; value = 2; };
uDecalMap = { type = texture; value = 3; };
uTime = "timeElapsedSinceSpawn";
uNearlyDead = "throwingSparks";
uIsHostile = "hasHostileTarget";
uHullHeatLevel = "hullHeatLevel";
uPaintColor = {type = "randomUnitVector"; scale = 0.25;};
uDecalColor = {type = "randomUnitVector"; scale = 0.5;};
uDecalSelect = "entityPersonality";
};
};
};
some of the uniform names have changed and the third texture in the list ("griff_anaconda_hull_effects.png") is a new one - was called something like "griff_anaconda_eng_gun_effects" or something like that.
I've updated the oxp and started numbering it, i have a feeling it may whizz up the version numbers like my other oxps do
