Closed gandie closed 4 years ago
Thanks for the report! Can you please tell me which file and which line causes the error or send a screenshot of the error message?
Well, i was able to get arround these errors by compiling all files in the correct order. I suggest you mention this in the README so hamster-noobs like me can play with your toys, too. But i encountered more problems afterwards:
java.policy
file in order to avoid this exception on reading my terrain file. I had help from these colleaguesArrayIndexOutOfBoundsException
in FileReader
, line 48 - inside the loop building the result array. After starring at your code for a minute or two i switched indexes when assigning result:if(strings[j] != null) {
//result[i][j] = strings[j];
result[j][i] = strings[j];
}
Now the hamster is finally running, but i think i broke something because in the end it does not stand on the grain field :laughing:
Thanks for the reply!
The security exception is caused by the Hamster Simulator. In order to give the Hamster Simulator access to files you have to edit the first line in the hamster.properties
file and set security=false
. I will add that part to the README of the repo.
The ArrayIndexOutOfBoundsException
is a known bug which i‘m currently working to fix asap. I will commit a fix as soon as it‘s ready.
I just committed the new version which hopefully fixes your problems. If you try it out, please let me know if it worked!
Well after pulling latest master, recompiling and running, the hamster still does not reach the korn in the end. Seems like an off-by-one error or something because everything works well until the latest step which seems to always go upwards. This well even cause a WallInFrontException
if the korn is placed in the first row of terrain.
I noticed that issue too. I will open a new issue in this repo and refer to this one.
As the original problem has been solved this one can be closed now :rocket:
I am very curious to see this working but i need held to get it running.
I downloaded the Hamster Simulator thingy and started it:
Then i moved this repo into the
Programme
folder, created a terrain file with one grain and adjusted PATH as README explains and tried to compile and run. Compiler keeps telling meCannot find symbol
, so tried to addpackage
statements like documentation found here says. Still not able to compile and run :crying_cat_face: . Please help.