Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

No poll?

That's right
That is right

Pages: 1 ... 258 259 [260] 261 262 ... 379

Author Topic: Stonesense - Old Official thread - Now locked  (Read 1729508 times)

rytomen

  • Escaped Lunatic
    • View Profile
Re: Stonesense - Official thread
« Reply #3885 on: August 29, 2010, 10:17:29 am »

Try switching to DirectX...

Thanks
It Works)))
Logged

HoppyDragon

  • Bay Watcher
  • Miner cancels Drink; Interrupted by Carp.
    • View Profile
Re: Stonesense - Official thread
« Reply #3886 on: August 29, 2010, 07:58:09 pm »

I'd love to use Stonesense in Linux but I just can't get it to successfully build.  I did manage to track the build errors down to ContentLoader.cpp.  I believe the lines that have the failing code in that file are lines 165 through 198.

Quote
Bld = DF.getBuildings();
   contentLoader.MemInfo = DF.getMemoryInfo();
   if(professionStrings.empty())
   {
      for(int i=0;; i++)
      {
         string temp;
         try
         {
            temp =  MemInfo->getProfession(i);
         }
         catch(exception &e)
         {
            break;
         }
         if(temp[0])
         {
            professionStrings.push_back(temp);
         }
      }
   }

   if(classIdStrings.empty())
   {
      for(int i = 0; ; i++)
      {
         string temp;
         if(!MemInfo->resolveClassIDToClassname(i, temp))
         {
            break;
         }
         classIdStrings.push_back(temp);
      }
   }

And these are the build errors I get.

Quote
Linking CXX executable ../stonesense
CMakeFiles/stonesense.dir/ContentLoader.cpp.o: In function `ContentLoader::Load(DFHack::Context&)':
ContentLoader.cpp:(.text+0x2507): undefined reference to `DFHack::memory_info::resolveClassIDToClassname(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
ContentLoader.cpp:(.text+0x2626): undefined reference to `DFHack::memory_info::getProfession(unsigned int) const'
ContentLoader.cpp:(.text+0x28f0): undefined reference to `DFHack::memory_info::resolveClassIDToClassname(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
collect2: ld returned 1 exit status
make[2]: *** [../stonesense] Error 1
make[1]: *** [CMakeFiles/stonesense.dir/all] Error 2
make: *** [all] Error 2
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: Stonesense - Official thread
« Reply #3887 on: August 29, 2010, 08:19:09 pm »

make sure your building against the right version of stonesense.

there's an on_compiling.txt that says which one to use.
Logged

HoppyDragon

  • Bay Watcher
  • Miner cancels Drink; Interrupted by Carp.
    • View Profile
Re: Stonesense - Official thread
« Reply #3888 on: August 29, 2010, 08:33:16 pm »

make sure your building against the right version of stonesense.

there's an on_compiling.txt that says which one to use.

If you're referring to the latest version, then yes, I am using it.  The only version of Stonesense I found referred to in ON COMPILING.txt was the latest version in the SVN trunk.
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: Stonesense - Official thread
« Reply #3889 on: August 29, 2010, 08:36:08 pm »

* Japa smaks his face

I meant to type DFhack.

make sure your compiling against the right dfhack. the latest one wont work.
Logged

HoppyDragon

  • Bay Watcher
  • Miner cancels Drink; Interrupted by Carp.
    • View Profile
Re: Stonesense - Official thread
« Reply #3890 on: August 29, 2010, 08:57:52 pm »

* Japa smaks his face

I meant to type DFhack.

make sure your compiling against the right dfhack. the latest one wont work.

Oh, alright.  I do have the latest version.  I'll go get DFhack 4.0.5. :D
Logged

HoppyDragon

  • Bay Watcher
  • Miner cancels Drink; Interrupted by Carp.
    • View Profile
Re: Stonesense - Official thread
« Reply #3891 on: August 29, 2010, 10:29:37 pm »

Okay, Stonesense built, and it loads the first screen.  However once I press F9 to continue it crashes back to terminal with this error.
Quote
terminate called after throwing an instance of 'DFHack::Error::MissingMemoryDefinition'
  what():  memory definition missing: type address key current_menu_state
Aborted
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: Stonesense - Official thread
« Reply #3892 on: August 29, 2010, 10:32:48 pm »

get the latest XML from the first post.
Logged

HoppyDragon

  • Bay Watcher
  • Miner cancels Drink; Interrupted by Carp.
    • View Profile
Re: Stonesense - Official thread
« Reply #3893 on: August 29, 2010, 10:36:04 pm »

get the latest XML from the first post.

I put that in the same directory as the stonesense executable and I get the same error as before.
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: Stonesense - Official thread
« Reply #3894 on: August 29, 2010, 10:38:41 pm »

in that case, take it up with the DFhack guys, and see if they can help.

or runn the windows version of DF through wine. SS can still connect to that from what I heard.
Logged

HoppyDragon

  • Bay Watcher
  • Miner cancels Drink; Interrupted by Carp.
    • View Profile
Re: Stonesense - Official thread
« Reply #3895 on: August 29, 2010, 10:51:17 pm »

in that case, take it up with the DFhack guys, and see if they can help.

or runn the windows version of DF through wine. SS can still connect to that from what I heard.
I tried the Wine solution before I tried compiling and I had no luck.  After your post I tried using that Memory.xml file for SS as well as DFhack and now SS no longer crashes.  However, I'm now stuck at "Connecting to DF..."

EDIT:  I was able to run through Wine but this is not at all a desirable way to use Stonesense and Dwarf Fortress together.  When SS is running in Wine alongside DF running in Wine, SS causes DF to stutter very badly, making it virtually unplayable.
« Last Edit: August 30, 2010, 02:53:45 am by HoppyDragon »
Logged

HoppyDragon

  • Bay Watcher
  • Miner cancels Drink; Interrupted by Carp.
    • View Profile
Re: Stonesense - Official thread
« Reply #3896 on: August 31, 2010, 04:17:08 am »

I am now having no problems building with r863 in Linux, however I get this error when I start Stonesense.

Quote
terminate called after throwing an instance of 'DFHack::Error::MemoryXmlNoDFExtractor'
  what():  DFExtractor != DFHack
Aborted

I think I tracked it down to the Memory.xml files used for both DFHack and Stonesense. I updated the instances of DFhack in those files to DFExtractor and that allowed Stonesense to run, but now I am stuck at the "Connecting to DF..." screen.
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: Stonesense - Official thread
« Reply #3897 on: August 31, 2010, 05:00:28 am »

peterix just recently did some stuff to get stonesense working on linux.

try again with the latest DFhack, and the latest stonesense.
Logged

HoppyDragon

  • Bay Watcher
  • Miner cancels Drink; Interrupted by Carp.
    • View Profile
Re: Stonesense - Official thread
« Reply #3898 on: August 31, 2010, 05:07:30 am »

peterix just recently did some stuff to get stonesense working on linux.

try again with the latest DFhack, and the latest stonesense.

Well, I did install the latest DFhack from github, but I'll clean everything out and start from scratch.
Logged

HoppyDragon

  • Bay Watcher
  • Miner cancels Drink; Interrupted by Carp.
    • View Profile
Re: Stonesense - Official thread
« Reply #3899 on: August 31, 2010, 05:30:11 am »

I cleaned out Stonesense and DFhack from my system and downloaded the latest source files for both.  I have not modified the Memory.xml file or any other files for that matter and I'm still getting the same error as before.

EDIT: Peterix helped me via ICQ to get it working.  Terrain is the only thing visible for now but that's much better than "Connecting to DF..."
« Last Edit: August 31, 2010, 07:24:31 am by HoppyDragon »
Logged
Pages: 1 ... 258 259 [260] 261 262 ... 379