OrderOfThePorcupine / ProjectPorcupine

Project Porcupine: A Base-Building Game...in Space!
GNU General Public License v3.0
296 stars 90 forks source link

[Mega Bugs] Temperature/Gas Bugs #240

Open BraedonWooding opened 5 years ago

BraedonWooding commented 5 years ago

There are a lot of bugs to do with temperature and gases and other systems related to just temperature movement, I want to document them here before I go around changing things since they are all connected it is hard to fix them in isolation and see a change.

I'm going to start by fixing some of the smaller things on the list (each item will get a single PR though I'll group the save file ones) but since they are all related it makes sense to put them in a single issue.

koosemose commented 5 years ago

Default save file used air pumps when it meant to use air pumps. Vents just even out pressure and gasses, while pumps actually pump it from one room to another.

BraedonWooding commented 5 years ago

but don’t we want the gas equalised? Otherwise the middle top and middle bottom end up with no gas? It all gets pumped into the right top/right bottom rooms

koosemose commented 5 years ago

the actual bug is that the rooms aren't set as Airlocks, so the airpumps aren't controlled as they should be.

edit: and also that apparently roombehaviors aren't assignable anymore...

BraedonWooding commented 5 years ago

Airpumps always pump from one to another though, that is how the lua is coded.

How should they be controlled?

koosemose commented 5 years ago

They should be controlled by the room behavior. And also note that they can also be manually toggled (not that that makes a huge difference here.

As soon as I sort out the room behaviors not being assignable, I'll give you a bit of json to add in the appropriate section that will get that part functional and get those rooms working as intended

koosemose commented 5 years ago

Replace

  "RoomBehaviors": []

with

  "RoomBehaviors": [
    {
      "Room": 2,
      "Behavior": "airlock"
    },
    {
      "Room": 4,
      "Behavior": "airlock"
    }
  ],