x


Detonator Framework Unity 2.6

Im using Unity 2.6 and trying to get the Detonator framework working, when I install it, it seems to go in fine but as soon as its complete my console is full of error and warnings. Also I am using Detonator framework for the 2.6 Unity.

These errors happen in reverse order.

Cg in program 'vert': warning C7011: implicit cast from "float4" to "float3" at line 79

Cg in program 'vert': error C1115: unable to find compatible overloaded function "mul(error, float4)" at line 79

Cg in program 'frag': warning C7011: implicit cast from "float4" to "float3" at line 79

Cg in program 'frag': error C1105: cannot call a non-function at line 38

Cg in program 'frag': error C1008: undefined variable "UnpackNormal" at line 38

Cg in program 'frag': error C1105: cannot call a non-function at line 37

Cg in program 'frag': error C1008: undefined variable "UnpackNormal" at line 37

Cg in program 'frag': error C1105: cannot call a non-function at line 36

Cg in program 'frag': error C1060: incompatible types in initialization at line 36

Cg in program 'frag': error C1008: undefined variable "UnpackNormal" at line 36

Assets/Standard Assets/Detonator/System/DetonatorBurstEmitter.cs(227,33): warning CS0162: Unreachable code detected

Assets/Standard Assets/Detonator/System/DetonatorBurstEmitter.cs(223,58): error CS1501: No overload for method Emit' takes7' arguments

any help would be great.

Cheers

more ▼

asked Feb 09 '11 at 04:06 PM

mike 5 gravatar image

mike 5
2 2 2 2

Any reason why you can't use the latest version of Unity and see if the error still occurs?

Feb 09 '11 at 04:37 PM GesterX

Yeah, we have a load of code from other DLL's that we use that are riddled with Errors in Unity 3.

Feb 09 '11 at 08:10 PM mike 5
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I decided too take a look at this for unity 2.5, with alot more wrong than what you have listed, however I found a easy solution at least for 2.5, Im assuming 2.6 will yield the same results.

Step 1: import the detonator package errors and all. In 2.5 I crash hard the moment it starts loading the prefabs from det package, but it doesnt matter the rest of the package gets loaded regardless.

Step 2: Close unity, Locate the Folder you put the Detonator, Defualt is Standard Assets/Detonator, And Delete all the prefabs.

Step 3: Reopen unity, Find DetonateBurstEmitter, if your using 2.5 Debug will give you this error Assets/Standard Assets/Detonator/System/DetonatorBurstEmitter.cs(223,58): error CS1501: No overload for method Emit' takes7' arguments.

Step 4 : change the line _particleEmitter.Emit(_tmpPos, _tmpDir, _tmpParticleSize, _tmpDuration, color, _randomizedRotation, _tmpAngularVelocity);

Too this

_particleEmitter.Emit(_tmpPos, _tmpDir, _tmpParticleSize, _tmpDuration, color);

-This will only leave you with 2 warning about the _tmpParticle and tmpDuration vars not being used, but Detonator will now work quite Well with out them, Im pretty sure theres a way too Overload this right and get the full statment too compile perhaps somone else can add too this for a better fix. As far as the CG errors go thats in the Shaders provided, ive yet too fix these myself, however the detonator package is still quite usefull with out the distortion shaders, and there easyily replaced.

more ▼

answered Feb 12 '11 at 07:29 PM

Drandoss gravatar image

Drandoss
13 2 2 4

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x53
x24
x5
x1
x1

asked: Feb 09 '11 at 04:06 PM

Seen: 1188 times

Last Updated: Feb 09 '11 at 04:06 PM