Space Engineers

Space Engineers

'Freya' OBSOLETE
228 条留言
Craig P  [作者] 2015 年 12 月 6 日 下午 2:06 
OK, I reordered the power and created a script. http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=570491723
Craig P  [作者] 2015 年 12 月 5 日 下午 8:34 
I'll have to create a new version of Freya, but yes.
Darian Stephens 2015 年 12 月 5 日 下午 8:32 
Well... when they're fixed, will Freya fulfill my needs?
Craig P  [作者] 2015 年 12 月 5 日 下午 8:25 
(You can watch the last video in the header to see an in-depth explanation.)
Craig P  [作者] 2015 年 12 月 5 日 下午 8:25 
Sorry, they broke batteries. Until they fix batteries, Freya does not work.
Darian Stephens 2015 年 12 月 5 日 下午 8:23 
So, I'm somewhat new to Space Engineering (Despite owning the game for some time), and I'd like to know if there's a way to discharge batteries when we need them (Aren't generating power), mostly so I can have my ship on at night when the solar panels die, but switch to solar when the sun comes up.
If I'm understanding this correctly, Freya should do exactly that and more. Is that right?
Craig P  [作者] 2015 年 12 月 5 日 下午 8:16 
Yes. It looks like someone accidentally programmed the power priorities backwards. I expect it'll be fixed in a few.
AUSTR-ALIENS 2015 年 12 月 5 日 下午 8:15 
Could the changes have anything to do with why every single battery in my station keeps getting set to recharge at night time, thereby shutting down the entire station despite having a reactor? Happens about every five to ten minutes, but well after the sun has gone down.
Craig P  [作者] 2015 年 12 月 5 日 上午 8:13 
I tried to make a version of this that works, but it looks like Space Engineers changed the power drain order, brownout pattern, and so on - while also radically increasing the max draw of the batteries. I can't make it work well.

Why is battery charging higher priority than EVERYTHING ELSE?
Ivar418 2015 年 12 月 1 日 上午 10:19 
can you modify it
Craig P  [作者] 2015 年 11 月 29 日 下午 1:32 
She doesn't want to risk a blackout, so she's insisting on leaving one battery on discharge. She doesn't know about the new mode that is both charge and discharge.
Ivar418 2015 年 11 月 29 日 上午 11:53 
what does "can not take last power source offline to charge it"meen
Symmaethus 2015 年 11 月 26 日 上午 11:30 
Lastest update says power management has been fixed. Does that mean Freya is useful again? *here's hoping!*
henri 2015 年 11 月 23 日 上午 7:58 
Why does one not need battery manager anymore?
Craig P  [作者] 2015 年 10 月 28 日 下午 1:27 
If you have a use for it, then that's great!
Panthera Leo 2015 年 10 月 28 日 上午 10:32 
No need? Hm. Looks like things are a little bugged in that they always draw from batteries first now instead of solar...

However, I used Freya when one or two small reactors were the backup power to setup. Letting Freya switch them off in the idle time so as to only to let solar power recharge the batteries.
Craig P  [作者] 2015 年 10 月 28 日 上午 5:58 
In addition to hydrogen generation, there's also the fact that you don't need a battery manager any more.
Dakroth 2015 年 10 月 27 日 上午 10:34 
Is it really useless? I've been running it on the Wayfarer ship without any problems so far, though granted, I haven't been able to incorporate a hydrogen thruster system into that super compact ship yet. No space.

Is it just the oxygen generation limit that is the problem with hydrogen?
Craig P  [作者] 2015 年 10 月 22 日 下午 3:23 
Oh, yeah, it's all completely different.
Exelsiar 2015 年 10 月 22 日 下午 3:02 
I can understand on the energy usage, but thus far Freya is the only system i've seen that limits oxygen generation :D though I fear limiting that will also screw with hydrogen generation.
Craig P  [作者] 2015 年 10 月 22 日 下午 2:43 
No, this update basically made Freya worthless.
Exelsiar 2015 年 10 月 22 日 下午 1:18 
Hey, just to check, patch just came out adding hydrogen for the new thrusters, will this be incorporated into the Freya scripts?
Craig P  [作者] 2015 年 10 月 22 日 上午 5:10 
Good find, Kateye.
Kateye 2015 年 10 月 21 日 下午 11:49 
Bug in Freya:
On line 578 you check to see if the Public Text is either "Public title" or Me.CustomName, which is the name of the programmable block. However, on line 584 in the error message, it instead says that it must be "Public title" or AIName ("Freya"). This is very misleading because the error message will say "Panel Status title says 'Freya', not 'Freya' or 'Public title'" if the Programmable Block is named, say, Programmable Block (or in my case "{Ship Name} Freya Program").
Please either change line 578 to refer to AIName instead of Me.CustomName, or change line 584 to refer to Me.CustomName instead of AIName. I update the scripts with the latter.
Jhcross82 2015 年 10 月 11 日 上午 9:48 
So I have the idea that when a station has for example less that one ingot of uranium left, that the script could put the station into a "Grey Mode" witch would shut down all systems exept for life suport, and doors, while also dimming all lights and turning them all red, thus they would become emergencey lighting, also activating a distress beacon (witch when combinded with a mod could spawn a trade ship to rescure you). This idea would be great for role-play servers where the station is still using power when your logged off, this way if you can't get to your reactor you can still use the conveyor system.
Guran 2015 年 10 月 11 日 上午 1:06 
Hi Craig P, i like Freya handling the energy and oxygen of my base. Now i have the problem that docked ships without batteries, like my remote mining drone, repair drones, transporters, get switched off by Freya if the energy output of my stationary solar panels is high enough to handel everything. Now, if i undock this ships remotely, the disaster is perfect and they drift away unpowered :)

My Request:
Is it possible to have a flag that tells Freya to handle only energy systems of the own plattform? A docked ship has a different grid level, is it possible that Freya recognice this and just leave it as it is if the flag is set?
Mad Mephit 2015 年 10 月 6 日 下午 8:11 
I'm also having problems with Freya constantly mucking about with reactors and batteries (on every docked ship, not just the one she's installed on!) and continually causing power droughts rather than, say, leaving on the reactors until the batteries are charged and then cutting back. Or even leaving on the minimum number of reactors to cover the demand of my assemblers/refiners where the solar is insufficient. I haven't turned off brownout protection, but turning Freya on immediately puts me in Brownoutville.

And she also doesn't count my XPAR reactors on her tally of how many reactors I have, though that doesn't seem to keep her from constantly toggling them.

Perhaps something's changed in whatever parts of the game she depends upon? Sad to see she's outdated. :(
Craig P  [作者] 2015 年 10 月 2 日 上午 7:36 
Freya is pretty outdated, but you shouldn't run into that problem unless you've turned off brownout protection.
John Doh 2015 年 10 月 2 日 上午 4:34 
So I'm a newb to this game and even more so with the mods, I just tried your script in my very simple base with not much going on. I encountered a problem, the script seems to turn on and off the reactors and set the batteries to charing and discharging as they should be but I've encountered moments where the reactor is sett to off and the batteries are set to charging meaning there are no inputs of power (I'm expanding solar but not there yet).
jrwizzard 2015 年 10 月 2 日 上午 2:10 
I figured it out, click the 'Workshop' button in the edit section, then double click your script..
jrwizzard 2015 年 10 月 1 日 下午 7:29 
How do I put freya in the programmable block? Do i need to copy and paste it from somehwere? I named the programmable block "Freya Core" but nothing is in the edit section.. Plz help the nub..
Craig P  [作者] 2015 年 9 月 30 日 下午 1:23 
Freya probably needs a reboot. Try saving and loading if it happens again.
LeftFieldRebel 2015 年 9 月 30 日 下午 12:59 
huh odd then i got the same error while trying to set it up on a wide lcd lol, must of been a bug =)
FPC 2015 年 9 月 30 日 上午 11:28 
Was using normal lcd. Error went away on server reset. Working great!
Craig P  [作者] 2015 年 9 月 30 日 上午 8:31 
Really? That'd be really strange.
LeftFieldRebel 2015 年 9 月 30 日 上午 2:41 
@fowplaychicken, you gotta use normal lcd not wide lcd
FPC 2015 年 9 月 28 日 下午 11:19 
Other than an error regarding the lcd's public title being incorrect (says they must be labeled Freya or Public title; neither label makes this error go away), this code is working perfectly. The mentioned error does not seem to affect function of freya at all.
Craig P  [作者] 2015 年 9 月 19 日 下午 4:53 
Ohhh, Freya does have the capability to track ships that were once connected to you, because I programmed it before I realized that bug existed.
Abou 2015 年 9 月 19 日 下午 4:13 
Is it normal that Freya go through the entanna and shut down my drones battery? "Manual" doesn't seen to work on battery...
Craig P  [作者] 2015 年 9 月 12 日 上午 6:43 
Why not just rig a timer block to shut off a lot of stuff but turn on the batteries and gravity generator?
VORG 2015 年 9 月 12 日 上午 1:33 
Actually I only want the gravity Generator to be on after I "power down" my ship. But I want the batteries to power the said gravity generator
Craig P  [作者] 2015 年 9 月 11 日 下午 2:20 
Sorry. Freya was intended to do a lot. Mimir is a way to do very precise, simple things.

It's not as complex as you might think, but it can be intimidating since it requires typing things in.
jokerace45 2015 年 9 月 11 日 下午 2:18 
I would like to use Minmir but it seems like it is more than I need and perhaps a bit complicated in it's use.
Craig P  [作者] 2015 年 9 月 11 日 下午 12:58 
Gravity generator? You mean you only want a program that turns off the gravity generator when power gets low?

I recommend using Mimir, instead. The code snippet you would need would be something like:

if (CheckLow("Battery")) Apply("Gravity Generator.Off");
if (CheckHigh("Battery")) Apply("Gravity Generator.On");
VORG 2015 年 9 月 11 日 上午 8:40 
G'day mate. I have a system shutdown script and i'm wanting only the gravity generator, a few lights, and doors to still work. The problem i'm running into is Freya keeps deselecting recharge and semi auto so they don't function. I've checked my timers and I am not changing the status of any of the batteries
Craig P  [作者] 2015 年 9 月 8 日 下午 1:36 
It depends on the server and the client. There's something very weird happening.
jokerace45 2015 年 9 月 8 日 下午 1:02 
Are you serious ? You can't get an yscripts to run rigth now ?
Craig P  [作者] 2015 年 9 月 7 日 下午 6:00 
(By which I mean, I can't get scripts to run at all in MP any more.)
Craig P  [作者] 2015 年 9 月 7 日 下午 5:56 
If it used to work and now it doesn't, it may be because SE just introduced a fun new programming block bug.
jokerace45 2015 年 9 月 7 日 下午 5:37 
Freya doesn't seem to work properly anymore. It seems to run but not give any output to the display LCD. The screen Tittle input area is labeled "Status". The public bar down there is labeled public and open to all for edit and read.