Space Engineers

Space Engineers

'Freya' OBSOLETE
228 Comments
Craig P  [author] 6 Dec, 2015 @ 2:06pm 
Craig P  [author] 5 Dec, 2015 @ 8:34pm 
I'll have to create a new version of Freya, but yes.
Darian Stephens 5 Dec, 2015 @ 8:32pm 
Well... when they're fixed, will Freya fulfill my needs?
Craig P  [author] 5 Dec, 2015 @ 8:25pm 
(You can watch the last video in the header to see an in-depth explanation.)
Craig P  [author] 5 Dec, 2015 @ 8:25pm 
Sorry, they broke batteries. Until they fix batteries, Freya does not work.
Darian Stephens 5 Dec, 2015 @ 8:23pm 
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  [author] 5 Dec, 2015 @ 8:16pm 
Yes. It looks like someone accidentally programmed the power priorities backwards. I expect it'll be fixed in a few.
AUSTR-ALIENS 5 Dec, 2015 @ 8:15pm 
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  [author] 5 Dec, 2015 @ 8:13am 
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 1 Dec, 2015 @ 10:19am 
can you modify it
Craig P  [author] 29 Nov, 2015 @ 1:32pm 
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 29 Nov, 2015 @ 11:53am 
what does "can not take last power source offline to charge it"meen
Symmaethus 26 Nov, 2015 @ 11:30am 
Lastest update says power management has been fixed. Does that mean Freya is useful again? *here's hoping!*
henri 23 Nov, 2015 @ 7:58am 
Why does one not need battery manager anymore?
Craig P  [author] 28 Oct, 2015 @ 1:27pm 
If you have a use for it, then that's great!
Panthera Leo 28 Oct, 2015 @ 10:32am 
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  [author] 28 Oct, 2015 @ 5:58am 
In addition to hydrogen generation, there's also the fact that you don't need a battery manager any more.
Dakroth 27 Oct, 2015 @ 10:34am 
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  [author] 22 Oct, 2015 @ 3:23pm 
Oh, yeah, it's all completely different.
Exelsiar 22 Oct, 2015 @ 3:02pm 
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  [author] 22 Oct, 2015 @ 2:43pm 
No, this update basically made Freya worthless.
Exelsiar 22 Oct, 2015 @ 1:18pm 
Hey, just to check, patch just came out adding hydrogen for the new thrusters, will this be incorporated into the Freya scripts?
Craig P  [author] 22 Oct, 2015 @ 5:10am 
Good find, Kateye.
Kateye 21 Oct, 2015 @ 11:49pm 
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 11 Oct, 2015 @ 9:48am 
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 11 Oct, 2015 @ 1:06am 
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 6 Oct, 2015 @ 8:11pm 
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  [author] 2 Oct, 2015 @ 7:36am 
Freya is pretty outdated, but you shouldn't run into that problem unless you've turned off brownout protection.
John Doh 2 Oct, 2015 @ 4:34am 
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 2 Oct, 2015 @ 2:10am 
I figured it out, click the 'Workshop' button in the edit section, then double click your script..
jrwizzard 1 Oct, 2015 @ 7:29pm 
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  [author] 30 Sep, 2015 @ 1:23pm 
Freya probably needs a reboot. Try saving and loading if it happens again.
LeftFieldRebel 30 Sep, 2015 @ 12:59pm 
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 30 Sep, 2015 @ 11:28am 
Was using normal lcd. Error went away on server reset. Working great!
Craig P  [author] 30 Sep, 2015 @ 8:31am 
Really? That'd be really strange.
LeftFieldRebel 30 Sep, 2015 @ 2:41am 
@fowplaychicken, you gotta use normal lcd not wide lcd
FPC 28 Sep, 2015 @ 11:19pm 
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  [author] 19 Sep, 2015 @ 4:53pm 
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 19 Sep, 2015 @ 4:13pm 
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  [author] 12 Sep, 2015 @ 6:43am 
Why not just rig a timer block to shut off a lot of stuff but turn on the batteries and gravity generator?
VORG 12 Sep, 2015 @ 1:33am 
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  [author] 11 Sep, 2015 @ 2:20pm 
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 11 Sep, 2015 @ 2:18pm 
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  [author] 11 Sep, 2015 @ 12:58pm 
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 11 Sep, 2015 @ 8:40am 
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  [author] 8 Sep, 2015 @ 1:36pm 
It depends on the server and the client. There's something very weird happening.
jokerace45 8 Sep, 2015 @ 1:02pm 
Are you serious ? You can't get an yscripts to run rigth now ?
Craig P  [author] 7 Sep, 2015 @ 6:00pm 
(By which I mean, I can't get scripts to run at all in MP any more.)
Craig P  [author] 7 Sep, 2015 @ 5:56pm 
If it used to work and now it doesn't, it may be because SE just introduced a fun new programming block bug.
jokerace45 7 Sep, 2015 @ 5:37pm 
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.