Space Engineers

Space Engineers

"Random faces" interactive script for ship personalisation
95 Comments
HeavyMetalClown 16 Nov, 2024 @ 4:41am 
Hey there, thanks for taking the time to reply.

Yes, I noticed antenna usage is switchable but this appears to also turn off text updates to any text panels. But I found a workaround: Antennae can be set to only display the ship name, not their own, circumventing the need to turn off that option.

If you get a chance to help I'd still be grateful but consider it low-priority.
Skleroz  [author] 15 Nov, 2024 @ 12:59pm 
@HeavyMetalClown Hi! Unfortunately, I have no available tools to change script right now and this change need at least new affix for the text-specific TextPanel. Antenna usage i swithable, you need to change row 5 from "const bool bWriteText = true;" to "const bool bWriteText = false;"
HeavyMetalClown 15 Nov, 2024 @ 9:23am 
Hello there! First off, love your script. Secondly, whilst customizing it for use on my private server I had some trouble getting it to stop writing to the antenna, and target a configurable LCD panel instead. Is it possible to implement such changes to the script? I'm no programmer so I'd like to ask for your help.
Skleroz  [author] 26 Jan, 2024 @ 9:30pm 
@LettuceSupreme (Nitron X) Hi! Yes, if I remember correctly, it should always use first textPanel in the cockpit for the "face" and second in case comments are shown. It was added as afterthought, when cockpit displays became interactive.
LettuceSupreme (Nitron X) 26 Jan, 2024 @ 11:53am 
Aloha Skleroz, is there a way to select which screen of a cockpit gets the face put on or is it only the 1st one?
Skleroz  [author] 20 Jan, 2023 @ 2:34am 
@Palpatine XD
Nah, I think they created something completely different with similar look =)
Palpatine 19 Jan, 2023 @ 9:37pm 
I see this got pulled to vanilla, well done!
Skleroz  [author] 3 Sep, 2021 @ 12:32am 
I don't think that debug commands should be provided in the installation guide. Totally different topic =) If I found correctly, high-level redraw list is:
happy
sad
evil
doubt
wink
blink
sleep
sick
scared
death
neutral
pain
Zacko From Finance 2 Sep, 2021 @ 4:47pm 
Could you provide those debug commands in the installation guide? If it's not too much trouble.
Skleroz  [author] 2 Sep, 2021 @ 1:04pm 
@LBloxo Hi! In theory, you could start emotes manually, there were commands for debugging, if I remember correctly. It could be started together with the alarm to imitate reaction.
Zacko From Finance 2 Sep, 2021 @ 3:08am 
Is there a way to have the ai change expressions according to special events, such as having the ai make a worried expression during the sounding of an alarm
Skleroz  [author] 23 Jul, 2020 @ 12:31pm 
Unfortunately, no, have no possibility to run SE on current computer =(
Papers The King Of Papers 23 Jul, 2020 @ 9:52am 
Oh, anyway to get it on a text screen too?
Skleroz  [author] 23 Jul, 2020 @ 9:29am 
@Papers The King Of Papers Hi! Well, originally, it was a text on antenna. I palced it on second PB screen for simplified debugging =)
Papers The King Of Papers 23 Jul, 2020 @ 7:39am 
Hey how do i get the text that appears on the programmable block keyboard spot to any other LCD panel?
Skleroz  [author] 9 Apr, 2020 @ 11:25am 
Dr Krieg Thank you! Well, it was made as example how to use StringBuilder in C#, so, if anyone found it useful or just funny - I am really happy!
DoctorKrieg 9 Apr, 2020 @ 8:31am 
just here to say thank you for this script, i know its kind of silly and just for aesthethics but i really like every moment of it, it really gives a good sense of immersion
walipuk 9 Apr, 2020 @ 8:18am 
ok
Skleroz  [author] 9 Apr, 2020 @ 12:23am 
No, this is global variable to store TextPanel damage. For every crack you need to destroy 10% of terminal blocks.
walipuk 8 Apr, 2020 @ 11:55am 
does it have to do with float fTPDamage = 0.0f; ?
Skleroz  [author] 8 Apr, 2020 @ 12:43am 
mechass13 Shoot it in the face? Damage based on remaining block count and on damage to the text panel, uswed for the script.
walipuk 7 Apr, 2020 @ 9:11pm 
is there a way to make it more sensitive to damage?
Skleroz  [author] 6 Mar, 2020 @ 4:42pm 
Deadshadows/Titan Nya Basically, TextSurface on PB was used as definitely existing on the grid. Script can use any Text Panel with the tag "_Face" in the name, but I wanted this face on PB itself, purely for looks =) Well, the whole thing is really old, if I will upgrade it, it will be re-written from scratch, this will took some time =)
Titan Nya 6 Mar, 2020 @ 11:31am 
Nice :D i'll still use my changed version for now but having got the problem with PB and screen before the one i used got updated to add a screen (didn't have one before) i've got the same problem. Well not everyone can think of every case then mods can be involved

At least then the script isn't too complex it's manageable...
Anyway it work fine my micro prog block is behind my jukebox allowing a nice open space and the console block have the face on it.

The last thing i'll say as i was watching the code would be maybe a choose what screen to be displayed on, if you don't want it on screen 0 on cockpit or other multi display :p
tbh i don't know how to write code i just manage to change thing there and there but puting some setting in custom data (and under a @0 _Face setting to be able to be used with other scripts...)
Skleroz  [author] 6 Mar, 2020 @ 10:08am 
Well, it was quite easy. Version is updated!
Skleroz  [author] 6 Mar, 2020 @ 9:33am 
Deadshadows/Titan Nya Hi! As I understand, you are using PB with only one TextSurface object on board? Script was designed and tested on vanilla BP block, I'll add exception handler for the PB text surfaces, as soon as I get some free time!
Titan Nya 6 Mar, 2020 @ 12:23am 
Well, put in comment 4 lines (118/119/216/217) and it work in PB with only 1 screen.
Need to figure how to make it work on the surface i want it (console block).

After some copy paste and change to cockpit code it work...
Titan Nya 5 Mar, 2020 @ 11:47pm 
Same error as Omen
Starting to try to find where it crash and debug it with my (very) limited coding knowledge...
1rst thing seems to be line 118/119 (put it in comment and run for a little time before crash)
@Omen i guess you are using other than vanilla prog block? seems like line 118/119 is referencing surface 1 i guess it's the keyboard reference so as the custom PB i have either have no screen or only 1 and not take a full freaking block i guess it is the problem.
So it does work in vanilla PB.
Well time to delve deeper into the code to try to make the change for it to work in this ship...

Maybe by the time i'm finished another script will have finished to do his learning of a blueprint or Skleroz would have read this and found a solution. (not the only problem of the script for me.)
Skleroz  [author] 15 Nov, 2019 @ 11:52am 
@Omen Hi! Quite strange, it is needs only text panel and prog. block. It could work incorrectly with ship controller blocks maybe...
Omen 15 Nov, 2019 @ 11:19am 
Just giving me this error: "Caught Exception during execution of script: Object reference not set to an instance of an object. at Program...ctor()
Skleroz  [author] 27 Aug, 2019 @ 2:50pm 
Reigdaer Hi! Quite strange, just checked it, it was working. Change logic a bit, script shouldn't require Text Panel, PB screen is enough for it =)
Reigdaer 25 Aug, 2019 @ 10:10pm 
It's not working after the economy update
Skleroz  [author] 30 Jul, 2019 @ 10:25pm 
Aggelus Hi! at this moment this is finally only one, updated version :) Had no access to my PC, re-uploaded fixes and deleted copy only today...
Aggelus 29 Apr, 2019 @ 12:30pm 
Has the correction left? I'll try thank you.
Aschran 29 Apr, 2019 @ 11:20am 
when there were no scripts i did made drones that was following and looking at people with just sensors now the gyroscopes doesnt work the same way anymore xD
Skleroz  [author] 29 Apr, 2019 @ 11:18am 
@Aschran Yep, autopilot based script by phil, if I remember correctly =) Good one, super simple and effective! About digging/grinding - it could be programmed, based on sensor data and also put to autopilot. And it could be used to switch drill and grinder =) Or you could force movement system of the drone, using timers, this is always funny to watch XD
Aschran 29 Apr, 2019 @ 11:09am 
i'm using it in combo with "My Buddy - Follow Companion Drone AI" it just follow you but thats enough for a pet iguess, just bit sad that it can't trigger more actions like shooting or drilling, things that your face program take in count, but is fine
Skleroz  [author] 29 Apr, 2019 @ 11:05am 
@Aschran This was core idea in the beginning. I started with W.A.L.I., it was based on sensors and timers and i wanted something with PB =)
Aschran 29 Apr, 2019 @ 10:49am 
i'm amazed someone made something that cool, combined with an automatic drone script i made the perfect AI pet that follow me and show what its doing
Skleroz  [author] 29 Apr, 2019 @ 10:38am 
Skleroz [author] Just now
@Aschran I'm really amazed that this script still working three years after after release. Hope it will serve some more time =)
Aschran 29 Apr, 2019 @ 10:32am 
wooohoo I love yu man
Skleroz  [author] 29 Apr, 2019 @ 10:31am 
@Aschran Hi! Finally solve this updating issue! Fixed version is available.
Skleroz  [author] 20 Apr, 2019 @ 12:19pm 
Aschran Hi! Thank you, originally this was a small side project for fun =) Unfortunately, I cannot update this particular script, I pasted updated version separately.
Aschran 20 Apr, 2019 @ 11:04am 
Hello this script is amazing, its one of the firsts i have got i nthis game i'm happy to see it still alive !
By the way it seem to show very random faces when my ship isnt even moving, could it be that its reacting to the multigrids on it ? in this case could it ignore them ?
Amzzing job by the way!
Aggelus 15 Apr, 2019 @ 1:54pm 
Thank you very much, I'm waiting for correction.

Aggelus 11 de
Skleroz  [author] 15 Apr, 2019 @ 1:35pm 
@Aggelus Hi! Unfortunately, SE fails to publish updated version. Keen changed interactive surfaces, that's why there are warnings during compilation. Hope to update during this week
Aggelus 11 Apr, 2019 @ 7:22pm 
Is the script with error messages, and is it possible to fix it?
Skleroz  [author] 17 Feb, 2019 @ 10:41am 
@Vaethas Hi! Yep, lines with inverted/normal color schemes switched via constant. So, without script change they are unreachable for the script.
Vaethas 17 Feb, 2019 @ 9:15am 
Compiling produces the following error message:

'Program(1463,0): Warning: Unreachable code detected
Program(1609,0): Warning: Unreachable code detected'
Rosehip <3 8 Aug, 2018 @ 3:54am 
awww darn, I can deal with it ^^