I am not able to get the script editor to work properly.
I can make changes and write to the controller, but the println() function never displays any results in the editor window after polling the log. Also if I copy and paste the log into wordpad the results are in a foreign language Chinese I think. Anyone know how to fix this?
Issues with editor
Issues with editor
Thanks,
Anastos
Anastos
Hi,
Try using a generic editor like Notepad++ for editing your scripts outside of the window.
To see the results of your println() you have to enable 'poll logging' to see the results in the window. You'll also see any errors your script might have.
See this wiki page for more info: https://wiki.autosportlabs.com/RaceCapt ... leshooting
Thanks,
Try using a generic editor like Notepad++ for editing your scripts outside of the window.
To see the results of your println() you have to enable 'poll logging' to see the results in the window. You'll also see any errors your script might have.
See this wiki page for more info: https://wiki.autosportlabs.com/RaceCapt ... leshooting
Thanks,
Hi Brent,
I have been checking the poll log box, and have tried all the various options i.e. error, trace, debug etc. I have used the clear screen and rerun buttons, not once have I been able to get println() to work. How could I use a separate program like notepad++ to view the script in action. How do I resolve the foreign language in the log? By the way my application log displays in Chinese also.
I have been checking the poll log box, and have tried all the various options i.e. error, trace, debug etc. I have used the clear screen and rerun buttons, not once have I been able to get println() to work. How could I use a separate program like notepad++ to view the script in action. How do I resolve the foreign language in the log? By the way my application log displays in Chinese also.
Thanks,
Anastos
Anastos
Hi-
It could be that you have a bug in your script. Can you paste your script here, or your entire config file as an attachment to a reply?
We also have a beta 1.10.0 app available for testing, which should fix the garbage characters for the copy-to-clipboard issue: viewtopic.php?t=5434
It could be that you have a bug in your script. Can you paste your script here, or your entire config file as an attachment to a reply?
We also have a beta 1.10.0 app available for testing, which should fix the garbage characters for the copy-to-clipboard issue: viewtopic.php?t=5434
Here is the rcp file as it is being used. I am trying to incorporate additional features like "start logging above 10mph, gear calculations etc." Those features are not in the attached script. I can not get the script to work and when trying to debug I can not get the editor to provide feedback by way of println()
- Attachments
-
- BMW 325.txt
- (22.89 KiB) Downloaded 85 times
Thanks,
Anastos
Anastos
Hi,
I looked at your script - no where in your script you have any println statements - that's why you're not seeing any messages in the log window below.
An example of seeing a println working is by temporarily replacing your entire script with this simple one:
function onTick()
println("hello")
end
Once you press the "poll log" box then you will see the output in the window.
I looked at your script - no where in your script you have any println statements - that's why you're not seeing any messages in the log window below.
An example of seeing a println working is by temporarily replacing your entire script with this simple one:
function onTick()
println("hello")
end
Once you press the "poll log" box then you will see the output in the window.
- Attachments
-
- Screenshot from 2017-06-07 07-47-12.png (67.93 KiB) Viewed 1668 times
Thanks Brent I'll try that. I realize there weren't any println() statements in the script I sent. I removed them when they did not do anything. I was hoping maybe someone might see a problem in what was sent that would explain the foreign language issue or perhaps an issue that would prevent println() function.
Thanks,
Anastos
Anastos
Thanks. Could you report in the beta testing thread so we can track it there?
viewtopic.php?t=5434
We'll be rolling out a 1.10.1 app update shortly which might have a fix that could address your issue.
Thanks!
viewtopic.php?t=5434
We'll be rolling out a 1.10.1 app update shortly which might have a fix that could address your issue.
Thanks!