LOLviathan Posted July 7, 2023 (edited) Hello, folks! Today i faced some problem with Whacked4 patch. At the moment i am working on my first wad and trying to learn as many as possible about Doom modding. So what's the problem? I created a WHackEd4 patch that doesn't change many but weapons frames duration and which type of ammo are weapons fed with (and some messages when you pick up items). In the first map in my wad there is a place where player gets his first weapon - a pistol. There is just a pistol item lying on the floor. But for some reason when i load a game with a patch i can't pick it up. And this problem is only with pistol, everything other works just fine. When i load game without any patches i can grab a pistol properly. Please, help! Info that can be useful: OS: Win11 64 bit Engine: GZDoom latest version Map editor: Ultimate Doom Builder Patch creator: Whacked4 Patch file format: .bex Patch engine: Boom Note: I changed sprites of a pistol to my own. Everything with a pistol etself works fine, i just cannot pick up a pistol item. Edited July 7, 2023 by LOLviathan 0 Quote Share this post Link to post
indigotyrian Posted July 7, 2023 This might be better off under Editing Questions. Post your WAD? I can take a look at the DEHACKED and see what's wrong. Also may be worth trying a different port. GZDoom should be good about Boom-compatible DEHACKED but it's always a good idea to get a second opinion with a different port just to rule out weirdness. 0 Quote Share this post Link to post
LOLviathan Posted July 7, 2023 (edited) Hello there! Sadly i have no possibility to post it right now because it is night in my country. I will do this like on Sunday evening, cause i will not be in city tomorrow. Sorry for this, but i will post my wad and DEHACKED lump here as soon as possible :) Edited July 7, 2023 by LOLviathan 0 Quote Share this post Link to post
TheNoob_Gamer Posted July 7, 2023 By itself, Dehacked has little capability to create new pickups, which I assume is what you are trying to do. Unless you were to replace your pistol with another weapon (e.g chainsaw is removed in place of pistol), with the according sprite name (you must name your pistol CSAWA0 with the chainsaw replacement), it's not going to work. If what you want is to make the pistol pickup gives ammo, then the simpler method would be replacing the pistol clip with the pickup itself, following the conventions I've just noted above. (commenting before this thread gets migrated) 0 Quote Share this post Link to post
JustAthel Posted July 8, 2023 One thing to note as well is that Vanilla (and I'm guessing by offset Boom too) only gives items based off of the sprite name itself, not what the actual sprite is. If you have a pistol item but it's using, say, BON1A0, it's not going to work properly. Also make sure that your weapon actually has a Raise / Lower codepointer so that you can switch to and from the weapon. I'm not sure how your WAD looks, but I have a feeling the issue may lie within one of these situations. 0 Quote Share this post Link to post
LOLviathan Posted July 9, 2023 (edited) Hello, people! There is my .bex file: https://drive.google.com/file/d/1xYByV_eD1wlCwVF3FAvRsEh4Vsz9TrH6/view?usp=drivesdk And the WAD: https://drive.google.com/file/d/1xZMC1o66CSuP1Xhyo1swb5vyV1t1hpN7/view?usp=drivesdk It is work-in-progress, so may look s**tty. Answering your comments: No, i am not trying to create new pickups, in fact, i am not trying to implement any new weapons or items to the game (it's the first wad in my life come on). The only thing i did in the patch file is renamed some levels, changes pickup messages (for example from "picked up cell pack" to "picked up a box of 5,45 and 7,62 ammo"), speed up some weapons by decreasing frames duration, made chainsaw and plasmagun use hitscan attack (cause chainsaw became MP5 and plasmagun became AK-47) and changed which ammo type weapons use. About sprites: i just redesigned already existing weapons, so i dont think that is the problem. Edit: i just tested everything and yes, every other weapons can be pucked up and used just fine, but the pistol can't (i mean it can be used just fine but cannot be picked up so i am forced to use "give pistol" command) Edited July 9, 2023 by LOLviathan 0 Quote Share this post Link to post
LOLviathan Posted July 9, 2023 (edited) Yes! I have just solved this shit! Ot looks like pistol frames duration affected this. You see, i speeded up the pistol by decreasing its frames duration, but now i set them to normal and it worked! I can pick it up and use! However, pistol is now a useless crap because of original frames duration. Spoiler It is, uhh, sloo-*yawn*-ooow... Edited July 9, 2023 by LOLviathan 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.