Traveller Store CotI Features New Posts Mark Forums Read Register


Go Back TravellerRPG.com > Citizens of the Imperium > General Traveller Discussions > Software Solutions

Software Solutions Discussions on Traveller related software.

Reply
 
Thread Tools Display Modes
  #1  
Old March 16th, 2012, 11:42 PM
forthekill forthekill is offline
Citizen: SOC-11
 
Join Date: Oct 2008
Location: Boston
Posts: 84
Gallery : 0
forthekill Citizen
Default Traveller Javascript Library

So I've been working on a Javascript library for Traveller over the last few weeks and so far so good. I've mentioned this in a couple of other threads but I figured it should have its own thread.

Disclaimer: I'm not a Javascript programmer, or even a programmer by trade (though I do have a CS degree), so I'm learning as I go.

I've got the following in really good shape:

Sector Generator (Currently Megatraveller rules by and large)
World Generator
Sector Parser
Trade Route Generator (per GURPS Far Trader)
HTML5 Canvas Mapper (hexes, hex numbers, worlds, names, starport, bases, zones, routes to some degree)

Some of the code is borrowed from Joshua Bell (who's been very helpful) and I think I've credited him where appropriate, but I need to go through the JS again to make sure I'm not missing anything. Most of the code is my own, except for the parser, some of the sector gen code, and the algorithm to walk the map to find routes.

I have all the JS methods in a number of files so I can work on them easily, and at some point I will more logically organize them into a few main JS files. I am still working on streamlining methods and reusing code where possible.

Most of the methods are commented pretty well, but I still have some work to do in that area.

I've also tried to standardize objects across all the "libraries", so methods work with a sector, a world, and/or a Canvas context as parameters.

What I need still need to do:

- World name generator
- Improving the performance of the dog slow trade route calculations
- Border generation (I am very intrigued by this by Joshua Bell and am hoping he might help me get that working with what I've got )
- Subsector generation
- Taking into account adjacent sectors for routes

- Border rendering
- MSEC route rendering
- Fixing the trade route rendering so that only the highest BTN route between worlds is rendered
- Combining multiple routes between worlds that should be upgraded to a higher BTN
- Subsector rendering

- Multiple outputs besides Canvas (print, PDF, sector files, MSEC, SVG?, etc.)

Examples:

Sector parsing with Canvas map and sector data display (Chrome and Firefox only)
Sector generation with Canvas map in layers
Sector generation with Canvas map in layers with route generation and rendering IN TESTING (WARNING: Trade route calculation is intensive and you may think the page is frozen. Give it time.)

Feedback is wanted and needed!
__________________
"Yeah well, what you plan and what takes place ain't ever exactly been similar."
IMTU tc mgt !3i c+ jt+ au ls pi+ ta- he++

Last edited by forthekill; March 16th, 2012 at 11:52 PM..
Reply With Quote

Welcome!
To see more of this thread, please login or register.
Reply

Bookmarks

Tags
generator, javascript, library, sector, trade

Thread Tools
Display Modes

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
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New File Library hunter Citizens' Information Centre 28 June 30th, 2007 03:31 AM
Traveller Library Data site now open Hyphen The Lone Star 9 February 13th, 2006 04:08 PM
Task Library. tmondragon MegaTraveller 14 May 20th, 2005 12:27 AM
E Library uploading mad13142000 Citizens' Information Centre 1 August 16th, 2003 02:41 AM

This website and its contents are copyright ©2010-2013 Far Future Enterprises. All rights reserved. Traveller is a registered trademark of Far Future Enterprises .
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright (c) 2010-2013, Far Future Enterprises. All Rights Reserved.