-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anyone can make it run? #9
Comments
I left a comment on the "ArgumentOutOfRangeException: Index was out of range" issue that can interest you. |
OK found, the camera is just not set correctly and there seem to have no control on it implemented into the simulation but you just need to set it with these values : |
I managed to get it running, here's what I did: 1.) (Thanks to CyberDuck79) The 2.) In // If this entity is not last in the list, put the last entity in its place
if (index != lastElementIndex) {
map[regionX, regionY][index] = map[regionX, regionY][lastElementIndex];
map[regionX, regionY][index].mapIndex = e.mapIndex;
}
// Remove last entity from the list
map[regionX, regionY].RemoveAt (lastElementIndex);
numEntities--; with this: // make sure the map is non-empty
if (lastElementIndex >= 0) {
// If this entity is not last in the list, put the last entity in its place
if (index != lastElementIndex) {
// Debug.Log(String.Format("Trying to access map[{0}, {1}][{2}]", regionX, regionY, index));
// Debug.Log(String.Format("Map length: {0}", map[regionX, regionY].Count ));
map[regionX, regionY][index] = map[regionX, regionY][lastElementIndex];
map[regionX, regionY][index].mapIndex = e.mapIndex;
}
// Remove last entity from the list
map[regionX, regionY].RemoveAt (lastElementIndex);
numEntities--;
}
|
it seems, everything stop working, only one bonney and can't move or do anything at all.
The text was updated successfully, but these errors were encountered: