Forums » Community Projects

my addon dump

«1234567»
Feb 10, 2008 yodaofborg link
Well, it doesn't constantly turbo when 500m away from stuff now, it taps turbo for like 0.5 seconds every second >.>
Feb 10, 2008 mr_spuck link
it needs an infiniboost ship! well, not need, but you won't go very fast without one!
Feb 11, 2008 yodaofborg link
Errrm, I was in Hog Mk2... Or maybe it was a Mk3, errm, I dunno, I'll try again :P
Mar 21, 2008 mr_spuck link
http://kitchen.nfshost.com/ven/plugins/files/telnetterm.zip

A telnet client with a more or less vt100/ansi compatible frontend.
It's enough to run a lot of console programs. I tried nethack, emacs, top and couple of others. The ui is petty sluggish cause each cell is a separate display element. That's the only way I could make fixed width text work without having it look like arse.

start it with /telnetterm

possible issues:
A couple of of control codes are missing and some may not be working correctly.
Color support is limited to foreground colors.
I had to hardcode modifiers, cause I couldn't find the definition for them. So they may only work on linux.
Some key combos may not work.
I didn't try it under windows yet. It's possible that my tcpsock variant has that blocking problem.
Applications that use line drawing characters look funky. Charset switching isn't implemented yet.

It's really pretty slow, maybe it's better on a more modern computer than mine. It's probably possible to improve that a bit. I've played around with a few alternative frontends but they don't look as nice.
Mar 24, 2008 mr_spuck link
http://kitchen.nfshost.com/ven/plugins/files/navmapui.zip

Adds a list of navroutes and some buttons to interact with them to the navigation windows.

New routes can be created by plotting one and clicking on Save.
Routes can be deleted with the Del button. That doesn't actually delete them it just removes them from the list. Deleted routes can still be used with "/navroute load name" or by entering them into the text field and hitting Plot.
The Suggest button tries to find a route in the route list that has the same starting and end point as the currently plotted one.
The idea was to pick a destination sector then click Suggest and it will find a route from the list. In it's current form that thing isn't all that useful, possibly only if there are lots of badly named routes, usually it's faster to just pick the right one from the list. It also doesn't work correctly with routes that don't cross systems at the moment. Not sure if I'll keep it around.

Plot plots the route in the entry field.

The script maintains its own list of routes. The original ones can be imported with the /navmapui_sync command. It's a seriously ugly hack, but I can't think of a better way to get those routes. It only has to be done once.. new routes are imported automatically.
Mar 25, 2008 mr_spuck link
okay!
Got rid of the Suggest button the way it worked it was just pointless.
Instead I'm displaying the start and end of the route in the list. Routes imported with /navmapui_sync won't show their starting location. Navroutes normally don't save that, the best I could get would be the first jump but that'd be inconsistent.

It also actually saves when clicking Save now!

edit: and I made a dumb mistake!
edit: fixed!
Mar 31, 2008 mr_spuck link
okay!
dullbot now contains a java version of robotsever called jrobotserver.jar. It should work identical to the lua version but may be a bit more portable.

It can be launched with java -jar jrobotserver.jar or one of the following scripts.
for unix likes:
jrobotserver.sh - default settings
jrobotserver-ht.sh - run with higher tolerances

for windows:
jrobotserver.bat - default settings
jrobotserver-ht.bat - run with higher tolerances

The -ht scripts may be needed under windows if the bot keeps turning in circles instead of going to exit points.

It's also possible to launch it by double clicking on the jar file under windows, but I'd suggest against that since it will make it run in the background, which makes stopping a bit awkward.

The bot now disables friendly and station radar blibs while it's running. That should reduce the risk of false positives while looking for exit points. Especially with the -ht scripts it liked to chase down other ships instead of the exit point.
To tell it not to disable blibs use the "blibs" keyword.
Apr 30, 2008 mr_spuck link
A bunch of small things that bugged me forever but I couldn't be arsed to do till now.

http://home.arcor.de/famscheffler/ven/confirmhome.zip

I keep pressing the set home button instead of launch while halfway across the universe. This adds a confirmation dialog to it.

http://kitchen.nfshost.com/ven/plugins/files/proxyhack.zip

When pressing tab while the nearby ship list is open the proxy distance entry gets focused which eats the toggle nearby key. The only way to close it in that case is to press tab again or grab the mouse. That's seriously distracting if it happens during combat.
This makes the toggle key work even if the entry is focused. Won't work if the toggle key is a number key but I guess that's rare.
I thought about just removing that entry altogether or making it insensitive cause I never change the distance anyway.. but that has other issues.

http://kitchen.nfshost.com/ven/plugins/files/mouselookincaps.zip

Controlling cap ship turrets with a joystick sucks. So I have to switch on mouse look if I want use one and back off after I leave the ship, which is annoying cause I have to grab my keyboard in both cases.
This automatically switches on mouse look on entering a cap ship and back off when leaving.

edit:
oh right and I've limited the size of navroute names in the navmapui thingy. Long names tended to wreck the station interface a bit. I'll fix that properly ..eventually.
Apr 30, 2008 blacknet link
Mr Spuck, Mind telling us how you are able to get a list of lua functions from in VO?
Apr 30, 2008 mr_spuck link
yes
May 01, 2008 drazed link
I'd guess using printtable... since functions (and everything else) in lua are stored in tables.

=)
May 16, 2008 Aramarth link
Can enterleave be modified to print strike force, but not other, bots that enter/leave the sector?
May 16, 2008 mr_spuck link
uh ... I could add rules based on patterns or something that override the normal ones.
May 16, 2008 mr_spuck link
ok ..done. I've tidied the thing up a bit while I was at it. I hope that didn't mess anything up.

define a patterns with /enterleave_pattern "pattern1" "pattern2" ..

the patterns are fed directly into luas pattern matching thingy via string.match. The pattern syntax is defined here:
http://www.lua.org/manual/5.0/manual.html#pm

Enclose a pattern in quotes if it contains spaces.

If the command is used without arguments all patterns are cleared

you'd want something like this (^ means start of string):
/enterleave_pattern "^*Strike Force " "^*Aerna Seeker "

patterns have priority over notify mode.. so it will even work when notification is disabled.
May 17, 2008 Aramarth link
TY spuck.
May 25, 2008 ufoman link
Could you fix up apcontrol to work with 1.8.18? It cannot find players/mpd.lua in my case...
May 25, 2008 mr_spuck link
should work now.
I had that fixed yesterday but didn't get around to upload it.
Jun 12, 2008 mr_spuck link
http://kitchen.nfshost.com/ven/plugins/files/treemissionlist.zip

A tree like version of the mission board.

If there are multiple missions with the same title they are grouped together, if there's only one it will be lumped into misc.

Groups can be expanded and collapsed by double clicking on the group title. Tree state is saved throughout the session.

The initial state can be configured with the treemissionlist_mode command. It accepts a number as parameter, which can be one of:
0 = expand all groups
1 = collapse all groups
2 = collapse all except Misc

It probably has a bit more overhead than the normal list but it's not very noticeable here. I think there may be some ways to speed it up.

some other random stuff:
changed things around in enterleave to make the code a bit more readable. no functionality changed.
increased timeout and improved error handling in racecartool.
dullbot won't hide the storm exit point now if blibs is not set..
Jun 13, 2008 blacknet link
I like this last one, it's super good stuff you did. keep up the good work.
Jun 14, 2008 mr_spuck link
bleh