Hi all,
I have a 2-dimensional queue that I’d like to fill with incrementing values. In my attempts, I get an out of bounds error or an Invalid X or Z in state expression with a constraint.
I’m using this just to load the queues with simple incrementing data need while I debug other code issues.
Goal: my queue should look like this:
frame_data[0][0] = 0
frame_data[0][1] = 1
frame_data[1][0] = 2
frame_data[1][1] = 3
...
Assume that the 2nd index value is consistent, so frame_data[0].size = frame_data[1].size, etc.
I tried to use the 'const cast, but apparently I do not fully understand how it is used.
E.g.
if(!sf_trans.randomize() with {
sf_trans.frame_data.size() == local::frame_count;
// set frame size
foreach(frame_data[i])
sf_trans.frame_data[i].size() == local::frame_dword_count;
frame_data[0][0] == 0;
foreach(frame_data[i,j]) {
if( (i+j)>0 && i+j < ( (frame_data.size()-1 + frame_data[0].size()-1) ) )
frame_data[i][j] == const'(frame_data[i][j])+1;
}
Thank you for any suggestions,
Brian