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 - schplat

Pages: [1]
1
Figure I'll weigh in on the fix the laptop piece since that's a good chunk of what I do for a living.  Assuming the HDD is good, and the laptop is otherwise irreparable:

Pull the HDD out of the laptop.  Usually held in by a single screw.
If it's a SATA drive, just plug that bad boy into any PC, and start yanking files off
If it's a PATA drive, then you'll need a 2.5" to 3.5" adapter (buyable at most PC repair places, also off Newegg, Amazon and the like).  Hopefully you have a PC that still has a PATA connector (wide, flat ribbon cable).
Try to do this before you send it off to repair anywhere, since repair places like to wipe drives first, ask questions later.

Look forward to the return of this story.

2
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: June 11, 2011, 08:09:22 pm »
What does dmesg say about the segfault?  Should give you a library where it crashes.  If peterix, or whomever wants to work on it, they may also want an strace (I'll leave that to them).  I wish I had better coding chops, but much of this is over my head.  I can compile most anything (comes from days as a Solaris admin 15 years ago), and aside from maybe tweaking small amounts of code, tracking this one down and fixing it is beyond me.

If you're getting the .ttf can't be loaded error, do a 'cd ~/stonesense && ./stonesense &' (no quotes) from there.  I was able to replicate that, it's a PATH issue, I forgot I do some funky PATH stuff =P.

Maybe I'll see what it takes to compile on a Mac.  Dunno if I'm THAT masochistic though.  Plus, I think the memory stuff is WAY different anyways.

3
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: June 10, 2011, 04:25:14 pm »

Just built it and compiled again, no dice. Is the font stuff included seperately?

Yes.  Building all addons is the safe bet, but all that was required for me was ttf, dialog, and image.  Building on additional addons may help if additional addons are later included in Stonesense.

4
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: June 10, 2011, 10:09:36 am »

This nearly worked, however, these packages aren't available to me through yum (what is yum anyway? Isn't apt-get the same thing?):
No package allegro5 available.
No package allegro5-devel available.
No package allegro5-addon-ttf-devel available.
No package allegro5-addon-image-devel available.
No package allegro5-addon-dialog-devel available.

~/stonesense/stonesense & gives me 'cannot load font: DejaVuSans.ttf'. It's in the folder with stonesense's main application, however. Terminal says SS can't find the init file, but init tells it to look for that font, so maybe the error is unrelated/doesn't affect anything? That seems to indicate that init can be read.

yum and apt-get are similar, but quite a bit different in what packages are available, since your distro controls what's available.  Fedora makes these available.  You're gonna be stuck building allegro5 manually from source.  You can't load the font, because the addon-ttf-devel package isn't there to build off of.

Allegro's wiki shows a how to build on Debian based distros.  I'd start there.

5
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: June 05, 2011, 07:55:44 pm »
Linux Build instructions! (This is good as of DF 31.25, DFHack 0.5.14, and Stonesense Slate v2.3).  This was performed under Fedora 15, so YMMV with Ubuntu/Arch/etc.

1. Download DFHack and build it:

https://github.com/peterix/dfhack (this will have a file hash in the filename, so I'll use wildcards and/or tab completions to fill in for that piece)
Click Downloads, the under Download Source, click .tar.gz
mkdir ~/dfhack
mv ~/Downloads/peter-dfhack* ~/dfhack
cd ~dfhack
tar zxvf peter-dfhack*.tar.gz
cd peter-dfhack<tab complete>
cd build
cmake .. -DCMAKE_BUILD_TYPE:string=Release
make
arch (looking for .i686 or x86_64, basically 32-bit or 64-bit)
if 64-bit:
  sudo cp ~/dfhack/peterix-dfhack*/build/bin/libdfhack.so /usr/lib64
if 32-bit:
  sudo cp ~/dfhack/peterix-dfhack*/build/bin/libdfhack.so /usr/lib

2. Install allegro5 and devel libs needed

sudo yum install allegro5 allegro5-devel allegro5-addon-ttf-devel allegro5-addon-image-devel allegro5-addon-dialog-devel

3. Download Stonesense and build:

cd ~
svn checkout http://stonesense.googlecode.com/svn/trunk stonesense
cd stonesense
rm -rf allegro
cd build
cmake .. -DCMAKE_BUILD_TYPE:string=Release
CPLUS_INCLUDE_PATH=~/dfhack/peterix-dfhack<tab complete>/library/include make

DONE!  Should be able to start stonesense with ~/stonesense/stonesense &

Enjoy.

6
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: June 05, 2011, 04:02:56 pm »
Good call, blew away the allegro directory completely (already had the allegro devel stuff).  Also needed to add:  CPLUS_INCLUDE_PATH=/home/splat/dfhack/peterix-dfhack-da2fb1c/library/include as well as copy /home/splat/dfhack/peterix-dfhack-da2fb1c/build/libdfhack.so to /usr/lib64 (tried doing LD_LIBRARY_PATH, but no gusta, the copy worked)

So now it builds all the way, but X doesn't like it:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  129 (XFree86-VidModeExtension)
  Minor opcode of failed request:  6 (XF86VidModeGetAllModeLines)
  Value in failed request:  0x17
  Serial number of failed request:  35
  Current serial number in output stream:  35

Probably because I'm using TwinView?

Edit:  Definitely.  I'm using Twinview's Rotate, which disables XRandR, which is required to launch stonesense.  Going to see if I can get XRandR to rotate this screen, but I haven't had luck with that in the past.  For desk space issues, I've got 2 1680x1050 monitors rotated 90 degrees (so basically a 2100x1680 display).  I'll write I full install guide, and if someone wants to update the compile for linux doc, that'd be good imo.

7
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: June 05, 2011, 02:11:38 pm »
Looks like the Linux build is broken.  Looks like attempting to make attempts to compile the Windows binaries.

First I got:

In file included from /home/splat/stonesense/stonesense/Block.cpp:1:0:                                                         
/home/splat/stonesense/stonesense/common.h:13:34: fatal error: allegro5/allegro_ttf.h: No such file or directory
compilation terminated.

This was fixed with ln -s ./allegro/allegro5/ ./allegro5 from the stonesense root.

Next pass produces:

/home/splat/stonesense/stonesense/allegro5/platform/almsvc.h:19:16: fatal error: io.h: No such file or directory
compilation terminated.

io.h is a Windows header, not to mention msvc refers to MS VC.

I have all the libs that are claimed to be required:

allegro5-devel-5.0.0-3.fc15.x86_64
zlib-devel-1.2.5-3.fc15.x86_64
libpng-devel-1.2.44-3.fc15.x86_64
cmake-2.8.4-1.fc15.x86_64
make-3.82-4.fc15.x86_64
gcc-c++-4.6.0-7.fc15.x86_64

Any thoughts on how to build from here?

8
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: June 03, 2011, 11:08:18 pm »
Gah.

Alright, guess no stonesense at work =/, or I ditch virtualbox, and try out the OSX port of DT (which is the main functionality I'm going for anyways).  Thanks for the quick answer.

9
DF Modding / Re: Stonesense - Official thread - Now 31.21 compatible
« on: June 03, 2011, 10:52:53 pm »
So I have most recent LNP 9.1 (with slate 2.3).  Stonesense working fine on one machine.  Set it up on a second machine (This one a Win 7 VM inside VirtualBox), DF / DT work fine.  Stonesense will flicker like it's trying to open for about 3-5 seconds, then come back with an APPCRASH in stonesense.exe with the trace back to allegro5.dll

Scoured around for an answer, and nothing.

Tried:

Turning image cache off/on, setting image cache size to 4k, 2k, 1k.  Setting the renderer to SOFTWARE.

stonesense.log yields nothing other than:

Stonesense launched
Using allegro version 5.0.0 r1

Any ideas of what to try next?

Pages: [1]