Stationeers Automatic advanced furnace build Part 2

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Today we are finishing the automatic advanced furnace. A lot of scripting and lots of maths so this video might not be for everyone but it works the way I want it to. It still needs some optimisations and tidy up but all of the functionality is there.
    I will do a short reveal video once I have cleaned it up and I will post the code and the world on the workshop.

Komentáře • 40

  • @immersiveirl6638
    @immersiveirl6638 Před 3 lety +7

    43:30 I feel like you've dealth with these pressures-and-temperatures math somewhere else before. Finally starting to wrap my head around it after running the math on paper for the last couple of days. Nice work, Mick!

  • @XxsniperxelitxomegaxlmaoxOwOxX

    now, this is *Quality* content.

  • @shagmesilly78
    @shagmesilly78 Před 3 lety +3

    Mick, seriously, your knowledge on this game and programming is immense. It's a bloody beauty mate. I'm going to tear down my current furnace I think, as mine is just too random. I might have to plagiarize your work I think. It's simply too good not to. Many thanks for a great video.

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety +1

      I wouldn't copy it too closely yet. It still needs a bit of work.

  • @melsilva9158
    @melsilva9158 Před 3 lety +2

    Mick, as usual great work. This solved the problem with the current advanced furnace program where needing a low temp and high pressure to make exotic alloys. Can't wait to see it all dolled up. Then, Ima copy it.

  • @ausvampire
    @ausvampire Před 3 lety +1

    Absolute F.... g Legend . How you Read and Write MIPS is mind blowing. Its like 2nd Nature. Thanks again for so much info now all i have to do is learn from it LOL

  • @stormfire962imastarcitizen5

    Sir as I watch your videos I am completely utterly amazed at what you're able to do in this game. You are a true wizard at it.
    Sadly I cannot write code like this since computer language literally confuses the hell out of me. I have a hard enough time even speaking my language English and I still find myself stumbling over words and screwing up sentences. But when you do it you make it look so simple and I wish I could be even a third of what you are in this game.

  • @a.k.7840
    @a.k.7840 Před 3 lety +2

    Now you need to make a final video with the furnace feng shui'd up! Great job by the way!

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety +2

      Almost ready. Bugs squished, improvements made and added every display I could fit on it. Just need to make the video now.

  • @davidkershaw9095
    @davidkershaw9095 Před rokem

    This isn't currently working in Mr Cow's shared world build. I think a later stationeers update has screwed with the code. Try to create Stellite to recreate the issue.
    It seems to get to about 9Mpa in the furnace and then the furnace ejects into the waste tank with a rapidly oscillating pumps; it also seems the tank management code is too strong for the furnace management code so hogs all the pressure :( What I can't understand is that the hot tank doesn't seem to call more fuel mix into the system, but instead leeches from the waste tank. I'll have a go and see if I can work up a fix, but computer coding scares me and this script breathes fire.
    I do however, love all the content and have had some nice belly laughs and learned some cool hardware coding from you, so very grateful, Sir Mr Cow.

  • @curlychump4074
    @curlychump4074 Před 2 lety

    Stationeers: The only game you need a masters math degree to play

  • @a.k.7840
    @a.k.7840 Před 3 lety +1

    I'm attempting a slightly different setup. During smelting, the off-gasses can be vented to atmosphere or to filtration. I start by using the basic furnace to fill the ignition pipe with hot gasses, then I remove the furnace and attach a heat exchanger to retro-heat the oxygen supply so that the fuel mixture auto-ignites in the ignition pipe. There will be a second pipe which is connected to the advanced furnace in which I'll manage the temperature/pressure instead of adjusting it in the furnace. This is achievable if the advanced furnace input/output settings are both maxed. There will be an exhaust port to vent excess gasses. It's basically like a hybrid between yours and that of Elmotrix's "over-engineered" furnace.

    • @a.k.7840
      @a.k.7840 Před 3 lety

      I'm still experimenting with it, so it's not up and running yet. I have the ignition pipe combusting as desired and am preparing to program the fuel pipe management system. So far it is self-sustaining, just have to use the furnace to get it started.

    • @jbkingjr1982
      @jbkingjr1982 Před 3 lety +1

      Self-sustaining sounds interesting! If you make a video about it or a post somewhere, or just upload the code/world, I'd be interested in taking a look.

    • @a.k.7840
      @a.k.7840 Před 3 lety

      @@jbkingjr1982 hopefully it won't turn out to be a flawed concept! LOL. I'll probably make a video if it turns out well and let you know. Last I checked the ignition pipe was holding steady at 2200k and 12mpa. *EDIT:* I just noticed in video #1 that Mick's setup also holds which means his build is more practical because it doesn't involve having to remove the basic furnace. Also his setup is more compact. Mick's very smart, smarter than I am that's for sure!

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety +1

      I just use the furnace for the pupose of a cold start. Once it is operational and hot the fuel should auto ignite when it is injected. I just leave the furnace in place for the sake of simple operation.

  • @jacobhaley5387
    @jacobhaley5387 Před 3 lety +1

    Very nice! Looks like I need to study the ideal gas law. :)

  • @ancapftw9113
    @ancapftw9113 Před 3 lety +2

    Well, I don't understand MIPs well enough to write the program in it, but here is how I would set it up. First, smelter pressure would be governed by a ballast tank and a pressure/backpressure valve pair, and hot/cold gas would be added to the smelter only when the pressure was low enough. Which is what the program would handle.
    //Device is just a pseudo class I'll use as an input/output
    Device ColdPump;
    Device HotPump;
    Device Smelter;
    Device BallastOut; //pressure valve that removes pressure to specified level
    Device BallastIn; //backpressure valve that keeps set pressure in smelter
    Device IngotSelect; //not sure how this works, but you would have a separate selector for the ingot and this would pull data from it.
    int MaxPressure; //these will come from the ingot you want to smelt
    int MinPressure;
    int MaxTemp;
    int MinTemp;
    Int TargetTemp;
    MaxPressure = IngotSelect.MaxPressure;
    MinPressure = IngotSelect.MinPressure;
    MaxTemp = IngotSelect.MaxTemp;
    MinTemp = IngotSelect.Mintemp;
    //the smelter is always either too hot, too cold, or in the right range. Same for the pressure. So you don't really need to mix them properly unless you want to optimize for speed.
    TargetTemp = (MinTemp + MaxTemp)/2; //this would find the middle between them and can be done in a few lines in MIPs.
    //I set this as the temp to heat it to because the smelter will cool as it smelts ore.
    if (Smelter.Temperature < TargetTemp){ //this can be simplified using a "slt" in MIPS
    Hotpump.On = 1;}l
    else {HotPump.On = 0;}
    if (Smelter.Temperature > MaxTemp){ //Also simplified using "sgt"
    ColdPump.On = 1;}
    else {
    ColdPump.On = 0;}
    (DO the same with the pressure)
    //It is possible for you to add gas to the point that it goes above the maximum pressure. This would be minimized by having the hot as hot as possible, and the cold as cold as reasonably possible. (you don't need to run off of -200C gas from an AC unit. Ambient should be fine.)
    //We'll want to optimize this by only adding gas when the pressure is below maximum. Possibly by getting the pressure to just above the minimum, as the hot or cold gasses will change the temperature more the less gas they mix with, increasing efficiency. Ideally we would calculate the pressure you need so that the added gasses would never increase the pressure above MaxTemp, but I'm not sure what formula the game uses to calculate that. I'm assuming everything is based on Ideal Gas law.
    //If so, you would need to calculate how much of the Hot or Cold gas you need to add, based on their temperature, and if that amount would put you of MaxPressure, you would remove smelter gas into the ballast until it was low enough.
    //I'm not sure how much that would save in heating or cooling power, though, and is probably highly situational.

  • @JuhaniC83
    @JuhaniC83 Před 2 lety +1

    Your videos are always great for getting a pragmatic approach to an issue, thanks!
    Am I mistaken in believing that the calculations would be slightly off if the input and output gas compositions are different(which should be the case due to ore off-gasing)? The specific heat capacity for each gas is different so one mix would hold more energy per mole/kalvin than another.
    I guess that with your design mixing the waste back into both the cold and hot tanks that the mix should be *relatively* close, and with the exception of water(which you generally don't put in) the shc ranges from 20.6(nitrogen) to 28.2(co2) and most mixes would be dominated by the co2 and pollutants so probably settle near the same weighted shc, so ignoring all that simplifies the code a bunch leaving more space for the important logic?
    I'm also curious if you've attempted a design that only empties if the mix will result in overpressure(instead of trying to hit the minimum) and that mainly focuses on staying under the max heat(so you don't "waste" fuel by mixing cold into your hot gas, allowing you to reuse it over multiply smelts, since most alloys do not have temps). I haven't succeeded in doing such an approach yet but am curious on your thoughts if you have any

  • @allengillis2636
    @allengillis2636 Před 2 lety +1

    Hey Mick, amazing viedo on the advanced furnace. I followed everything you did and I can't seem to get the dial and the hash display to work for selecting what I want to make. I did exactly as you said, I pushed the code into the chip, powered it on, then overwrote it with the main Advanced furnace code and it just still refuses to work. My buddy and I even loaded up your saved world and tried to dissect everything and compare to what I have built and it just still doesn't do anything for us. Any ideas?

    • @allengillis2636
      @allengillis2636 Před 2 lety

      Ok, I fixed that issue. Don't remember what it took, but it works.

  • @iconoplasty
    @iconoplasty Před 3 lety +1

    This is great work, thanks for sharing! Have you got a pointer to whatever "rules" you're basing your math off of, or are you really just working this out as you go? It seems like you're starting with a solid grasp of the temp/pressure physics even before you started building this, rather than just making it up as you go along.

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety +2

      I am making it up as I go. Don't be fooled by the video, it didn't go that smoothly. I cut out about 2.5 hours of getting it wrong and backtracking.

  • @allengillis2636
    @allengillis2636 Před 2 lety

    Hey Mick, have you tried out this build on the Beta branch? I can't seem to get my Filtration Unit to work properly. I have plenty of Temp and Pressure coming from the regular furnace, but the Filtration unit doesn't seem to want to let gas out of the Unfiltered output and into the Hot Tank or the Advanced Furnace. Maybe it is just a bug?

  • @jojoskunk
    @jojoskunk Před 3 lety +1

    46:35 math works!!! great job. Are you a engineer in real life or did you learn all that by yourself. Have you think about using the waste fuel as a refill with a return valve on the line would add bit of math and scripting though. but sure you can handle it.

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety

      The filtration unit ensures that the fuel remains in the furnace so there shouldn't be any fuel entering the system. Any combustable gas from the smelting is fed back into the furnace from the waste tank where it is detected by the tank heater program on the back and used.

  • @pauldavies6392
    @pauldavies6392 Před 3 lety

    Incredible.

  • @mwwoggy
    @mwwoggy Před 3 lety +1

    Bloody Brilliant!
    A thought: why do you set both min and max temps/press? Seeing as your temp/press is so damn accurate, why not just set a temp/press somewhere within the range for each ingot? at the very least, it'll take less code to set your stack. Or am I once again, missing something here?

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety

      That is a method that would work but in the case of making something high temp such as stellite and then switching to someting like steel, the furnace now knows that the stellite temp and pressure can make steel so it will use the current pressure and temp until they move out of the steel making range before trying to adjust the settings rather than immediately adjusting to the new settings. A little more efficient way of doing it.

    • @a.k.7840
      @a.k.7840 Před 3 lety

      @@cowsareevil7514 I had the idea of cutting back on the number of selections (down to just 8; all basic ingots + steel + electrum as one setting/selection) for similar reasons, but I think your idea is superior. It's a "smart" furnace!

  • @EnvieNY
    @EnvieNY Před 2 lety

    Is there a video for the ore vending system somewhere?

  • @eggwardo6631
    @eggwardo6631 Před 2 lety

    Nice one Mick, love these vids, got this working on Mars up to the point of the hash coding at the 1hour mark, do you happen to have that hash code on steam workshop at all, other wise i'm going to be starting and stopping the vid to copy it and that a massive ache in the .....

  • @JacoKruger.
    @JacoKruger. Před 3 lety +1

    at 1:19:42, im like, but why do you keep venting it? and next thing you do is to set it to not vent every time, great minds think alike lol, i take my hat of to you with the scripting, and this furnace will be in my base in the next hour, thank you and keep it up, oh and do you put all your scripts on the workshop?

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety +2

      The scripts will be on the workshop after a little more testing and cleaning. I have pretty much rewritten it since the video. It still uses the same method but better handling.

    • @JacoKruger.
      @JacoKruger. Před 3 lety

      @@cowsareevil7514 nice, tyvm

  • @cameronkelly9157
    @cameronkelly9157 Před 3 lety

    15:40 Nice.

  • @derk4737
    @derk4737 Před 2 lety

    sooo what can u do in Stationeer?

  • @Jean-PhilippeCote
    @Jean-PhilippeCote Před 3 lety +1

    Could you add an A/C unit on cold tank on hot planet?

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety

      Yes. And it can be use for heating the hot tank at the same time.