Ride Liner's Miscellaneous Tools

View previous topic View next topic Go down

Ride Liner's Miscellaneous Tools

Post by Ride Liner on Fri Dec 30, 2016 2:40 am

Not sure if this thread is in the right place.

RL-Misc-Tools-1.0.zip

Contents:
Macros:
Helps with drawing lines.

Instructions:

  1. Install AutoHotKey
  2. Double click lr-macros.ahk

Default Key BindingAction
V, Ctrl+V, Shift+VRedraw the most recent line
C, Ctrl+C, Shift+CRedraw the second most recent line
X, Ctrl+X, Shift+XRedraw the second most recent line, then the most recent line
Ctrl+FFills a generalized quadrilateral(bounded by the two most recently drawn lines) using a number of lines specified by %FillLineCount%
P, Shift+PDraw a regular polygon with %PolyEdgeCount% edges; the initial point of the last line drawn is the center, while the terminal point is the first vertex
Ctrl+EToggles all macros on or off. While suspended, the script will remember the last two lines drawn prior to suspending
Ctrl+EscExit the script completely


Tips:

  • Most useful with the line tool selected, but there are applications for other tools
  • Hold down a hotkey to rapidly repeat that action
  • Parameters and hotkeys are modifiable by opening lr-macros.ahk in your favorite text editor
  • Results for fill/polygon commands might look odd if you leave line snap on
  • Works in any version of Line Rider (lrjs users may want to rebind the V command to something else)
  • Also works in any other program, so make sure to suspend the script when switching tasks

I have only tested this extensively in LRA, so let me know if you encounter issues using it in your preferred version.
LineCopy Tool:
Copies the last line drawn in a .trk file however many times you want. Modifies the file in-place, so make sure to have a backup. I spent a total of 1 minute making this user friendly and don't care to spend another one, so if you can't figure out how to use this it may be best just to ask me or someone else for assistance.

Instructions:

  1. Compile LineCopy.cpp
  2. Run the output executable in the command line

Note that you will have to manually update the line count near the beginning of the .trk file in order for LRA to load the extra lines. I have found Frhed adequate for this. Little endian, so the bytes will "look backwards" from their typical hex representation. See this post if you are having trouble finding it.

This will not work if the last line is:

  • red, and any red line has a red line multiplier
  • solid, and any line has a zoom trigger
  • snapped
  • a scenery line, and any scenery line has non-default width

If you need any of these (except line snap maybe) you can just change LINE_SIZE and the bounds in increment() appropriately and recompile. Again, refer here.


Last edited by Ride Liner on Fri Dec 30, 2016 4:33 pm; edited 2 times in total

Ride Liner
Line Rider Legend


View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by OTDE on Fri Dec 30, 2016 3:07 am

perfect spot.
this is fanstastic.

_________________
rabid wrote:did I just explain the significance of your own track to you
avatar
OTDE
Administrator

Magic @ Manuals


View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by ScrungleBlumpkus on Fri Dec 30, 2016 5:11 am

Now all I need is an HDMI cable.
Let's get ready bois

_________________
Don't delete your tracks!™  Thumbs Up
avatar
ScrungleBlumpkus
Member

Interior Crocodile Alligator


View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by Sheldon on Sun Jan 01, 2017 8:59 pm

Don't have a chance to chexk right now, but is this mac compatible.
avatar
Sheldon
Line Rider Legend

3rd place in Tournament of Legends

View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by Ride Liner on Sun Jan 01, 2017 9:31 pm

@Sheldon wrote:Don't have a chance to chexk right now, but is this mac compatible.
The macros use AHK which appears to be Windows only. Line copy tool should work on any platform.

Ride Liner
Line Rider Legend


View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by rabid squirrel on Sun Jan 01, 2017 9:55 pm

@Ride Liner wrote:
@Sheldon wrote:Don't have a chance to chexk right now, but is this mac compatible.
The macros use AHK which appears to be Windows only.
damn

_________________
Support My Art
A playlist of my best tracks
To keep up with what I'm up to in the world of Line Rider, follow me:
My Twitter | My Tumblr | My Twitch
(You can also follow my patreon and see all public posts completely for free)
avatar
rabid squirrel
Member

I'm the artsy guy round here

3rd place in Tournament of Legends 4th place in Tournament of Legends

View user profile http://www.benjaminharveydesign.com/

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by JealousCloud on Thu Jan 05, 2017 9:06 pm

Code:
*(int*)(&line[1])+=1;
might function better than the increment function you wrote, which seems to support a maximum of 254 copied lines.

_________________
Have you tried Line Rider Advanced?
avatar
JealousCloud
Member

see you, space cowboy...


View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by Ride Liner on Thu Jan 05, 2017 10:18 pm

@JealousCloud wrote:
Code:
*(int*)(&line[1])+=1;
might function better than the increment function you wrote, which seems to support a maximum of 254 copied lines.
Thanks for the suggestion. Wouldn't this be dependent on the endianness of the machine though? My increment function is decidedly terrible, but it should work on any system, and I have verified it for inputs of up to 50,000.

Personally, I would be very happy if LRA had a way to make to make multiline stacks with as many lines as desired so that I could just discard this ugly little program altogether (hint hint Wink ).

Ride Liner
Line Rider Legend


View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by Sheldon on Fri Jan 06, 2017 1:57 pm

Damn
avatar
Sheldon
Line Rider Legend

3rd place in Tournament of Legends

View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by ScrungleBlumpkus on Fri Jan 06, 2017 2:02 pm

@Sheldon wrote:Damn
Damn

_________________
Don't delete your tracks!™  Thumbs Up
avatar
ScrungleBlumpkus
Member

Interior Crocodile Alligator


View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by JealousCloud on Fri Jan 06, 2017 4:40 pm

@Ride Liner wrote:Personally, I would be very happy if LRA had a way to make to make multiline stacks with as many lines as desired so that I could just discard this ugly little program altogether (hint hint Wink ).
Yeah, it's on the way. Technically i've implemented the feature but I haven't given it a proper release. Whenever the next version comes out you'll get it.

_________________
Have you tried Line Rider Advanced?
avatar
JealousCloud
Member

see you, space cowboy...


View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by Ride Liner on Fri Jan 06, 2017 10:44 pm

@JealousCloud wrote:
@Ride Liner wrote:Personally, I would be very happy if LRA had a way to make to make multiline stacks with as many lines as desired so that I could just discard this ugly little program altogether (hint hint Wink ).
Yeah, it's on the way. Technically i've implemented the feature but I haven't given it a proper release. Whenever the next version comes out you'll get it.
excelente

Ride Liner
Line Rider Legend


View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by ScrungleBlumpkus on Sat Jan 07, 2017 3:52 am

as far as I know, it's in there but only supports 50 lines at a time

_________________
Don't delete your tracks!™  Thumbs Up
avatar
ScrungleBlumpkus
Member

Interior Crocodile Alligator


View user profile

Back to top Go down

Re: Ride Liner's Miscellaneous Tools

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum