OpenXcom Forum

Modding => Released Mods => XPiratez => Topic started by: Geneoce on January 13, 2016, 01:34:15 am

Title: 0.97 Mission bugs
Post by: Geneoce on January 13, 2016, 01:34:15 am
Hey Dioxine,

Loving how the mods going! You've really fleshed out the research tree and tweak the difficulty scaling in the last few updates.
I do have a problem with my save game though, it keeps crashing around the end of the month. Reckon you can take a look at it and see whats bugging it out? Its happened before but reverting to a different save or shooting everything down let me avoid the crashes. No luck this time though. Which sucks, because I was progressing nicely.

Cheers.
Title: Re: 4058
Post by: Dioxine on January 13, 2016, 01:27:06 pm
Managed to luck out and the save allowed me into the next month first time, but it crashed the second time. Some mission seems to be wrong, but I have no idea, which one... which means tons of testing.
Title: Re: 4058
Post by: doctor medic on January 13, 2016, 03:02:39 pm
Is the sectoid race stable?I believe one of their missions might cause the crash as i have one similiar problem
Title: Re: 0.97 Mission bugs
Post by: Dioxine on January 13, 2016, 03:09:23 pm
Please be more specific about them sectoids; when does the crash occur? Do you have any saves, pictures, or at least detailed description?; I will look them up anyway.

However it seems that the problem that was crashing the game for Geneoce (and Frogtown, I believe) is here:

Code: [Select]
  - type: superhumanRetaliation
    minDifficulty: 4
    missionWeights:
      0:
        STR_ALIEN_HARVEST: 25
        STR_ALIEN_RETALIATION: 10
        STR_ALIEN_RETALIATION_L: 15
        STR_ALIEN_RETALIATION_M: 20
        STR_ALIEN_RETALIATION_S: 15
        STR_ALIEN_RETALIATION_C: 15

Does anyone know what's wrong with that? All these missions exist, and work fine when spawned by shooting down some shipping (as Meridian has witnessed), btw. Is it possible that STR_ALIEN_HARVEST (which has no objective) collides with Crackdowns (which DO have an objective)?
Title: Re: 0.97 Mission bugs
Post by: doctor medic on January 13, 2016, 03:47:29 pm
A sektrak was in the air on a trading mission while the time was 23:02:00 at 4th of january at 2603,the game goes on for a few seconds after it just crashes and goes back to desktop,i assume its them as it is the last aircraft that was in the detection rate of the decoder,or it may have to do with the academician fighter on a crackdown as it was the second to last but that is just guessing.

https://imgur.com/YHGLlD5
Title: Re: 0.97 Mission bugs
Post by: Dioxine on January 13, 2016, 04:11:09 pm
23:02 you say? Since this mission hasn't caused trouble so far, might've been something else... like research or manufacture? Hard to say w/o a save. But midnight crashes are often caused by buggy research.
Title: Re: 0.97 Mission bugs
Post by: doctor medic on January 13, 2016, 04:20:16 pm
I was doing the research for a silacoid corpse and the toxigun research at both at excelent status,even thought the silacoid its piratez name is rocky.
Did you forgot to update any files?

EDIT:Its the silacoid corpse research that causes it
Title: Re: 0.97 Mission bugs
Post by: Dioxine on January 13, 2016, 04:23:53 pm
A research was missing. This needs to be added:

Code: [Select]
research:
  - name: SILACOID_ARMOR
    cost: 0
    points: 50
    needItem: true

Nothing like squashing a random bug.
Title: Re: 0.97 Mission bugs
Post by: doctor medic on January 13, 2016, 04:27:52 pm
well now it fails to read the ruleset of xpiratez.Where exacly do i need to add in the research section?
Title: Re: 0.97 Mission bugs
Post by: Dioxine on January 13, 2016, 04:46:15 pm
Where-ever. Best just after the section heading. Just make sure all YAML holy rules are observed.
Title: Re: 0.97 Mission bugs
Post by: Cristao on January 13, 2016, 04:59:13 pm
Will update my save when I get home.
Title: Re: 0.97 Mission bugs
Post by: Dioxine on January 13, 2016, 05:25:08 pm
All right, start of the month bug found and fixed. Since it's a bit too complex to post here, please wait for the next release. For the bold & daring: all the STR_ALIEN_RETALIATION missions (piratez_factions) were missing raceWeights, which was not required previously (pre-0.96 exec) but is now. This affects any campaigns that are near the end of 2601 or later; much later for low diff levels.
Locking now.