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 February 25th, 2017, 09:51 AM
Golan2072's Avatar
Golan2072 Golan2072 is offline
Citizen: SOC-14
 
Join Date: Apr 2004
Location: Yavne
Posts: 3,080
Gallery : 1
Golan2072 Citizen+Golan2072 Citizen+
Default World generator program for Cepheus Engine/Traveller

I wrote a new, far better (IMHO) version of my old Classic Traveller world generator program, this time using the OGL Cepheus Engine rules. The worlds and files it produces are compatible with all 2d6 OGL Sci-Fi games and essentially with most versions of Traveller.

It uses Python 3 (installed on many systems nowadays) and has an old-school text UI. It can either generate one world or an old-type SEC file used by many Traveller-related applications.

Feel free to use, adapt to your own use, improve, and of course - comment.

Get it HERE!
__________________
We are but a tiny candle flickering against the darkness of our times.

Stellagama Publishing - Visit our Blog, Den of the Lizard King
Reply With Quote
  #2  
Old February 25th, 2017, 06:43 PM
Jonendsn Jonendsn is online now
Citizen: SOC-3
 
Join Date: Mar 2016
Location: Riverina
Posts: 10
Gallery : 0
Jonendsn Citizen
Default

Thanks mate.

I'm blatantly stealing your dice function. I personally didn't make the leap of logic to just pass dice sides and number of rolls to a generic function...had individual functions for each D type.

For the pseudo-hex thing (love the label) I just use a list. Saves on all the elifs etc.

Again, thanks. Good work.
Reply With Quote
  #3  
Old February 27th, 2017, 10:31 AM
simonh simonh is offline
Citizen: SOC-12
 
Join Date: Jun 2008
Location: London
Posts: 447
Gallery : 0
simonh Citizen+simonh Citizen+
Default

A world generator is a great project to complete in any language and yours looks very nicely designed. It's always interesting to see how other people tackle a problem. I’ve never got round to implementing SEC file output in any of mine.

Simon Hibbs
__________________
Check out StarBase, the open source science fiction campaign mapping application.
Reply With Quote
  #4  
Old February 28th, 2017, 05:39 AM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,740
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

simonh, nice code! Would you guys consider a team project to integrate the best of both programs? With the release of CE it seems like there's a time for open source explosion! Of course, it'd be even cooler to let the user have an option of what type of data to produce; CT, T5, CE, MgT, short form or SQL/NoSQL.
__________________
Chronicler, the Domici War
Reply With Quote
  #5  
Old February 28th, 2017, 08:35 AM
simonh simonh is offline
Citizen: SOC-12
 
Join Date: Jun 2008
Location: London
Posts: 447
Gallery : 0
simonh Citizen+simonh Citizen+
Default

Quote:
Originally Posted by Leitz View Post
simonh, nice code! Would you guys consider a team project to integrate the best of both programs? With the release of CE it seems like there's a time for open source explosion! Of course, it'd be even cooler to let the user have an option of what type of data to produce; CT, T5, CE, MgT, short form or SQL/NoSQL.
Absolutely, I'd love to work on something collaboratively. In fact I specifically wrote StarBase (see sig) to easily accept plug-in world generation scripts to customize the application. The full source is up on GitHub.

I've not done any work on StarBase for a few years, but I am working on a similar mapping application on iOS after a bit of a hiatus. I'm using Pythonista. The world generation script I'm using is exactly the one on GitHub, but the iOS app currently doesn't have a save system so an adaptation of yours that uses SEC file format for persistence would be very attractive if I can use a clean calling interface from the rest of the app. There would be a lot of issues to unpick there though because for a mapping app saving or exporting the world data is only one piece of the persistence puzzle.

Simon Hibbs
__________________
Check out StarBase, the open source science fiction campaign mapping application.
Reply With Quote
  #6  
Old February 28th, 2017, 08:41 AM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,740
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

Very cool.

I think there are some options to generate Winderz executables so that someone wouldn't need Python installed. Of course, having a reason to learn more Go wouldn't hurt, either. :P
__________________
Chronicler, the Domici War
Reply With Quote
  #7  
Old February 28th, 2017, 09:42 AM
simonh simonh is offline
Citizen: SOC-12
 
Join Date: Jun 2008
Location: London
Posts: 447
Gallery : 0
simonh Citizen+simonh Citizen+
Default

Quote:
Originally Posted by Leitz View Post
Very cool.

I think there are some options to generate Winderz executables so that someone wouldn't need Python installed. Of course, having a reason to learn more Go wouldn't hurt, either. :P
That's exactly what I did for StarBase. There's a download of a windows executable package available from the link in my sig. The executable package is also capable of loading python source script files at run time to customize the list of world attributes and the world generation process. It's all described in the word file StarBase_Introduction_0.23.doc in the download or in the source repository.

Simon Hibbs
__________________
Check out StarBase, the open source science fiction campaign mapping application.
Reply With Quote
  #8  
Old February 28th, 2017, 09:51 AM
Golan2072's Avatar
Golan2072 Golan2072 is offline
Citizen: SOC-14
 
Join Date: Apr 2004
Location: Yavne
Posts: 3,080
Gallery : 1
Golan2072 Citizen+Golan2072 Citizen+
Default

Quote:
Originally Posted by Jonendsn View Post
Thanks mate.
You're welcome :-)

Quote:
Originally Posted by Jonendsn View Post
I'm blatantly stealing your dice function. I personally didn't make the leap of logic to just pass dice sides and number of rolls to a generic function...had individual functions for each D type.
Enjoy! Open Source FTW!

Quote:
Originally Posted by Jonendsn View Post
For the pseudo-hex thing (love the label) I just use a list. Saves on all the elifs etc.
I was originally thinking of learning Dictionaries for this (I'll learn them anyway), but now that I think of it, a list would be perfect!

Quote:
Originally Posted by Jonendsn View Post
Again, thanks. Good work.
Thanks!

Quote:
Originally Posted by simonh View Post
A world generator is a great project to complete in any language and yours looks very nicely designed.
Thanks! I also think I learned much from the many mistakes of my old script...

Quote:
Originally Posted by simonh View Post
Iíve never got round to implementing SEC file output in any of mine.
Feel free to use my code :-)

Quote:
Originally Posted by Leitz View Post
simonh, nice code! Would you guys consider a team project to integrate the best of both programs? With the release of CE it seems like there's a time for open source explosion! Of course, it'd be even cooler to let the user have an option of what type of data to produce; CT, T5, CE, MgT, short form or SQL/NoSQL.
I would really love if someone will help me with the UI, as right now I can only write an old-school text UI. I will eventually teach myself tkinter (Windows UI) and Django (web integration), but right now I would be glad with help in this area.
__________________
We are but a tiny candle flickering against the darkness of our times.

Stellagama Publishing - Visit our Blog, Den of the Lizard King
Reply With Quote
  #9  
Old February 28th, 2017, 10:27 AM
simonh simonh is offline
Citizen: SOC-12
 
Join Date: Jun 2008
Location: London
Posts: 447
Gallery : 0
simonh Citizen+simonh Citizen+
Default

tkinter is horrible, trust me. For Python I think the best cross platform GUI toolkits are probably WxWidgets and Qt. I've tried both starting with WxWidgets but moving on to Qt (first using PyQt then PySide) which I found to be far superior in every way.

For PySide there are plenty of examples provided with it and online tutorials to get you started. It works very well on Windows and Linux but I've always had problems getting it to work well on OSX though I haven't had a go in a few years so that may have changed.

Simon Hibbs
__________________
Check out StarBase, the open source science fiction campaign mapping application.
Reply With Quote
  #10  
Old February 28th, 2017, 10:59 AM
Leitz's Avatar
Leitz Leitz is offline
Baron
 
Join Date: Mar 2009
Location: Wretched hive of scum and villany
Posts: 2,740
Gallery : 0
Leitz Citizen+Leitz Citizen+Leitz Citizen+
Default

I'd say go with TKinter as it's in the Standard Library, I believe. However, your text based menu system isn't bad, just needs a more automatic refresh.
__________________
Chronicler, the Domici War
Reply With Quote
Reply

Bookmarks

Tags
program, python, sector, subsector, worlds

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
Cepheus Engine SRD Reban Non-Traveller Gaming 21 January 27th, 2017 04:20 PM
Cepheus Engine Skill observation infojunky Non-Traveller Gaming 7 December 6th, 2016 03:18 PM
[Zozer Games] The Universal World Profile for Mgt & Cepheus Mithras TAS News Feed 1 August 19th, 2016 09:10 AM
World Gen program Tarrien Traveller 5 7 May 26th, 2013 10:31 PM

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 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2010-2013, Far Future Enterprises. All Rights Reserved.