[Rojo Related] How (if possible) can I modify the default rojo-init project?

Pressing this button creates these files:

image

What I want to do is make it so when I click “Create one now” or run “rojo init” it creates these files but their source is not the default. Such as init.server.luau’s source:

print("Hello world, from server!")

And also if possible, to add 2-3 extra ‘default’ files that go to the src/shared folder.

2 Likes

I think this is what you are looking for:

Sadly, no. The thing u sent me converts a roblox place file into a rojo project, that not what I’m trying to achieve. What I want to do is modify the source of the 3 scripts created by the visual studio code’s Rojo plugin when i run rojo init.

Rojo init creates 3 scripts:

  • init.client.luau under client folder
  • init.server.luau under server folder
  • Hello.luau under shared folder

What I want to achieve is to ALWAYS (when rojo init is ran) create these files instead of the default ones:

  • init.client.luau *check note
  • init.server.luau *check note
  • Utils.lua under shared folder

*note: With different source code that is predefined and always the same whenever I start a project

1 Like

After some preliminary poking around, it would appear that there is no way to configure the default projects.

The directory that contains the default projects, assets,

, is compiled straight into rojo.exe;

Attempting to re-create the directory structure,

image

, yields no result.

I would still recommend you ask a more Rojo-centric audience this question, there is a significant possibility I have missed something (I really felt like creating an assets folder should have worked). Maybe asking one of the maintainers that frequent this Forum directly, like @Dekkonot.

1 Like

As identified above, you cannot change the default. It’s something we get asked about a lot though so it’s something that I eventually want to support.

2 Likes

Alright! Thank both of you for your help!