LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2023, 11:39 PM   #1
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,422
Blog Entries: 43

Rep: Reputation: 36
battlestar source code: On a fun note


Just on a fun note, do any of you remember the game called battlestar, I think it's in the free-bsd games package or something, like that? Not sure if it's open source, and I've never gotten very far in it, but I just had an idea that if so, might be a fun project to consider for me.

If people are saying Linux isn't for gaming, that's simply not true! You just have to expect Linux games to work on Linux, and Windows games to work on Windows. If I really wanted, I could get a gaming system built, which now that I have the thought, I might want to someday go into business with a gaming machine made of Linux, but just not the whole business.

Anyway, as I was attempting to get further in the game, again, I had this thought: Since it won't let me eat the maids body, or drink her blood, the one who is drowned in a bucket of pine sol, why not learn how the game works, and add that possibility in the game, not as official, but unoffical version? It doesn't have to be a really gross answer or anything, but it might be a bit fun to imagine what happens if you do that? That's why, one of my older projects, was a similar game. But I never finished, and would like to someday do so. The code needs a serious rewrite, way too messy. The way it is, I could never get it to work, unless I was the computer! It's my own story, and everything, just starts out similar, in a space ship.

Anyway, just wondering a) if it's perhaps somewhere out there in the gnu licenses, or what licenses the source code is under, and b) If anybody else is curious about that, or similar things, without being too gruesome in text, and c) If there was some interest in anything to do with that game, or what might happen if... Or if anybody thinks I should someday, just for fun, work on such a modification? If there's no interest in playing my version anywhere, I probably won't, but just would give it a thought. My own game, I probably will continue. I'm just working on bigger and more important projects first.
 
Old 02-20-2023, 02:39 PM   #2
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 698
Blog Entries: 1

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
battlestar Text Game ?

If so, battlestar(6) is installed in Slackware the source can be retrieved from:

slackware.osuosl.org

Dir

/pub/slackware/slackware64-current/source/y/bsd-games
 
Old 02-24-2023, 12:04 AM   #3
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,422

Original Poster
Blog Entries: 43

Rep: Reputation: 36
Yes, that's the game, it's text based! Believe it or not, that's why I love it! It's slightly less educational than reading a book can be, but takes slightly more imagination.

Are you sure that the source is the same, for that, and Linux Mint? If not, for now, it IS the Linux Mint version I'm interested in.
 
Old 02-24-2023, 06:37 AM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
I see at the bottom of https://www.linuxmint.com/faq.php
Quote:
Almost all the packages we distribute are open-source. You can find their source code on https://packages.ubuntu.com, http://packages.linuxmint.com or https://github.com/linuxmint. If you can't find what you're looking for contact us.
I can't find bsdgames on the linuxmint site, so I guess it's this one (although I'm not sure which Ubuntu version you'd be getting it from): https://packages.ubuntu.com/source/kinetic/bsdgames

You should also be able to use
Code:
apt-get source bsdgames
to get the source. You may need to add deb-src entries to your /etc/apt/sources.list.

https://wiki.debian.org/Packaging/SourcePackage
 
Old 02-24-2023, 08:32 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
There is still very-active interest in "text adventure games," these days usually referred to as "interactive fiction." Google it. The games (source code), and the various engines which are used to make it, are still there. And yes, they are cross-platform.
 
Old 02-24-2023, 09:15 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Yep, and there’s a competition every year. When I was following the scene (early 00s), that competition had produced some mind-blowing great work.
 
Old 02-24-2023, 10:30 AM   #7
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 698
Blog Entries: 1

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by des_a View Post
Are you sure that the source is the same, for that, and Linux Mint? If not, for now, it IS the Linux Mint version I'm interested in.
I cannot comment on Linux Mint, but Slackware only patches source if there are issues with compiles or some critical functionality.

I believe the source at some point came from one of the BSDs many years ago, if I had to guess I would think NetBSD. So if the BSD version of battlestar is the version you are looking for, then that should be the same as on Slackware.

As for the License, OpenBSD base comes with battlestar, so that allow tells me it under a very open License.
 
Old 02-24-2023, 07:19 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
For example:

https://www.ifarchive.org/

"A hollow voice said, 'Plugh!'"
 
2 members found this post helpful.
Old 02-24-2023, 11:03 PM   #9
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,422

Original Poster
Blog Entries: 43

Rep: Reputation: 36
OK. Now I can confirm it's bsdgames for package name. Here's my output:

Code:
des@smiley000.local@des-Inspiron-3542:~$ apt list bsdgames
Listing... Done
bsdgames/jammy,now 2.17-29 amd64 [installed]
 
Old 02-24-2023, 11:04 PM   #10
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,422

Original Poster
Blog Entries: 43

Rep: Reputation: 36
Does that mean it comes from ubuntu, and not Linux Mint? Let's start there on what the computer just told me...
 
Old 02-24-2023, 11:08 PM   #11
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,422

Original Poster
Blog Entries: 43

Rep: Reputation: 36
Tried the source command. Yep, it complains of sources not being installed, and wants me to update the .list file. How exactly do I add that repository? This will be the first time adding a repository. The last time, was on Mandriva 2010.1. That was the last time I added a package source. Please teach me, if that is how to get the source command working, and if that's what I need to do, and also please tell me above if it means the package is from ubuntu. Almost there, ready to modify the source, just a little.
 
Old 02-25-2023, 06:48 AM   #12
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
From what I read on the web, Mint puts the repository sources in subfiles under /etc/apt/sources.list.d/, so probably in /etc/apt/sources.list.d/official-package-repositories.list you have a line reading:

Code:
deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
You need to add another line like that with deb-src:
Code:
deb-src http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
You will need sudo/root permission to edit the file. xed admin:///etc/apt/sources.list.d/official-package-repositories.list should work, according to https://easylinuxtipsproject.blogspo...p/sources.html.

(you can also add deb-src lines for the other deb lines if you want, but that's the one needed for the bsdgames package)

Then run sudo apt-get update.
 
Old 02-25-2023, 11:07 AM   #13
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
This is what I would do:

Go to https://packages.ubuntu.com/ (that's where Linux Mint's packages come from)

Search for "bsdgames"

Download the ".orig" tarball (which is the unpatched source) under "Download Source Package"

Last edited by dugan; 02-25-2023 at 11:15 AM.
 
Old 02-26-2023, 07:37 PM   #14
artytux
Member
 
Registered: Oct 2022
Location: Central Eastcoast Australia
Distribution: EndeavourOS, MXLinux
Posts: 114

Rep: Reputation: 40
A search on Debian spin SpiralLinux - Synaptic package manager gets this

Click image for larger version

Name:	Sshot_112541.png
Views:	13
Size:	53.9 KB
ID:	40531

Another spot to look in that has Battlestar so since it's in Debian synaptic it should on most Debian derivatives then go from there.
 
Old 03-07-2023, 11:25 PM   #15
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,422

Original Poster
Blog Entries: 43

Rep: Reputation: 36
Began to play with it. First, im having problems with "sudo make install". Something about a dictionary. But i did successfully prove a concept. I have the beginnings of suicide built in now. It looks like some sort of bsd license. How will i know if i can redistribute? If not, the fun was in playing with it. My changes are too small for copyright protection so far. But im having fun learning about other peoples code. I just want to make a few changes so far. Im not using my knowlege for cheats. Ill learn to cheat normally.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bsdgames battlestar arodygin Linux - Newbie 2 05-20-2023 07:21 PM
LXer: Battlestar Galactica Game 'Diaspora: Shattered Armistice' Finally Released LXer Syndicated Linux News 0 09-05-2012 12:50 PM
MIDI keyboard note-on and note-off inverted jakykong Linux - Software 0 08-21-2010 03:21 AM
<fun> The Windows Crash </fun> Simon Bridge General 6 08-26-2007 07:46 PM
How to see the kernel source code on a note pad? Sanny Linux - Software 2 05-26-2004 02:24 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration