Author Topic: [SOLVED] Segmentation error (Xcom base MAPs related i think)  (Read 5316 times)

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
[SOLVED] Segmentation error (Xcom base MAPs related i think)
« on: December 18, 2016, 11:23:30 am »
I get the attached error on the BASE DEFENSE mission (and nowhere else). Log does not show any more info.
This started happening after I renamed my xcom base maps from XBASE_xx to XBASEN_xx (to have them both alongside in MapView).

I thought it was because I forgot to specify the new map names to the facilities (mapName attribute), but it keeps happening even after I fixed that.
My suspects fall on the hangar map, which now points to mapName: XBASEN_16, but is still made of four parts like vanilla hangar.
Could it be that?
Eventually, can I make a whole 20*20 hangar or is it required to be made of four 10*10 parts?
Or is it something else entirely?

Thanks
« Last Edit: December 18, 2016, 08:49:39 pm by robin »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: Segmentation error (Xcom base MAPs related i think)
« Reply #1 on: December 18, 2016, 11:26:54 am »
The error message doesn't really say anything.

If you upload a snapshot of your mod somewhere and a save, I can have a look where exactly it crashes.

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: Segmentation error (Xcom base MAPs related i think)
« Reply #2 on: December 18, 2016, 12:33:50 pm »
The error message doesn't really say anything.

If you upload a snapshot of your mod somewhere and a save, I can have a look where exactly it crashes.
I don't have a save because I was getting it in quick battle mode.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: Segmentation error (Xcom base MAPs related i think)
« Reply #3 on: December 18, 2016, 12:44:40 pm »
I don't have a save because I was getting it in quick battle mode.

Even easier then, just need to know what to select in quick battle options.

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: Segmentation error (Xcom base MAPs related i think)
« Reply #4 on: December 18, 2016, 02:41:26 pm »
Sent you the link by pm.
I'm still testing the whole thing so there might be some other, yet unknown, issues.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: Segmentation error (Xcom base MAPs related i think)
« Reply #5 on: December 18, 2016, 03:23:49 pm »
Hmm, it doesn't crash for me.

Could you upload the "options.cfg" file and the "battle.cfg" file (from xcom1 subdirectory) too?

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: Segmentation error (Xcom base MAPs related i think)
« Reply #6 on: December 18, 2016, 03:32:05 pm »
Hmm, it doesn't crash for me.

Could you upload the "options.cfg" file and the "battle.cfg" file (from xcom1 subdirectory) too?
Gosh it stopped crashing here too; but what I get is that (see screenshot below).

Could it be bacause I have "holes" in the numeration for the maps (like i have XBASEN_04, then XBASEN_07)?


Goddamnit my mapScript was wrong...
« Last Edit: December 18, 2016, 03:36:52 pm by robin »

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: Segmentation error (Xcom base MAPs related i think)
« Reply #7 on: December 18, 2016, 03:40:26 pm »
Ok, the mess in the screenshot above happened because I added a map that I was missing, and forgot to update the mapScript accordingly.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: Segmentation error (Xcom base MAPs related i think)
« Reply #8 on: December 18, 2016, 03:43:02 pm »
so, everything is ok now?

on my side, it looks fine, see attached.

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: Segmentation error (Xcom base MAPs related i think)
« Reply #9 on: December 18, 2016, 03:48:48 pm »
so, everything is ok now?

on my side, it looks fine, see attached.
Yes thanks, segmentation error vanished. Everything seem fixed.