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 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 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.
@@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.
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!
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
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.
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
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)
@@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.
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
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!
@@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.
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.
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)
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
@@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.
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)
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 :)
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...
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
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")
I would love to see a scrap portal series.
How do I make this a series?
@@Dr-Pixel make portal 3 in scrap mechanic
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 ^^
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!
8:51 borealis moment
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
Really cool! I love the Portal games and this is so cool.
Well done, great work! This is the quality content.
Siiiick, every FPS game needs a Portal Gun mod.
7:14 its good at teleport your vehicle behind you in survival while riding in it
This man just proved himself to have the intellect of an Aperture Laboratories scientist
why everything you make is that cool
bruh, I haven't even unlocked the propeller yet in Raft Mechanic and now you drop this? Lmao, what a mad lad.
Imagine making the portals so that you can see through them
Hmm, I wouldn't know how though
That looked painful to do.
Done well getting that to work.
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.
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.
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
Imagine "Hey bro I made this new car!"
You just hear a spudgun go off
"What car?"
"The one ri- *oh crap."*
haha, lol
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.
Love you.
Finnaly! A working Portal mod! Yeah!
thank you for this mod, i actually have been wanting a portal gun in scrap mechanic mod for a while now, +1 sub
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
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.
Axolotl should hire you xD
another amazing mod! all that time really payed off
8:52 Oh My God the cube has entered the Backrooms
I wass literally looking on the workshop for a portal gun mod a week ago, and little did I know you were making it
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
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.
you could add a delay time to the exit and enter times
you deserve much more subscribers your content is so good
One of your ideas will be in the next vid... 0_0
2 OF THE BEST GAMES
COMBINED
Could you make pistons with collisions or collistons.
No way u didnt... I literally just completed portal for the 1239th time, and now im getting in to scrap mechanic again
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 😅
It was only a matter of time before dpp made this
thank you for accepting my request
No problem 😊
I didn't quite get it, does it work for the player?
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.
now make a placable portal gun (2 seperate for blue and orange)
dude, you had me crying!!!
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.
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
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
1:11 Should've left the wrong text colour, would've been so funny)
"Omg object = oject, THIS TYPO! if i've just- no wonder it never works"
Corrects it with "ovject"
That's modding in a nutshell...
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.
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
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!
holy code! you're crazy and we are thankful for that hahahahahah :D
I don't think I've ever met a sane coder...
this is Awesome.
Take the portal mode to survival
can you do the goop now (proportion, repulsion)
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...
I would like it to be a mod(challenges), but custom game is enough
Great vid
ok but how about the Rick & Morty portal gun
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.
your coding pain brings us happiness keep it up...lol😂😂😂😂🤣🤣🤣
Pls make a WOC moonwalk
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?
A berring on 45° please
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
How about making a block like metal not let portals on themselves
Can you make a wideo how to make a custom recepise in craftbot?
There is a literally a .json file for this...
if i'm lucky i can just drop the Gloowwwwwww-Kayyyy. 🤣🤣🤣
so cool
Make McDonald’s happy meal with diabetes burger and 10x msg fries with a side of E. coli Mcnuggies
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.
Hey Pixel can u make terraria in sm
Omg you are so creative!!!
(Oh wait you just get your viewers to give the creativeness)
Yes, that's how it works.
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
Next time add bloons tower defense (i mean the whole game lol)
Hmmm, I could try like a tower defense custom game I guess.
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!
what can’t you do?
fysiks
@@Dr-Pixel or spell 🗿🫃
in a steam it not work
Nice....
add minecraft's creeper to the game as a bot
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
How are you guys doin :)
Coding is just spain without the s
Just wait until Friday...
Scrapature science
print("yo mama") am i the only one that seen it XD
"hitNormal"
Instructions unclear I ruined my scrap.
I left a comment for algorithm purposes.
Nice! More views on these vids, the more incentive I have to make more!
bro what
Fix shark ai
No
Make portals
Yes
Yes. Shark ai is bad...
@@Dr-Pixel Shark AI is the best!
Wöööaaaakkk
Good. Now spend months of your life making portal test chambers for a video
I think others will do it
@@Dr-Pixel coward.
algorithum recognise my comment thanks