[0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Asurmen
Posts: 11
Joined: Sat Jun 05, 2021 3:37 pm

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by Asurmen »

Hey there! On Heretic, is there a way to keep a weapon's upgrades when using a tome of power? I know that normal and upgraded weapons don't share the same weaponclass, but maybe someone has created a mod, or maybe gunbonsai already supports it? (I haven't found anything like that, but I'm asking just in case)
User avatar
stainedofmind
Posts: 204
Joined: Sun Sep 01, 2019 10:59 am

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by stainedofmind »

Asurmen wrote: Thu Apr 17, 2025 5:58 pm Hey there! On Heretic, is there a way to keep a weapon's upgrades when using a tome of power? I know that normal and upgraded weapons don't share the same weaponclass, but maybe someone has created a mod, or maybe gunbonsai already supports it? (I haven't found anything like that, but I'm asking just in case)
I'm fairly certain you can use a BONSAIRC lump to do this. Off the top of my head, I'm not certain what the correct lines are, and I don't have time before work to test it, but if you don't have it figured out by the time I get home, I'll see if I can narrow it down.
User avatar
Asurmen
Posts: 11
Joined: Sat Jun 05, 2021 3:37 pm

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by Asurmen »

Thanks for the reply! I made some testing and in fact... it seems it IS already keeping upgrades between normal and enhanced versions of the weapon, when you use the "weapon class" option ( Originaly, I was using the "same weapon with inheritance"). Don't know what happened exactly but when I tested it last time it wasn't working this way. Maybe it's because I started a new playthrough, or because I was using a weapon pack at that time. I'll continue testing it this way, hopefully I just made a mistake last time :)
User avatar
Asurmen
Posts: 11
Joined: Sat Jun 05, 2021 3:37 pm

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by Asurmen »

And... again it doesn't work anymore! Every time I remember to check and the last tome of power I used seems to have "broken" the system. My instinct tells me that it could have something to do with weapons like the dragonclaw that change weapon type or mix them when they become enhanced (the dragonclaw gains projectiles in addition to being a hitscan weapon).
User avatar
Asurmen
Posts: 11
Joined: Sat Jun 05, 2021 3:37 pm

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by Asurmen »

I asked ChatGPT, as I didn't even know what a BONSAIRC lump was :oops: and I created it with these lines :

Code: Select all

merge BlasterPowered Blaster;
merge CrossbowPowered Crossbow;
merge GauntletsPowered Gauntlets;
merge GoldWandPowered GoldWand;
merge MacePowered Mace;
merge PhoenixRodPowered PhoenixRod;
merge SkullRodPowered SkullRod;
merge StaffPowered Staff;
Does it looks like something that could work ? (I'll test it but if it's like the last time, it could work at the begining and stop after some time).

Edit : Finished E1M3, that worked so far.
Edit : Finished E2M1 and still working, so I guess it's a win :) Thanks for the suggestion! Hopefuly it'll help someone else someday.
TristanH
Posts: 19
Joined: Sat Nov 12, 2022 1:25 pm

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by TristanH »

ToxicFrog wrote: Sat Jan 06, 2024 9:46 am That stack trace is weird as hell! What pistol start mod are you using? My best guess here is that you were wielding an SPAS-15 with Rapid Fire on your way out of the level, the pistol start mod deleted it and replaced it with a Five-Seven, and Rapid Fire ended up trying to execute a psprite state from the former using the latter, or something like that.

Which definitely shouldn't happen, but I think I need to recreate it locally to figure out why it happens first.
Hey ToxicFrog. I hope everything's okay.
User avatar
Death Mage
Posts: 51
Joined: Fri Aug 29, 2003 3:16 am

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by Death Mage »

Ok, so here's an odd question, and perhaps I missed an option for it.

Is there a way to keep XP when you die? Not a "reload last save" die, but a "pistol start" death?

I was hoping to do a run using this an Final Doomer+ set to random on a difficult map pack, where I can keep my progress on the current weapon pack when I die and get reset to a different one. Mostly for a few reasons, first because the idea of gaining experience even in failure does mean that the levels should, in theory, get mechanically easier as you continue playing, and because I think it'll be interesting seeing which weapon packs end up with the most experience.
User avatar
stainedofmind
Posts: 204
Joined: Sun Sep 01, 2019 10:59 am

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by stainedofmind »

Death Mage wrote: Fri Jun 20, 2025 10:07 am Ok, so here's an odd question, and perhaps I missed an option for it.

Is there a way to keep XP when you die? Not a "reload last save" die, but a "pistol start" death?

I was hoping to do a run using this an Final Doomer+ set to random on a difficult map pack, where I can keep my progress on the current weapon pack when I die and get reset to a different one. Mostly for a few reasons, first because the idea of gaining experience even in failure does mean that the levels should, in theory, get mechanically easier as you continue playing, and because I think it'll be interesting seeing which weapon packs end up with the most experience.
Currently GB doesn't save data between sessions (other then save games of course). I did have a request on my GB Addons thread for saving/loading upgrades between sessions however, so maybe I'll look into this feature.

I could even try to add a feature to automatically save on death. When you say "pistol start death", what method would you be using to do this? This actually sounds like something I'd want to do myself!
User avatar
kinker31
Posts: 51
Joined: Mon Feb 05, 2018 12:18 am
Operating System Version (Optional): Arch, Linux-Zen
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Does anyone actually put anything serious here?

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by kinker31 »

Asurmen wrote: Fri Apr 18, 2025 1:17 pm I asked ChatGPT, as I didn't even know what a BONSAIRC lump was :oops: and I created it with these lines :

Code: Select all

merge BlasterPowered Blaster;
merge CrossbowPowered Crossbow;
merge GauntletsPowered Gauntlets;
merge GoldWandPowered GoldWand;
merge MacePowered Mace;
merge PhoenixRodPowered PhoenixRod;
merge SkullRodPowered SkullRod;
merge StaffPowered Staff;
Just as a small sidenote, I'd be careful using anything that comes from Generative AI; Nothing against 'ya, it's just that most forms of GenAI usually skew towards generating material it thinks you want to see, rather than stuff that actually works.
The markdown file on the modding documenation can give you a good idea on the specifics of the BONSAIRC lump, should you need it again.
User avatar
Death Mage
Posts: 51
Joined: Fri Aug 29, 2003 3:16 am

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by Death Mage »

stainedofmind wrote: Sat Jun 21, 2025 11:06 am Currently GB doesn't save data between sessions (other then save games of course). I did have a request on my GB Addons thread for saving/loading upgrades between sessions however, so maybe I'll look into this feature.

I could even try to add a feature to automatically save on death. When you say "pistol start death", what method would you be using to do this? This actually sounds like something I'd want to do myself!
The default death behavior. You die, you start again at the beginning of the level with just your pistol and starting ammo, rather than loading a save. I just thought it'd be both a fun challenge to play something without leaning on the quicksave button, but also still be gaining progress as I play.
User avatar
stainedofmind
Posts: 204
Joined: Sun Sep 01, 2019 10:59 am

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by stainedofmind »

Death Mage wrote: Sun Jun 22, 2025 5:49 am
stainedofmind wrote: Sat Jun 21, 2025 11:06 am Currently GB doesn't save data between sessions (other then save games of course). I did have a request on my GB Addons thread for saving/loading upgrades between sessions however, so maybe I'll look into this feature.

I could even try to add a feature to automatically save on death. When you say "pistol start death", what method would you be using to do this? This actually sounds like something I'd want to do myself!
The default death behavior. You die, you start again at the beginning of the level with just your pistol and starting ammo, rather than loading a save. I just thought it'd be both a fun challenge to play something without leaning on the quicksave button, but also still be gaining progress as I play.
Just uploaded the Addon "Progress Keeper" to my other thread here: viewtopic.php?t=78910. I gave it a whirl with Final Doomer+ like how you said you wanted to play, and it's quite fun! Should do what you want it to do. Haven't been able to a full test run, so there's a good chance that there could be some unusual bugs.
User avatar
Death Mage
Posts: 51
Joined: Fri Aug 29, 2003 3:16 am

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by Death Mage »

Thank you very much!

I have a few projects ahead of it to finish, so it'll be some time before I can dig into it, but I am greatly looking forward to it.
DoomYeen
Posts: 3
Joined: Wed Jun 18, 2025 6:20 am

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by DoomYeen »

This mod is amazing and so much fun with Arrowood's Call of Doom Black Warfare.
decisive_decoder
Posts: 2
Joined: Fri Jul 04, 2025 12:45 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by decisive_decoder »

Loving the mod, do have a couple of questions
1. Would it be possible to add a way to make it so the player loses levels when they get reset?
2. If not, what is the maximum level a player can have without crashing?
keep up the amazing work.
User avatar
stainedofmind
Posts: 204
Joined: Sun Sep 01, 2019 10:59 am

Re: [0.10.6] Gun Bonsai -- everything-compatible weapon upgrading

Post by stainedofmind »

decisive_decoder wrote: Fri Jul 04, 2025 12:50 am Loving the mod, do have a couple of questions
1. Would it be possible to add a way to make it so the player loses levels when they get reset?
2. If not, what is the maximum level a player can have without crashing?
keep up the amazing work.
Not sure what you mean when you say "reset" for number 1. For number 2, it would depend on your XP settings. Would likely be an extremely high number however. Other then a bug from back in the day that caused XP to overflow, I don't think I've heard of anyone breaking the system with too high numbers.

Return to “Gameplay Mods”