Space Engineers

Space Engineers

"Random faces" interactive script for ship personalisation
95 条留言
HeavyMetalClown 2024 年 11 月 16 日 上午 4:41 
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  [作者] 2024 年 11 月 15 日 下午 12:59 
@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 2024 年 11 月 15 日 上午 9:23 
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  [作者] 2024 年 1 月 26 日 下午 9:30 
@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) 2024 年 1 月 26 日 上午 11:53 
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  [作者] 2023 年 1 月 20 日 上午 2:34 
@Palpatine XD
Nah, I think they created something completely different with similar look =)
Palpatine 2023 年 1 月 19 日 下午 9:37 
I see this got pulled to vanilla, well done!
Skleroz  [作者] 2021 年 9 月 3 日 上午 12:32 
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 2021 年 9 月 2 日 下午 4:47 
Could you provide those debug commands in the installation guide? If it's not too much trouble.
Skleroz  [作者] 2021 年 9 月 2 日 下午 1:04 
@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 2021 年 9 月 2 日 上午 3:08 
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  [作者] 2020 年 7 月 23 日 下午 12:31 
Unfortunately, no, have no possibility to run SE on current computer =(
Papers The King Of Papers 2020 年 7 月 23 日 上午 9:52 
Oh, anyway to get it on a text screen too?
Skleroz  [作者] 2020 年 7 月 23 日 上午 9:29 
@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 2020 年 7 月 23 日 上午 7:39 
Hey how do i get the text that appears on the programmable block keyboard spot to any other LCD panel?
Skleroz  [作者] 2020 年 4 月 9 日 上午 11:25 
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 2020 年 4 月 9 日 上午 8:31 
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 2020 年 4 月 9 日 上午 8:18 
ok
Skleroz  [作者] 2020 年 4 月 9 日 上午 12:23 
No, this is global variable to store TextPanel damage. For every crack you need to destroy 10% of terminal blocks.
walipuk 2020 年 4 月 8 日 上午 11:55 
does it have to do with float fTPDamage = 0.0f; ?
Skleroz  [作者] 2020 年 4 月 8 日 上午 12:43 
mechass13 Shoot it in the face? Damage based on remaining block count and on damage to the text panel, uswed for the script.
walipuk 2020 年 4 月 7 日 下午 9:11 
is there a way to make it more sensitive to damage?
Skleroz  [作者] 2020 年 3 月 6 日 下午 4:42 
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 2020 年 3 月 6 日 上午 11:31 
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  [作者] 2020 年 3 月 6 日 上午 10:08 
Well, it was quite easy. Version is updated!
Skleroz  [作者] 2020 年 3 月 6 日 上午 9:33 
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 2020 年 3 月 6 日 上午 12:23 
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 2020 年 3 月 5 日 下午 11:47 
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  [作者] 2019 年 11 月 15 日 上午 11:52 
@Omen Hi! Quite strange, it is needs only text panel and prog. block. It could work incorrectly with ship controller blocks maybe...
Omen 2019 年 11 月 15 日 上午 11:19 
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  [作者] 2019 年 8 月 27 日 下午 2:50 
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 2019 年 8 月 25 日 下午 10:10 
It's not working after the economy update
Skleroz  [作者] 2019 年 7 月 30 日 下午 10:25 
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 2019 年 4 月 29 日 下午 12:30 
Has the correction left? I'll try thank you.
Aschran 2019 年 4 月 29 日 上午 11:20 
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  [作者] 2019 年 4 月 29 日 上午 11:18 
@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 2019 年 4 月 29 日 上午 11:09 
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  [作者] 2019 年 4 月 29 日 上午 11:05 
@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 2019 年 4 月 29 日 上午 10:49 
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  [作者] 2019 年 4 月 29 日 上午 10:38 
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 2019 年 4 月 29 日 上午 10:32 
wooohoo I love yu man
Skleroz  [作者] 2019 年 4 月 29 日 上午 10:31 
@Aschran Hi! Finally solve this updating issue! Fixed version is available.
Skleroz  [作者] 2019 年 4 月 20 日 下午 12:19 
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 2019 年 4 月 20 日 上午 11:04 
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 2019 年 4 月 15 日 下午 1:54 
Thank you very much, I'm waiting for correction.

Aggelus 11 de
Skleroz  [作者] 2019 年 4 月 15 日 下午 1:35 
@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 2019 年 4 月 11 日 下午 7:22 
Is the script with error messages, and is it possible to fix it?
Skleroz  [作者] 2019 年 2 月 17 日 上午 10:41 
@Vaethas Hi! Yep, lines with inverted/normal color schemes switched via constant. So, without script change they are unreachable for the script.
Vaethas 2019 年 2 月 17 日 上午 9:15 
Compiling produces the following error message:

'Program(1463,0): Warning: Unreachable code detected
Program(1609,0): Warning: Unreachable code detected'
Rosehip <3 2018 年 8 月 8 日 上午 3:54 
awww darn, I can deal with it ^^