protobuf.min.js:63 Uncaught Error: Illegal wire type for field Message.Field .Data_new.vert: 5 (2 expected)
I get this message when I try to decode my binary file with protobuf.
vert.proto:
message Vertice_new{
repeated float values = 1 [packed = true];
}
message Data_new{
repeated Vertice_new vert = 1;
}
and in cpp i just put in a lot of raw data in the form of x,y,z,stress,strain ... and so on which are all floats and when I try to decode it on javascript side I get this weird message, it was working fine until we changed the input data, and now I don't know where to look for the fixing.
for references here my cpp code:
Data_new data_new;
for ... loopparameter is i ; {
vert->add_values(nodes[i].pos.x + diffs[i].pos.x);
vert->add_values(nodes[i].pos.y + diffs[i].pos.y);
vert->add_values(nodes[i].pos.z + diffs[i].pos.z);
vert->add_values(nodes[i].directStress.x);
vert->add_values(nodes[i].directStress.z);
vert->add_values(nodes[i].directStrain.x);
vert->add_values(nodes[i].directStrain.z);
}