OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: KingMob4313 on August 16, 2014, 07:20:30 pm

Title: Weird issue with Medikits.
Post by: KingMob4313 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?
Title: Re: Weird issue with Medikits.
Post by: Warboy1982 on August 17, 2014, 10:19:30 am
i'd need to see the details of the mod to diagnose it
Title: Re: Weird issue with Medikits.
Post by: KingMob4313 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.


Title: Re: Weird issue with Medikits.
Post by: Falko 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
Title: Re: Weird issue with Medikits.
Post by: KingMob4313 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.
Title: Re: Weird issue with Medikits.
Post by: Falko 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 ?)
Title: Re: Weird issue with Medikits.
Post by: KingMob4313 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.
Title: Re: Weird issue with Medikits.
Post by: Falko 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
Title: Re: Weird issue with Medikits.
Post by: KingMob4313 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.

Title: Re: Weird issue with Medikits.
Post by: Aldorn 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 ?
Title: Re: Weird issue with Medikits.
Post by: KingMob4313 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.
Title: Re: Weird issue with Medikits.
Post by: Falko 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
Title: Re: Weird issue with Medikits.
Post by: KingMob4313 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. 
Title: Re: Weird issue with Medikits.
Post by: KingMob4313 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.
Title: Re: Weird issue with Medikits.
Post by: Falko 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 -
use these images
Title: Re: Weird issue with Medikits.
Post by: KingMob4313 on August 21, 2014, 04:35:48 am
Actually, the issue seems linked to the SSRL as well.

Oddness abounds.