Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Trade Lane Calc

Here you can find the postings on the different editing utilities found for Freelancer

Post Tue Feb 24, 2004 9:03 am

Trade Lane Calc

Would anybody be interested in a Trade Lane calculator? or do all of the utilities you use already do this for you? A friend and I have coded a small one that i have found very useful, if your interested, i may submit it to lancersreactor

Post Tue Feb 24, 2004 11:31 am

lol - i tried to make one myself - but found it quicker with a calc - HOWEVER, by all means submit its - as its very useful for us all . Especially if you can plug in your starting coords, the angle for it to go at, and the amount of rings you want or something - so that it then calculates everything! (what i mean basically - is how does it work? Do you imput starting coords, angle and number of rings and it gives you the coords for the others?, or is it another way of doing it (ie start coords, end coords, and it works it all out for you?

OR is it even more advanced? You put in start coords, one of the above methods, and then the first ring number, and it then gives you a readout of the tradelane itself?...leaving you to assign the names and faction rep?

Or can you add names for start/stop and it calculates it all, whilst adding the generate ids names for the thing as well - as you can see i am full of questions! lol - anyways - as long as it works and gives you coords then it would be terrific - of course, if it did the rest it would be terrific with lights and bells on it

Or does it include a bit for traffic too? Makes a box or sommat? lol

Edited by - Chips on 2/24/2004 11:32:39 AM

Post Tue Feb 24, 2004 5:41 pm

hey i have created a waypoint calculator too. but anyone who is used to creating paths has too... i think


---------------- E·N·D O·F M·E·S·S·A·G·E ... ----------------

Post Tue Feb 24, 2004 9:09 pm

ok, it works by putting in the starting and ending coords. you can name each tradelane like "my_tradelane" and the name of an exclusion zone "das_zone" then it will tell you to coords slope, length etc., then with a button push it will exportall this to a pasteable txt file in the root folder of the app. it will set up all the objects, the next_lane and prev_lane ish, and change the "my_tradelane" to "my_tradelane_1" then "my_tradelane_2" and so on, ill submitt it today...i just have to look into how! hope you like it. There are probably a few bugs in the math, namely the zone math because I just threw that in there and havent fixed it yet. but be sure to drop a post here on what it should be

Post Thu Feb 26, 2004 10:23 pm

Um...little snag guys, do any of you have any tips on exactly how YOU guys find the proper angle for the tradelane, any tips are welcome. Currently the angle the lane supplies is all wrong...

Moo like a duck...well...a big duck but still.

-With enough preserverance and enough peanut butter, we can sucessfully stick a duck to the ceiling!

Post Sat Mar 06, 2004 6:35 pm

Do you mean this,

rotation = 0, 0, 0 ; <-- points to "north"
rotation = 0, 90, 0 ; <-- points to "west"
rotation = 0, 180, 0 ; <-- points to "south"
rotation = 0, -90, 0 ; <-- points to "east"
(by LordFjord)


I've never done a trade lane but I've done patrols. Their angles looks as if their calculated differently with 90,##,180 or -90,##,0.

Oh, Firebase it would be great if you could post your waypoint calculator. I'm doing mine with a calc and paper as my copy of excel won't work with my windows xp in my new pc. So its a slow process.

S

Post Sat Mar 06, 2004 7:38 pm

lol - myself? I work them out by doing them straight...BUT you SHOULD work them out by doing sin and cosine angles stuff.....

So - you have something like one point at a certain coords, then you have another point at other, like:


2000, 0, 10000

21000, 0, 18000

So you know you have 19000 on one axis, and then 8000 on the other axis.


So you do a little math kinda thing:
So 19 and 8. Its something unknown to me as i cannot remember
I can remember that 8 squared + the 19 squared, then added together and square root gives you the LENGTH of the tradelane part.
To work out the angle, you need someone who can actually remember their math better than me.

I also know that 1: 1 ratio = 45 degrees (ie 1k forward and 1k to one side)
And 2:1 ratio is 30degrees rotation,
So 3: 1 is a 15 Degree rotation
So my one up there is about 22 degrees or so....

Post Sat Mar 06, 2004 11:51 pm

um, i know all that, but when i place it, I have to get a surefire way to place the lanes, and not put em in backwards, i had one somewhere, and i think my friend who has written one of these before (before we deleted the source code...oops) remembered how to do it, so when we finish working on our little online game mabye we can get it to you. Sorry for the delay

Moo like a duck...well...a big duck but still.

-With enough preserverance and enough peanut butter, we can sucessfully stick a duck to the ceiling!

Post Sun Mar 07, 2004 6:28 pm

It should be easy to reference the angles to north=0. Just 90-(angle) should do. ie if you get an angle of -90(south); 90-(-90)=180 ergo south. Hope I'm not trying to teach you guys to suck eggs. Just trying to help throw in extra suggestions. Zones would be the same angle, as the individual rings, with a constant width and an extra constant on the calculated length. The position of each ring you've sussed out anyway. Someone with a bit of scripting knowledge could designate each ring its own set of parameters. Best of luck anyway, it would be a real useful utility.

Is there any small, free (I'm a poor dialer upper), mathematical progs I could download. I could probably make something myself, at least for patrols anyway.

S

Return to Freelancer Editing Utilities Forum