Open Macelot opened 9 years ago
Oh. You did send me the image :) I'll check later, I'm on my phone now. As to coordinates, you need to set something, it just doesn't matter what. If you make up some values, your coordinates may be wrong, but all siafu calculations are done over pixels and don't use chords. Cool map! :) On Oct 13, 2015 23:53, "Macelot" notifications@github.com wrote:
Hello. Thank you for Siafu simulator, it is a great job! I am using Siafu, to make simulations. I developed based on the example Liemen. I'm having a problem during the simulation, I'm reading the documentation of Gradient.java classes, Agent.java, Place.java and World.java. About config.xml file, I'm not sure I need to put information about latitude and longitude, you can tell me if you really need? The error I get is: Exception in thread "Simulation thread" java.lang.ArrayIndexOutOfBoundsException: 753
at de.nec.nle.siafu.model.Gradient.distanceFrom (Gradient.java:338) at de.nec.nle.siafu.model.Place.distanceFrom (Place.java:403) at de.nec.nle.siafu.leimen.AgentModel.goWork (AgentModel.java:367) at de.nec.nle.siafu.leimen.AgentModel.doIteration (AgentModel.java:167) at de.nec.nle.siafu.control.Simulation.run (Simulation.java:219) at java.lang.Thread.run (Thread.java:744)
The files I'm using are attached, if you can inform me what I did wrong, I am very grateful.
[image: background] https://cloud.githubusercontent.com/assets/15115139/10470470/e5b7c970-71e3-11e5-9a35-e3d286af0414.png [image: walls] https://cloud.githubusercontent.com/assets/15115139/10470471/e6a00e4c-71e3-11e5-97f9-01360a67fd66.png [image: crimerate] https://cloud.githubusercontent.com/assets/15115139/10470473/e7dc68d2-71e3-11e5-96b8-3f0b5b30b779.png [image: entertainmentarea] https://cloud.githubusercontent.com/assets/15115139/10470474/e8fbf390-71e3-11e5-8a37-c9ce2ddcc5dc.png [image: homearea] https://cloud.githubusercontent.com/assets/15115139/10470475/e9f19250-71e3-11e5-9664-e89e1f4ad9cd.png [image: hotspotcover] https://cloud.githubusercontent.com/assets/15115139/10470476/ead2207c-71e3-11e5-9896-2dea53ebcc36.png [image: officearea] https://cloud.githubusercontent.com/assets/15115139/10470482/ebea5c2c-71e3-11e5-88ad-a85144d3af1e.png [image: temperature] https://cloud.githubusercontent.com/assets/15115139/10470484/ecbf4522-71e3-11e5-957c-3197bcb0a7a2.png [image: entertainment] https://cloud.githubusercontent.com/assets/15115139/10470512/1ccdacd6-71e4-11e5-9e93-9ec11fc38426.png [image: homes] https://cloud.githubusercontent.com/assets/15115139/10470513/1cd0ec0c-71e4-11e5-9a43-c1d45ff9bcf9.png [image: offices] https://cloud.githubusercontent.com/assets/15115139/10470514/1cd4b508-71e4-11e5-93fe-e9a90c1bcd2b.png
— Reply to this email directly or view it on GitHub https://github.com/miquelmartin/Siafu/issues/8.
That wall map looks alright to me. Are you sure it's named right? Care to send me a zip of your whole resources folder with the config and png's in it?
On Fri, Oct 16, 2015 at 10:00 AM, Miquel Martin me@miquelmartin.org wrote:
Oh. You did send me the image :) I'll check later, I'm on my phone now. As to coordinates, you need to set something, it just doesn't matter what. If you make up some values, your coordinates may be wrong, but all siafu calculations are done over pixels and don't use chords. Cool map! :) On Oct 13, 2015 23:53, "Macelot" notifications@github.com wrote:
Hello. Thank you for Siafu simulator, it is a great job! I am using Siafu, to make simulations. I developed based on the example Liemen. I'm having a problem during the simulation, I'm reading the documentation of Gradient.java classes, Agent.java, Place.java and World.java. About config.xml file, I'm not sure I need to put information about latitude and longitude, you can tell me if you really need? The error I get is: Exception in thread "Simulation thread" java.lang.ArrayIndexOutOfBoundsException: 753
at de.nec.nle.siafu.model.Gradient.distanceFrom (Gradient.java:338) at de.nec.nle.siafu.model.Place.distanceFrom (Place.java:403) at de.nec.nle.siafu.leimen.AgentModel.goWork (AgentModel.java:367) at de.nec.nle.siafu.leimen.AgentModel.doIteration (AgentModel.java:167) at de.nec.nle.siafu.control.Simulation.run (Simulation.java:219) at java.lang.Thread.run (Thread.java:744)
The files I'm using are attached, if you can inform me what I did wrong, I am very grateful.
[image: background] https://cloud.githubusercontent.com/assets/15115139/10470470/e5b7c970-71e3-11e5-9a35-e3d286af0414.png [image: walls] https://cloud.githubusercontent.com/assets/15115139/10470471/e6a00e4c-71e3-11e5-97f9-01360a67fd66.png [image: crimerate] https://cloud.githubusercontent.com/assets/15115139/10470473/e7dc68d2-71e3-11e5-96b8-3f0b5b30b779.png [image: entertainmentarea] https://cloud.githubusercontent.com/assets/15115139/10470474/e8fbf390-71e3-11e5-8a37-c9ce2ddcc5dc.png [image: homearea] https://cloud.githubusercontent.com/assets/15115139/10470475/e9f19250-71e3-11e5-9664-e89e1f4ad9cd.png [image: hotspotcover] https://cloud.githubusercontent.com/assets/15115139/10470476/ead2207c-71e3-11e5-9896-2dea53ebcc36.png [image: officearea] https://cloud.githubusercontent.com/assets/15115139/10470482/ebea5c2c-71e3-11e5-88ad-a85144d3af1e.png [image: temperature] https://cloud.githubusercontent.com/assets/15115139/10470484/ecbf4522-71e3-11e5-957c-3197bcb0a7a2.png [image: entertainment] https://cloud.githubusercontent.com/assets/15115139/10470512/1ccdacd6-71e4-11e5-9e93-9ec11fc38426.png [image: homes] https://cloud.githubusercontent.com/assets/15115139/10470513/1cd0ec0c-71e4-11e5-9a43-c1d45ff9bcf9.png [image: offices] https://cloud.githubusercontent.com/assets/15115139/10470514/1cd4b508-71e4-11e5-93fe-e9a90c1bcd2b.png
— Reply to this email directly or view it on GitHub https://github.com/miquelmartin/Siafu/issues/8.
Miquel Martin http://miquelmartin.org
I'm sorry, but I can send by private message, because this page does not accept zip files?
Hello. Thank you for Siafu simulator, it is a great job! I am using Siafu, to make simulations. I developed based on the example Liemen. I'm having a problem during the simulation, I'm reading the documentation of Gradient.java classes, Agent.java, Place.java and World.java. About config.xml file, I'm not sure I need to put information about latitude and longitude, you can tell me if you really need? The error I get is: Exception in thread "Simulation thread" java.lang.ArrayIndexOutOfBoundsException: 753
at de.nec.nle.siafu.model.Gradient.distanceFrom (Gradient.java:338) at de.nec.nle.siafu.model.Place.distanceFrom (Place.java:403) at de.nec.nle.siafu.leimen.AgentModel.goWork (AgentModel.java:367) at de.nec.nle.siafu.leimen.AgentModel.doIteration (AgentModel.java:167) at de.nec.nle.siafu.control.Simulation.run (Simulation.java:219) at java.lang.Thread.run (Thread.java:744)
The files I'm using are attached, if you can inform me what I did wrong, I am very grateful.