News:

SMF - Just Installed!

Main Menu

Recent posts

#61
Knights Discussion / Re: Linux issues
Last post by ImpassIve - August 10, 2017, 09:51:11 PM
Yeah, something is wrong with those executables, not sure about the reason. Maybe you could try to replace them with mine and see if that works?
http://www.filedropper.com/linuxmintexecutablestar
(just a reminder: after replacement, run the game as "./knights" instead of "knights" since the latter will launch a previously installed copy, instead of a local one)

P.S. To Stephen:
http://imgur.com/a/0DF2r
"p pimpl" command results in "Couldn't access memory at 0x40".
Something went wrong right after "RStream::Initialize" call (it is hard to tell for sure with -O3), since "&pimpl = 0x7fffffffdbe0" turned into "&pimpl = 0x40". There is only one call inside, so looks like "bfs::canonical(base_path_)" caused this.

P.P.S.
On the asm level:
address of pimpl (0x7fffffffdbe0) was stored on the ebx register.
it was saved onto the stack at the entry of RStream::Initialize with "push ebx" instruction, but recovering instruction "pop ebx" at the exit returned "0x40" instead. Something obviously corrupted the stack in the middle, but I have no idea how did this happen and what to do with this fact.

P.P.P.S.
The exact stack corruption happened here (there is no source code available, but this part is imported from libboost-filesystem-dev library)
http://imgur.com/a/SdvUa
#62
Knights Discussion / Re: Linux issues
Last post by d.healey - August 10, 2017, 09:09:20 PM
This is the output I get after remaking (and setting CFLAGS)

dave@dave-TP300LA ~/Desktop/knights_025_src $ knights
Loading data files from "knights_data".
Segmentation fault
dave@dave-TP300LA ~/Desktop/knights_025_src $ gdb ./knights
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./knights...done.
(gdb) bt
No stack.
(gdb)

Here's a link to my knights folder - http://www.filedropper.com/davesknightsfolder
#63
Knights Discussion / Re: Linux issues
Last post by Stephen - August 10, 2017, 06:14:53 PM
If it's crashing it would be helpful to see the call stack at least.
To get that, run using gdb as ImpassIve_rus describes, then when it crashes, type "bt" and post the output here.

Also I'll look into updating the fonts.txt file as it certainly makes sense to have one of the default fonts installed with Wine in there.
#64
Knights Discussion / Re: Linux issues
Last post by ImpassIve - August 10, 2017, 01:40:16 PM
Hm... to be honest, I don't have much experience with Linux, so I'm not sure if I could help you, especially since I haven't yet found a way to reproduce this error.
Anyway, let's try to add some info:

  • Does it simply outputs "Segmenation fault" without providing any stack trace?
  • Have you tried launching it with gdb (just "gdb ./knights" and then "run"), to see if it stops at the location of the segmentation fault? (you may want to add debugging symbols to the knights executable, by adding "-g" flag to the "CFLAGS" of your Makefile and rebuilding it like "make clean && make")
  • Could you put your knights folder (with both sources and compiled executables) into an archive and post it here?
#65
Knights Discussion / Re: Linux issues
Last post by d.healey - August 10, 2017, 12:18:01 PM
Ok I originally installed the dependencies through the graphical package manager, I've just reinstalled them all through the terminal and each one said it already had the latest version except libcurl. I then did Make and Make install but I still get:

Loading data files from "knights_data".
Segmentation fault
#66
Knights Discussion / Re: Linux issues
Last post by d.healey - August 09, 2017, 09:43:11 PM
I'm sure I've installed them but if it's working for you I must have missed something. I'll try reinstalling the prerequisites
#67
Knights Discussion / Re: Linux issues
Last post by ImpassIve - August 09, 2017, 08:12:07 PM
Building from sources worked fine to me.
Are you sure you've installed all the required libraries?

What I've done:
1) Downloaded and installed Linux Mint 18.2 "Sonya" - KDE (64-bit)
2) Installed g++, libboost-dev, libboost-filesystem-dev, libboost-system-dev, libboost-thread-dev, libsdl-dev, libcurl4-openssl-dev, libfreetype6-dev, libfontconfig-dev
3) Downloaded and extracted knights source code package from the download page
4) Launched make file
5) Launched the game and tried connecting to the server
#68
Knights Discussion / Re: Linux issues
Last post by d.healey - August 09, 2017, 01:22:02 PM
I found two methods to resolve the font issue. Method A is to install the ms core fonts  - I had already done this but there is a known bug with the usual installation method. What you need to do is first of all uninstall them (if you've already installed them) and then install them via winetricks - Google for more info. Method B is to add Tahoma to the fonts.txt, apparently this font is included with Wine - so perhaps this should be added to the fonts.txt by default in a future update. So after solving this issue the game window will at least open but it just hangs on a blank screen so I still can't run it via Wine :(

I haven't found a solution for the segmentation fault yet either but I think this is something that will require some code debugging which is not my area.
#69
Knights Discussion / Re: mod list
Last post by d.healey - August 03, 2017, 11:21:43 PM
Many thanks!
#70
Knights Discussion / Re: mod list
Last post by ImpassIve - August 03, 2017, 07:06:42 PM
Quote from: d.healey on August 03, 2017, 05:16:37 PM
Where can I download the multiwand mod?

I believe this is the file you are looking for.