Hello Everyone,
We’ve released another update to Epicenter, as well as to the Epicenter.js and Flow.js libraries.
This release of Epicenter focuses on SimLang updates, including a resetDecision
property for variables and a few bug fixes for mathematical and time-based SimLang functions when dealing with negative parameters.
We’ve also added a Time API to make it easy to get the server time. This is especially useful if you’re trying to coordinate between players in a multiplayer game.
This release of Flow.js includes a new attribute, data-f-repeat
, which allows you to loop over a referenced variable, and a new add-on component, Flow Inspector. Flow Inspector is a great way to help you understand the connection between your UI and your model. It can also help to debug problems in your UI, whether you’re a front-end developer or a modeler.
Complete release notes are below. As always, Epicenter release notes for this and other releases are available at:
https://forio.com/epicenter/docs/public/releases/
Happy New Year from your friends at Forio!
WILL
##v1.36 Release Notes
Release Date: 1/10/2015
###New Features
-
A new SimLang model property,
resetDecision
, is available in the model configuration file for your SimLang models. When this property is present and set totrue
, SimLang decisions are recalculated at each time step. If not specified, the property defaults tofalse
and SimLang decisions are not recalculated. See more about SimLang model configuration files. -
A new RESTful Time API allows you to retrieve the current server time. For example, this may be useful if you are trying to coordinate in a multiplayer world.
###Updates and Improvements
- Release of Epicenter.js 1.6.2. The Epicenter.js JavaScript library has been updated to version 1.6.2. This minor release includes some internal updates and support for the new Flow Inspector. Full release notes available on GitHub.
-
Release of Flow.js 0.10.0. The Flow.js JavaScript library has been updated to version 0.10.0. Full release notes available on GitHub. This minor release includes two new features:
- A new
data-f-repeat
attribute that allows you to automatically loop over a referenced variable. The most common use case is in time-based models, like those written in SimLang or Vensim, when you want to report the value of the variable at every time step so far. Thedata-f-repeat
attribute automatically repeats the DOM element it’s attached to, filling in the value. - A new add-on component of Flow.js, Flow Inspector, that allows you to easily determine which model variables are being used where and in which Flow.js (
data-f-
) attributes in your user interface.
- A new
###Notable Bug Fixes
-
SimLang language fixes. Several of the SimLang Time functions, including
ACCUMPERIOD
,SAMPLE
, andTIMECYCLE
, did not work correctly when the model’sStartTime
property was negative. This has been corrected. Additionally, theMOD
function now works properly with negative dividends. -
Other minor fixes for performance and stability.
-
Other minor improvements to documentation.