aliens

Author Topic: where openxcom.log file?  (Read 21562 times)

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
where openxcom.log file?
« on: August 31, 2016, 03:53:08 am »
Run and bug. I observed $HOME folder and there is no openxcom.log file. Where it can be placed?

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: where openxcom.log file?
« Reply #1 on: August 31, 2016, 05:32:22 am »
Look for it in your user folder, or something like ~/.local/openxcom or ~/.config/openxcom.  Alternatively, try
Code: [Select]
locate openxcom.log on a terminal.

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: where openxcom.log file?
« Reply #2 on: August 31, 2016, 05:52:41 am »
Thank you. It was in ~/.local/share/openxcom.

Now I have another question. What does this mean?

Code: [Select]
[30-08-2016_22-49-07] [INFO] Data folder is: /home/martin/X-Com/Nightly/
[30-08-2016_22-49-07] [INFO] Data search is:
[30-08-2016_22-49-07] [INFO] - /home/martin/X-Com/Nightly/
[30-08-2016_22-49-07] [INFO] - /home/martin/.local/share/openxcom/
[30-08-2016_22-49-07] [INFO] - /usr/local/share/openxcom/
[30-08-2016_22-49-07] [INFO] - /usr/share/openxcom/
[30-08-2016_22-49-07] [INFO] - /usr/local/share/openxcomhttps://
[30-08-2016_22-49-07] [INFO] - ./
[30-08-2016_22-49-07] [INFO] User folder is: /home/martin/.local/share/openxcom/
[30-08-2016_22-49-07] [INFO] Config folder is: /home/martin/.config/openxcom/
[30-08-2016_22-49-07] [INFO] Options loaded successfully.
[30-08-2016_22-49-07] [INFO] SDL initialized successfully.
[30-08-2016_22-49-07] [INFO] SDL_mixer initialized successfully.
[30-08-2016_22-49-07] [INFO] requested file not found: openxcom.png
[30-08-2016_22-49-07] [INFO] Attempting to set display to 640x400x8...
[30-08-2016_22-49-07] [INFO] Display set to 640x400x8.
[30-08-2016_22-49-07] [INFO] Loading data...
[30-08-2016_22-49-07] [INFO] Scanning standard mods in '/home/martin/X-Com/Nightly/standard'...
[30-08-2016_22-49-07] [INFO] Scanning user mods in '/home/martin/.local/share/openxcom/mods'...
[30-08-2016_22-49-07] [INFO] no master already active; activating xcom1
[30-08-2016_22-49-07] [INFO] Mapping resource files...
[30-08-2016_22-49-07] [INFO] Resources files mapped successfully.
[30-08-2016_22-49-08] [INFO] Loading fonts... Font.dat
[30-08-2016_22-49-08] [INFO] Loading extra resources from ruleset...
[30-08-2016_22-49-08] [INFO] Data loaded successfully.
[30-08-2016_22-49-08] [INFO] Loading language...
[30-08-2016_22-49-09] [INFO] Language loaded successfully.
[30-08-2016_22-49-09] [INFO] OpenXcom started successfully!
[30-08-2016_22-49-09] [INFO] Playing flx, 320x200, 890 frames
[30-08-2016_22-49-09] [INFO] Using software scaling routine. For best results, try an OpenGL filter.
[30-08-2016_22-49-09] [INFO] SDL_mixer initialized successfully.
[30-08-2016_22-49-09] [INFO] SDL_mixer initialized successfully.
[30-08-2016_22-49-10] [FATAL] A fatal error has occurred: Segmentation fault. This usually indicates something missing in a mod.
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZN8OpenXcom13CrossPlatform10stackTraceEPv+0x2e) [0x84a94b]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZN8OpenXcom13CrossPlatform9crashDumpEPvRKSs+0x136) [0x84ac3a]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_Z12signalLoggeri+0x40) [0x6ea1ef]
[30-08-2016_22-49-10] [FATAL] /lib/x86_64-linux-gnu/libc.so.6(+0x350e0) [0x7f01162d00e0]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZNK8OpenXcom4Font8getWidthEv+0x1d) [0x85672d]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZN8OpenXcom4Font11getCharSizeEw+0x14d) [0x8568c3]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZN8OpenXcom4Text11processTextEv+0x13c) [0x96b28e]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZN8OpenXcom4Text8initTextEPNS_4FontES2_PNS_8LanguageE+0x58) [0x96ad14]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZN8OpenXcom10TextButton8initTextEPNS_4FontES2_PNS_8LanguageE+0x46) [0x96cc0a]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZN8OpenXcom5State3addEPNS_7SurfaceERKSsS4_S2_+0x38e) [0x8e7a5c]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZN8OpenXcom13MainMenuStateC1Ev+0x381) [0x98b965]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZN8OpenXcom17GoToMainMenuState4initEv+0x62) [0x98b5b0]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(_ZN8OpenXcom4Game3runEv+0xca) [0x85af76]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom(main+0x166) [0x6ea47a]
[30-08-2016_22-49-10] [FATAL] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f01162bcb45]
[30-08-2016_22-49-10] [FATAL] /home/martin/X-Com/Nightly/openxcom() [0x6d7169]
[30-08-2016_22-49-11] [FATAL] OpenXcom has crashed: Segmentation fault. This usually indicates something missing in a mod.
Extra information has been saved to openxcom.log.
If this error was unexpected, please report it to the developers.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: where openxcom.log file?
« Reply #3 on: August 31, 2016, 02:37:07 pm »
To me, all I see is that you get a segfault on startup. So, standard troubleshooting questions; what were you trying to do, exactly when did the crash happen, were you running any mods?

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9096
    • View Profile
Re: where openxcom.log file?
« Reply #4 on: August 31, 2016, 02:55:02 pm »
Could also be trying to run nightly without properly uninstalling 1.0...

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
Re: where openxcom.log file?
« Reply #5 on: August 31, 2016, 05:10:25 pm »
Yes, it's very easy to run into problems if you try to have both 1.0 and nightly (or other branches) versions of the code. By default, both look into the same directory for their ruleset, but only one such ruleset can live there. When I first switched to nightly, I had that issue of it trying to read the 1.0 ruleset and crashing (although it was at the globe rendering stage, or starting new battles, I did get to the main menu. It is possible that the versions have diverged so much that you won't get even there though.

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: where openxcom.log file?
« Reply #6 on: August 31, 2016, 05:20:00 pm »
To me, all I see is that you get a segfault on startup. So, standard troubleshooting questions; what were you trying to do, exactly when did the crash happen, were you running any mods?

I downloaded sources from github. Compiled it. After that I put the original UFO's files in the UFO folder and run the game. Result is this. After that I deleted all files from Ruleset folder and repeated. Result did not changed. I run it by command:

Code: [Select]
#!/bin/sh
"/home/martin/X-Com/Nightly/openxcom" -data "/home/martin/X-Com/Nightly"

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: where openxcom.log file?
« Reply #7 on: August 31, 2016, 05:23:59 pm »
Could also be trying to run nightly without properly uninstalling 1.0...

This is exactly my situation. Any solution to run both version of game?

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: where openxcom.log file?
« Reply #8 on: August 31, 2016, 05:44:20 pm »
Exactly what you were trying, having two different directories and specifying which executable uses what data, user, and config folders.  The nightly version has a different set of ruleset files/folder structure to run the vanilla game, and it's been my experience that, by default, it looks for them in /path/to/oxc_nightly/standard (a folder in the same directory as the executable first.  Try running without the -data option on the nightly, and deleting/moving your options.cfg file?

Offline Starving Poet

  • Colonel
  • ****
  • Posts: 265
    • View Profile
Re: where openxcom.log file?
« Reply #9 on: August 31, 2016, 05:45:35 pm »
Multiple install directories

I run mine as
E:\Games\OXC
E:\Games\OXC Nightly
E:\Games\OXCE+

If you put a user folder in each one you, you don't need to use your %user% directory at all(I *hate* when games force that on you)

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9096
    • View Profile
Re: where openxcom.log file?
« Reply #10 on: August 31, 2016, 05:51:47 pm »
After that I deleted all files from Ruleset folder and repeated.

There is no "Ruleset" folder in the nightlies... so I assume you have just taken 1.0 data files and mixed them with nightly executable... this will not work!

Please do a clean install:
1. backup what you think you need
2. delete EVERYTHING from /home/martin/.local/share/openxcom/
3. delete EVERYTHING from /home/martin/.config/openxcom/
4. I don't know what you have in /home/martin/X-Com/Nightly/ but if it is the 1.0 data files then delete EVERYTHING from there as well... and copy the nightly data files there (they are in 2 subdirectories "common" and "standard")
5. run

This is exactly my situation. Any solution to run both version of game?

I haven't tried it, but it should be theoretically possible.
You'll need to run the nightlies with custom paths (as you already do for "data", but you will also need the "user" and the "config" parameters to specify those paths)

Or, do it as Starving Poet suggested, that saves you the work with specifying parameters each time.

PS: looking at the original error message, the game crashes because you are using the nightly executable and 1.0 fonts

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: where openxcom.log file?
« Reply #11 on: August 31, 2016, 05:55:34 pm »
Multiple install directories

I run mine as
E:\Games\OXC
E:\Games\OXC Nightly
E:\Games\OXCE+

If you put a user folder in each one you, you don't need to use your %user% directory at all(I *hate* when games force that on you)

I've used a similar setup for running different mods without having to change my config files all the time.  Making a special user/config folder for each executable or set of mods is a good idea - this makes it such that you don't have to worry about messing up your settings when switching between them.  You might try making two new folders in your nightly directory, ./user ./config, and running the game with the command:
Code: [Select]
#!/bin/sh
"/home/martin/X-Com/Nightly/openxcom" -user "/home/martin/X-Com/Nightly/user" -config "/home/martin/X-Com/Nightly/config"

Edit:  When you reinstall the nightly and before copying over the UFO data files from a Steam/Vanilla version of the game, your /home/martix/X-com/Nightly directory should look like the /bin subdirectory of the source code after you compile, i.e., like this, plus your compiled executable.  Once you have that, then copy over the correct files into UFO, and add the user and config folders there to keep it separate from any 1.0 installations.
« Last Edit: August 31, 2016, 06:03:15 pm by ohartenstein23 »

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: where openxcom.log file?
« Reply #12 on: August 31, 2016, 06:41:27 pm »
There is no "Ruleset" folder in the nightlies... so I assume you have just taken 1.0 data files and mixed them with nightly executable... this will not work!

Please do a clean install:
1. backup what you think you need
2. delete EVERYTHING from /home/martin/.local/share/openxcom/
3. delete EVERYTHING from /home/martin/.config/openxcom/
4. I don't know what you have in /home/martin/X-Com/Nightly/ but if it is the 1.0 data files then delete EVERYTHING from there as well... and copy the nightly data files there (they are in 2 subdirectories "common" and "standard")
5. run

I haven't tried it, but it should be theoretically possible.
You'll need to run the nightlies with custom paths (as you already do for "data", but you will also need the "user" and the "config" parameters to specify those paths)

Or, do it as Starving Poet suggested, that saves you the work with specifying parameters each time.

PS: looking at the original error message, the game crashes because you are using the nightly executable and 1.0 fonts

I created the script for run:

Code: [Select]
#!/bin/sh
"/home/martin/X-Com/Nightly/openxcom" -data "/home/martin/X-Com/Nightly" -user "/home/martin/X-Com/Nightly/data/user" -config "/home/martin/X-Com/Nightly/data/config"

I created two folders:
/home/martin/X-Com/Nightly/data/user
/home/martin/X-Com/Nightly/data/config

After that I deleted all files that you wrote in [1-4]. And I deleted all files from /home/martin/X-Com/Nightly/UFO. Now I run the game and see the black window with text: "ERROR: No X-COM installation found Make sure... Press any key to continue".

How I understand, I have to put X-Com files into folder /home/martin/X-Com/Nightly/UFO.
I did it and run the game. Result is same (like in first message).
How I realize, the problem in the X-COM files.

And I have no idea that I have to do next...

PS: Situation is not changed for command:
Code: [Select]
"/home/martin/X-Com/Nightly/openxcom" -user "/home/martin/X-Com/Nightly/data/user" -config "/home/martin/X-Com/Nightly/data/config"
« Last Edit: August 31, 2016, 06:43:29 pm by CanadianBeaver »

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: where openxcom.log file?
« Reply #13 on: August 31, 2016, 06:56:05 pm »
I deleted the Language folder and game runs... Thank you all guys

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9096
    • View Profile
Re: where openxcom.log file?
« Reply #14 on: August 31, 2016, 07:13:48 pm »
I deleted the Language folder and game runs... Thank you all guys

Yeah, that's where the 1.0 fonts were I think.
But as I said, better to delete everything really, if you didn't, you may still run into more problems...