Starbound

Starbound

Automatic Doors
346 条留言
lornlynx  [作者] 8 月 1 日 下午 11:36 
Like the stickied post right above
lornlynx  [作者] 8 月 1 日 下午 11:32 
@Time_pug : yes,but only if you change the code yourself. See the posts in the forum.
Time_pug 7 月 21 日 上午 6:24 
Is there any way to decrease the auto open range so doors only open when I'm like 1 tile away?
爱笑的佐巴扬 2 月 19 日 上午 5:50 
This mod seems to cause the elevator in the space station to fall
lornlynx  [作者] 2024 年 12 月 31 日 上午 8:43 
@Bottinator22 yes, it scans for entities and only when it finds a player it opens. Could be added as an exception, or if i ever come to it as a setting
VariableVixen 2024 年 12 月 23 日 下午 6:26 
I don't think I can change it myself, because I'm playing with some friends, and they'd need a copy too. But if the vanilla spawning command will work, then I can at least use those doors in my own builds, as long as they'll stay open until all players and NPCs move away.
bk3000  [作者] 2024 年 12 月 18 日 上午 11:26 
@VariableVixen
Either by making sure it finds no valid target by type, or with setting the radius to 0, it should do what you want. If you know how to spawn custom objects (vanilla item spawning command), you could make custom doors that do what you want.
"queryOpenRadius" : 0

There are other things you can change, if you look at the top pinned thread above.
VariableVixen 2024 年 12 月 14 日 下午 9:01 
I would like to request a feature: automatic door closing without automatic door opening . My initial idea is that the existing mechanism could mostly be reused, so that when no valid scan target is near an open door it will close, but doors will only open when a player or NPC does so manually (or via wire signal). I would personally use this in my own base, so that the full space within rooms I build is "available" without opening the door out.
Bottinator22 2024 年 9 月 26 日 上午 8:33 
Looking at your code, it seems I should probably switch my drones to using openDoor instead for opening doors, since this mod doesn't expect non-players to interact with doors
Bottinator22 2024 年 9 月 26 日 上午 8:28 
It has come to my attention that this mod causes issues with my Support Drones mod, where they open/close doors repeatedly.
My Support Drones mod handles doors this way:
- Drone pathfinder finds a wall and detects it to be a door (via hasCapability("door"))
- Drone, while following the path, checks if the door is closed (via hasCapability("closedDoor")
- If it finds a closed door in its path, it will open it (via calling onInteraction with object {source={mcontroller.facingDirection()}}
The drones are monsters.
I haven't looked at your code, but it might be unable to perceive the possibility of a monster opening a door.
Or it needs an entity id in the table passed to onInteraction. (The data provided by the drone for that call is incomplete)
bk3000  [作者] 2024 年 4 月 23 日 下午 3:29 
@KrayZ RoarC
This is so if your traveling at a good speed (hover bikes or techs), you shouldn't crash into doors.

You can custom spawn your doors though: see the pinned threads?
KrayZ RoarC 2023 年 11 月 25 日 上午 11:42 
the door open to far away from me, i mean it could by the touch of the player idk.. cause when i don't even want it to open and i'm standing really backed away and it still opens is boring ' - '
lornlynx  [作者] 2023 年 9 月 4 日 上午 6:42 
@Mechanos: I wanted to add customisation options easily available for players since ages together with a full rewrite, but never had the time nor drive for it.
But should I ever come to it, be sure that these requests are on the bucket list.
Mechanos 2023 年 8 月 25 日 下午 8:38 
Alternatively, if there's a way I could have this mod not close the doors behind me, that would work just as well.

(I did notice the "Basic customization" pinned discussion, but I'm using this in a modpack that downloads from the workshop, so editing the mod just for myself would defeat the purpose)
Mechanos 2023 年 8 月 25 日 下午 8:25 
Apologies if this has been asked before. Is there any way to make this work for pets? The issue I'm running into is.. I'll be exploring some random town or dungeon with doors in it. Every time I walk through, I slam the door behind me. Crew I have with me are able to open the doors if they need. But my monster pet gets stuck behind the door. When this doesn't happen often, it's no big deal.. he'll eventually teleport out, or I can manually get him out with the pokeball. But in large areas with many doors, this gets really annoying lol. Have any advice?
lornlynx  [作者] 2023 年 5 月 28 日 上午 5:04 
Ye, that can work if you are lucky *thumbsup*
๖ۣۜNightling 2023 年 5 月 28 日 上午 2:20 
Ok i managed to fix it, just had to re-place down the doors.
๖ۣۜNightling 2023 年 5 月 28 日 上午 2:11 
I subscribed to a mod that slowed hunger and then after I went to restart the game, this mod suddenly stopped working. Coincidence?
lornlynx  [作者] 2023 年 5 月 3 日 下午 11:18 
@Dragonblade you can try to make a new game with the mod installed and see if the doors still don't open, so you can see if it is the savegame that's causing the issue. And the other ship mod shouldn't be an issue, but just in case unsubscribe from it and start a new game as well.

And you can also look into starbound.log file inside the storage folder and see if any error messages in there might indicate something.

And thank you Moses for the appreciation :)
Moses 2023 年 5 月 3 日 下午 6:07 
this mod is a life saver, literally. especially where NPCs are always shutting doors on you. NO LONGER WILL A DOOR EVER STAND IN YOUR WAY AGAIN (unless it's a locked or one way door, in which case F**k that door). much recommend.
Dragonblade 2023 年 5 月 3 日 下午 3:15 
Unfortunately, unsubbing and then going in and out then re-subbing didn't work. Always seemed dependent on whether or not the mod was installed, as if it somehow turned non-auto doors into auto doors and vice versa. I don't have FU ship doors, and the only other ship mod I have is to have the Hylotl ship on my Apex character, so not sure if that would be effecting it?
bk3000  [作者] 2023 年 5 月 3 日 上午 4:31 
Could be something like FU ship doors. IIRC They don't use the same script path, so their script won't be replaced by this.

But maybe another ship mod could be doing something. Or in theory they could be using custom object properties in the ship's blockKey.
lornlynx  [作者] 2023 年 5 月 2 日 下午 10:13 
ehh, the storage folder I meant.

Oh and other mods could also be an issue, remember if you have installed some others before it happened.
lornlynx  [作者] 2023 年 5 月 2 日 下午 10:11 
Hmm, this is something that I had appear myself often, but never found out exactly why. I think it has to do with instances of the doors, there can whack stuff happen.
As you aren't able to replace the ship doors, which would often fix it, you can try to unsubscribe from it, enter your savegame, then exit and subscribe again. But it is a far guess. And better make a save of the "universe" folder in the game directory before, just in case.

Also it could be that they made an update that changed those specific doors?
Dragonblade 2023 年 5 月 2 日 下午 7:40 
Hello! Great mod, super convenient. Only issue I'm having is that for some reason the Ship Doors *aren't* automatic anymore. Is there any fix for this I can do by editing files? I like to use those on my ship to separate sections & have tenants there.
lornlynx  [作者] 2023 年 3 月 3 日 上午 10:34 
Haha yeah, I imagine. But I'd guess there's also a mod you could use so vehicles go above the minimum elevation restriction.
Kamu 2023 年 3 月 2 日 下午 3:32 
Oh my god I just discovered it works while on Bikes! That. Is. AWESOME! Zooming straight through villages now! ...minus crashing hard into that one odd building with a door on the wrong elevation. lol
Zaanzabar 2022 年 8 月 30 日 上午 7:03 
so far as I know, the fliers opening doors happens in vanilla
bk3000  [作者] 2022 年 7 月 1 日 上午 11:23 
I can't say I've tried it or looked at it, but this is probably what I recall seeing - https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2017171209
Toenail The Lit 2022 年 7 月 1 日 上午 5:03 
oh? Could you perhaps point me in the right direction for that mod to fix the flyer scripts?
Cause that would be Fantastic!
bk3000  [作者] 2022 年 6 月 26 日 下午 4:48 
IIRC that's actually a vanilla issue, where flying enemies just send the command to open doors. And I think a mod exists to stop it, via messing with monster scripts.
lornlynx  [作者] 2022 年 6 月 26 日 上午 3:29 
Oh, this is weird. But the mod is outdated in a lot of things, it would need a complete overhaul which I didn't find the time for yet. But thanks for the report, I will add it to the list haha
Toenail The Lit 2022 年 6 月 25 日 上午 11:15 
Love this. Only thing we see odd is that all Flying enemies can open any door. Grounded enemies cannot.
Makes doors useless if Flyers can barge in anytime they wish.

Playing MP Dedi server with a few mods:
RPG Growth
Life alert
Food Stacking
pixel bags
overhauled moons
sticky notes
and This lovely automated door mod.
Ryöstäjä räkä 2022 年 3 月 16 日 下午 3:03 
could you update the mod to work with Fu door don't know why they're not working for me but i think they are just new doors.
TheDarkJediKnight 2022 年 2 月 21 日 下午 1:55 
@CuddlySpider, that happens in the game normally too; like with the door-hatch to the cockpit of your ship, if it is closed and your pet is right outside it will not open up.
did i make you laugh? oh sorry 2022 年 2 月 6 日 下午 8:01 
OH MY GOD ! THIS IS WONDERFUL !
CuddlySpider 2022 年 1 月 18 日 下午 1:02 
Not sure if you are aware of this for the new clean version, but when an npc is standing too close to a door, it cant be opened at all.
lornlynx  [作者] 2022 年 1 月 17 日 下午 2:49 
@Ripto I haven't dabbled in Starbound modding in a while but I'm pretty sure it is! Check out the "Base in a Box" mod, I think it does that.
Aethis 2021 年 12 月 8 日 下午 1:52 
breaks the already automatic doors. help
Dran 2021 年 11 月 12 日 上午 9:06 
Just the thing I was looking for. So tired of constantly have to open doors after NPCs close them.
lornlynx  [作者] 2021 年 9 月 29 日 上午 10:33 
Regarding Outpost Doors: The devs have seemingly made automatic opening an innnate feature of the door-code now, but only the Outpost doors have it activated. I tried to backwards-fit the code to our modded doorcode, but the differences are now so great that some things don't work together, which is why Outpost doors may not work. I have decided to rewrite the code using the new door code, as otherwise things will get only messier. I have to add a few featuers that their code is still lacking, and will upload a new clean version once I have it done.
PizzaBoy 2021 年 9 月 5 日 下午 2:31 
The Outpost's doors don't work
OMEGA 2021 年 8 月 25 日 上午 4:31 
so the peace keeper station's doors and some space doors dont work but be sides that this is greate
lornlynx  [作者] 2021 年 8 月 23 日 下午 12:31 
Weird, I thought I fixed the outpost doors not working...
But you can change the code to also work for NPCs (otherwise they use the manual E-method, except in the outpost which uses a new internal automatic function they added in one of the last few patches.
Caddie 2021 年 8 月 17 日 下午 12:15 
This mod makes The Outpost's doors non-automatic, not a huge problem but still annoying.
Baruc 2021 年 8 月 2 日 下午 4:27 
It's still working on 1.4.4
Very good mod! Thanks.
Sp00n 2021 年 6 月 28 日 上午 7:56 
A VERY convenient mod!
lornlynx  [作者] 2021 年 5 月 10 日 下午 4:45 
What do you mean? there should be no issue I think
Aryterst 2021 年 5 月 9 日 下午 10:30 
Is it safe to uninstall this?
lornlynx  [作者] 2021 年 4 月 24 日 下午 8:49 
@AlexA: that sounds like a more complicate issue. Please check the Starbound.log file in the Starbound/storage/ folder (rightclick on starbound on steam, then properties/local-files and file locaitons) and open it with a txt editor to check for errors. Do you have any other mods installed? What colony planet do you mean, have you explored it already before you installed the mod? If there are invisible walls where once doors were, you may need to remove them with some hacky methods: https:// // community.playstarbound.com/threads/how-to-remove-invisible-platform.132256/