Knit Tutorial (Rojo/Wally)

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

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

  • @Tkdriverx
    @Tkdriverx 2 года назад +5

    Just an idea, but for the middleware functions, one of the arguments passed should be the name of the remote being fired and/or the service/controller. It could be something that would be useful in some very specific situations where the context of the call is important.
    Though solution to the user could just be to pass in an additional argument as needed to be able to differentiate the calls.

  • @MatthewCawley
    @MatthewCawley Год назад +11

    For anyone wondering why MiddleWare isn't working - the format has changed from the tutorial:
    Example Usage
    ```
    local function LoggerMiddleware(player: Player, args: {any})
    print(player, args)
    return true
    end
    Knit.Start({
    Middleware = {
    Inbound = { LoggerMiddleware }
    }
    }):andThen(function()
    print("Knit started")
    end):catch(warn)
    ```

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

      So instead of inboundmiddleware it is now middleware.inbound?

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

      @@zhouscar459 yeah :)

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

    Why is this so much more difficult and harder to figure out than the Roblox studio method? I install rust, and then foreman and wally from their Github release pages, I copy and paste the code into VS code, type 'foreman install' into the terminal, and it says "the term 'foreman' is not recognised". I get completely lost past the 1:40 mark and have no idea why I am supposed to be doing any of this or what purpose it is supposed to be serving. Could you please link a tutorial in the description maybe that explains this more clearly

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

      You have to add foreman to your system variables path if you’re on windows. If you don’t know how to do that, look it up, pictures are a lot easier to understand

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

    Thanks very mucho bro!

  • @elder-gr4de
    @elder-gr4de 2 года назад +1

    Can i ask how do u make drone? In roblox studio

  • @SpiceyCereal
    @SpiceyCereal 4 дня назад

    While watching this I'm in awe of how diverse your Lua knowledge is. I took a college course on Python and learned how to do most of the fundamentals while taking the class. Then I code in Lua and since I've been coding in Lua since I started programming it's more of a self-taught/mediocre approach instead of what I would have done in my college course. When I code I can still get the job done but it's not as simplified and sophisticated as if I learned from the basics. I wish there were such college classes for more languages like Lua instead of having to search the internet for an "okay" class. Also, since most of Roblox is children, many of them are inspired by the games they play and aspire to code. Most children when they attempt to learn coding, starting with Roblox, learn a sloppier way of coding because, one a child's attention span, and two the resources to efficiently learn how to code are not available. Also, you are my idle, I love your work. You are a true genius.

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

    Great tutorial! Really looking forward to incorporating this into my workflow. BTW an update on the Middleware situation, I read the change logs and service specific Middleware is a thing now after v.1.4.0!

  • @Marcus001
    @Marcus001 Год назад +2

    The thing I dislike the most is that Dependency Chain.

  • @icecreampickels369
    @icecreampickels369 Год назад +3

    why is this so confusing, i just wanted a alternative to using remote events

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

    Can you show tutorial of using components?

  • @zhouscar459
    @zhouscar459 Год назад +6

    sleitnick: designed services to be used on serverside and controllers to be used on clientside
    me: "hmm, doesn't make total sense but ok"
    sleitnick: writes services in client
    me: "did he make a mistake? hmm, no. he probably did it for special intentions"
    sleitnick: "oh wait I made a mistake"
    me: XD

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

    Something I wanted to know for a while now is why would I do for example "_MoneyPerPlayer = {}" in the table instead of just making it a local variable? Example, "local MoneyPerPlayer = {}"

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

    This will definitely help me get into the studio-vscode partnership type programming (I really don't know how to explain or define it). Thought it would be super complicated but this definitely helped me out a ton!

  • @googsson8246
    @googsson8246 Год назад +1

    Hey! I am just starting to use Knit in my game, however I do not get any intellisense "recommentations" or whatever you call them. For example When i type Knit.Start() I do not get any autocompletion for .Start(), and when I have that done, I do not either get any autocompletion for :andThen() and so forth. Unlike you have in the video [13:43]. I have Installed Roblox LSP and countless other plugins for vscode however, none has helped me. I suspect it might have something to do with the settings of the plugins or my vscode. Any Idea or a plugin that isnt shown. Any help is appreciated!

    • @polarcat0156
      @polarcat0156 Год назад +1

      A little late here, but check that you have the Packages directory in your Rojo project file routed to src/ReplicatedStorage
      Time stamp: 12:35

    • @googsson8246
      @googsson8246 Год назад +1

      @@polarcat0156 Thanks! I fixed it… was using Wally and used a capital character rather than a small one. So intellisense didn’t know it was knit. Thanks anyways🙌🏻 God bless!

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

      @@googsson8246 I'm new to knit has it been useful for you so far?

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

      @@Vibricks To be honest, i don’t know. I haven’t gotten around to coding with it so much. But yes, it’s really hard to understand the ins and outs and use all the features. But it provides structure and and very handy features for “knitting” the client and server together.

  • @omniral908
    @omniral908 Год назад +1

    Yes, I too wonder how I get the money.

  • @LaminatRbx
    @LaminatRbx 6 месяцев назад

    man i understand nothing. i feel like the biggest scripter noob.

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

    Amazing tutorial looking out for more!

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

    Hello, i am having an issue it seems with Knit, only the projects i have knit in seems to be having the problem, Anytime the character dies, the Script that requires and starts Knit on the client gets destroyed, the script is in PlayerScripts so it shouldn't be getting deleted when the character dies

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

    How is this usefull? you cant just create all the functions in a module?, if you need automatic replication, just use IntValue's in a folder or something, I dont fully understand this

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

      "I don't fully understand this"
      Recommend not offering up half-assed and nonsense solutions ("just use IntValue's in a folder or something") if you don't fully understand something.

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

      @@sephlian4180 Could you tell me why IntValue's are nonsense?

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

      @@diegoalbertofaustonuno7356 He did not say that IntValues are nonsense - in the context of the utility of Knit, talking about using IntValues in a folder is indeed irrelevant nonesense.

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

      It's pretty much useful for a more stable game overall and keeping things neat and organized (sanity checks with the server for data grabbing or adding). Personally I don't think this is something you would actively use if your not already using the rojo workflow method, because of what you described. However if your coding using rojo it can be very useful tool to create your own services through code, because you want to minimize interaction with roblox studio (not having to jump back and forwards) overall without having to create a bunch of modules, functions, and remotes and then remembering those coding pathways since Visual Studio Code won't automatically detect those for you.
      I'm still pretty new to this advanced stuff, but that seems to be my take on this subject personally.

  • @jaxmilian2203
    @jaxmilian2203 Месяц назад

    thanks!

  • @vJinROBLOX
    @vJinROBLOX 11 месяцев назад

    Do we use this along side the other knit tutorials youve made?

  • @21Mayhem
    @21Mayhem Год назад

    How do i fire data back to server using remotes

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

    Is it just me or is this only in 480p?

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

    now what is ur vscode theme called 👀

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

    What extensions and themes do you use in this?

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

    YEESS ty

  • @Leon-wv4dn
    @Leon-wv4dn 2 года назад +1

    What is the difference between knit and rojo since I currently use that?

    • @Leon-wv4dn
      @Leon-wv4dn 2 года назад

      And why is the video only in 360p?

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

      @@Leon-wv4dn Just published, so HD quality is still processing.
      Knit and Rojo are completely different things. Rojo is just used to sync in a project to Studio (or build one). Knit is a game framework.

    • @Leon-wv4dn
      @Leon-wv4dn 2 года назад

      @@sleitnick1 Ahhh i see! Awesome, will test it out, can i also use them at the same time?

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

      @@Leon-wv4dn yes

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

    For anyone having problems on windows with foreman installations not working in the bash console: Win + R, systempropertiesadvanced, System Variables. Then open Path, and add: %USERPROFILE%\.foreman\bin

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

    It really depends on which age group your targetting, but for some younger people, I think it would be simplified if you used roblox studio. People might get confused why you need to install Rust to use Knit lol.

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

      I have a Studio workflow video that I'm editing too which will be uploaded later today

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

      @@sleitnick1 Nice man. Im loving the framework so far.
      Personally I think it helped me alot in organizing my spaghetti code lol

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

      @@honkhonk8009 ruclips.net/video/0Ty2ojfdOnA/видео.html

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

    how do you combine components with roblox instances in client