Jump to content

Easiest way to update project.


Crazycarpet
 Share

Recommended Posts

So it's time for me to upgrade my projects to the latest Leadwerks 4.1 Beta, and as always I feel like it's going to be a headache, going through and replacing/editing the overwritten files. Does anyone have any tips/tricks that make this process any less of a headache? My projects getting to be quite large, and sometimes I forget to overwrite certain files. Would it be safe to just drag and drop my old code/script files over the new ones? I don't see a problem with this but maybe there is and I'm just missing it? don't know... anyways thanks in advance.

Link to comment
Share on other sites

My tip is never modify the base LE files to start with so you don't have that problem. Always make your own scripts so they don't get overwritten, but yes in general copy and paste over should be fine, but generally those files is all that the update does (lua and shader files) unless Josh exposed anything new to the API or modified anything in the library itself, which I'm not sure if this update is only lua and shader updates or not. Would be nice of him to tell us.

  • Upvote 2
Link to comment
Share on other sites

unless Josh exposed anything new to the API or modified anything in the library itself, which I'm not sure if this update is only lua and shader updates or not. Would be nice of him to tell us.

 

Would actual be very nice to know, if you stumble upon this Josh let us know. :)

Link to comment
Share on other sites

generally those files is all that the update does (lua and shader files)

Don't I wish. If you delete folders or files, Leadwerks replaces them, in addition to adding its own. I just updated a project to confirm that went from

304 files, 50 folders, 32.6MB

to

524 files, 60 folders, 171MB

Link to comment
Share on other sites

Ouch, lol... maybe in the future it'd be nice to have a feature where you could de-select the updating of certain files or folders.. but at the same time that'd make it easy for people to break their game by excluding something that something else is dependent on from their project.

 

For now I just updated, and copy and dragged the files/folders, then re-deleted the things I didn't want.

Link to comment
Share on other sites

Typically, the only thing that gets updated are:

  • engine executables
  • shaders
  • Sometimes scripts, as new functionality its added.

 

The last one is the trickiest because if you modify these scripts, there's not really any way of handling that. The only improvement I can think of would be to integrate SVN into the engine, and let that handle the merging, but you would still have conflicts that arise.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Why not include (or convert the common into) a skeleton project that just has the needed files to get the engine to run? C++ user's are most likely going to ignore the scripts and if you edit the existing ones, it might get overwritten in an update.

 

You can make a template hierarchy system in the werk flie. This way you can have multiple templates installed in one project if you wanted too. Would allow much more flexibility for custom templates. Just allow the "Template" entry to read more than one value.

 

Then you can split the core engine components (shaders, executables) in one template folder, and make a new folder (Called SDK maybe) and place the scripts, and vegetation models in that template. to make the current 'blank' template, in the werk file do:

 

Template="Common|SDK"

 

For the FPS template, it'll look like:

 

Template="Common|SDK|Advanced First-Person Shooter"

 

And if you just want the core elements:

 

Template="Common"

 

Just my suggestion. Another way is to just customize the templates folder to your needs, but official updates will cause conflicts. So you'll have to disable updates until you're ready to hand update it again.

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

It's better to have an extra script file that never gets used than to have an angry user who doesn't understand why the tutorial he is reading doesn't work. A blank project template is already included.

 

I find it confusing that people are basically asking me to turn off all the functionality of a feature you opt into.

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Updating a game will probably never be painless. However, if we don't update our games, we get nagged by a dialog box to update our game until we do. That might mean a lot of work of reverting some script files, updating shaders, etc.

 

Personally, I'd be happy with a flag to disable the dialog box in the cfg.

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

 Share

×
×
  • Create New...