Skip to content

Wrapped more 2d array message filter #894

Answered by Robadob
zeyus asked this question in Q&A
Discussion options

You must be logged in to vote

When the agent play_challenge function is included, FGPU throws this error: Array messagelist contains 12 messages at index 0!

I expect this refers to 12 agents calling FLAMEGPU->message_out.setIndex(opponent_x, opponent_y); with the arguments (0,0). It's thrown from a common method used by all 3 forms of array message, so the dimensions aren't available (it sees them all as 1D).

It probably also checks bins of the array list in order, so highly likely you have collisions in other elements of the arraylist too.

As you've said in your other comment, you probably want agents to output a message at their own location, rather than at their desired location (as there might be a conflict ther…

Replies: 1 comment 18 replies

Comment options

You must be logged in to vote
18 replies
@Robadob
Comment options

@zeyus
Comment options

@Robadob
Comment options

@Robadob
Comment options

@zeyus
Comment options

Answer selected by zeyus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants