Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - gazj

Pages: [1]
1
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: September 16, 2011, 02:36:28 pm »
Thats the problem Dwarf Fortress in Arch Linux comes as a package in the official repos.  I could ask them to change the package permissions but ideally they would like df game saves in home aswell.  As it happens I do symlink the data folder to a place in my home so it gets in my backups.

The place it should really go I guess if here.  It should really be written to the path stored in this variable $XDG_CONFIG_HOME

Information here http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

I guess windows has some equivelent that by default goes to X:\Documents and settings\USERNAME\etc\etc  (<-- Going from memory haven't used windows for ages)

I can see the advantage of keeping it in the df bundle especially for the devs as release cycles are so frequent and for windows users, altho if I used windows I would personally still move the folder to Program Files, no doubt this would cause me problems with permissions again.

2
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: September 14, 2011, 01:52:41 pm »
Well dont to you then :D and Thanks, it was almost unbearable to leave running constantly before, but now it is entirely possible and my machine is pretty old.

P4 @ 3000Mhz with hyper threading
Nvidia Ge-Force 7800 GT with 512MB Ram
1.5 GB Ram

3
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: September 14, 2011, 10:14:18 am »
The build system can tell from my PKGBUILD which dependencies it needs by asking the host what architecture they are running.  I can't test 64 bit but I shall no doubt have some feedback soon.

Ok, have worked out the problem with point 2

The default arch linux package does not have user write permissions in the default df directory.  When I give my user account write permission to the df directory fullscreen works with out any problem at all.  With the default permissions none of the log files can be created!  I take it this a problem for stonesense seeing as Stonesense.log appears to keep a list of resolutions.

This could be a mod for the maintainer of the dwarf fortress package, although I am sure they would like to keep it read only and only the data directory write permissions.

Can Stonesense.log be written to the data directory?

I am also running the nvidia binary driver just to let you know on a GeForce 7800 GT

on point 2
Arch uses libpng 1.4 by default so I am just about to install the libpng12 package to see what the outcome is.  Will keep you posted.  Would you prefer me to package it with you allegro?  I guess it helps you with bug reporting etc?
EDIT: Working with your allegro guess it was the need for libpng12

Lastly stonesense seems much much quicker than when I last tried it on my modest hardware.  Not sure what the improvements have been but well done :)

4
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: September 14, 2011, 04:50:47 am »
Ok have managed to build it.  I have updated the dfhack-git package in the Arch Linux aur and have notfified the maintainer of the stonesense-svn package of the new situation.  I do not have a 64 bit machine, so I welcome any input on 64 bit problems.

Arch Linux dfhack-git package
https://aur.archlinux.org/packages.php?ID=35350


@peterix - 2 issues
1. When using your allegro from git I get an error that the stonesense plugin cannot be loaded.
2. When using arch's own allegro5 library all works, until I try to maximise the stonesense window, then the whole dfhack process falls over with no output.

Can I help with these problems at all?

5
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: September 12, 2011, 05:26:07 am »
Hi Guys, really struggling to compile on Arch Linux.  Output of cmake

Code: [Select]
cmake .. -DCMAKE_BUILD_TYPE:string=Release
CMake Error at CMakeLists.txt:177 (DFHACK_PLUGIN):
  Unknown CMake command "DFHACK_PLUGIN".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Please help

6
I always release a linux version of maydays on my website (although only following Mike's release).  Here is the script I use to merge the two.  Just change the variables at the top for the versions you wish to merge.

http://www.foxjames.co.uk/linux/dfg
http://www.foxjames.co.uk/linux/dfg/df2dfg

Code: [Select]
#!/bin/bash
#converts dwarf fortress into Mike Maydays graphical version

dfv="31_16"
dfgv="31_16"
dffolder="df_linux"
dfgfolder="df_"$dfv"_win"
#zipprefix="dfg_31_14_win_s" #use when the zipfile has some silly prefix Grr
initfile=$dffolder/data/init/init.txt

#get ourselves out of the working directory
mkdir -p df2dfg/$dfgfolder
cd df2dfg

#get packages
wget "http://www.bay12games.com/dwarves/df_"$dfv"_linux.tar.bz2"
wget "http://mayday.w.staszic.waw.pl/~mayday/upload/dfg_"$dfgv"_win_s.zip"

#unpack packages
tar xf "df_"$dfv"_linux.tar.bz2"
unzip "dfg_"$dfgv"_win_s.zip" -d $dfgfolder

#merge the contents
rm -R $dffolder/raw
cp -R $dfgfolder/$zipprefix/raw $dffolder
cp -R $dfgfolder/$zipprefix/data/art $dffolder/data
cp -R $dfgfolder/$zipprefix/data/init/colors.txt $dffolder/data/init

#edit the init file to include the graphics set
sed -i 's/GRAPHICS:NO/GRAPHICS:YES/g' $initfile
sed -i 's/GRAPHICS_FONT:curses_square_16x16.png/GRAPHICS_FONT:mayday-sans-highlight.png/g' $initfile
sed -i 's/GRAPHICS_FULLFONT:curses_square_16x16.png/GRAPHICS_FULLFONT:mayday-sans-highlight.png/g' $initfile
sed -i 's/GRAPHICS_BLACK_SPACE:YES/GRAPHICS_BLACK_SPACE:NO/g' $initfile

#tar her back
tar cf "dfg_"$dfv"_linux.tar.bz2" $dffolder

7
Sorry I am a little late, linux version of dfg is up at http://www.foxjames.co.uk/linux/dfg/dfg_31_14_linux.tar.bz2

8
Hmmm, I'm not sure that it does everything right since I'm a bloody newb when it comes to unixes... I'll write the tutorial and you'll be able to check if everything is done as needed, then I'll place it on the website, ok?

I know it does not copy your embark profiles, and it uses the sans-highlight tileset by default.  This is only because they are my personal preferences.  The script can be changed to use the standard tileset and include your embark profiles for your website if prefered.

9
Linux version available on my server as always.  www.foxjames.co.uk/linux/dfg

Mike - You can post the build script I use to automatically convert df to dfg on your website if you wish.  It's a little easier than the manual way.  It should in theory work for mac users too.  Just change the first to variables to mix the versions you require.

Code: [Select]
#!/bin/bash
#converts dwarf fortress into Mike Maydays graphical version

dfv="31_12"
dfgv="31_12"
dffolder="df_linux"
dfgfolder="df_"$dfv"_win"
initfile=$dffolder/data/init/init.txt

#get ourselves out of the working directory
mkdir -p dfconv/$dfgfolder
cd dfconv

#get packages
wget "http://www.bay12games.com/dwarves/df_"$dfv"_linux.tar.bz2"
wget "http://mayday.w.staszic.waw.pl/~mayday/upload/dfg_"$dfgv"_win.zip"

#unpack packages
tar xf "df_"$dfv"_linux.tar.bz2"
unzip "dfg_"$dfgv"_win.zip" -d $dfgfolder

#merge the contents
rm -R $dffolder/raw
cp -R $dfgfolder/raw $dffolder
cp -R $dfgfolder/data/art $dffolder/data
cp -R $dfgfolder/data/init/colors.txt $dffolder/data/init

#edit the init file to include the graphics set
sed -i 's/GRAPHICS:NO/GRAPHICS:YES/g' $initfile
sed -i 's/GRAPHICS_FONT:curses_square_16x16.png/GRAPHICS_FONT:mayday-sans-highlight.png/g' $initfile
sed -i 's/GRAPHICS_FULLFONT:curses_square_16x16.png/GRAPHICS_FULLFONT:mayday-sans-highlight.png/g' $initfile
sed -i 's/GRAPHICS_BLACK_SPACE:YES/GRAPHICS_BLACK_SPACE:NO/g' $initfile

#tar her back
tar cf "dfg_"$dfv"_linux.tar.bz2" $dffolder

10
I have packaged the linux version here in a bzipped tarball.

http://www.foxjames.co.uk/linux/dfg/dfg_31_10_linux.tar.bz2

Arch Linux users can find dfg in the AUR here http://aur.archlinux.org/packages.php?ID=38076

If anyone wants to make packages for any other specific linux distros, let me know and I will upload them to my server.  I use Arch Linux thats why it's the only one I have covered.

11
DF Gameplay Questions / Re: How do I make use of a magma sea
« on: July 01, 2010, 04:08:25 pm »
Lovely thank you,  Lets see if I can manage to make and power some then.  Watch this space

12
DF Gameplay Questions / How do I make use of a magma sea
« on: July 01, 2010, 03:36:47 pm »
Is it a case of using pumps, to pump my magma where I want it.  Please help!

13
No worries noticed the version difference so porb won't work anyway.  Running the tutorial version in wine now :)

14
The linux client does not come with the world files as suggested to use in the turorial.  I have downloaded the tutorial files and unrared them.  The question is where are the world files (somewhere in data I guess).  If I know where they are I guess it will be as simple as copy them to my linux clients data file.

I have worked out the saves folder ;)

Pages: [1]