Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Softlock (Explofreak)

A topic by AgentCucco created May 19, 2019 Views: 374 Replies: 2
Viewing posts 1 to 3

Long story short I was fighting an explofreak and he used the Place Bomb card, then my game softlocked.Same error as with the Fly instant death:
myeq.canuse = 0;

(5 edits)

After looking at the csv files and stuff, I think the issue has something to do with trying to create a new piece of equipment out of thin air. It appears to work fine on the player, but enemies don't take it the same way.

Edit: The problem are not the enemies, I tried giving Kaboom! to myself and using it, and the error was the exact same.

Edit2: I think I know what's going on, after reading the docs thoroughly, I realised that Kaboom and Fly Bite are the only 2 items in the entire game with the tag 'giveeqtarget', which according to the docs, replaces the bottom middle item with something else. Now, the issue is that more often than ever, the middle bottom slot is already occupied by another piece of equipment, and if I had to guess I'd say it doesn't delete the piece of equipment in that slot either, thus creating the error.

Edit3: Maybe it's just the fact that 'giveeqtarget' is the only script that destroys an instance, neither 'giveeq' or 'replaceeq' do this, and they still manage to normally replace the equiment that originated the new one.

Edit4: Yeah I created my own item using 'giveeqtarget' and the error was the same, it must be an error with that script.

Thanks for the feedback! Yeah, I just checked and it looks like "giveeqtarget" gives an item to the enemy on row 2, and then instantly destroys all items on row 2 (it was there to prevent multiple cards from stacking). Should have been the other way around