And going in circles and I asked Copilot (Microsoft's AI now built into the IDE) what the problem could be. It actually did a nice overview of how things should be set up (and they were all set up correctly) and then in trouble-shooting side of things, mentioned to make sure that the related tables had records that were correct for the foreign key. And that was the entire problem: I had set some of the fields to 0 by default in the initial testing. When I added the law level connection (so that you can choose from a drop-down list) that record did not exist. So, I learned something new today. Normally this sort of thing is not an issue if you have proper safeguards in place and all that, but we're building from the ground up.
Anyway, most of the basic create/read/write/delete stuff is in place. There are a few things left to do to make it easier and cleaner, but I'll probably do those when I get stuck on other things.
This means I am now ready to tackle the "create a system from scratch". Going to go with the Classic Traveller Book 3 rules to begin with to get the basic stuff done. The idea is that when you go to the create a planet page, you can either enter everything manually or there will be a button to create the planet. This will create a planet from scratch but leave the sector alone (which I've not added that part of the UI).
What that also means is that generating a planet will be a service that you call and it returns a planet model. The planet model is the main system as per the original book 3. To generate a system (all the planets, sun and all that) I'll need to dive into Book 6 again. But that, along with "generate an entire subsector" will come along later. One step at a time.
![]() |
and really need to add a nice Traveller image or something here. but all the basic stuff is there |
https://traveller-ct.blogspot.com/2025/04/traveller-system-generator-part-1-of.html
https://traveller-ct.blogspot.com/2025/04/traveller-system-generator-part-2-of.html
https://traveller-ct.blogspot.com/2025/04/traveller-system-generator-part-3-of.html
https://traveller-ct.blogspot.com/2025/04/traveller-system-generator-part-4-of.html
https://traveller-ct.blogspot.com/2025/04/traveller-system-generator-part-5-and.html
![]() |
this was like 8 feet tall. so life size. and really huge when you stand next to it! |