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
  • ИгрыИгры

Комментарии • 192

  • @4Bakers
    @4Bakers 2 года назад +94

    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

    • @vibaj16
      @vibaj16 2 года назад +7

      I think that's what he did

  • @gaminghub8108
    @gaminghub8108 2 года назад +49

    Finally! Someone who ACTUALLY made a portal mod for sm.

  • @scottowens398
    @scottowens398 2 года назад +52

    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.*

    • @Dr-Pixel
      @Dr-Pixel  2 года назад +21

      It's been a while since I've seen portal, so yeah... Probably should have watched something for reference before...

    • @Super_IronMan
      @Super_IronMan 2 года назад +4

      unless you're sabotaging the neurotoxin, then you can place them on moving surfaces

    • @link7417
      @link7417 2 года назад +2

      programmers code for not wanting to deal whit paradoxes and nasa level physics X3

    • @ImUnkown482
      @ImUnkown482 2 года назад +1

      @@Dr-Pixel well just sabotage some neurotoxin chambers and I’m r will work fine

  • @BroncoGammon
    @BroncoGammon 2 года назад +2

    It would be even more amazing if you even added the camera in the portal

  • @gungu
    @gungu 2 года назад +4

    11:49 I see you're a true programmer: print("yo mama")

  • @KaneyoriHK
    @KaneyoriHK 2 года назад +11

    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
      @link7417 2 года назад

      the portal portals are way more then just that, look up non-Euclidean geometry that is what portal uses to drive their portals

    • @KaneyoriHK
      @KaneyoriHK 2 года назад +1

      @@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.

    • @link7417
      @link7417 2 года назад +1

      @@KaneyoriHK Fair enough ^^

  • @danielfreytes8297
    @danielfreytes8297 2 года назад +4

    I would love to see a scrap portal series.

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      How do I make this a series?

    • @St_rs1123
      @St_rs1123 2 года назад

      @@Dr-Pixel make portal 3 in scrap mechanic

  • @jickhertz4124
    @jickhertz4124 2 года назад +2

    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!

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      Well, that's what I do on the raft mod!

  • @mixer2.0
    @mixer2.0 2 года назад +15

    Well done, great work! This is the quality content.

  • @Fagiano
    @Fagiano 2 года назад +10

    Really cool! I love the Portal games and this is so cool.

  • @goobertfroobert5572
    @goobertfroobert5572 2 года назад +1

    Siiiick, every FPS game needs a Portal Gun mod.

  • @FileTypeJpeg
    @FileTypeJpeg 2 года назад +3

    Imagine making the portals so that you can see through them

    • @Dr-Pixel
      @Dr-Pixel  2 года назад +1

      Hmm, I wouldn't know how though

  • @matthrew
    @matthrew 2 года назад +1

    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

    • @Dr-Pixel
      @Dr-Pixel  2 года назад +1

      Yes, but that doesn't work like that in sm. (Kinda does, I guess) I added something like this later.

  • @definitywnierysio4206
    @definitywnierysio4206 2 года назад +2

    why everything you make is that cool

  • @StardomSeeker
    @StardomSeeker 2 года назад

    This man just proved himself to have the intellect of an Aperture Laboratories scientist

  • @GrepidYT
    @GrepidYT 2 года назад +1

    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

  • @SuperPeter05
    @SuperPeter05 2 года назад +1

    That looked painful to do.
    Done well getting that to work.

  • @PanKrzychu
    @PanKrzychu 2 года назад +1

    8:51 borealis moment

  • @apersunthathasaridiculousl1890
    @apersunthathasaridiculousl1890 2 года назад +1

    7:14 its good at teleport your vehicle behind you in survival while riding in it

  • @dalpilcher5254
    @dalpilcher5254 2 года назад

    Imagine "Hey bro I made this new car!"
    You just hear a spudgun go off
    "What car?"
    "The one ri- *oh crap."*

  • @MechaNexus
    @MechaNexus 2 года назад +1

    bruh, I haven't even unlocked the propeller yet in Raft Mechanic and now you drop this? Lmao, what a mad lad.

  • @loganinnityt3337
    @loganinnityt3337 2 года назад +1

    8:52 Oh My God the cube has entered the Backrooms

  • @liamyes6150
    @liamyes6150 2 года назад +8

    thank you for this mod, i actually have been wanting a portal gun in scrap mechanic mod for a while now, +1 sub

  • @doozyprivate10
    @doozyprivate10 Год назад

    Great vid

  • @ERYK2109
    @ERYK2109 2 года назад +1

    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

  • @Redstonista
    @Redstonista 2 года назад +1

    Really cool, i can't even immagine what player can do whit this mod and the immense creativity you can have in scrap mechanic

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      Me neither! Would be epic to see some puzzles or challenges with this.

  • @daryldeediongson769
    @daryldeediongson769 2 года назад

    Heres an idea: Draggable wedges if its possible theres an 99.9% scrapman will use it

  • @8bitbunnie936
    @8bitbunnie936 2 года назад

    another amazing mod! all that time really payed off

  • @mki443
    @mki443 2 года назад

    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.

  • @laszlototh5622
    @laszlototh5622 2 года назад

    Finnaly! A working Portal mod! Yeah!

  • @Scrap-Bran
    @Scrap-Bran 2 года назад

    this is Awesome.

  • @Gorill22
    @Gorill22 2 года назад +1

    WOW you did a great job on this Thanks for putting in the hours for us :)

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      Glad you enjoyed it! That makes worth all the effort.

  • @Toby-ve6gp
    @Toby-ve6gp 2 года назад +1

    Love you.

  • @willraya1791
    @willraya1791 2 года назад

    so cool

  • @Goofy-15
    @Goofy-15 2 года назад

    I wass literally looking on the workshop for a portal gun mod a week ago, and little did I know you were making it

  • @Dvance
    @Dvance 2 года назад +3

    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
      @Dr-Pixel  2 года назад

      I think you can just place walls on bearings. Then the portals would go right through them...

    • @Dvance
      @Dvance 2 года назад

      @@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.

  • @valian8985
    @valian8985 2 года назад

    Axolotl should hire you xD

  • @slayerfan61
    @slayerfan61 4 месяца назад

    dude, you had me crying!!!

  • @dark-5825
    @dark-5825 2 года назад

    "Omg object = oject, THIS TYPO! if i've just- no wonder it never works"
    Corrects it with "ovject"

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      That's modding in a nutshell...

  • @klaasmuller9663
    @klaasmuller9663 2 года назад

    No way u didnt... I literally just completed portal for the 1239th time, and now im getting in to scrap mechanic again

  • @guphord
    @guphord 2 года назад

    2 OF THE BEST GAMES
    COMBINED

  • @zxzx8173
    @zxzx8173 2 года назад

    you deserve much more subscribers your content is so good

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      One of your ideas will be in the next vid... 0_0

  • @_miobrot_603
    @_miobrot_603 2 года назад

    It was only a matter of time before dpp made this

  • @cid2087
    @cid2087 2 года назад

    thank you for accepting my request

  • @ArEyeses6751
    @ArEyeses6751 2 года назад

    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.

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      I don't create things with velocity away from the portal, so it wouldn't work.

  • @_NoName_314
    @_NoName_314 2 года назад

    holy code! you're crazy and we are thankful for that hahahahahah :D

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      I don't think I've ever met a sane coder...

  • @blackenderman9269
    @blackenderman9269 2 года назад

    now make a placable portal gun (2 seperate for blue and orange)

  • @foehammere4192
    @foehammere4192 2 года назад

    you could add a delay time to the exit and enter times

  • @JoachimVampire
    @JoachimVampire 2 года назад

    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...

    • @Dr-Pixel
      @Dr-Pixel  2 года назад +1

      Lol, you are right! At least it's fixed on the workshop version.

  • @poomonyoutube1607
    @poomonyoutube1607 2 года назад

    1:11 Should've left the wrong text colour, would've been so funny)

  • @TheBobbybates
    @TheBobbybates 2 года назад

    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 :)

    • @Dr-Pixel
      @Dr-Pixel  2 года назад +1

      Well, it is kinda jank. But portal fysiks can get easily out of control.

    • @TheBobbybates
      @TheBobbybates 2 года назад

      @@Dr-Pixel haha yeah but it’s all good, new exciting thins for sm :) enjoying it!

  • @DrPeeper
    @DrPeeper Год назад

    I would like it to be a mod(challenges), but custom game is enough

  • @robertdemare6140
    @robertdemare6140 2 года назад +2

    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)

    • @tuluppampam
      @tuluppampam 2 года назад

      it would take a looot of work and it would be very long to make
      probably won't be done for a long time

  • @BBQCTX
    @BBQCTX 2 года назад

    Nice....

  • @V13STOP
    @V13STOP 2 года назад

    Now we just need a way to make portal guns with different channels for multiplayer if there isn't already

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      That would be possible. You would just need portal guns with different portals.

  • @foehammere4192
    @foehammere4192 2 года назад +1

    your coding pain brings us happiness keep it up...lol😂😂😂😂🤣🤣🤣

  • @MrHammy-lk1rv
    @MrHammy-lk1rv 2 года назад +1

    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

    • @Dvance
      @Dvance 2 года назад +1

      What do you mean?

    • @MrHammy-lk1rv
      @MrHammy-lk1rv 2 года назад +1

      What did he do so like what mechanic did he use

  • @AJBallistic
    @AJBallistic 2 года назад +1

    this is awsome i think it would be cool though if you had a custom model for the gun its self

    • @Dvance
      @Dvance 2 года назад +1

      And a custom model and animation for the portal, I don't think it's possible to do in-game.

    • @Dr-Pixel
      @Dr-Pixel  2 года назад +1

      I don't have a clue about 3d models sadly

    • @Adriethyl
      @Adriethyl 2 года назад

      @@Dr-Pixel use Blender, its free, open source, and there are a ton of tutorials

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      @@Adriethyl Use blender! It's easy they said...

    • @Adriethyl
      @Adriethyl 2 года назад

      @@Dr-Pixel I'm still learning myself 😅

  • @braindeadjet8086
    @braindeadjet8086 2 года назад +1

    Could you make pistons with collisions or collistons.

  • @AcousticJammTheGamer
    @AcousticJammTheGamer 2 года назад

    ok but how about the Rick & Morty portal gun

  • @therafaello
    @therafaello 2 года назад

    Take the portal mode to survival

  • @guillermoelnino
    @guillermoelnino 2 года назад +1

    not sure how this could be added to the world famous fant survival mod. Maybe get it from the trader for 50 pineapple crates?

    • @SCOP_
      @SCOP_ 2 года назад

      Make it 500

    • @Dr-Pixel
      @Dr-Pixel  2 года назад +1

      just don't. Not everything has to be fant compatible.

    • @guillermoelnino
      @guillermoelnino 2 года назад

      @@Dr-Pixel lol, I know. it would be a bit silly to try and work that in.

    • @Dr-Pixel
      @Dr-Pixel  2 года назад +2

      @@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.

    • @guillermoelnino
      @guillermoelnino 2 года назад

      @@Dr-Pixel yeah, theres that. excellent stand alone mod as is my man.

  • @_creare_2742
    @_creare_2742 2 года назад +1

    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
      @Dr-Pixel  2 года назад +1

      no you can't do this with sm.

    • @_creare_2742
      @_creare_2742 2 года назад +1

      @@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.

  • @najlitarvan921
    @najlitarvan921 2 года назад

    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

    • @forgivenid
      @forgivenid 2 года назад

      I'm experiencing a strong deja vu moment

    • @bruno_yt
      @bruno_yt 2 года назад

      He already made a gearbox mod. Or am I misunderstanding something?

    • @najlitarvan921
      @najlitarvan921 2 года назад

      @@bruno_yt i guess i didn't saw it

  • @augb.b.3522
    @augb.b.3522 2 года назад

    Make McDonald’s happy meal with diabetes burger and 10x msg fries with a side of E. coli Mcnuggies

  • @zyronreinemiguelfernandoa.5840
    @zyronreinemiguelfernandoa.5840 2 года назад

    Pls make a WOC moonwalk

  • @the_infinity_
    @the_infinity_ 2 года назад

    can you do the goop now (proportion, repulsion)

  • @KrawllUnchained
    @KrawllUnchained 2 года назад

    if i'm lucky i can just drop the Gloowwwwwww-Kayyyy. 🤣🤣🤣

  • @dvanderspoelricksen
    @dvanderspoelricksen Год назад

    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

  • @andreipeters641
    @andreipeters641 2 года назад

    Wöööaaaakkk

  • @Live-Paradox
    @Live-Paradox 2 года назад

    Omg you are so creative!!!
    (Oh wait you just get your viewers to give the creativeness)

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      Yes, that's how it works.

  • @monke7919
    @monke7919 2 года назад

    Scrapature science

  • @Evgeny_372
    @Evgeny_372 2 года назад

    I didn't quite get it, does it work for the player?

  • @julienmeunierwolfgunnm6536
    @julienmeunierwolfgunnm6536 2 года назад

    A berring on 45° please

  • @thepolishtech1552
    @thepolishtech1552 2 года назад +2

    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)

    • @Dvance
      @Dvance 2 года назад

      That's possible, that's a good idea.

    • @jblock9675
      @jblock9675 2 года назад

      mp3*
      mp4 is for vids

    • @thepolishtech1552
      @thepolishtech1552 2 года назад

      @@jblock9675 correct will fix

    • @thepolishtech1552
      @thepolishtech1552 2 года назад

      @@Dvance i mean id love a titanfall2 epg but i dont know how to code it in

    • @bruno_yt
      @bruno_yt 2 года назад

      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

  • @blackrainbow4898
    @blackrainbow4898 2 года назад

    Next time add bloons tower defense (i mean the whole game lol)

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      Hmmm, I could try like a tower defense custom game I guess.

  • @gamma2581
    @gamma2581 Год назад

    How about making a block like metal not let portals on themselves

  • @fachowiecdojednegokilowolt1553
    @fachowiecdojednegokilowolt1553 2 года назад

    You can make gearbox like from real car? (Block)

    • @bruno_yt
      @bruno_yt 2 года назад

      He already did in a previous video.

  • @Redking_11
    @Redking_11 2 года назад

    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

    • @bruno_yt
      @bruno_yt 2 года назад

      Like disabling collisions for the object you shoot at?

  • @alexanderbouwer2273
    @alexanderbouwer2273 2 года назад

    Make a second lift (:

  • @camera_manu
    @camera_manu 2 года назад

    i understand you, and your frustation! i really do, when it's not working something! Leave a like. one frustration in minus!

  • @dwightstevenvalde7851
    @dwightstevenvalde7851 2 года назад +1

    Hey Pixel can u make terraria in sm

  • @arturgame4614
    @arturgame4614 2 года назад

    Can you make a wideo how to make a custom recepise in craftbot?

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      There is a literally a .json file for this...

  • @TheMagneticDude
    @TheMagneticDude 2 года назад

    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

  • @spud5921
    @spud5921 2 года назад

    add minecraft's creeper to the game as a bot

  • @JustIn-sr1xe
    @JustIn-sr1xe 2 года назад

    I wish I knew how to code. Unfortunately- I can't spot errors in even simple code.

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      Well, if it says "Object = oject" it's pretty obvious.

  • @curlychump4074
    @curlychump4074 2 года назад

    Oh no

  • @MCwolfy
    @MCwolfy 2 года назад

    waw

  • @crossedlife6950
    @crossedlife6950 2 года назад

    print("yo mama") am i the only one that seen it XD

  • @pieterstoon4380
    @pieterstoon4380 2 года назад +1

    Coding is just spain without the s

    • @Dr-Pixel
      @Dr-Pixel  2 года назад +1

      Just wait until Friday...

  • @Ekipsogel
    @Ekipsogel 2 года назад

    I left a comment for algorithm purposes.

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      Nice! More views on these vids, the more incentive I have to make more!

  • @Creative_YT
    @Creative_YT 2 года назад +1

    Early sorta

  • @fourtyfiftynine
    @fourtyfiftynine 2 года назад

    Thinking aobut this you can just hyper travel

    • @Dvance
      @Dvance 2 года назад

      Yeah, he didn't add a distance limit I don't think.

    • @Dr-Pixel
      @Dr-Pixel  2 года назад

      Yeah, this is great for moving fast across the map

  • @00FantMod
    @00FantMod 2 года назад

    "hitNormal"

  • @discorddiscord7678
    @discorddiscord7678 2 года назад

    will it work if i will join someone that doesnt have that mod

  • @cyantasks7129
    @cyantasks7129 2 года назад

    object = oject
    yas

  • @tomekruban9652
    @tomekruban9652 2 года назад

    in a steam it not work

  • @buhhboii427
    @buhhboii427 2 года назад

    How are you guys doin :)

  • @apersunthathasaridiculousl1890
    @apersunthathasaridiculousl1890 2 года назад +1

    what can’t you do?

  • @fourtyfiftynine
    @fourtyfiftynine 2 года назад +1

    bro what