Steve Jackson Games - Site Navigation
Home General Info Follow Us Search Illuminator Store Forums What's New Other Games Ogre GURPS Munchkin Our Games: Home

Go Back   Steve Jackson Games Forums > Roleplaying > Traveller

Reply
 
Thread Tools Display Modes
Old 06-16-2011, 12:47 PM   #1
forthekill
 
Join Date: Mar 2010
Default Far Trader Trade Route Generation

Is there any software out there that will help me generate trade routes for sectors/subsectors?
forthekill is offline   Reply With Quote
Old 06-16-2011, 06:13 PM   #2
tjoneslo
 
Join Date: Aug 2004
Location: Vermont
Default Re: Far Trader Trade Route Generation

There is a piece of code on the Traveller Wiki http://traveller.wikia.com/wiki/Nroute.c which will do what you want. It's not very user friendly. The wiki has maps for most of the sectors in the traveller universe. If you do try and use this and run into problems, ping me and I'll do my best to help.
__________________
Thomas Jones-Low: tjoneslow@gmail.com
Vehicle Builder Guru and gearhead
Librarian at Traveller Wiki

Last edited by tjoneslo; 06-16-2011 at 06:13 PM. Reason: spelling
tjoneslo is offline   Reply With Quote
Old 06-16-2011, 06:19 PM   #3
Anthony
 
Join Date: Feb 2005
Location: Berkeley, CA
Default Re: Far Trader Trade Route Generation

Quote:
Originally Posted by tjoneslo View Post
There is a piece of code on the Traveller Wiki http://traveller.wikia.com/wiki/Nroute.c which will do what you want. It's not very user friendly.
Probably because I didn't write it to be user friendly, I wrote it to generate maps and then released the code in case anyone was curious.
Anthony is online now   Reply With Quote
Old 06-17-2011, 07:08 AM   #4
forthekill
 
Join Date: Mar 2010
Default Re: Far Trader Trade Route Generation

Awesome. I'll check it out. Thanks.

The existing maps don't do me any good since I am using my own universe loosely based on stars within 200ly of Earth, flattened to a 2d map.

As far as user friendly goes, I don't need it to be. I have decent programming knowledge, and at quick glance it doesn't look super complicated :)
forthekill is offline   Reply With Quote
Old 06-17-2011, 10:27 AM   #5
Anthony
 
Join Date: Feb 2005
Location: Berkeley, CA
Default Re: Far Trader Trade Route Generation

Quote:
Originally Posted by forthekill View Post
Awesome. I'll check it out. Thanks.

The existing maps don't do me any good since I am using my own universe loosely based on stars within 200ly of Earth, flattened to a 2d map.

As far as user friendly goes, I don't need it to be. I have decent programming knowledge, and at quick glance it doesn't look super complicated :)
With some effort it could probably be adapted to a 3d map, though it would be a challenge making something human readable.
Anthony is online now   Reply With Quote
Old 06-17-2011, 11:14 AM   #6
forthekill
 
Join Date: Mar 2010
Default Re: Far Trader Trade Route Generation

Quote:
Originally Posted by Anthony View Post
With some effort it could probably be adapted to a 3d map, though it would be a challenge making something human readable.
3D is too much of a pain to use for gaming purposes, which is why I am using 2D. I'd much rather use a traditional Traveller style map anyway.

The software I used for the star data conveniently displayed in 2d, so I just took screenshots of each sector and overlayed a hex map in Photoshop. I then manually entered the positions in Traveller Universe for the systems in each sector, and exported the raw location data.

Then I used an old sector generator I found and rewrote in C++ to generate data for each system, and re-imported the results back to Universe.

So now I need to generate trade routes and hopefully your script will help me with the heavy lifting and I can make manual adjustments where needed.
forthekill is offline   Reply With Quote
Old 06-24-2011, 09:18 AM   #7
forthekill
 
Join Date: Mar 2010
Default Re: Far Trader Trade Route Generation

Quote:
Originally Posted by tjoneslo View Post
There is a piece of code on the Traveller Wiki http://traveller.wikia.com/wiki/Nroute.c which will do what you want. It's not very user friendly. The wiki has maps for most of the sectors in the traveller universe. If you do try and use this and run into problems, ping me and I'll do my best to help.
I compiled and ran but I get a segmentation fault every time. It seems to find my sec file because if I leave it out I get an Unable to open [Sol.sec] error.

The segmentation fault seems to come after the output "trade routes completed" message that only shows when I specify a sector file that doesn't exist. Otherwise I only get the Segmentation fault message.

On another note, does anyone have a sample sector input file? I want to make sure I am constructing them correctly.

It sounds like it should look like this:

Sol
0 1
Earth 0105 UWPgoeshere A Pb Cp Wa Ri R 413 Im
Alpha Centauri 0110 UWPgoeshere A Pb Cp Wa Ri R 413 Im
Kal's Landing 0203 UWPgoeshere A Pb Cp Wa Ri R 413 Im
...
forthekill is offline   Reply With Quote
Old 06-24-2011, 09:27 AM   #8
forthekill
 
Join Date: Mar 2010
Default Re: Far Trader Trade Route Generation

Quote:
Originally Posted by forthekill View Post
I compiled and ran but I get a segmentation fault every time. It seems to find my sec file because if I leave it out I get an Unable to open [Sol.sec] error.

The segmentation fault seems to come after the output "trade routes completed" message that only shows when I specify a sector file that doesn't exist. Otherwise I only get the Segmentation fault message.
I resolved this. It was a folder write permission issue.

I also noticed it was looking for basemap.ps. I changed blankmap.ps to basemap.ps and my error went away. Is that the correct thing to do?

It is generating all sorts of files now, but they are all blank, and I am guessing it is related to my input file not being quite right.
forthekill is offline   Reply With Quote
Old 06-24-2011, 11:13 PM   #9
tjoneslo
 
Join Date: Aug 2004
Location: Vermont
Default Re: Far Trader Trade Route Generation

For examples of the sector data files, check on the Traveller wiki (where you got the source). Almost every sector has a data file and a trade map. Check, for example, Deneb Sector. The links are in the infobox on the right side of the page. Look for the sector data file and trade map links.

Otherwise, it looks like you are missing a line in the header to show where the columns are. There should be a line of what look to be randomly spaced numbers at the top of the file. Nroute uses these to identify where the columns are for important data.
__________________
Thomas Jones-Low: tjoneslow@gmail.com
Vehicle Builder Guru and gearhead
Librarian at Traveller Wiki
tjoneslo is offline   Reply With Quote
Old 06-25-2011, 12:36 AM   #10
Anthony
 
Join Date: Feb 2005
Location: Berkeley, CA
Default Re: Far Trader Trade Route Generation

Quote:
Originally Posted by tjoneslo View Post
Otherwise, it looks like you are missing a line in the header to show where the columns are. There should be a line of what look to be randomly spaced numbers at the top of the file. Nroute uses these to identify where the columns are for important data.
Which would be idiotic for configuration files designed for the program, but it's designed to parse files in a couple different formats available from other sources.
Anthony is online now   Reply With Quote
Reply

Tags
far trader, mapping, software, trade routes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Fnords are Off
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:20 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.