OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: dashyr on May 27, 2015, 06:14:05 pm

Title: Puppy Linux thtr
Post by: dashyr on May 27, 2015, 06:14:05 pm
I'm using the most recent version of puppy linux on a netbook. 6.0.3. Problem is I am overall new to linux computing and I am more used to ubuntu based system. I'm currently playing the version 1.0 of the game perfectly well on this computer. And it is awesome. But, with TFTD getting close I wish to start using the nightly builds. Is anyone familiar with compiling those build on puppy linux? As long as I know this os dosent use sudo commands so I got a hard time finding how to do it.
Any help would be really appreciated. Also since this is my first post on this forum I need to add this.

This is the most awesome game porting/enhancing project since the jDoom. >(for me)
Title: Re: Puppy Linux thtr
Post by: Arthanor on May 27, 2015, 06:36:02 pm
Hopefully this works on your OS too..

https://www.ufopaedia.org/index.php?title=Compiling_with_CMake_%28OpenXcom%29#End-to-end_example

You can download the code and compile it in any directory you want, so just pick one where you have all the permissions and you won't need sudo. I created a XCom directory in my home directory, with subdirectories in which I compile and keep my different builds.

Make sure you also install the requirements (which.. might require sudo, now that I think of it).
Title: Re: Puppy Linux thtr
Post by: dashyr on May 27, 2015, 06:45:28 pm
I found that page :P. My problem is I have next to no idea about how or even where I need to type those commands within my OS.  URXVT seems to be my OS terminal but any kind of commands I know of ends up with the same feedback. command not found. X_X
Title: Re: Puppy Linux thtr
Post by: dashyr on May 27, 2015, 06:46:53 pm
If only somebody could compile .deb packages for us XD.
Title: Re: Puppy Linux thtr
Post by: dashyr on May 27, 2015, 08:14:20 pm
Might as well leave the specs. Im using a 5 years old HP Mini netbook with 1 gb of ram. Currently running Puppy Tahr with LXDE desktop last version.
Title: Re: Puppy Linux thtr
Post by: yrizoud on May 27, 2015, 08:42:16 pm
No promises, but typing /usr/bin/bash in Puppy's shell should start a bash shell, which should be more familiar.
Title: Re: Puppy Linux thtr
Post by: dashyr on May 27, 2015, 09:07:45 pm
Thanks. Seems like the bash shell is indeed not enabled by default. Im looking it up google lets hope for the best.
Title: Re: Puppy Linux thtr
Post by: dashyr on May 27, 2015, 09:11:47 pm
Seems like I was already at the right place. The commands are simply different than what ubuntu based distros used me to. Ill try fix it up for myself and then if I suceed ill post how i did it.
Title: Re: Puppy Linux thtr
Post by: GreyManNo2 on May 28, 2015, 12:44:16 pm
I don't know if this will help but IIRC Puppy Linux has sh as its default.

Check this wika:
https://puppylinux.org/wikka/Shell (https://puppylinux.org/wikka/Shell)

Quote
Common shells found in Puppy Linux

sh is the default shell, which in 1.0.5 and 1.0.6 is ash or bash
(In 1.0.6, SHELL seems to point to bash, but the command line seems to nevertheless default to ash.)

ash is the simplified BusyBox version of bash (BusyBox v0.60.5 in 1.0.6)

Bash Bash has become a de facto standard for shell scripting on all flavors of UNIX.
The bash is GNU bash 3.00.0(1) in 1.0.6.
Title: Re: Puppy Linux thtr
Post by: 7Saturn on May 28, 2015, 05:04:25 pm
Well, the basic commands (e. g. »cd« oder »mkdir«) should work just the same, as long as you use bash. However, for »apt-get« and so on, should have a similar pendant, as long as you have some sort of package managing software installed. As well as there should be similar packages for your distro. I'm not entirely sure, but maybe you first need to install build essentials, before you can use cmake or ccmake. As well as you probably will have to install git, first. The zip-file on the git-sources-page would work as well, for that matter.
Title: Re: Puppy Linux thtr
Post by: Leprechaun on December 17, 2015, 06:34:48 pm
Seems like I was already at the right place. The commands are simply different than what ubuntu based distros used me to. Ill try fix it up for myself and then if I suceed ill post how i did it.
I did get it running just last night, although I am using Linux Mint, which is an Ubuntu derivative. Suggestions:

1) Start from the Installing wiki at https://www.ufopaedia.org/index.php?title=Installing_%28OpenXcom%29 Go to the Installing Dependencies paragraph and enter the code below it.
2) Per that document, and assuming you haven't defined any environment variables, your User folder and your Data folder will be the same, i.e. /home/<username>/.local/share/openxcom (That's fine, I only mention it because you will need to know where it is.) Per the document, first copy your game files to that directory from wherever you have them. Only the ones specified. Then you need the Latest Patch, which you unzip and overwrite the files you just copied.
3) Download the source code from https://github.com/SupSuper/OpenXcom.git Unzip it to whatever directory you want. I used /home/<username>/.local/share/openxcom/source, but you choose what you want.
4) Next see Compiling with CMAKE https://www.ufopaedia.org/index.php?title=Compiling_with_CMake_%28OpenXcom%29 Open a terminal. From here, I can't be much help. My first time using cmake was last night. Follow the "End-to-end" example as best you can.
5) Open a terminal window. Make a "bin" directory, if you don't already have one. Change to the bin directory. Create a script to run the game. Here's the code for the above:
mkdir bin
cd bin
vi openxcom.bash
i (for insert mode)
#!/bin/bash
PATH=$PATH:$HOME/bin
$HOME/bin/OpenXcom/bin/openxcom -data $HOME/bin/OpenXcom/share/openxcom/UFO

ESC key : wq! (To exit insert mode, save your changes, and exit the editor.)

6) From the terminal, type chmod 755 openxcom.bash
7) That's it. Any time you want to play, you open a terminal window and type openxcom.bash

OK, this is a work very much in progress, since I only got it working last night. But there is no need for sudo or anything else that isn't standard to all version of Linux I have used. Feel free to le tme know if you need more help.
Title: Re: Puppy Linux thtr
Post by: winterheart on December 18, 2015, 09:05:48 am
Use ppas from Launchpad, mine or knapsu:

https://code.launchpad.net/~winterheart/+archive/ubuntu/openxcom
https://launchpad.net/~knapsu/+archive/ubuntu/openxcom-beta
Title: Re: Puppy Linux thtr
Post by: Leprechaun on December 18, 2015, 02:22:59 pm
Use ppas from Launchpad, mine or knapsu:

https://code.launchpad.net/~winterheart/+archive/ubuntu/openxcom
https://launchpad.net/~knapsu/+archive/ubuntu/openxcom-beta
Winterheart, I assume you are offering a PPA of the latest nightly? If so, I can at least help with testing, if nothing else.
Title: Re: Puppy Linux thtr
Post by: Leprechaun on December 19, 2015, 03:12:45 am
Use ppas from Launchpad, mine or knapsu:
OK, I must be missing something. I tried it. I attempted to launch from the menu, but nothing happens. Then I went looking for an executable, but I can't find it.
Code: [Select]
sudo find / -name openxcom -print
Is Vanna available to sell me a clue?
Title: Re: Puppy Linux thtr
Post by: winterheart on December 21, 2015, 08:19:29 am
which ppa do you use?

EDIT: Anyway, both ppa uses same options. Your binary should be in /usr/games/, data-files should be placed to /usr/share/games/openxcom/UFO/ and /usr/share/games/openxcom/TFTD/.
Title: Re: Puppy Linux thtr
Post by: hellrazor on December 21, 2015, 09:20:46 am
which ppa do you use?

EDIT: Anyway, both ppa uses same options. Your binary should be in /usr/games/, data-files should be placed to /usr/share/games/openxcom/UFO/ and /usr/share/games/openxcom/TFTD/.

No Editor in the world beats Vim! Vim beats all. Vim is the ultimate editor.

One Vim to rule them all, One Vim to find them,
One Vim to bring them all and in the nerdness bind them!
Title: Re: Puppy Linux thtr
Post by: niculinux on December 21, 2015, 10:16:31 am
Nice poem!! ;D
Title: Re: Puppy Linux thtr
Post by: Leprechaun on December 22, 2015, 02:42:43 am
which ppa do you use?
apt-get clean, then reboot, then update, then upgrade got it loaded. It's working now, and I have FMP working too.

Thanks!
Title: Re: Puppy Linux thtr
Post by: 7Saturn on December 22, 2015, 03:02:10 am
apt-get clean, then reboot, then update, then upgrade got it loaded.
Seriously? Usually it's not necessary to do a reboot when updating something as simple and non-critical as a ppa of openxcom. Usually it's quite sufficient to do
Code: [Select]
sudo add-apt-repository ppa:winterheart/openxcom
sudo apt-get update
sudo apt-get install openxcom
for installation and
Code: [Select]
sudo apt-get update
sudo apt-get upgrade
for updating. If it's really not updating then, a
Code: [Select]
sudo apt-get dist-upgrademay be in order, but no reboots. At least I wouldn't understand at all, why one would have to reboot for openxcom. I don't think, it would install a new kernel image... :o
Title: Re: Puppy Linux thtr
Post by: Yankes on December 22, 2015, 03:24:41 am
Seriously? Usually it's not necessary to do a reboot when updating something as simple and non-critical as a ppa of openxcom. Usually it's quite sufficient to do
Code: [Select]
sudo add-apt-repository ppa:winterheart/openxcom
sudo apt-get update
sudo apt-get install openxcom
for installation and
Code: [Select]
sudo apt-get update
sudo apt-get upgrade
for updating. If it's really not updating then, a
Code: [Select]
sudo apt-get dist-upgrademay be in order, but no reboots. At least I wouldn't understand at all, why one would have to reboot for openxcom. I don't think, it would install a new kernel image... :o
considering that you can even hotfixing kernel in linux. another thing is that you could probably update openxcom while it still running because deleting file don't made it unavailable for programs that already opened it (but it crash if it try reopen it).
Title: Re: Puppy Linux thtr
Post by: Leprechaun on December 22, 2015, 11:48:19 pm
It was almost certainly overkill, but having tried the install and not getting anything when I clicked on the icon from the menu, I took action. Since I got it to work, I'd say it was the right thing to do ... and certainly better than sitting around scratching myself and hoping someone could come up with an answer.

I'm not much on sitting around. I'll poke at things until I get it to work.

I still could use some help understanding the save file format. I want to be able to edit the names, races, sexes, and so on of my team. Yes, the file is English, but every time I look at it things move around. I can't understand how things can move, but the bases and so on still look the same. I have been able to edit names, but can't get races and sexes to change reliably. Help?

Thanks!
Title: Re: Puppy Linux thtr
Post by: Yankes on December 23, 2015, 01:12:48 am
You provably change battle unit, entity that exist only during battlescape. You need look for `soldiers`.
And you should look to https://en.wikipedia.org/wiki/YAML and https://www.ufopaedia.org/index.php?title=Rulesets_%28OpenXcom%29 to get better grasp how OXC handle informations in files.
Title: Re: Puppy Linux thtr
Post by: Leprechaun on December 23, 2015, 02:37:09 pm
You provably change battle unit, entity that exist only during battlescape. You need look for `soldiers`.
And you should look to https://en.wikipedia.org/wiki/YAML and https://www.ufopaedia.org/index.php?title=Rulesets_%28OpenXcom%29 to get better grasp how OXC handle informations in files.
No, I was working from the initial Geoscape save.

Modding games is fun, and everyone likes something different. Personally I like to play with people I can relate to. SOMEONE has to open the door with a hostile alien on the other side. I've already lost Hillary Clinton and Rosie O'Donnell, and it's only February 1999.  ;D

Thanks very much for the links. I'll do some more reading.