[r2351] Zen Dynamics inventory won't properly clear
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
[r2351] Zen Dynamics inventory won't properly clear
It seems that something is preventing [wiki]ClearInventory[/wiki](); from doing its proper job, or at-least in Zen Dynamics where before your weapons where cleared properly (in map08 and map04), but instead, now some weapons are left behind (ignored). This never happened before (and is obviously not intended). When exactly, I'm unsure, but I have reason to believe the garbage collector is behind this issue.
I have attached a couple of save files which show this issue (saved in GZdoom [r811], but the bug is still on normal Zdoom [r2351]).
http://dl.dropbox.com/u/1150300/another ... /save2.zds
http://dl.dropbox.com/u/1150300/another ... save10.zds
(It seems I can't upload ZDS files. I'm sure you could before.)
I have attached a couple of save files which show this issue (saved in GZdoom [r811], but the bug is still on normal Zdoom [r2351]).
http://dl.dropbox.com/u/1150300/another ... /save2.zds
http://dl.dropbox.com/u/1150300/another ... save10.zds
(It seems I can't upload ZDS files. I'm sure you could before.)
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [r2351] Zen Dynamics inventory won't properly clear
The garbage collector has absolutely nothing to do with it, that's for sure.
Re: [r2351] Zen Dynamics inventory won't properly clear
That's because inventory in ZD is using ACS and other hacky tricks, who can bug that command.
Re: [r2351] Zen Dynamics inventory won't properly clear
Technically, they're PNG files with a funny extension, so you can always rename them.edward850 wrote:(It seems I can't upload ZDS files. I'm sure you could before.)
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
Re: [r2351] Zen Dynamics inventory won't properly clear
...do you know what you're talking about? ACS usage is not a hacky trick. ACS usage should not cause any bugs with ClearInventory().ZDG wrote:That's because inventory in ZD is using ACS and other hacky tricks, who can bug that command.
Like Graf said, this is wrong. Zen Dynamics worked for me after the garbage collector was implemented and still works for me as of GZDoom r797, which is based off ZDoom r2331edward850 wrote:When exactly, I'm unsure, but I have reason to believe the garbage collector is behind this issue.
EDIT: Just tested with GZDoom r811 with Zen Dynamics, inventory clearing works fine.
Re: [r2351] Zen Dynamics inventory won't properly clear
I said Acs AND other Hacky tricks, like the Egosmasher reload.
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
Re: [r2351] Zen Dynamics inventory won't properly clear
Complexity != Hackiness.ZDG wrote:I said Acs AND other Hacky tricks, like the Egosmasher reload.
Re: [r2351] Zen Dynamics inventory won't properly clear
Did you try the save files as well?TheDarkArchon wrote:EDIT: Just tested with GZDoom r811 with Zen Dynamics, inventory clearing works fine.
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
Re: [r2351] Zen Dynamics inventory won't properly clear
Bug happens in the saves, but I found that I was using an older* version on Zen when I was testing
*Possibly: The one currently in the archives has the TITLEMAP, which the older one I was using didn't have but used "replaces" instead of brute forcing the Doomednum for replacing the standard Doom stuff
*Possibly: The one currently in the archives has the TITLEMAP, which the older one I was using didn't have but used "replaces" instead of brute forcing the Doomednum for replacing the standard Doom stuff
Re: [r2351] Zen Dynamics inventory won't properly clear
If it makes any difference whatsoever (read: it doesn't), this certainly didn't happen during testing way back when. 
Out of curiosity, which weapons are refusing to be stripped? Not sure how much of the mystery it would solve, but it's worth a shot.

Out of curiosity, which weapons are refusing to be stripped? Not sure how much of the mystery it would solve, but it's worth a shot.
Re: [r2351] Zen Dynamics inventory won't properly clear
It changes. Map08 it doesn't strip the Machete, Magnum, ZenSMG and Streetsweeper shotgun. Map04 its only the Machete and ZenSMG.
Re: [r2351] Zen Dynamics inventory won't properly clear
What version of Zen Dynamics? And what should I do to see this, since the saves are of no use now?
Re: [r2351] Zen Dynamics inventory won't properly clear
This one appears to be the same version I have, based off the date.

^^ And here is a save file. [r3404]^^ Just walk forwards, and a scripted sequence will attempt to take your weapons.
Side edit: Quite a gap between thread creation and now. Did you pull the thread-name out of a hat or something?
^^ And here is a save file. [r3404]^^ Just walk forwards, and a scripted sequence will attempt to take your weapons.
Side edit: Quite a gap between thread creation and now. Did you pull the thread-name out of a hat or something?

Re: [r2351] Zen Dynamics inventory won't properly clear
Fixed.
In answer to your question, I'm just trying to clear out the ones that come up when I search for "ACS" in the bugs forum.
In answer to your question, I'm just trying to clear out the ones that come up when I search for "ACS" in the bugs forum.