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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do I include a simple folder of .h and .cpp?

Its pretty simple. I need a json library and I found one to my liking: https://code.google.com/p/jsonplus/wiki/Example but I have not found how to add it to the project without not compiled error or something regarding header issue popping up. Also I know the project gets remade when I refresh it from the editor so no use in setting up project properties, right?

I did found some stuff with PrivateIncludePaths.Add but either I am not pointing the relative path right or... I just don't know.

Why is this so complicated? Why isn't there a folder for this sort of stuff, out of the box? Are you really expecting people NOT using libraries? Invested an entire day on this :(

Product Version: Not Selected
more ▼

asked Aug 09 '14 at 09:17 PM in C++ Programming

avatar image

118 25 33 39

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

1 answer: sort voted first

Is there a reason you aren't using the built in JSON parsing library in the engine? I use it and it works well. See: https://docs.unrealengine.com/latest/INT/API/Runtime/Core/Serialization/Json/index.html

If you really want to include an external module, check out these options:

In general, when including modules, take a look at like "Engine/Source/ThirdParty/libPNG/" and the "UElibPNG.Build.cs" file in there, it shows how you can include a totally external module. There are lots of other examples in the ThirdParty folder you can look at.

Alternatively you can look at making a plugin, there is some info on plugins here: https://wiki.unrealengine.com/An_Introduction_to_UE4_Plugins

Hopefully one of those options will help you.


more ▼

answered Aug 09 '14 at 10:03 PM

avatar image

118 4 7 18

avatar image virusescu Aug 09 '14 at 11:37 PM

@Joeh Because I can't find decent examples to study and it looks horrible what I find.

avatar image Joeh Aug 09 '14 at 11:59 PM

Check out the answer I added on this question: https://answers.unrealengine.com/questions/80902/how-i-can-parse-json-data-with-a-standard-rountine.html

That has a basic example of how to use the parser

avatar image virusescu Aug 10 '14 at 12:03 AM

@Joeh I also need a way to loop properties, array, get list of properties, build one from scratch and ToString everything :| thanks!

(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