Page 2 of 2

Re: Option to favorite gear/bikes/helmets

Posted: Fri Jan 19, 2018 2:22 am
by jlv
NoFear345 wrote:Scripting could be something that would allow us to make features with the UI like a favorite option would it not?
Yes. Obviously the scripting system would need to have the functions to implement a UI and I'd have to convert the current UI to use it, but the scripting engine is obvious first step needed. The nice thing is writing that type of code goes way faster in a language like javascript which has automatic memory management vs C where you have to manually allocate and free memory.

Re: Option to favorite gear/bikes/helmets

Posted: Fri Jan 19, 2018 3:01 am
by barrington314
Wheels just wanted the timing tower to work. Now he left us. :(

Re: Option to favorite gear/bikes/helmets

Posted: Fri Jan 19, 2018 10:26 pm
by LKR47
jlv wrote: Yes. Obviously the scripting system would need to have the functions to implement a UI and I'd have to convert the current UI to use it, but the scripting engine is obvious first step needed. The nice thing is writing that type of code goes way faster in a language like javascript which has automatic memory management vs C where you have to manually allocate and free memory.
Just curious, will you release documentation alongside scripting? I absolutely hate JS so a record of available functions and what they do would be really nice. I'd love to write a MXS specific utility that allows code to be written in C# that outputs JS. Might make things a little easier/safer at least for me if JS runs as a standalone like it does in the browser.

Re: Option to favorite gear/bikes/helmets

Posted: Fri Jan 19, 2018 11:35 pm
by Wahlamt
LKR47 wrote:
jlv wrote: Yes. Obviously the scripting system would need to have the functions to implement a UI and I'd have to convert the current UI to use it, but the scripting engine is obvious first step needed. The nice thing is writing that type of code goes way faster in a language like javascript which has automatic memory management vs C where you have to manually allocate and free memory.
Just curious, will you release documentation alongside scripting?
Also with this scripting, would there be documentation over everything accessible within the game?

Re: Option to favorite gear/bikes/helmets

Posted: Sat Jan 20, 2018 1:47 am
by ColtonD719
Wahlamt wrote:Also with this scripting, would there be documentation over everything accessible within the game?
A complete MXS manual would be the greatest thing since the track editor.

Re: Option to favorite gear/bikes/helmets

Posted: Sat Jan 20, 2018 3:22 am
by jlv
barrington314 wrote:Wheels just wanted the timing tower to work. Now he left us. :(
Scripting will definitely be the next thing I... Hey look! A squirrel/online erode!
Wahlamt wrote:Also with this scripting, would there be documentation over everything accessible within the game?
The important stuff will definitely be documented. I'm also sure there will be some things I don't want to expose as public APIs.

Re: Option to favorite gear/bikes/helmets

Posted: Sat Jan 20, 2018 4:17 pm
by AtlasZoor
jlv wrote:
NoFear345 wrote:Scripting could be something that would allow us to make features with the UI like a favorite option would it not?
Yes. Obviously the scripting system would need to have the functions to implement a UI and I'd have to convert the current UI to use it, but the scripting engine is obvious first step needed. The nice thing is writing that type of code goes way faster in a language like javascript which has automatic memory management vs C where you have to manually allocate and free memory.
So does that mean the new UI idea that lars had could be implemented? http://forum.mxsimulator.com/viewtopic. ... 31#p766131

Re: Option to favorite gear/bikes/helmets

Posted: Sun Jan 21, 2018 3:45 am
by jlv
AtlasZoor wrote:So does that mean the new UI idea that lars had could be implemented? http://forum.mxsimulator.com/viewtopic. ... 31#p766131
I'd like it to be skinnable. Not sure where I'd draw the line for what can be changed since ideally you wouldn't want to have to redo stuff every time I add a new setting if you made an alternate UI.

Re: Option to favorite gear/bikes/helmets

Posted: Sun Jan 21, 2018 9:22 pm
by 808
jlv wrote:
AtlasZoor wrote:So does that mean the new UI idea that lars had could be implemented? http://forum.mxsimulator.com/viewtopic. ... 31#p766131
I'd like it to be skinnable. Not sure where I'd draw the line for what can be changed since ideally you wouldn't want to have to redo stuff every time I add a new setting if you made an alternate UI.
With scripting, would having a timer on the finish line statue be something that could happen? Like they do irl?

Re: Option to favorite gear/bikes/helmets

Posted: Mon Jan 22, 2018 2:03 am
by jlv
808 wrote:With scripting, would having a timer on the finish line statue be something that could happen? Like they do irl?
It could potentially do anything. It's all a matter of what APIs are exposed to the scripts.