Deccypher Posted July 21, 2019 Share Posted July 21, 2019 I been away from modding 7d2d for a while and decided to start with what i thought would be a simple mod. powered workstation s ( basically electric versions of all the current workstation player oven, player forge, player workbench player cement mixer ect) i got the layouts ok, got extra recipes in them so the work more efficiently, adjusted the windows to remove flue req. and increase output size, but even with giving it a power requirement property i cant get it to accept a wire from the genrator. i cant get it to not work without power . ive basically made an op oven that requires no flue. has anyone got this to work if so what am i mmissing. im aassuming its because the campfire (and workstations in genral) dont have access to the powered class. but not 100% sure. Link to comment Share on other sites More sharing options...
n2n1 Posted July 21, 2019 Share Posted July 21, 2019 in A16 i could not do it. I have not investigate A17, but i think it is the same regarding the power of workstations. (maybe sdx help) I hope somebody correct me if i'm wrong. Link to comment Share on other sites More sharing options...
Tete1805 Posted July 21, 2019 Share Posted July 21, 2019 Can you post what you've tried so far? Link to comment Share on other sites More sharing options...
n2n1 Posted July 21, 2019 Share Posted July 21, 2019 Can you post what you've tried so far? there's nothing to post because it doesn't work. Just class "powered" not turn workstation into desired condition. Link to comment Share on other sites More sharing options...
Tete1805 Posted July 21, 2019 Share Posted July 21, 2019 So yes, this may require more than just XML modification if that's what you're implying. However, this section is not restricted to Modlet if I'm not mistaken. It looks like he's done some groundwork, which may interest someone else working on the same problem. Besides, there's a better chance that someone will chime in to help him with the code, if there is something to work with. Link to comment Share on other sites More sharing options...
xyth Posted July 21, 2019 Share Posted July 21, 2019 There is no vanilla class for powered workstations, and no class "close" enough for an easy extension into a new class. Morte wrote a new class for Starvation that added a different type of power that worked, but so far no one has written a new class that reuses the vanilla electric for workstations. Link to comment Share on other sites More sharing options...
Tete1805 Posted July 22, 2019 Share Posted July 22, 2019 I'm a bit confused, but when you say class, you mean XML like <property name="Class" value="Campfire"/> or a C# class in a script like public class BlockNeonSign : BlockPowered Anyway, if it's not possible or easy enough, you could take a different approach. For instance, include an engine in the recipe of the workstation (or it could be a required tool like the crucible) and make it run on gas? Link to comment Share on other sites More sharing options...
n2n1 Posted July 22, 2019 Share Posted July 22, 2019 Yes, this about first one (.xml) Now the workstations operate only with the fire. there is an <property name="FuelValue" - it is used to calculate time work/burning fuel. Other does not work. generators run on gas - but they are not workstations. Link to comment Share on other sites More sharing options...
Tete1805 Posted July 24, 2019 Share Posted July 24, 2019 I was looking for a reason to start messing with SDX/DMT, so I started working on this topic. Sadly, I couldn't get SDX to work but I had no issue with DMT and could start tinkering. I'm totally new to this so it's coming very slowly but so far: - I've created a class BlockPoweredWorkstation that inherits BlockWorkstation - I've created a block PoweredWorkbench of said class BlockPoweredWorkstation (thanks to SphereII_EntityHook) - I've successfully overridden the GetActivationText method I ain't gonna lie, just this felt pretty epic. (Baby steps.) Is there like an official place to discuss this or is this OK to post code on the forum? Link to comment Share on other sites More sharing options...
xyth Posted July 25, 2019 Share Posted July 25, 2019 Its fine posting code, just place it in a code or spoiler block. Hello world! Hidden Coding help is available on Guppy's Discord. Here is an invitation: https://discord.gg/dNgTnE Link to comment Share on other sites More sharing options...
Tete1805 Posted July 25, 2019 Share Posted July 25, 2019 Ok, thanks xyth. I don't know Discord but I'll try to come by at some point. Wouldn't it make more sense to post questions and answers here though? For future reference? PS: So... I guess people don't use irc anymore? Link to comment Share on other sites More sharing options...
Tete1805 Posted July 28, 2019 Share Posted July 28, 2019 So, I've looked a bit at everything and boy, this will get a tutorial at the end because there are some catches along the way. I'm logging on my computer the journey step by step. I don't know if I'll succeed in implementing the powered workstation before A18, but this is so much fun! Link to comment Share on other sites More sharing options...
n2n1 Posted July 28, 2019 Share Posted July 28, 2019 If you share experience on this forum - this will be well for all. When i have useful information - i'm going to put it here that would be all able to use it. Coding help is available on Guppy's Discord. Here is an invitation: https://discord.gg/dNgTnE what secrets are there that it is impossible to do it here on the forum? Link to comment Share on other sites More sharing options...
Tete1805 Posted July 28, 2019 Share Posted July 28, 2019 Yes, don't worry, the tutorial will be here. That was indeed my point, to share this experience with everyone. Link to comment Share on other sites More sharing options...
Tete1805 Posted July 28, 2019 Share Posted July 28, 2019 https://7daystodie.com/forums/showthread.php?122187-The-adventures-of-a-newbie-modder&p=997867#post997867 Link to comment Share on other sites More sharing options...
Deccypher Posted August 2, 2019 Author Share Posted August 2, 2019 I was looking for a reason to start messing with SDX/DMT, so I started working on this topic. Sadly, I couldn't get SDX to work but I had no issue with DMT and could start tinkering. I'm totally new to this so it's coming very slowly but so far: - I've created a class BlockPoweredWorkstation that inherits BlockWorkstation - I've created a block PoweredWorkbench of said class BlockPoweredWorkstation (thanks to SphereII_EntityHook) - I've successfully overridden the GetActivationText method I ain't gonna lie, just this felt pretty epic. (Baby steps.) Is there like an official place to discuss this or is this OK to post code on the forum? that is epic but i only wiork within the bounds of xml im going to try a diffrent aproch tonight so we will see how that turns out.... on a side not i did get my npc worker camps working so was happy with that Link to comment Share on other sites More sharing options...
Deccypher Posted August 2, 2019 Author Share Posted August 2, 2019 so im going to be attempting this on stream tonight if anyone wants to stop by and say hi or give suggestions to the mod. nt going to post link here outta respect to the pimps but im easy to fine on twitch and your all more than welcome to come and see me get frustrated with the xmls not behaving how i want Link to comment Share on other sites More sharing options...
Guppycur Posted August 3, 2019 Share Posted August 3, 2019 If you share experience on this forum - this will be well for all. When i have useful information - i'm going to put it here that would be all able to use it. what secrets are there that it is impossible to do it here on the forum? Live chats. Quicker information. Shared learning. ...I dare say miracles. And no one on there hoards secret info. - - - Updated - - - so im going to be attempting this on stream tonight if anyone wants to stop by and say hi or give suggestions to the mod. nt going to post link here outta respect to the pimps but im easy to fine on twitch and your all more than welcome to come and see me get frustrated with the xmls not behaving how i want Link, fool. Pimps don't mind; heck they have a whole forum section for it. Link to comment Share on other sites More sharing options...
Deccypher Posted August 3, 2019 Author Share Posted August 3, 2019 lol ok master guppy its https://twitch.tv/deccypher_se Link to comment Share on other sites More sharing options...
Tete1805 Posted August 3, 2019 Share Posted August 3, 2019 I browsed through the stream a bit but the cigarettes were a no-no for me. (20 years of smoking, sorry. ) Did you manage to get somewhere without code? Link to comment Share on other sites More sharing options...
Guppycur Posted August 3, 2019 Share Posted August 3, 2019 So confused about the smoking thing... ...is it that as a smoker it's hard to watch smoking because it brings up urges? You got me curious. My parents were chain smokers, so for me it's the smell. I am surprised Dec smokes though, considering where he lives... Hell, that he's allowed to, even in his own home. Link to comment Share on other sites More sharing options...
Deccypher Posted August 5, 2019 Author Share Posted August 5, 2019 Tete1805 sorry you didn't like it. but hell if i can ever stop smoking then maybe ill be of the same mindset:) guppy you know im a brit i got stuck in my ways long before i moved here as for progress it was going ok. i hit it from the approach of turning something that had power already to use the recipe lists. but we totally got side tracked when we saw the flamethrower in the xmls under creative="none" so we enabled that and spent 2-3 hours getting that going got it to the point where it fires molotov cocktails. but not like a real flamethrower im syked for when the pimps finish off that model/effect Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.