You need to use the Knit Game Framework(A template to help get started using Knit)

  1. You can version your Ui
  2. State-Management
  3. fewer bugs(If done right)

Hi! Just started using Knit. Is there a ‘best practices’ for what actions to be done in KnitInit() vs KnitStart for controllers / services? In the advanced service example you don’t have any code in KnitStart.

Trust me, you should just watch the videos and get started with planning the project that you want to make with it. There aren’t really any “best practices” just make sure your KnitInit doesn’t yield for an unreasonable amount of time because KnitStart won’t run until all KnitInits have run. Good Luck.

Thanks. ineedtoreachthislimitimposedbyroblox

You’re welcome, ineedtoreachthislimitimposedbyroblox :}

It doesnt change that much, but theres a strong motive why I use knit in any project, and its because VSC you cant create remotes in visual studio code and the roblox IDE is just not that good

1 Like

I don’t know if this is a known thing or not but if it isn’t here is a little tip, since you have to wait till knit started to get a service or a controller you normally would put a variable out of scope and then set it to that service or controller or some other way but, you can just put it inside the table and use it from there here’s an example:

When first starting out with knit I didn’t see this anywhere, I would normally just create a variable outside of the scope and set it to the service or controller.

4 Likes

Appreciate you sharing this, helpful tips as per the name are helpful.

C.G.T a new game template is now out C.G.T

2 Likes

So I was checking the performance of my scripts and I was wondering why knit sometimes starts at 240 because most of the time it starts on 120.

Screen Shot 2022-09-18 at 2.35.56 PM
Screen Shot 2022-09-18 at 2.37.50 PM

I don’t know but if it isn’t affecting functionality you shouldn’t be bothered by it.

What exactly is unreliable and when did he say that?, so far knit has been very reliable for me and many others.

1 Like

Are you talking about AeroGameFramework? I’m pretty sure the creator said not to use AeroGameFramework, and to use Knit instead.

Source: GitHub - Sleitnick/AeroGameFramework: AeroGameFramework is a Roblox game framework that makes development easy and fun. The framework is designed to simplify the communication between modules and seamlessly bridge the gap between the server and client.

I think you got confused, let me know if I’m wrong! :smiley:

4 Likes

Its’ because mac doesn’t get script performance and activity right, not any of knit’s fault. Mb.

1 Like

If you could explain the point to a service and a component? I am slightly confused as to me they’re pretty similar in terms of using module scripts. I haven’t (like most other devs) really understood knit and still get confused at certain parts.

How do I use knit to do bindable events like Server Server or Client Client connections?

Also, what are the ways in which I can get the player in Knit, both on the Server and Client side?

2 Likes

Simply put a BindableEvent on the Client table and you’d be fine.

1 Like

Knit was archived, as there is mostly no reason to use it. To even have a good use of it, you basically are righting your own framework. But then again, it is all personal preference.

2 Likes

What do you mean when you say that, it still handles most networking(You can add ReplicaService) it’s still a much greater experience to building on your own, where did you hear it was archived?

He archived it on github.
Knit/ARCHIVAL.md at main · Sleitnick/Knit · GitHub