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.
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) ```
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
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
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.
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!
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
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 = {}"
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!
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 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 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.
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
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
"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 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.
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.
@@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.
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
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.
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.
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)
```
So instead of inboundmiddleware it is now middleware.inbound?
@@zhouscar459 yeah :)
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
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
Thanks very mucho bro!
Can i ask how do u make drone? In roblox studio
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.
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!
The thing I dislike the most is that Dependency Chain.
why is this so confusing, i just wanted a alternative to using remote events
Can you show tutorial of using components?
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
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 = {}"
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!
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!
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
@@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!
@@googsson8246 I'm new to knit has it been useful for you so far?
@@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.
Yes, I too wonder how I get the money.
man i understand nothing. i feel like the biggest scripter noob.
Amazing tutorial looking out for more!
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
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
"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.
@@sephlian4180 Could you tell me why IntValue's are nonsense?
@@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.
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.
thanks!
Do we use this along side the other knit tutorials youve made?
How do i fire data back to server using remotes
Is it just me or is this only in 480p?
now what is ur vscode theme called 👀
Agila Oceanic Next
What extensions and themes do you use in this?
skip to where he shows the extensions
YEESS ty
What is the difference between knit and rojo since I currently use that?
And why is the video only in 360p?
@@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.
@@sleitnick1 Ahhh i see! Awesome, will test it out, can i also use them at the same time?
@@Leon-wv4dn yes
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
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.
I have a Studio workflow video that I'm editing too which will be uploaded later today
@@sleitnick1 Nice man. Im loving the framework so far.
Personally I think it helped me alot in organizing my spaghetti code lol
@@honkhonk8009 ruclips.net/video/0Ty2ojfdOnA/видео.html
how do you combine components with roblox instances in client