Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Loading Errors  (Read 921 times)

DizzyFoxkit

  • Bay Watcher
    • View Profile
Loading Errors
« on: September 26, 2011, 12:14:45 pm »

Alright, so I've compiled the game for ubuntu 10.10. I couldn't get the game to start so I tried to start it via terminal and I end up with this set of error msgs.
Attempting to open filename: sitemaps.txt Failed to load sitemaps.txt! Reverting to old map mode.
FAILED to load vehicles.xml!
FAILED to load clips.xml!
FAILED to load weapons.xml!
FAILED to load armors.xml!FAILED to load loot.xml!

Why would the game fail to load these??
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Loading Errors
« Reply #1 on: September 26, 2011, 01:36:11 pm »

Most likely they're not in the correct directory. Does the current Linux readme have instructions for manually placing them?
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: Loading Errors
« Reply #2 on: September 26, 2011, 02:59:45 pm »

I don't believe the linux readme includes that information.  I don't have my linux box in front of me to check, though.  More importantly, if you get the source off of the sourceforge subversion repository, it should place everything in the correct locations.  Where and how did you grab the code?
Logged

DizzyFoxkit

  • Bay Watcher
    • View Profile
Re: Loading Errors
« Reply #3 on: September 27, 2011, 04:44:52 pm »

@Fox (this feels odd DX) No the Linux readme I have doesn't have manual placement instructions
@Stargrapser I have no idea how to even checkout SVN much less compile from SVN. However I got the version off of the 4.04.0 link in the frontpage.
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: Loading Errors
« Reply #4 on: September 27, 2011, 08:14:55 pm »

Alright, I'm looking into it quick.

The source file from that thread is missing some files you don't need to compiling on Linux, but it does appear to have everything you actually need.  The file should decompress with a folder call 'lcs_4.04.0_src'.  Within that folder, the xml files in question belong in the art directory.  The copy I just downloaded to check contains them, so either you lost them somewhere (redownload the archive) or they didn't get parsed by the program correctly (run 'make clean' and then 'make', this thing lets us run 'make clean', right?).  Unfortunately, my Linux box isn't immediately available to me and my VM isn't cooperating, so I can't actually confirm that 'make clean' works, but it's fairly standard, so it really ought to.

I generally suggest ignoring that thread and running an svn checkout.  The subversion repository contains the most update to date version of the game, which is more up to date than the version in that thread.

To do a Subversion checkout, install Subversion with the following command:
Code: [Select]
sudo aptitude install subversion
then run
Code: [Select]
svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame lcsgame
I'm not sure why the game would fail to find/parse these files, but I do think the first step is to just rebuild the program and see if it runs.  And yes, you will have to always run this from the terminal.  It's a terminal-based ascii program, after all.  On a related note, set the terminal size to 80x25.  I'm pretty sure the Debian/Ubuntu/All-Their-Derivatives terminal defaults to 80x24.

I'm not the most knowledgeable Linux user here, but I'll certainly try to find the solution to your problem if rebuilding doesn't solve it.  Also, far off chance, but make sure you're building LCS in your Home directory somewhere.
Logged

DizzyFoxkit

  • Bay Watcher
    • View Profile
Re: Loading Errors
« Reply #5 on: September 27, 2011, 09:35:30 pm »

@Stargrasper: Thanks for the code for the SVN checkout. Yes I can do 'make clean' I've only used checkinstall though so I have no idea how 'make clean' affects that. I did get the game to work after a few hiccups with the previously installed version. Thanks for help, I believe you can mark this as solved.
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: Loading Errors
« Reply #6 on: September 27, 2011, 09:46:44 pm »

Typically, the 'make clean' command removes the executable, object files, and some miscellaneous backup files.  Maybe some other things all depending.  The point is to completely remove everything created during the compile, link, and assemble steps so that you can rebuild fresh.  If you run 'make' when you already have these files, it attempts to check for changes in the source files and update the corresponding object files and executable as needed, only recompiling individual source files that have actually changed.  Removing all of them is a good idea under certain circumstances.  A faulty compilation would be one of those circumstances.

Out of curiosity, what did you end up doing to get it to work?
Logged

DizzyFoxkit

  • Bay Watcher
    • View Profile
Re: Loading Errors
« Reply #7 on: September 27, 2011, 09:59:00 pm »

I couldn't remember the dpkg -r name of LCS so I followed a hunch and looked in USC for it, uninstalled it, then ran
Code: [Select]
sudo checkinstall from trunk. I'm still really new to Linux and Compiling in general. Its been a ... *fun* experience though :) I also ran into a problem with both the main page and svn code that it wouldn't create /usr/local/share/lcs or ""/share/man. Easy fixes but I figured they should be mentioned... if no one else has mentioned them yet.
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: Loading Errors
« Reply #8 on: September 27, 2011, 10:08:18 pm »

I never actually installed the game.  I just built it and ran it from there.

You'll get used to compiling programs.  A lot of programs are distributed to Linux in source form and you're expected to build them yourself.  You'll also want to consider checking the original provider of applications against the version in the Ubuntu repositories.  Often, the version in the repo is outdated relative to the newest version.  For example, I think the version of Eclipse in the Debian repo (and presumably the Ubuntu repo) is 3.5, while the most recent version is 3.7.

Normally, after downloading source, most come with a configure script and makefile so that you can build them in two steps.
Code: [Select]
./configure
make

Linux is a little tricky at first, but it comes pretty quickly.  Have fun.
Logged