startup: attribute "COLOR" has too big of a numeric index

Technical support for the Linux and Mac platforms for all Trine games.
mjt
Posts: 1
Joined: Fri Jun 03, 2011 9:13 pm

startup: attribute "COLOR" has too big of a numeric index

Postby mjt » Fri Jun 03, 2011 9:21 pm

Hello.

Just tried the game on my linux box (debian), and after sorting out the texture compression issue (the additional mesa lib), the game still does not start, giving the following errors in the log:

INFO: Compiling program depthpass_mesh_pixel entry point mesh_deferred_all^M
ERROR: Cg error: 1 1 (The compile returned an error.)^M
ERROR: data/shader/cg/depthpass_mesh_pixel.cg(26) : error C5102: output semantic attribute "COLOR" has too big of a numeric index (1)
data/shader/cg/depthpass_mesh_pixel.cg(27) : error C5102: output semantic attribute "COLOR" has too big of a numeric index (2)
data/shader/cg/depthpass_mesh_pixel.cg(30) : error C5102: output semantic attribute "COLOR" has too big of a numeric index (3)
data/shader/cg/depthpass_mesh_pixel.cg(26) : error C5041: cannot locate suitable resource to bind parameter "oColor1"
data/shader/cg/depthpass_mesh_pixel.cg(27) : error C5041: cannot locate suitable resource to bind parameter "oColor2"
data/shader/cg/depthpass_mesh_pixel.cg(30) : error C5041: cannot locate suitable resource to bind parameter "oColor3"

And a few similar errors in other files. There are a few mentions of this error found by google but nothing relevant to this game. And I don't even know what the language this file is on, this ".cg" file. The text in that file reads:

(25) out float4 oColor0 : COLOR0,
(26) out float4 oColor1 : COLOR1,
(27) out float4 oColor2 : COLOR2

so it dislikes COLOR1 and COLOR2, but accepts COLOR0.

What can it be?

Thanks! :)

alt_turo
Posts: 195
Joined: Mon Dec 13, 2010 11:06 am

Re: startup: attribute "COLOR" has too big of a numeric inde

Postby alt_turo » Sat Jun 04, 2011 9:42 pm

You did not specify your GPU.

Your driver does not correctly implement ARB_draw_buffers/ATI_draw_buffers.

To use Mesa drivers you need the very latest Mesa from git. AFAIK there are currently no released stable versions which support all the necessary features. If you upgrade to git and the problem persists, open bug report with mesa devs.
Turo Lamminen
Alternative Games


Return to “Trine Technical Support for Linux & Mac”

Who is online

Users browsing this forum: No registered users and 2 guests