Author Topic: [Solved] Compiling from SVN: "Error loading core data."  (Read 2078 times)

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
[Solved] Compiling from SVN: "Error loading core data."
« on: 29 November 2010, 02:09:01 »
I don't know what I'm doing wrong here, but I've tried several different things, and I think it all comes down to the data directory being in the wrong place.  I've tried:
Code: [Select]
-DGAE_DATA_DIR=../data
-DGAE_DATA_DIR=../data/game
-DGAE_DATA_DIR=../data/game/data

All of them give me a similar result.  The game window opens (at the proper resolution, so it's reading the .ini), but is pure black and doesn't do anything.  I have to either wait a minute or two for it to throw an error and crash, or force kill it.

Here's the output from my most recent attempt: http://pastebin.com/vpjXW78z

Keeping in mind that I'm an absolute beginner at compiling anything (only done it successfully two or three times), what might I be doing wrong?
« Last Edit: 29 November 2010, 22:37:35 by John.d.h »

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Compiling from SVN: "Error loading core data."
« Reply #1 on: 29 November 2010, 02:37:01 »
Recommended settings:

-DGAE_CONFIG_DIR=~/.glestadv
-DGAE_DATA_DIR=~/glestae_svn/data/game

The config dir is of course the same as you have it set now, but ../../.. isn't so nice looking ;)

This 'hardcodes' the data location to the checked-out data, so you don't need to build the install target. Just run the bin from the build/source dir (like you were trying already).

Glest Advanced Engine - Code Monkey

Timeline | Downloads

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Compiling from SVN: "Error loading core data."
« Reply #2 on: 29 November 2010, 04:04:16 »
Okay, how about this?
Code: [Select]
john@satellite ~/glestae_svn/build $ ./source/game/glestadv
config-dir: ~/.glestadv
data-dir: ~/glestae_svn/data/game

terminate called after throwing an instance of 'std::runtime_error'
  what():  Failed to create directory ~/.glestadv:
Aborted

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Compiling from SVN: "Error loading core data."
« Reply #3 on: 29 November 2010, 06:13:23 »
hmmm... maybe replace the '~' with '/home/john' ?

Glest Advanced Engine - Code Monkey

Timeline | Downloads

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Compiling from SVN: "Error loading core data."
« Reply #4 on: 29 November 2010, 07:17:34 »
That gives me the same error as the first one:
Code: [Select]
Error loading core data.
ov_open_callback failed on ogg file: data/core/menu/music/menu_music.ogg

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Compiling from SVN: "Error loading core data."
« Reply #5 on: 29 November 2010, 20:12:07 »
Ok then...

What's in military_24_files.7z and does the game start with it removed from addons? Is that 7z solid? (this is apparently default behaviour on linux, we need non-solid).
Glest Advanced Engine - Code Monkey

Timeline | Downloads

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Compiling from SVN: "Error loading core data."
« Reply #6 on: 29 November 2010, 20:42:44 »
I don't think that's the problem but i'm also puzzle why ../data/game doesn't work as it does for me.

I changed the compile guide a bit and added one point at the end about updating. Don't re-checkout on top of your old working copy. Just call "svn up" when you are in glestae_svn.

Better leave GAE_CONFIG_DIR empty as it defaults then to $HOME/.glestae at startup and isn't fixed to one directory (especially good when there are more than one user on the system).

My attempt to fix your problem: update working copy and rebuild with a clean build directory
Code: [Select]
$ cd ~/glestae_svn
$ svn up
$ cd build
$ rm -r *
$ cmake -DGAE_DATA_DIR=$PWD/../data/game ..
$ make
$ ./source/game/glestadv

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Compiling from SVN: "Error loading core data."
« Reply #7 on: 29 November 2010, 22:37:10 »
Well now I get to feel dumb.  All this time I thought it was a compilation problem, when really it was Military causing the error.  Removing it or re-compressing it as a zip fixes it.  Thanks, guys. :thumbup:

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: [Solved] Compiling from SVN: "Error loading core data."
« Reply #8 on: 29 November 2010, 23:02:28 »
Cool, svn up and rebuild, you can find a very small addon to test cloaking attached to the ticket, 'permanent' cloaks only so far though.
Glest Advanced Engine - Code Monkey

Timeline | Downloads