The main reason for complexity is that you can't have an entity act as two different types (gun turret and logistics container). So what happens instead is that when you place it, a hidden logistics chest is placed on half the space and the turret checks it to find ammo. in addition, some extra complexity is introduced due to the lack of any way for mods to tell when a player right clicks on an entity. I think there are definitely places the code could be simplified in some places, because this was my first "real" mod, and I wasn't super-familiar with lua or the API when I wrote it. The logging code is simply for debugging, and also was written for 0.11 before there was a good way to append to files... Again, it could be greatly simplified now.callmewoof wrote:I appreciate the mod! I was wondering though after looking at the files, is there a reason it needs to be so complicated? Like, what's with the logger stuff? Isn't the principal of requesters built into the base game? I know it isn't literally that simple, but in the end an object is just saying "hey I have 1 requester slot, FYI". I hope that doesn't sound rude, I mean the mod works and again thanks, but what's the hurdle from it being much simpler? I'm sure I'm missing something, probably obvious, so I appreciate if you/anyone can answer. Thanks!
As it states on the readme in Github, I'm open to contributions if you want to attack the code and fix or clean up things.