x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to make a missing file check

Is it a way to make a game check for files to be missing, so if a file is missing or replaced, the game will not start?

Product Version: UE 4.19
Tags:
more ▼

asked Jun 14 '18 at 08:46 PM in Packaging & Deployment

avatar image

Blackforcedragon
0 2 8 10

avatar image mightyenigma Jun 18 '18 at 06:48 PM

Not sure if Ue4 comes with basic file I/O library, but I heard of something called Rama's Victory Plugin in the Unreal Marketplace that I think I heard can do that sort of thing.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I'm a massive fan of Rama's Save Plugin (which contains some of the Victory code/nodes) and that certainly simplifies things in my projects.

But if you're wanting a built-in UE4 approach, you might want to investigate the FPlatformFileManager class and its useful functions. Here's a Wiki article with some examples.

You could use the section on checking for a File Size and if it returns 0, you know the file does not exist.

more ▼

answered Jun 19 '18 at 01:39 PM

avatar image

Jawdy
361 2 4 6

avatar image Blackforcedragon Jun 19 '18 at 01:50 PM

is this possible in Blue Prints?

avatar image Jawdy Jun 19 '18 at 02:07 PM

It doesn't look like FPlatformFileManager is Blueprint accessible, so I'd highly recommend you take a look at Rama's Victory Plugin.

On that page he has a link to the Forum post outlining how to install it, use it, what nodes it adds etc.

avatar image Blackforcedragon Jun 19 '18 at 02:09 PM

Ok, thanks for the help, i will try it out later and see if it works

avatar image mightyenigma Jun 19 '18 at 03:25 PM

You can make anything that is in C++ be Blueprint-accessible. You just have to add an H and a CPP file to define the blueprint node and a wrapper function to access the C++ stuff with it, and compile that new C++ class

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question