Jump to content
AggrorJorn

Updating essential files

Recommended Posts

I like to keep my projects clean. That means models, textures, maps I don't use or are by default part of the SDK, are removed.

 

The problem is that when there is an update for your project you need to select the project in the project manager. Then you click update and all the sample models. scripts and maps that are part of the SDK are once again downloaded in to your project.

 

Another problem that occurs is when you are working a lua project and your version of the App.lua gets overwritten by the default one.

 

Could all these default models, sounds and textures be placed in the sample project, rather than in the SDK? Or having an option to update the project with only essential files instead of adding all sample data.

Share this post


Link to post

I had this exact same problem last night. I updated my project with all my scripts took out the ones that come with the Leadwerks. Did the same for the materials and the models etc. Pressed update and it updated 107 files lmao. I'm sure I have seen a project cleaner in the Werkshop that you can download that will remove all the Leadwerks sample stuff, I dunno how well it works and wouldn't recommend using it on an important project lol

Share this post


Link to post

I have used gamecreators cleanup tool which does the job. I just think this could be simply solved by Josh, by placing sample media in the tutorial project and not as a part of the official files that need to be updated to every other project.

Share this post


Link to post

In the future there should not be default assets and every demo Assets should be available from the workshop. A clean project at project creation. Other stuff we can and from workshop if needed

Share this post


Link to post

I think the demo assets only should exist in the demo project/tutorials. But an empty project is what I would like to see too.

 

Share this post


Link to post

I don't understand how this can mess up your project. Everything in the common template has a good reason for being there. The file App.lua only gets updated about once every three months or so.

Share this post


Link to post

I don't understand how this can mess up your project. Everything in the common template has a good reason for being there. The file App.lua only gets updated about once every three months or so.

 

Say I'm working on a project where all assets are custom made. Every time the project is updated through the IDE it will copy all models and textures from the sample game. Like why would I need the crawler model if I'm not using it.

Share this post


Link to post

Well initially people were getting confused because new projects were missing things like the player script and other stuff. But I can see a good case for the template only including what you absolutely need.

Share this post


Link to post

On the other side of that coin, when I was creating the Steam examples, I couldn't use the following code

 

Font* font = Font::Load("Fonts/Arial.ttf",36);
context->SetFont(font);

 

because Fonts/Arial.ttf isn't part of a new project. As such, examples for functions like DrawText and SetFont in the documentation (which include those lines) will naturally fail.

 

That said, I've also suggested before that projects need a way to be cleansed and kept clean of unrequested assets.

Share this post


Link to post

That file is included in the project templates in the standalone and one Steam.

Share this post


Link to post

I want to raise this topic again. Having the ability to chose which files are updated, or just the important ones is a must.

 

I just updated 3 projects with the latest updates. This means that all kinds of models, textures and sounds are being downloaded to my projects again that I previously deleted. Since I don't use these models I don't want them in my project.

Share this post


Link to post

Not a solution but I usually just use a local git repo on my project, and just purge everything "new" coming in after update.

And accept updated items to prevent this.

Share this post


Link to post

thanks, that is what I currently do. Just is a nuisance to do this everytime after an update. Especially when you have multiple projects.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...