I think the easiest way to accomplish what you’re trying to do is to modify this block of code <https://github.com/NetLogo/Galapagos/blob/master/app/controllers/CompilerService.scala#L159-L192>. For example, if you create a JavaScript file in your local repository at |/public/javascripts/apples.js| (or create a CoffeeScript file at |/app/assets/javascripts/apples.coffee|), and then add a line in this file between lines 185 and 186 that says |"javascripts/apples.js"|, the generated standalone pages will include the code from your |apples.js| file.

On 4/26/2015 12:12 AM, Oscar Martinez wrote:

Hi,

I have been investigating about Galapagos/Tortoise, because my idea it's to connect two different session of Tortoise through Web Sockets. By the moment, I have gotten take a pre-compiled model and modify it to have two different sessions using NodeJS. I also have a local intance of Galapagos, running and generating savable JS tortoise models.

The new step in my project is to modified the JS code generated by Galapagos to add my custom code, automatically. But, I haven't found where the .nlogo code is compiled. I have checked the scala files, and I pretty sure it's near of <models.ModelCollectionCompiler> in line 36 <CompiledModel.fromNlogoContents(contents).map(ModelSaver(_))>, but I haven't understand exactly what's next.

Kind regards,
--
You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

​

--
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to