Author Topic: UFOPedia help  (Read 3791 times)

Offline MFive

  • Captain
  • ***
  • Posts: 95
  • Lazy Sectoid
    • View Profile
UFOPedia help
« on: August 30, 2016, 11:13:05 pm »
I am working on a weapon which rearranges the research order of plasma weapons, while combining it with Shadows’ terran plasma weapons mod. Everything is working fine for the most part, until I finish the research for the (human) plasma weapons and try to look at any of the UFOpedia entries for the newly researched weapons, at which point it crashes and I am not entirely sure why.

The crash log states the following:

Spoiler:
[30-08-2016_15-49-52]   [INFO]   Data folder is:
[30-08-2016_15-49-52]   [INFO]   Data search is:
[30-08-2016_15-49-52]   [INFO]   - C:\Users\*REDACTED*\Documents\OpenXcom\
[30-08-2016_15-49-52]   [INFO]   - C:\Program Files (x86)\openxcom
[30-08-2016_15-49-52]   [INFO]   - C:\Program Files (x86)\openxcom
[30-08-2016_15-49-52]   [INFO]   User folder is: C:\Program Files (x86)\openxcom\user\
[30-08-2016_15-49-52]   [INFO]   Config folder is: C:\Program Files (x86)\openxcom\user\
[30-08-2016_15-49-52]   [INFO]   Options loaded successfully.
[30-08-2016_15-49-52]   [INFO]   SDL initialized successfully.
[30-08-2016_15-49-52]   [INFO]   SDL_mixer initialized successfully.
[30-08-2016_15-49-52]   [INFO]   requested file not found: openxcom.png
[30-08-2016_15-49-52]   [INFO]   Attempting to set display to 3840x2160x32...
[30-08-2016_15-49-54]   [INFO]   Display set to 3840x2160x32.
[30-08-2016_15-49-54]   [INFO]   requested file not found: Shaders/scale4xhq.opengl.shader
[30-08-2016_15-49-54]   [ERROR]   Shaders/scale4xhq.opengl.shader: bad file
[30-08-2016_15-49-54]   [INFO]   requested file not found: Shaders/scale4xhq.opengl.shader
[30-08-2016_15-49-54]   [ERROR]   Shaders/scale4xhq.opengl.shader: bad file
[30-08-2016_15-49-54]   [INFO]   Loading data...
[30-08-2016_15-49-54]   [INFO]   Scanning standard mods in 'standard'...
[30-08-2016_15-49-54]   [INFO]   Scanning user mods in 'C:\Program Files (x86)\openxcom\user\mods'...
[30-08-2016_15-49-54]   [INFO]   Mapping resource files...
[30-08-2016_15-49-55]   [INFO]   Resources files mapped successfully.
[30-08-2016_15-49-56]   [INFO]   Loading fonts... Font.dat
[30-08-2016_15-49-56]   [INFO]   Loading extra resources from ruleset...
[30-08-2016_15-49-56]   [INFO]   Data loaded successfully.
[30-08-2016_15-49-56]   [INFO]   Loading language...
[30-08-2016_15-49-56]   [INFO]   Language loaded successfully.
[30-08-2016_15-49-56]   [INFO]   OpenXcom started successfully!
[30-08-2016_15-49-56]   [INFO]   Playing flx, 320x200, 890 frames
[30-08-2016_15-49-58]   [INFO]   SDL_mixer initialized successfully.
[30-08-2016_15-49-58]   [INFO]   SDL_mixer initialized successfully.
[30-08-2016_15-50-09]   [INFO]   Mapping resource files...
[30-08-2016_15-50-10]   [INFO]   Resources files mapped successfully.
[30-08-2016_15-50-10]   [INFO]   Attempting to set display to 3840x2160x32...
[30-08-2016_15-50-10]   [INFO]   Display set to 3840x2160x32.
[30-08-2016_15-50-10]   [INFO]   SDL_mixer initialized successfully.
[30-08-2016_15-50-10]   [INFO]   Loading data...
[30-08-2016_15-50-10]   [INFO]   Scanning standard mods in 'standard'...
[30-08-2016_15-50-10]   [INFO]   Scanning user mods in 'C:\Program Files (x86)\openxcom\user\mods'...
[30-08-2016_15-50-10]   [INFO]   Mapping resource files...
[30-08-2016_15-50-11]   [INFO]   Resources files mapped successfully.
[30-08-2016_15-50-12]   [INFO]   Loading fonts... Font.dat
[30-08-2016_15-50-12]   [INFO]   Loading extra resources from ruleset...
[30-08-2016_15-50-12]   [INFO]   Data loaded successfully.
[30-08-2016_15-50-12]   [INFO]   Loading language...
[30-08-2016_15-50-12]   [INFO]   Language loaded successfully.
[30-08-2016_15-50-12]   [INFO]   OpenXcom started successfully!
[30-08-2016_15-50-16]   [ERROR]   Failed to load item STR_ALIEN_ALLOY
[30-08-2016_15-50-16]   [ERROR]   Failed to load item STR_ETHEREAL_ENGINEER
[30-08-2016_15-52-08]   [FATAL]   A fatal error has occurred: Segmentation fault. This usually indicates something missing in a mod.
[30-08-2016_15-52-14]   [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.

Can anyone help? I have attached the current version of the mod.


« Last Edit: August 30, 2016, 11:15:04 pm by MFive »

Online Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: UFOPedia help
« Reply #1 on: August 30, 2016, 11:25:18 pm »
[30-08-2016_15-50-16]   [ERROR]   Failed to load item STR_ALIEN_ALLOY
[30-08-2016_15-50-16]   [ERROR]   Failed to load item STR_ETHEREAL_ENGINEER

I couldn't find any string called STR_ALIEN_ALLOY on the ruleset files you posted, so this must refer to another ruleset not included or it was a typo

The 2nd one STR_ETHEREAL_ENGINEER doesn't exist on items (on vanilla there are no Ethereal Engineers) and I suspect that this might be causing you issues since unlocking Plasma Weapons requires 1 Engineer of each vanilla race. Another possible cause of troubles should be that this conflicts with the requirements on research_dep.rul, but I can't also understand why this file exists since the STR_SECTOID_SOLDIER_INTERRO_DEP, etc. aren't used anywhere else in the .zip fle

Offline MFive

  • Captain
  • ***
  • Posts: 95
  • Lazy Sectoid
    • View Profile
Re: UFOPedia help
« Reply #2 on: August 30, 2016, 11:43:57 pm »
Thanks for the response!

The INTERRO_DEP's are used to unlock STR_PLASMA_WEAPONS (any one soldier + elerium), while the dependencies for STR_PLASMA_WEAPONS are used only to ensure that it cannot be unlocked by accident.

I have a different mod that I used for debugging purposes, which adds lots of several items at the start of a game (I use it to quickly simulate antire games), which adds STR_ETHEREAL_ENGINEER. I didn't realize that the Ethereals don't have engineers.

Removing the engineers from the debug mod, I am still getting complaints about STR_ALIEN_ALLOY, though the only place that I used it was as an item added to the base inventories at the start of the game. I don't think it is the debug mod causing the problems this time, as it was working previously (without the engineers).

Spoiler:
[30-08-2016_16-33-15]   [INFO]   Data folder is:
[30-08-2016_16-33-15]   [INFO]   Data search is:
[30-08-2016_16-33-15]   [INFO]   - C:\Users\*REDACTED*\Documents\OpenXcom\
[30-08-2016_16-33-15]   [INFO]   - C:\Program Files (x86)\openxcom
[30-08-2016_16-33-15]   [INFO]   - C:\Program Files (x86)\openxcom
[30-08-2016_16-33-15]   [INFO]   User folder is: C:\Program Files (x86)\openxcom\user\
[30-08-2016_16-33-15]   [INFO]   Config folder is: C:\Program Files (x86)\openxcom\user\
[30-08-2016_16-33-15]   [INFO]   Options loaded successfully.
[30-08-2016_16-33-15]   [INFO]   SDL initialized successfully.
[30-08-2016_16-33-15]   [INFO]   SDL_mixer initialized successfully.
[30-08-2016_16-33-15]   [INFO]   requested file not found: openxcom.png
[30-08-2016_16-33-15]   [INFO]   Attempting to set display to 3840x2160x32...
[30-08-2016_16-33-17]   [INFO]   Display set to 3840x2160x32.
[30-08-2016_16-33-17]   [INFO]   requested file not found: Shaders/scale4xhq.opengl.shader
[30-08-2016_16-33-17]   [ERROR]   Shaders/scale4xhq.opengl.shader: bad file
[30-08-2016_16-33-17]   [INFO]   requested file not found: Shaders/scale4xhq.opengl.shader
[30-08-2016_16-33-17]   [ERROR]   Shaders/scale4xhq.opengl.shader: bad file
[30-08-2016_16-33-17]   [INFO]   Loading data...
[30-08-2016_16-33-17]   [INFO]   Scanning standard mods in 'standard'...
[30-08-2016_16-33-17]   [INFO]   Scanning user mods in 'C:\Program Files (x86)\openxcom\user\mods'...
[30-08-2016_16-33-17]   [INFO]   Mapping resource files...
[30-08-2016_16-33-18]   [INFO]   Resources files mapped successfully.
[30-08-2016_16-33-18]   [INFO]   Loading fonts... Font.dat
[30-08-2016_16-33-18]   [INFO]   Loading extra resources from ruleset...
[30-08-2016_16-33-19]   [INFO]   Data loaded successfully.
[30-08-2016_16-33-19]   [INFO]   Loading language...
[30-08-2016_16-33-19]   [INFO]   Language loaded successfully.
[30-08-2016_16-33-19]   [INFO]   OpenXcom started successfully!
[30-08-2016_16-33-19]   [INFO]   Playing flx, 320x200, 890 frames
[30-08-2016_16-33-19]   [INFO]   SDL_mixer initialized successfully.
[30-08-2016_16-33-19]   [INFO]   SDL_mixer initialized successfully.
[30-08-2016_16-33-25]   [ERROR]   Failed to load item STR_ALIEN_ALLOY
[30-08-2016_16-34-04]   [FATAL]   A fatal error has occurred: Segmentation fault. This usually indicates something missing in a mod.
[30-08-2016_16-34-08]   [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.

I attatched the DEBUG mod (minus engineers).

EDIT: Removing STR_ALIEN_ALLOY the debug removed [ERROR]   Failed to load item STR_ALIEN_ALLOY; but the crash persists.
« Last Edit: August 30, 2016, 11:49:20 pm by MFive »

Online Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: UFOPedia help
« Reply #3 on: August 31, 2016, 12:50:57 am »
EDIT: Removing STR_ALIEN_ALLOY the debug removed [ERROR]   Failed to load item STR_ALIEN_ALLOY; but the crash persists.

It's  STR_ALIEN_ALLOYS, not STR_ALIEN_ALLOY - this is what's causing the error


Since the crash is happening when you try to look at the UFOPaedia the usual culprit is a missing image. Check if the BigOb are properly assigned on items and the ExtraSprites sections

Offline MFive

  • Captain
  • ***
  • Posts: 95
  • Lazy Sectoid
    • View Profile
Re: UFOPedia help
« Reply #4 on: August 31, 2016, 01:11:01 am »
Thanks for catching the problem with the alien alloys.

I found the problem; the weapons in the item.rul where did not follow the revised naming scheme (human vs terran) and was causing an issue in their names as well as their sprites.

Thanks for your help!