hakanuzunoglu / twf-dash Goto Github PK
View Code? Open in Web Editor NEWTWF Dashboard Ecosystem. A family of 8 feature-packed non-replica dashboards custom made for different use cases that will probably make you race faster and safer.
TWF Dashboard Ecosystem. A family of 8 feature-packed non-replica dashboards custom made for different use cases that will probably make you race faster and safer.
How do I change triggers C and D in the TWF-LAPTIMER dashboard?
I need compatibility to change fuel information with other dashes that use C trigger and in your dashboard uses D trigger.
I changed in the TWD-PURE RACE dashboard, but I can't see how to do with LAPTIMER dashboard.
Many thanks mate!
I think choosing lap review should only appear when practice and qualify.
The reason i think this is it give so much informations and can't use this in race
I have modified your widget Fx by using the "Lovely dashboard script" as :
const json_settings = readtextfile('./JavascriptExtensions/Lovely-Dashboard_settings.json')
const settings = JSON.parse(json_settings);
if ( !settings ) {
lapReview = 1
lapReviewDelay = 5000
} else {
lapReview = settings.lapReview
lapReviewDelay = settings.lapReviewDelay
}
if ( $prop('DataCorePlugin.GameData.CompletedLaps') > 1 && $prop('DataCorePlugin.GameRawData.Graphics.iCurrentTime') < lapReviewDelay && $prop('DataCorePlugin.GameRawData.Graphics.iCurrentTime') != 0 ) {
if ( lapReview == 2) {
// Always On
return 1
} else if (lapReview == 1) {
// Quali Only
if (
$prop('DataCorePlugin.GameData.SessionTypeName')=='QUALIFY' ||
$prop('DataCorePlugin.GameData.SessionTypeName')=='PRACTICE'
) {
return 1
} else {
return 0
}
} else {
// Always Off
return 0
}
} else {
return 0
}
Not sure all the script is needed but it works fine !
Thanks
First of all: Thanks a lot for this brilliant Dash! Thumbs up! :)
In the latest version 2.2.6 I see this error message:
TWF 2.2.6 throws this error message:
[2023-05-13 07:41:51,309] ERROR - Dashtemplates\TWF DASH\TWF DASH.djson, HELP, OverlayTriggerExpression : Expression (JS) const helpers = readtextfile('./JavascriptExtensions/TWF_DASH_HELPER.js')
if (helpers) {
return 0
} else {
return 1
} has generated an error (Jint.Runtime.JavaScriptException: Identifier 'skipRendering' has already been declared ---> Jint.Runtime.JavaScriptException+JavaScriptErrorWrapperException: Identifier 'skipRendering' has already been declared
--- End of inner exception stack trace ---
at Jint.Runtime.ExceptionHelper.ThrowSyntaxError(Realm realm, String message)
at Jint.Engine.GlobalDeclarationInstantiation(Script script, GlobalEnvironmentRecord env)
at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord)
at Jint.Engine.<>cDisplayClass78_0.b0()
at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback)
at Jint.Engine.Execute(Script script)
at Jint.Engine.Execute(String code, String source, ParserOptions parserOptions)
at Jint.Engine.Execute(String code, String source)
at SimHubWPF.JintEngine.Execute(String v)
at SimHub.Plugins.OutputPlugins.Dash.TemplatingCommon.NCalcEngineBase.LoadJavascriptExpression(ExpressionValue value)
Simhub Version is up to date: 8.3.10 and TWF_DASH_HELPER.js and TWF_DASH_CONFIG.json are available in SimHub\JavascriptExtensions folder.
Any clue what is wrong?
When enabling :
"contextual_damage":1,
"contextual_damage_tip": "Auto display a damage overlay in main MFD if your car receives damage. 1: Yes, 0: No",
The car always appear at left side without accident or damages on the car, maybe ACC is the script is not optimised for ACC.
I disable this option to navigate manually to this tab when needed.
First of all congratulations for the great job you have done with the dashboard. Tell you a couple of things that I see that can improve the dashboard.
Deploy overtake settings not available for super formula
I would like to use your TWF DASH WIDE, but I can't get it to change the right and left mfd's. I have tried touching them, I have set both a global and device specific button to switch them, but nothing works. However, I can change the fuel widget in the bottom right. I have tried the light dash and that works fine.
thanks,
Rick
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.