Search found 7 matches

by n.secco
Mon Jun 26, 2023 3:06 pm
Forum: Vensim
Topic: Which is the purpose of the _GAME function
Replies: 5
Views: 3329

Re: Which is the purpose of the _GAME function

I solved the problem in 2 steps:
1) Commenting the lines using the _GAME function.
2) Dividing my input by 100.
I divided my inputs by 100 because actually they aren't absolute values, but percentages, so they should be between 0 and 1, not 0 and 100.
by n.secco
Thu Jun 22, 2023 8:26 am
Forum: Vensim
Topic: Which is the purpose of the _GAME function
Replies: 5
Views: 3329

Re: Which is the purpose of the _GAME function

Tomfid I just tried to comment the lines where The _GAME function is used but the result has been that some variables have acquired the value -nan(ind). Instead they should be double.
by n.secco
Tue Jun 20, 2023 3:33 pm
Forum: Vensim
Topic: Which is the purpose of the _GAME function
Replies: 5
Views: 3329

Which is the purpose of the _GAME function

Hi everyone. Using sdeverywhere I have generated the C code of my Vensim model using the following command: sde build mymodel.mdl --spec mymodel.json Then I have noticed that in the generated "vensim.h" file there is a macro defined like this: #define _GAME(x) (x) It simply returns the val...
by n.secco
Mon Jun 12, 2023 7:18 am
Forum: Vensim
Topic: How can I turn an MDL or a VPMX file into a C/C++ file
Replies: 6
Views: 3051

Re: How can I turn an MDL or a VPMX file into a C/C++ file

Tomfid I can't use Vensim DSS because I can only use free software
by n.secco
Thu Jun 08, 2023 1:37 pm
Forum: Vensim
Topic: How can I turn an MDL or a VPMX file into a C/C++ file
Replies: 6
Views: 3051

Re: How can I turn an MDL or a VPMX file into a C/C++ file

Yes we want to make a web application, more specifically a videogame, but we want to only use free software, that is why Forio and Vensim DSS are not viable options. So the idea is to convert the model into C/C++ and insert it into Unreal Engine that is based on C++ and is good for videogames. So fa...
by n.secco
Thu Jun 08, 2023 7:12 am
Forum: Vensim
Topic: How can I turn an MDL or a VPMX file into a C/C++ file
Replies: 6
Views: 3051

How can I turn an MDL or a VPMX file into a C/C++ file

I have been given an .mdl file and a .vpmx file, and I have to turn one of them into a C/C++ equivalent file. Which is the best way to do that? Is it using sdverywhere or is there a better way? Because sdeverywhere gives me some errors...
by n.secco
Thu Apr 27, 2023 7:29 am
Forum: Vensim
Topic: I can't set Emscripten path in Vensim
Replies: 1
Views: 1377

I can't set Emscripten path in Vensim

Hi everyone. I want to use Emscripten with Vensim, because I want to publish to the web. According to the official guide, if you click Tools->Options you end up in a modal containing the Startup tab in which you can set the Emscripten path. But I end up in this modal which doesn't give the possibili...