So I made Portals in Scrap Mechanic...
HTML-код
- Опубликовано: 17 май 2022
- You told me to add a Portal gun to Scrap Mechanic, so I did. Modding Scrap Mechanic can be fun, but also a journey of its own. This was a lot tougher than I expected, but I did manage to make a somewhat working portal gun in Scrap Mechanic! Let me know if you have any other ideas for Scrap Mechanic Survival mods.
Portal Mod: steamcommunity.com/sharedfile...
My Discord: / discord
Enter the creative paradise of Scrap Mechanic! Build fantastic machines, go on adventures with your friends and defend against waves of evil Farmbots in this imaginative multiplayer survival sandbox. With Scrap Mechanic’s powerful creation tools you can engineer your own adventures! Now with Scrap Mechanic Survival mode!
You can buy Scrap Mechanic here: store.steampowered.com/app/38...
Music: YT Audio Libary, Random stuff from the internet Игры
The way I'd prevent the feedback loop is the same way Minecraft does it: Override the portal you teleport to until after you exit the trigger, so if you step back in, it works again
I think that's what he did
Finally! Someone who ACTUALLY made a portal mod for sm.
I know why you had trouble with putting the portals on non-static objects.
*Aperture Science would like to remind you that portals cannot be placed on moving surfaces.*
It's been a while since I've seen portal, so yeah... Probably should have watched something for reference before...
unless you're sabotaging the neurotoxin, then you can place them on moving surfaces
programmers code for not wanting to deal whit paradoxes and nasa level physics X3
@@Dr-Pixel well just sabotage some neurotoxin chambers and I’m r will work fine
It would be even more amazing if you even added the camera in the portal
11:49 I see you're a true programmer: print("yo mama")
It's funny to see this, but imagine how making the actual portal felt, making all those puzzle, yeah, it's just a teleport trigger with a camera, but it's still probably difficult to fine-tune.
the portal portals are way more then just that, look up non-Euclidean geometry that is what portal uses to drive their portals
@@link7417 I already know, I just stated the basic idea but it's definitely more than just what I said. Ik that ain't clear, but I've made portals so I know how complicated that actually are, or can be.
@@KaneyoriHK Fair enough ^^
I would love to see a scrap portal series.
How do I make this a series?
@@Dr-Pixel make portal 3 in scrap mechanic
What I like about your video is you show the funny bugs along the way, not just a couple cuts after each successful step! I love the portal gun, I hope you can collaborate with other modders!
Well, that's what I do on the raft mod!
Well done, great work! This is the quality content.
Really cool! I love the Portal games and this is so cool.
Siiiick, every FPS game needs a Portal Gun mod.
Imagine making the portals so that you can see through them
Hmm, I wouldn't know how though
The way i would have prevented the portal feedback loop, is the same way valve did in the portal series (at least i believe so)
i would have put a tiny timer on the portal (give or take 0.3 sec) and apply a small push out of the portal in the direction the portal is facing.
Basically, it would work like this:
When player enters portal:
-start 0.3 second timer (while timer active portal is not portaling you across)
-check which way the portal is facing, and apply a small increase in speed in said direction
Yes, but that doesn't work like that in sm. (Kinda does, I guess) I added something like this later.
why everything you make is that cool
This man just proved himself to have the intellect of an Aperture Laboratories scientist
As someone who's tried making a portal mechanic myself, It feels good seeing that my working process is very similar to fellow programmers lol
That looked painful to do.
Done well getting that to work.
8:51 borealis moment
7:14 its good at teleport your vehicle behind you in survival while riding in it
Imagine "Hey bro I made this new car!"
You just hear a spudgun go off
"What car?"
"The one ri- *oh crap."*
haha, lol
bruh, I haven't even unlocked the propeller yet in Raft Mechanic and now you drop this? Lmao, what a mad lad.
8:52 Oh My God the cube has entered the Backrooms
thank you for this mod, i actually have been wanting a portal gun in scrap mechanic mod for a while now, +1 sub
Great vid
me: I'm not that far into Raft Mechanic, maybe I should wait until they turned it into a custom game mode, so I can play it more easily in the future
also me: Raft Mechanic go brrrrrrrrrrrrr
Really cool, i can't even immagine what player can do whit this mod and the immense creativity you can have in scrap mechanic
Me neither! Would be epic to see some puzzles or challenges with this.
Heres an idea: Draggable wedges if its possible theres an 99.9% scrapman will use it
another amazing mod! all that time really payed off
If you ever do a video like this again i have a 2 part suggestions that might prove to be really usefull for quite alot of creations:
A. Player scanner, will return the ID of the player in front of the scanner using modpack logic (or return the closest player to a scanner, with adjustable radius cycle using E)
B. Wireless part connector, Allows scripted parts to be wirelessly connecting (using modpack logic would be ideal of course)
B could be used to make alot of cool things like camera drones and whatnot, it would also be cool for missles
A could be used to protect your doors in a cool way or even as a security device if it is ranged.
Finnaly! A working Portal mod! Yeah!
this is Awesome.
WOW you did a great job on this Thanks for putting in the hours for us :)
Glad you enjoyed it! That makes worth all the effort.
Love you.
so cool
I wass literally looking on the workshop for a portal gun mod a week ago, and little did I know you were making it
I think it'd be cooler if you made the portal placeable on only White bocks that are big enough, or a certain block in general. I watched the video through with no audio, so I'm just imagining the problems you faced until I get to listen!
I think you can just place walls on bearings. Then the portals would go right through them...
@@Dr-Pixel well that's good. It might be cool if you were to make some Portal Map templates for people to build on if people wanted to make their own portal puzzle in Scrap Mechanic, and only wanted portals to attach to certain walls.
Axolotl should hire you xD
dude, you had me crying!!!
"Omg object = oject, THIS TYPO! if i've just- no wonder it never works"
Corrects it with "ovject"
That's modding in a nutshell...
No way u didnt... I literally just completed portal for the 1239th time, and now im getting in to scrap mechanic again
2 OF THE BEST GAMES
COMBINED
you deserve much more subscribers your content is so good
One of your ideas will be in the next vid... 0_0
It was only a matter of time before dpp made this
thank you for accepting my request
No problem 😊
Rather than doing some weird cooldown thing to stop repeated teleporting, just check if something's velocity is away from the portal. If it is, then don't teleport it.
I don't create things with velocity away from the portal, so it wouldn't work.
holy code! you're crazy and we are thankful for that hahahahahah :D
I don't think I've ever met a sane coder...
now make a placable portal gun (2 seperate for blue and orange)
you could add a delay time to the exit and enter times
if you watch closely at 12:03 to 12:05 if you look at the line that says "object = oject" he proceeds to spell "ovject" instead.
i totally died with that. xD i feel your pain...
Lol, you are right! At least it's fixed on the workshop version.
1:11 Should've left the wrong text colour, would've been so funny)
i drove my car into the blue portal at high speed..... the game froze, i had to shut down to get control back haha good mod though lots of fun on foot :)
Well, it is kinda jank. But portal fysiks can get easily out of control.
@@Dr-Pixel haha yeah but it’s all good, new exciting thins for sm :) enjoying it!
I would like it to be a mod(challenges), but custom game is enough
question: can u also make portal blocks? like draggable portals, and maybe even seethrough? (totally not a specific thing i need for an infinite challenge (within sandbox, because can have it in challenge mode), no totally not)
it would take a looot of work and it would be very long to make
probably won't be done for a long time
Nice....
Now we just need a way to make portal guns with different channels for multiplayer if there isn't already
That would be possible. You would just need portal guns with different portals.
your coding pain brings us happiness keep it up...lol😂😂😂😂🤣🤣🤣
This video was cool but I wish there was a bit more of an explanation did you spawn a second pole in front that was invisible that also can’t teleport you back is that’s how you teleported
What do you mean?
What did he do so like what mechanic did he use
this is awsome i think it would be cool though if you had a custom model for the gun its self
And a custom model and animation for the portal, I don't think it's possible to do in-game.
I don't have a clue about 3d models sadly
@@Dr-Pixel use Blender, its free, open source, and there are a ton of tutorials
@@Adriethyl Use blender! It's easy they said...
@@Dr-Pixel I'm still learning myself 😅
Could you make pistons with collisions or collistons.
ok but how about the Rick & Morty portal gun
Take the portal mode to survival
not sure how this could be added to the world famous fant survival mod. Maybe get it from the trader for 50 pineapple crates?
Make it 500
just don't. Not everything has to be fant compatible.
@@Dr-Pixel lol, I know. it would be a bit silly to try and work that in.
@@guillermoelnino Fant doesn't even want any other mods in his. If so, he would care about the modpacks that use his mod. He doesn't even have legacy versions.
@@Dr-Pixel yeah, theres that. excellent stand alone mod as is my man.
Not sure the capabilities of sm's moding api, but do you have the ability to render a perspective to a texture?
In unity 3D you can render a camera to a texture and then apply that texture to a mesh.
You would have to do some perspective math to angle of the perspective to make it orientate relative to the player, but thats one step closer to a real portal
(would make you see through portal a into and out of portal b)
also at this point, write a vs extension for sm lua (one might already exist)
no you can't do this with sm.
@@Dr-Pixel Well then, time for plan B
You could send many raycasts out each of the portals, then create a corresponding part on the other portal where the raycast was shot, this small part would replicate the color of the part the raycast hit
basically a custom raycast renderer that renders to the other portal
It would be decently pixelated but it could be better than nothing.
an idea for a mod block: a gearbox, would take one rotational input and let rotation output, there would be an option which would shift the strength to speed ratio of the input, probably 4:1, 2:1,1:1,1:2,1:4
I'm experiencing a strong deja vu moment
He already made a gearbox mod. Or am I misunderstanding something?
@@bruno_yt i guess i didn't saw it
Make McDonald’s happy meal with diabetes burger and 10x msg fries with a side of E. coli Mcnuggies
Pls make a WOC moonwalk
can you do the goop now (proportion, repulsion)
if i'm lucky i can just drop the Gloowwwwwww-Kayyyy. 🤣🤣🤣
make a mod with a yeet tool and yeet engine
everytime you yeet a creation or animal you get more yeet energy batteries with those batteries
you can power a yeet engine that yeets anything it touches so put the engine on the front of the vehicle
and the yeet engine is way to powerful
Wöööaaaakkk
Omg you are so creative!!!
(Oh wait you just get your viewers to give the creativeness)
Yes, that's how it works.
Scrapature science
I didn't quite get it, does it work for the player?
A berring on 45° please
Can you make a mod/framework that allows ppl to make custom guns by just adding files into a folder
For example
.cfg (fire speed, projectile velocity)
.blend (models)
.mp3 (sounds)
That's possible, that's a good idea.
mp3*
mp4 is for vids
@@jblock9675 correct will fix
@@Dvance i mean id love a titanfall2 epg but i dont know how to code it in
Why not just make an own mod? With the better mod support you can make tools with the mod tool, add audio bank files and add 3d models
Next time add bloons tower defense (i mean the whole game lol)
Hmmm, I could try like a tower defense custom game I guess.
How about making a block like metal not let portals on themselves
You can make gearbox like from real car? (Block)
He already did in a previous video.
Can you make gun that lets you walk trough walls and when you press r you cant walk any more and it would look little bit like 1.51
Like disabling collisions for the object you shoot at?
Make a second lift (:
i understand you, and your frustation! i really do, when it's not working something! Leave a like. one frustration in minus!
Hey Pixel can u make terraria in sm
Can you make a wideo how to make a custom recepise in craftbot?
There is a literally a .json file for this...
lol I made a portal gun before and the stupid feedback loop of the two portals teleporting between each other continuously was SO ANNOYING lol
add minecraft's creeper to the game as a bot
I wish I knew how to code. Unfortunately- I can't spot errors in even simple code.
Well, if it says "Object = oject" it's pretty obvious.
Oh no
waw
print("yo mama") am i the only one that seen it XD
Coding is just spain without the s
Just wait until Friday...
I left a comment for algorithm purposes.
Nice! More views on these vids, the more incentive I have to make more!
Early sorta
Thinking aobut this you can just hyper travel
Yeah, he didn't add a distance limit I don't think.
Yeah, this is great for moving fast across the map
"hitNormal"
will it work if i will join someone that doesnt have that mod
Whoever joins will download the mod as well. However, both players share the same portals
@@Dr-Pixel is it for beta version?
@@discorddiscord7678 yes
oooooooooooooooh
its for custom games...
object = oject
yas
in a steam it not work
How are you guys doin :)
what can’t you do?
fysiks
@@Dr-Pixel or spell 🗿🫃
bro what