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 December 25th, 2018, 05:25 PM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,724
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default Crewgen

Fun stuff with Perl today. Well, the past few days as I've been working on this.

With a config file like this:
Code:
#Ship name:hull size:jump:maneuver:cargo:max passengers:drive tonnage:weapons
Miss Rosa:400:2:3:200:4:50:Trip_Beam, Trip_Pulse, Trip_Pulse, Trip_Miss
BN-4594:400:1:6:20:0:40:Trip_Beam, Trip_Beam, Trip_Pulse, Trip_Miss
Slaver's Folly:600:2:3:200:0:50:Trip_Beam, Trip_Beam, Trip_Pulse, Trip_Pulse, Trip_Miss, Doub_Miss_Sing_Sand
And a command line like this:

Code:
bin/crewgen.pl --config=data/ships.csv --name=Rosa
I get output like this:

Code:
Miss Rosa
=========

 Pilot          Madelaine Bradshaw [F] 766876
 Navigator      Kim Tellier [M] 5A5379
 Engineer       Claudio Bond [M] A57678
 Engineer       Lura Glover [F] 76989B
 Medic          Louann Melton [F] 26C7A9
 Gunner         Lorine Serre [F] 5AA6A3
 Gunner         Joaquin Moen [M] A68A97
 Gunner         Gino Jakobsen [M] 55982A
 Gunner         Karyn Jansson [F] 975785
 Steward        Luis Monin [M] 459B64

Still lots to do, like skills and such. Code is in the perl_tools repo.
__________________
Chronicler, the Domici War
Reply With Quote

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

Bookmarks

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

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