Author Topic: Weird issue with Medikits.  (Read 9010 times)

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Weird issue with Medikits.
« on: August 16, 2014, 07:20:30 pm »
I'm playing a modded game I just encountered and issue.

There are no mods affecting inventory boxes or the medikits themselves.

But if I try to go to a UFO site with medi-kits in the backpacks before landing, I get an error at  around line 291 in Game.ccp

Code: [Select]
while(i != _states.begin() && !(*i)->isScreen());

for (; i != _states.end(); ++i)
{
(*i)->blit();
}
_fpsCounter->blit(_screen->getSurface());
_cursor->blit(_screen->getSurface());
_screen->flip();

If I pull the medikits out of people's backpacks before landing the issue goes away.

EDIT: Further investigation has to do with something about the handobj.  I've not changed it so...

Any idea what could be causing this?
« Last Edit: August 16, 2014, 07:40:16 pm by KingMob4313 »

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Weird issue with Medikits.
« Reply #1 on: August 17, 2014, 10:19:30 am »
i'd need to see the details of the mod to diagnose it

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: Weird issue with Medikits.
« Reply #2 on: August 18, 2014, 12:32:13 am »
i'd need to see the details of the mod to diagnose it

Attaching save and mod files:

Just let the skyranger land.

It's something about drawing that item that crashes it.



Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Weird issue with Medikits.
« Reply #3 on: August 18, 2014, 12:40:44 am »
loaded the save in a vanilla environment there was no crash so it is one of your mods that makes the crash

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: Weird issue with Medikits.
« Reply #4 on: August 18, 2014, 02:55:39 am »
loaded the save in a vanilla environment there was no crash so it is one of your mods that makes the crash

The weird part is: I've made no changes to the medikit.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Weird issue with Medikits.
« Reply #5 on: August 18, 2014, 03:21:47 am »
just disable one mod after the next and at some point the issue diappears and you will know where it happens
(are all your file ids less than 1000 ?)

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: Weird issue with Medikits.
« Reply #6 on: August 18, 2014, 04:08:34 am »
just disable one mod after the next and at some point the issue diappears and you will know where it happens
(are all your file ids less than 1000 ?)

It's somewhere in my giant mod file.

All file IDs are less than 1000, but I think I might be doing something wrong with the handobs stuff.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Weird issue with Medikits.
« Reply #7 on: August 18, 2014, 05:00:47 am »
that is a fun one
crash happens if you have sslr in backpack and medipack in hand
why ? no idea but another strange thing happened
as i placed the medipack besides the ssrl it disappeared

i did not see anything obvious wrong with ssrl so  my best guess is the loadout in your soldier was corrupted while modding stuff while using the same game/save

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: Weird issue with Medikits.
« Reply #8 on: August 18, 2014, 05:14:08 am »
that is a fun one
crash happens if you have sslr in backpack and medipack in hand
why ? no idea but another strange thing happened
as i placed the medipack besides the ssrl it disappeared

i did not see anything obvious wrong with ssrl so  my best guess is the loadout in your soldier was corrupted while modding stuff while using the same game/save

That's a problem with the gif that I thought I cleared up (it's cleared up on my side)

I moved around the handobs into a more sane arrangement and the problem persists.


Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: Weird issue with Medikits.
« Reply #9 on: August 18, 2014, 03:24:53 pm »
that is a fun one
crash happens if you have sslr in backpack and medipack in hand
why ? no idea but another strange thing happened
as i placed the medipack besides the ssrl it disappeared

i did not see anything obvious wrong with ssrl so  my best guess is the loadout in your soldier was corrupted while modding stuff while using the same game/save
I did not have a look at files, but could it be that :
- ssrl sprite is not transparent (also "black is real black")
- ssrl width defined in "items:" section is 1 ?

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: Weird issue with Medikits.
« Reply #10 on: August 18, 2014, 04:07:22 pm »
I did not have a look at files, but could it be that :
- ssrl sprite is not transparent (also "black is real black")
- ssrl width defined in "items:" section is 1 ?

Yep, but I fixed that already and the width is 1.

Going to delete this thread, this is a mod issue most likely. Seeing some weird stuff going on with a number of my handobs.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Weird issue with Medikits.
« Reply #11 on: August 18, 2014, 05:05:29 pm »
i delete all sprite entries from STR_FIVE_SEVEN_PDW to STR_IMP_SMG_CLIP and the crash disappeared

what sprite in what item  did not care to determine but should be easy now

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: Weird issue with Medikits.
« Reply #12 on: August 18, 2014, 05:07:24 pm »
i delete all sprite entries from STR_FIVE_SEVEN_PDW to STR_IMP_SMG_CLIP and the crash disappeared

what sprite in what item  did not care to determine but should be easy now

Whaaaaaaaat?  Okay, that is just bizarre.

I'll need to investigate what is different about those first few entries. 

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: Weird issue with Medikits.
« Reply #13 on: August 19, 2014, 05:36:41 am »
Okay,

Seems there is something wrong with the STR_FIVE_SEVEN_PDW and I can't figure out what it could be. Only the Pistol.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Weird issue with Medikits.
« Reply #14 on: August 19, 2014, 11:29:48 am »
all machinegun images have screwed up palettes
go here https://falkooxc.pythonanywhere.com/palconvert
upload select from ufo-battlescape to ufo-battlescape , more details -
  • try to fix palette colors -> convert

use these images