Chat GPT can Script for Space Engineers!

  Рет қаралды 3,005

PsyPrime

PsyPrime

Күн бұрын

Пікірлер: 54
@dakaodo
@dakaodo 8 ай бұрын
This tutorial is terrific! Your walkthrough explanations are perfect for the prompt and code review. I haven't watched any other ChatGPT coding examples at this level of detail, so the formatting, annotations, etc look amazing to my caveman sensibilities (most of my scripting experience was for Arma 3, and there I largely bashed together other people's snippets to crudely achieve my desired results).
@Psy-Prime
@Psy-Prime 8 ай бұрын
Thanks. I saw a big gap there and felt it needed some love. I’m glad it struck the right chords!
@ОаоАоа-й2м
@ОаоАоа-й2м 8 ай бұрын
To be honest its impressive that chatGPT can write scripts for space engineers because its documentation is actuall begginers nightmare
@Psy-Prime
@Psy-Prime 8 ай бұрын
Very true! Making sense of documentation is one of ai’s greatest strengths.
@Erkekjetter.Vladislav
@Erkekjetter.Vladislav 8 ай бұрын
Last time I used chatGPT to script something for me, because I didnt want to bother spending the time.. It still took me like 5 hours with debugging, helping me script rather complex AutoCAD lisp. And I did found it best to que up sections of the script and then request "stitching" them together for self reference and code integrity. Worked like a charm, and that was back in 2022.
@PriorUniform721
@PriorUniform721 8 ай бұрын
I was actually using a couple of different LLMS last night to write a script. A couple of tips I think would be worth mentioning is that you do have to be specific to tell the LLMS that you're using the space engineers programmable block API otherwise it tends to mix stuff from the regular game code and or the mod API. I also found that it was important to tell it to make sure it was c# version 6 compatible because without that it was using features that are not available in version of c# that's in space engineers.
@PriorUniform721
@PriorUniform721 8 ай бұрын
Also you can tell it to use MalwareDev's MDK - SE for visual studio and it will format the code for use with visual studio. I found having the code in visual studio was nice to be able to catch syntax or compile time errors before viewing them in space engineers. You know when you get undeclined variable referenced online six character 58 in that big text box after you choose compile. It's just not useful there. Having the code and visual studio will allow me to find those sorts of things before getting to SE.
@Psy-Prime
@Psy-Prime 8 ай бұрын
Thanks for the tips. I’m sure they’ll be helpful.
@BeEasyKlockwork
@BeEasyKlockwork 8 ай бұрын
Wow your the man..... I thought of doing this but wouldn't have the brilliance to pull it offf. Great job awesome awesome awesome
@Psy-Prime
@Psy-Prime 8 ай бұрын
Thank you 🤩
@Lobisomen79
@Lobisomen79 8 ай бұрын
never even thought of trying it. definately gonna give it a try for airlocks
@Psy-Prime
@Psy-Prime 8 ай бұрын
That should work quite well. But if you struggle to get a result Whip has an auto airlock script already. But it’s fun to create your own.
@Lobisomen79
@Lobisomen79 8 ай бұрын
@@Psy-Prime i know, i'm using mgss airlock script right now. also a real great script but you have to name a ton of blocks for each airlock to use every funtion
@G19amc
@G19amc 8 ай бұрын
This is great. I will have to give this a try. I have been in search of and gave up learning trying to learn the code (beyond my skill level). I have been trying to find/create an auto leveler script for my no jet pack working platforms.
@Psy-Prime
@Psy-Prime 8 ай бұрын
Awesome! Let me know if you have any trouble producing your script. I think half the battle is learning what can and cannot be script controlled and what data the script can access from your blocks - but AI can look all that up for you - then you just need to tell it how you want to use that data to control the grid. Good luck to you 😎
@jcataclisma
@jcataclisma 8 ай бұрын
That's great! thank you for the heads-up!!!
@Psy-Prime
@Psy-Prime 8 ай бұрын
You bet! Thanks 😎
@alsama198
@alsama198 8 ай бұрын
I tend to use phind for coding tasks. thank you for the video.
@Psy-Prime
@Psy-Prime 8 ай бұрын
Phind definitely has a longer memory (twice the token length) which makes longer collaborations possible, however I’ve found that ChatGPT 4 based models tend to reason more like us - so are more likely to arrive at the conclusions we’re hoping for. Both can work with the right guidance though.
@keystonepirate2534
@keystonepirate2534 8 ай бұрын
Very ice, thanks for the content. Chatgpt is a nice tool for this
@Psy-Prime
@Psy-Prime 8 ай бұрын
You’re welcome. Glad you enjoyed this little calm oasis in the series 🏝️
@bendeleon6326
@bendeleon6326 8 ай бұрын
Hopefully this video gets thousands of views.
@Psy-Prime
@Psy-Prime 8 ай бұрын
That would be wonderful
@Chilled_Mackers
@Chilled_Mackers 8 ай бұрын
Nice, one day I might need to do stuff like this.
@Psy-Prime
@Psy-Prime 8 ай бұрын
Good luck for when you do!
@ys053rious6
@ys053rious6 7 ай бұрын
Having used gpt, copilot and Gemini, Gemini is fact the best when using for coding by a long way
@Psy-Prime
@Psy-Prime 7 ай бұрын
Interesting - I'll have to give that a try. Have you tried GPT 4o yet? That one seems to be leaps ahead in many areas.
@camerontowell3638
@camerontowell3638 8 ай бұрын
this is incredibile i would never had thought of this
@Psy-Prime
@Psy-Prime 8 ай бұрын
And now you know 😁
@lilk4812
@lilk4812 8 ай бұрын
Could you write a write a script to lock and cut off the doors when you are passing floors?
@Psy-Prime
@Psy-Prime 8 ай бұрын
Next episode ;)
@JaxiPaxified
@JaxiPaxified 5 ай бұрын
Very cool! I just got chatGPT to make me a script for my miner, playing and displaying a warning every few seconds when the stone ejector system is active. I was tried of forgetting and ejecting all the stone in my base. It uses the "warning, enemy detected" sound, but cuts it off after 0,8 seconds so it only says warning.
@Psy-Prime
@Psy-Prime 5 ай бұрын
Very nice! That’s smart thinking.
@JaxiPaxified
@JaxiPaxified 5 ай бұрын
@@Psy-Prime Thanks! I think the sound block is so under cooked. It's just another jukebox really... Could have been so much more. I plan on making it count stone on board, display % storage available and stopping the drills when full. I think I have the first two down pretty well already. It's a fast way for beginners to get stuff done!
@Mad_Hat_was_taken
@Mad_Hat_was_taken 8 ай бұрын
Very nice
@Psy-Prime
@Psy-Prime 8 ай бұрын
Thanks 🙏
@doctorgrubious7725
@doctorgrubious7725 6 ай бұрын
Without watching it fully, I think you somewhat over complicated it, instead of a combination, each floor can be a value, and each piston has a hierarchal priority in the sequence, I forget how far pistons go but if it’s like, floor 3 is a value of 2.5 fully extended pistons, the top two would activate and then the second would active until reaching 50% length
@Psy-Prime
@Psy-Prime 6 ай бұрын
Watch it fully and maybe watch the episode before too. I’m trying to get the elevator to travel at a constant speed no matter how many floors you travel. I’m starting from a system that works like you described but it’s not scalable as more floors = more speed. We found an elegant solution in the end.
@doctorgrubious7725
@doctorgrubious7725 6 ай бұрын
@@Psy-Prime oh yeah definitely, i watched the whole thing but I’m familiar with coding so I saw some easy solutions, the sequential order would ensure that there was a constant slow pace, as the fast pace is caused by too many going off at once, if one goes than immediately the second, it’d be faster, I should probably finish it as I got halfway through before (getting distracted and not paying attention, probably should clarify since I did see the end 💀) having to do boring work stuff like right a report on someone’s death smh
@Psy-Prime
@Psy-Prime 6 ай бұрын
@@doctorgrubious7725 right on! There’s many solutions to each problem so I’m definitely open to learning alternatives. And as a full time worker myself - yes, work stuff first, then YouTubiness!
@Banned4honesty
@Banned4honesty 8 ай бұрын
Guess we'll have the next generation of coders going on strike against Sydney... uh uh I mean chatgpt
@Psy-Prime
@Psy-Prime 8 ай бұрын
Well, not entirely. There’s still a certain amount of human intuition required to get things to work. The script is only as good as the logic you feed it.
@dakaodo
@dakaodo 8 ай бұрын
@@Psy-Prime I wonder how far we would get in this regard, over the next few 5-year increments.
@Psy-Prime
@Psy-Prime 8 ай бұрын
@@dakaodo I suppose eventually ‘coders’ will be expert prompters, more responsible for the architecture and logic than the code itself.
@dakaodo
@dakaodo 8 ай бұрын
@@Psy-Prime So "extra high level code" then (as opposed to high level like C, or machine level code). :D I've seen tech bro interviews referring to prompt engineers as a new job title, but I personally would prefer something a bit more classical: wordsmith!
@Psy-Prime
@Psy-Prime 8 ай бұрын
@@dakaodo wordsmith - I like it! Could have ‘Metacanics’ too.
@Thomas-uz3zf
@Thomas-uz3zf 8 ай бұрын
This is very awesome
@Psy-Prime
@Psy-Prime 8 ай бұрын
I know right! Thank you 😁
Ultimate Guide to WIRELESS AUTOMATION in Space Engineers
17:24
Zer0's Legion
Рет қаралды 21 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Space Engineers - 5 scripts every engineer should know
18:17
EpikTek
Рет қаралды 171 М.
My 10 ESSENTIAL Mods for Space Engineers
8:57
Vandal Vanda
Рет қаралды 32 М.
[SPACE ENGINEERS] 8 VANILLA SOLUTIONS that may replace mods or scripts!
13:37
Kelevra Engineering
Рет қаралды 105 М.
I Tried Re-creating Death Stranding Terrain Scan
18:46
Game Dev Buddies
Рет қаралды 99 М.
Launch & Return To Hanger AI Fighters  - How To - Space Engineers
15:33
LastStandGamers
Рет қаралды 154 М.
Space Engineers 2 - Thoughts and Concerns
20:25
Kanajashi
Рет қаралды 6 М.
Custom Rover Suspension Tutorial
28:11
Quantum Chief
Рет қаралды 18 М.
How To Build A FAST Car In Space Engineers | Formula Space Engineers
11:10
Formula Space Engineers
Рет қаралды 21 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН