Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

you can destroy the parts and create a complete weapon when the weapon is made. one single object for the whole weapon. if you break a weapon in the anvil, it destroy the weapon and creates the itens again. if you don't atach the pieces, but destroy the parts and creates a whole object as the weapon it may work better.

Like, if I atach a guard to a grip, it destroy both itens and creates a new piece. You would have to create every combination, one hand guard and fancy grip, one hand guard and normal grip...

Hey Micahmoraes,

Ya I thought of doing that but when I eventually add in the butt load of parts. Creating different combinations for each will be a nightmare not to mention the file size will increase exponentially. I won't be able to send the files to Itch.com if it exceeds 500mb.

But not ruling this idea out. If all else fails, I might have to consider it.

Thank you!!

Maybe you could get it hosted on GameJolt. 1GB and you can get more if you demonstrate that your game actually needs it to the admins.

Hi, I'm a big fan of the game and a hobby programmer so I won't pretend to know the specifics of what language or environment you develop in but would it not be possible to theoretically have an array of "attached parts" where each group of attached parts is an object with a constructor method containing parameters for grip, guard, and metalwork? You may need separate constructor methods if you want to make 2 specific parts mandatory in all the possible combinations, but the point being that you would take finished weapons out of this array when disassembled on the anvil or sold.

I have no idea what system you're using currently to attach and detach weapons but it is the most catching feature of this game (in my eyes) so I understand if it's a complex subject. I would love to see a post on the subject if you ever felt like writing about the systems you use to track that part of the game!

Hey Mackelsaur,

By no means would I consider myself a programmer so my knowledge of the field is very limited. What I am doing is very basic and what you outlined, from what I understand is in fact what i'm doing. The "Attached parts are being added to an array" once they are dissassembled, they automatically leave the array. Let me know if I missed something from what you said. The issue comes where I'm doing boolean checks to make sure certain conditions are fullfilled before connection or disconnections. Sometimes the booleans don't fire or I didnt set it up properly so there would be conflicting logic that null a command.

What I use, mainly, is Unreal Engine 4's blueprint system. I don't write any "code" per say. Not yet. I'm still learning C++.

Thanks for the reply, that's really cool it seems we both sought a similar solution! If it's an issue of when those booleans are being checked, perhaps you can dedicate some resources at the beginning of a day or when a save is loaded to a "loading screen" where these finished weapon values can be thoroughly checked before the player loads in? Even if it took a while, I think most players would take that tradeoff gladly.

I've also noticed that around 50% of the time a weapon constructed the day before (or earlier) will not be recognized as a complete weapon and you'll need to disassemble/reassemble it for a customer to take it - perhaps that's a similar situation.

Now we have to deal with another problem... The blades got heat when you load a save file. the only reason my shop did not burn is because every thing is fireproof lol.