Kart Racing Pro Official Forum

Mods => Plugins => Topic started by: NOP on July 21, 2013, 09:41:34 PM

Title: AndroidDash
Post by: NOP on July 21, 2013, 09:41:34 PM
Android device and WiFi Network is required to run application. I know this significantly reduces size of target group but as we are in biggest PiBoSo community I hope there will be couple people wanting to help.

This release is simply supposed to check if project work on different types of machines without any issues. Also any feedback regarding installation process would be appreciated.

Download:
http://www.sendspace.pl/file/027e3c2ba0e165d2c85d6ae

Description:
AndroidDash consist of game plugin and android device application. It uses WiFi network to send telemetry data to simple dash displayed over phone screen.

Installation:
1. Download and unpack files.
2. Move 'AndroidDash.dlo' and 'AndroidDash.ini' to 'plugins' folder located inside your Kart Racing Pro installation directory.
3. Install 'AndroidDash.apk'. Probably easiest way is to send program to your gmail account. Using your phone you can open message and use 'install' button.
- It may be required to enable option allowing you to install applications from outside android market
- Application will use port 5000 (for now hardcoded)
4. Start program and press 'get device IP' button (remember to have your phone connected to network).
5. Write assigned IP of your phone in 'AndroidDash.ini' file.
6. Start game and go to track (plugin will send packets only when vehicle is on track).
7. Press 'Start listener' button. If everything works layout buttons should become active.

This is how both dash layouts should look like:

Styled after formula renault 2.0 display layout shows basic vehicle information like: RPM, speed, gear, fuel left and temperatures. There is also LiveSplit that shows difference to your best lap on any point on track.
(http://i.imgur.com/fGJlhRd.jpg)
This layout shows previous lap and sector times. Also it displays difference to best sector and lap time.
(http://i.imgur.com/PoXNKJ4.jpg)
Lap graph can store information about 40 entries allowing you to analyze pace of previous laps and sectors. Graph can also display used setup names so it's possible to check how particular setup affected your times.
(http://i.imgur.com/2KZOmA5.jpg)
(http://i.imgur.com/qcFu4rG.jpg)

Big thanks to dibu for help in initial testing and bug fixing.
Title: Re: AndroidDash
Post by: LauZzZn on July 21, 2013, 09:55:13 PM
any plans for iphone/ipad? cause i only use iphone and ipad .. would love to have this on my idevice!!
Title: Re: AndroidDash
Post by: James Beer on July 21, 2013, 10:01:52 PM
Quote from: LauZzZn on July 21, 2013, 09:55:13 PM
any plans for iphone/ipad? cause i only use iphone and ipad .. would love to have this on my idevice!!

hey lauzzzn at the moment im working with the guys at sinspeed, who are creating support for krp + other piboso titles for i-products , so dont worry it will come
Title: Re: AndroidDash
Post by: Leonardo Ratafia on July 21, 2013, 10:30:25 PM
thank you very much!!! i will try it right now!
here is how it looks on a 7" tablet with android 2.3.1
(http://imageshack.us/a/img268/2958/ltt7.jpg)
it's not centered but it's not bad
Title: Re: AndroidDash
Post by: eralp on July 21, 2013, 10:51:57 PM
oh finally somebody do this

thank you, really
Title: Re: AndroidDash
Post by: Leonardo Ratafia on July 21, 2013, 11:52:17 PM
some suggestions (if possible):

- change between layouts by tapping the screen (dash / times)
- adjust or center to fit bigger screens

Title: Re: AndroidDash
Post by: PiBoSo on July 22, 2013, 01:55:44 AM
Quote from: NOP on July 21, 2013, 09:41:34 PM
Android device and WiFi Network is required to run application. I know this significantly reduces size of target group but as we are in biggest PiBoSo community I hope there will be couple people wanting to help.

This release is simply supposed to check if project work on different types of machines without any issues. Also any feedback regarding installation process would be appreciated.

Big thanks to dibu for help in initial testing and bug fixing.

(http://24.media.tumblr.com/tumblr_man7f4MWCI1qbl3rro1_400.png)

Thank you!
Title: Re: AndroidDash
Post by: prostix on July 22, 2013, 11:25:37 AM
Thats really good but i've an iPod Touch V, when we have an iPod/iPhone version ?
Title: Re: AndroidDash
Post by: laraarsa on July 22, 2013, 11:57:15 AM
Windows Phone support for me please :D
Title: Re: AndroidDash
Post by: prostix on July 22, 2013, 02:39:17 PM
Quote from: laraarsa on July 22, 2013, 11:57:15 AM
Windows Phone support for me please :D

for me too  ;D ;D
Title: Re: AndroidDash
Post by: NOP on July 22, 2013, 03:24:20 PM
Quote from: Leonardo Ratafia on July 21, 2013, 11:52:17 PM
some suggestions (if possible):

- change between layouts by tapping the screen (dash / times)
- adjust or center to fit bigger screens

Thanks for help!

Can you check if this version fixes elements position?
http://www.sendspace.pl/file/0809dd506ea94a39c763e75/androiddash

Changing layouts with screen tapping is also good idea but I will need a bit more time for that.

EDIT:
Small clarification from my side:
iPhone - (closed system that require mac to even start thinking about writing anything) In second post @Intrepid James said that he is making his version.
windows phone - actually is not that bad... but I don't have that phone type and no way to test it.
So for the sake of transparency I think this thread should be only about Android/bugs/ideas.
Title: Re: AndroidDash
Post by: NOP on July 22, 2013, 07:15:56 PM
http://www.sendspace.pl/file/19ed218ccf8c97fa1d23762

- Tapping screen changes layout.
- Fixed layouts initialization.

For now I'm not editing first post because I don't know how stable is this version.
Title: Re: AndroidDash
Post by: PiBoSo on July 22, 2013, 08:43:12 PM
Quote from: NOP on July 22, 2013, 07:15:56 PM
http://www.sendspace.pl/file/19ed218ccf8c97fa1d23762

- Tapping screen changes layout.
- Fixed layouts initialization.

For now I'm not editing first post because I don't know how stable is this version.

Amazing.
A couple remarks:
1) shouldn't the program go back to "Waiting" when going back to pits?
2) it seems that if you change track, the laps and splits are not reset
Title: Re: AndroidDash
Post by: prostix on July 22, 2013, 08:46:17 PM
I'm sorry but i change the folder .dlo and i can't remove this, because i open this with "bloc-notes" and  i don't know to change that.
Can you help me please !
Title: Re: AndroidDash
Post by: NOP on July 22, 2013, 09:42:13 PM
Quote from: PiBoSo on July 22, 2013, 08:43:12 PM
...
1) shouldn't the program go back to "Waiting" when going back to pits?
...
Do you mean that program should exit layout and display main screen?

Quote from: PiBoSo on July 22, 2013, 08:43:12 PM
...
2) it seems that if you change track, the laps and splits are not reset
Thank you! That will be fixed.

Quote from: prostix on July 22, 2013, 08:46:17 PM
I'm sorry but i change the folder .dlo and i can't remove this, because i open this with "bloc-notes" and  i don't know to change that.
Can you help me please !
Could you please rephrase it? Because I don't think I understand you.
You should not try to edit '.dlo' file. Configuration file '.ini'  can be opened with standard windows notepad.
Title: Re: AndroidDash
Post by: prostix on July 22, 2013, 09:46:06 PM
I am sorry I do not care, changed how the file was opened so I would like it back. dlo here
Title: Re: AndroidDash
Post by: dibu on July 22, 2013, 09:52:57 PM
Quote from: prostix on July 22, 2013, 08:46:17 PM
I'm sorry but i change the folder .dlo and i can't remove this, because i open this with "bloc-notes" and  i don't know to change that.
Can you help me please !

Prostix it's really hard to understand what you are trying to say. Maybe repeat it in French language.

Here some hints from what I guess you want to say.
- don't edit AndroidDash.dlo
- only edit AndroidDash.ini and replace '192.168.1.102' with the IP which you see in the Android app (Get Device IP)
- AndroidDash.dlo and AndroidDash.ini have to be copied to your KRP plugins folder.
Title: Re: AndroidDash
Post by: prostix on July 22, 2013, 09:55:39 PM
je voulais dire que j'ai changé comment on ouvrait le fichier en maintenant il est en bloc notes au lieu d'etre en .dlo
et donc comment faire pour le remettre ?
Title: Re: AndroidDash
Post by: dibu on July 22, 2013, 10:07:41 PM
Quote from: PiBoSo on July 22, 2013, 08:43:12 PM
1) shouldn't the program go back to "Waiting" when going back to pits?

Why? Lock Screen countdown will start and you have to touch 'Start Listener' again.

Quote from: PiBoSo on July 22, 2013, 08:43:12 PM
2) it seems that if you change track, the laps and splits are not reset

Yes, the reset should also work when changing from e.g. practice to qualify session.

Title: Re: AndroidDash
Post by: dibu on July 22, 2013, 10:13:40 PM
Quote from: prostix on July 22, 2013, 09:55:39 PM
je voulais dire que j'ai changé comment on ouvrait le fichier en maintenant il est en bloc notes au lieu d'etre en .dlo
et donc comment faire pour le remettre ?

Delete all AndroidDash.* files from your plugins folder. Download the zip file again and start over. You should only edit the AndroidDash.ini file like I wrote in my last post.
Title: Re: AndroidDash
Post by: prostix on July 22, 2013, 10:19:40 PM
i download the ZIP file again but there is the same thing !  :( :(

i have the folder with the Notepad and i haven't the folder with .dlo, the other !

i want to change that
Title: Re: AndroidDash
Post by: dibu on July 22, 2013, 10:41:11 PM
Your plugins folder should look like this:

C:\...\Kart Racing Pro\plugins\AndroidDash.ini
C:\...\Kart Racing Pro\plugins\AndroidDash.dlo
C:\...\Kart Racing Pro\plugins\telemetry.dlo

Did you assign the .dlo extention with notepad (always open with notepad)?  Then you you should delete the dlo assignement in the folder options of windows explorer.

Title: Re: AndroidDash
Post by: prostix on July 22, 2013, 10:50:12 PM
Yes
Title: Re: AndroidDash
Post by: dibu on July 22, 2013, 10:50:48 PM
Quote from: NOP on July 22, 2013, 07:15:56 PM
http://www.sendspace.pl/file/19ed218ccf8c97fa1d23762

- Tapping screen changes layout.
- Fixed layouts initialization.

For now I'm not editing first post because I don't know how stable is this version.

I tested your latest android version and so far it seems to be stable. Nice feature to switch between
displays. The app seems to run independent from the android version. Leonardo Ratafia reported v2.3.1 and
I use v4.1.1

One little thing I'm still missing. The time difference from advancedhud mini display. How about
integrating it in the formula renault 2.0 screen?

Despite some problems when changing sessions the advancedhud mini display is still my most loved tool :).

Title: Re: AndroidDash
Post by: NOP on July 26, 2013, 04:09:32 PM
http://www.sendspace.pl/file/027e3c2ba0e165d2c85d6ae

- Due to massive demand (one person  :P ) live split was added (it was taken directly from newest version or WRS AdvancedHUD).
- Lap times should now reset when going to track.
- New layout (lap times graph) was added.
- Added option for automatic switch to 'lap graph' layout when going to garage.
- First version of settings menu added.
- Some inner changes and bug fixes.
- New plugin. (For people that want to test it I want to add that plugin should also work with WRS).
Known issue: settings are not saved.

Don't forget to delete old plugin (.dlo)!

New layout is a bit more complicated but I hope it will be self explanatory. If you ever seen HotLap Event graphs you will probably find this layout to be very familiar. This is because they share a lot of same ideas (and part of code). App simply stores up to 40 lap times and then displays it on screen. That way you can analyze your previous pace. It also allows to show setup name that was used to make laps. So you can check how particular setup affected your speed. There is also simple report that shows best sector and lap times and corresponding setup names. I put some time to stuff it all into phone screen (that's why there is no x axis). But I think it still should look nicely on big ass screens (- looks at @Leonardo Ratafia-  :) ). By default graph will display time within 105% of best time. It can be changed in settings. It obviously won't apply if you want to see times ie from sector and lap time on one screen.
(http://i.imgur.com/2KZOmA5.jpg)
(http://i.imgur.com/qcFu4rG.jpg)
Title: Re: AndroidDash
Post by: dibu on July 26, 2013, 05:12:13 PM
Quote from: NOP on July 26, 2013, 04:09:32 PM
- Due to massive demand (one person  :P ) live split was added ...

Hehe, thank you very massive ;) Perfect work as always. I'm just playing around with it. Now I only have to find a way to fix the phone at my G27.

Title: Re: AndroidDash
Post by: Leonardo Ratafia on July 28, 2013, 05:07:43 PM
 Hi, thanks for all the updates, i will post today how it looks on my 7" tablet
Title: Re: AndroidDash
Post by: Leonardo Ratafia on July 28, 2013, 05:11:27 PM
do i need to install again in my tablet also? or just what it changes is the plugin file?
Title: Re: AndroidDash
Post by: dibu on July 28, 2013, 05:27:06 PM
Yes. Both files have been updated.
Title: Re: AndroidDash
Post by: Leonardo Ratafia on July 28, 2013, 06:56:53 PM
it's has become a great app, is it going to be in the play store or just manual apk install?
this is how it looks now, much better, i love it, thanks for this great app.
(http://img16.imageshack.us/img16/3130/qoi0.jpg)
Title: Re: AndroidDash
Post by: Pentti Hilkuri on July 30, 2013, 10:13:16 AM
Excellent! KRP was the last sim for me not having dash app. And now it's here. Gonna try this asap. Good job NOP!
Title: Re: AndroidDash
Post by: chris tkr on August 05, 2013, 02:49:59 PM
Its fantastic! i love it  ;D
Title: Re: AndroidDash
Post by: rigo77 on September 01, 2013, 12:18:15 PM
This is awesome dude works totally great on Galaxy note and note 2.

Would it be possible to have a display similar to that of SmartyCam or even GT5 where can see break and throttle input? would also be nice to be able to add other parameters like egt or even o2 if thats something that can be emulated hahahaha.

Great job with this app and keep up the awesome work.

Question: Can this app host results or data for more than 1 driver at same time?
Title: Re: AndroidDash
Post by: rich32g on September 08, 2013, 12:13:00 AM
Just tested this on my Nexus 7. Works superb, good job!
Title: Re: AndroidDash
Post by: James Beer on September 08, 2013, 03:03:42 PM
got a android tablet coming next week, will be good to try this out :)
Title: Re: AndroidDash
Post by: maxrod on November 25, 2013, 03:24:16 PM
what ever i do i just can't get this to work i have followed this to the letter i have a samsung tab 3 set up through wifi to my hub with the androiddash and the plugin ini with the same ip.
Title: Re: AndroidDash
Post by: dibu on November 25, 2013, 05:45:32 PM
I've just tested AndroidDash again with Beta10 and it works without problems.

Here again the important configuration steps:
(After installing the app and copying AndroidDash.dlo + AndroidDash.ini to your 'C:\...\Kart Racing Pro\plugins\'  folder)


Mobile device:
- Start AndroidDash at your mobile device
- Press 'Get device IP' and you see something like 192.168.1.32:5000
- Note the IP. In this example: 192.168.1.32


PC:
- Edit AndroidDash.ini (don't touch AndroidDash.dlo). For my example it should look like this when finished:

192.168.1.32
5000

- Make sure that the file is really saved and that you didn't change the extention to AndroidDash.ini.txt because known extentions are hidden in your explorer. (If you have problems to save, run the editor as administrator)
- Start KRP, run testing or race and go 'To Track'


Mobile device:
- Start listener -> should become grayed out and say 'Connected!'
- Pick Layout at the right side, e.g. 'Formula renault 2.0'
Now you should be ready to go.
Title: Re: AndroidDash
Post by: maxrod on November 25, 2013, 07:36:23 PM
Thanks dibu it was the 5000 on the same line as the ip.
Title: Re: AndroidDash
Post by: MuniX on December 01, 2013, 01:59:14 PM
Brilliant work! Thank you so much! :)
Title: Re: AndroidDash
Post by: Vladimir Shestakov on December 15, 2013, 10:28:17 AM
Thank you!
Title: Re: AndroidDash
Post by: fmaisonnave on December 19, 2013, 05:37:15 PM
Hey dibu i think that new overlays would be amazing for the app like mychron4,  unipro, alfano,etc,  but it is a great app, very good job
Title: Re: AndroidDash
Post by: dibu on December 19, 2013, 07:13:51 PM
Quote from: fmaisonnave on December 19, 2013, 05:37:15 PM
Hey dibu i think that new overlays would be amazing for the app like mychron4,  unipro, alfano,etc,  but it is a great app, very good job

All honours go to NOP/Random. He's the author of the app. I was only beta tester.
Title: Re: AndroidDash
Post by: Anamon on June 05, 2014, 01:30:13 PM
This seems cool and I would love getting it to work, but it doesn't seem to want to. It shouldn't matter how the host PC running KRP is connected to the network, right? My PC has an Ethernet connection to the same LAN that my Android phone (Xperia Z1 Compact with Android 4.3) is connected to via WiFi. And in fact when I start an FTP server on my phone, I can connect to it from my PC fine, using the same IP address I configure the plugin with, so there shouldn't be any network issues.

I believe I have everything set up correctly. The plugin files are in the plugins subdirectory, the INI file looks like this:
192.168.1.110
5000

Still, I can never get past the "Waiting" message of the listener. It never manages to establish a connection. Seeing as the last posts here are from a while ago, is it possible that something changed about the plugin interface and it doesn't work with Beta 11 anymore?
Title: Re: AndroidDash
Post by: dennyseven on November 20, 2019, 05:00:03 PM
no longer support?
Title: Re: AndroidDash
Post by: jalox on January 05, 2020, 11:16:23 AM
please can you update your link because of dead download link