Forums » Community Projects

Odometer

Dec 02, 2015 abortretryfail link
I made this one a little over a year ago but just never tidied it up for public release. It does a sloppy job estimating how far you've flown based on your ship's speed and displays that number on your HUD.

You know, so stations can tell how much less to pay you when you resell your ship.

http://www.voupr.com/plugin.php?name=odometer
Dec 02, 2015 Darth Nihilus link
Yay math and plugins and VO
Dec 04, 2015 jordanmorgan14f link
Nice. Now I can time and measure trading routes, and charge X*100m/s......or whatever.
Dec 07, 2015 abortretryfail link
Huh, I didn't think about that. I guess you could extend this as a taxi meter or bill by the mile for trade hauls.

Have fun!
Dec 15, 2015 Hule. link
plugins/odometer/main.lua:67: attempt to index global 'test' (a nil value)
stack traceback:
plugins/odometer/main.lua:67: in function 'show_display'
plugins/odometer/main.lua:80: in function 'init'
plugins/odometer/main.lua:83: in function 'f'
vo/vo.lua:1001: in function 'sb'
vo/vo.lua:1199: in main chunk

plugins/odometer/main.lua:73: attempt to index global 'test' (a nil value)
stack traceback:
plugins/odometer/main.lua:73: in function 'show_display'
plugins/odometer/main.lua:80: in function 'init'
plugins/odometer/main.lua:83: in function 'f'
vo/vo.lua:1001: in function 'sb'
vo/vo.lua:1199: in main chunkUnable to execute vo/vo.lua!
cannot open plugins/odometer/vo/if_fontsize.lua: No such file or directory

vo/if_hud.lua:1446: cannot open plugins/odometer/vo/if_fontsize.lua: No such file or directory
stack traceback:
[C]: in function 'error'
vo/vo.lua:907: in function 'dofile'
vo/if_hud.lua:1446: in function 'Reload'
vo/if_hud.lua:466: in function 'func'
vo/vo_event.lua:28: in function <vo/vo_event.lua:26>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:108: in function <vo/vo_event.lua:103>

plugins/odometer/main.lua:87: attempt to index local 'args' (a nil value)
stack traceback:
plugins/odometer/main.lua:87: in function '?'
vo/vo_cmds.lua:12: in function 'func'
vo/vo_event.lua:63: in function <vo/vo_event.lua:61>
[C]: in function 'xpcall'
vo/vo_event.lua:87: in function '_do_event'
vo/vo_event.lua:107: in function <vo/vo_event.lua:103>
[C]: in function 'GKProcessCommand'
vo/if_chatlog.lua:95: in function <vo/if_chatlog.lua:55>
(tail call): ?
Dec 26, 2015 abortretryfail link
1.1 is up. Removed those test.print()'s Sorry about that.

How'd you get that if_hud.lua error to come up? Do you have any other plugins running?