Announcement

Collapse
No announcement yet.

[Plugin] Http/s REST, blueprintable JSON and Parse REST API manager at once (VaRest)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by delfrasco View Post
    wow, i've tried almost everything to make it work, but I wasn't aware of how the "Create Event" worked.

    You've made my day!

    a thousand thanks xulture!
    Welcome!!

    Biggest trick is that signature of the function that handles event has to match parameters that Bind Event expects (in this case, VaRestRequest object reference)
    • Follow me on twitter
    • Visit our website traverse.world
    • Checkout our game's forum thread

    Comment


      Hello all,

      Ran into an issue when trying to save "Va Rest Json Object" into a game slot. It will initially create the object but the save file will just save it as NONE. I am still learning but I assumed i could save any type of data via "SaveGametoSlot". Could anyone clear this up for me? Is there another way? Only option i can think of is to save a JSON as a string into the game save slot.

      Great Plugin otherwise and thanks in advance for the help.

      Comment


        Hey! I might be missing it but I don't see a way to do what I am looking to do (and it is called VaRest so it might not even do it ). I have a socket.io server that is returning a JSON object. I am using the socket.io client to get the data (see here https://forums.unrealengine.com/show...cket-io-Client) but it only brings it back as a string, so I really just need to parse my string versus working with a response object.

        Thoughts?

        Comment


          You're using Construct node three times, and each time you will get new object. Just cache the result into variable and use it instead.

          Also, it's asynchronious node, you should use ApplyUrl or bind a delegate.

          Comment


            Originally posted by ufna View Post
            You're using Construct node three times, and each time you will get new object. Just cache the result into variable and use it instead.

            Also, it's asynchronious node, you should use ApplyUrl or bind a delegate.
            Thx for reply, problem solved. I am ashamed of my mistake. :|

            Comment


              New plugin release: https://github.com/ufna/VaRest/releases/tag/v1.1-r14

              Release notes:

              * [Feature] Useful functions separated into blueprint library
              * [Feature] CallURL function for fast URL processing #72
              * [Feature] Base64 encoding helpers #75
              * [Feature] Custom tags for requests #68
              * [Feature] Static requests for C++ raw bindings
              * [Feature] Request status and URL getter #67

              * [Bugfix] Switch Editor module type to Developer to prevent crashing while Standalone launch #69
              * [Bugfix] Response code for unsuccessfull requests fixed #71
              * [Bugfix] Crash on empty field name #58 #70

              * [Refactoring] Flattened folder structure to help with blueprint nativization
              * [Refactoring] Enums changed to classes instead of old-style namespaced enums
              * [Refactoring] Additional requests log

              Supported engine versions: **UE 4.11-4.12**

              Comment


                Originally posted by Chance View Post
                I get the same unknown error when packaging for HTML 5 with the plugin enabled. Packaging for Win64 works fine with the plugin enabled and disabling the plugin allows packaging for HTML 5.

                I am using the plugin, installed from the marketplace, with UE 4.11.2 provided by the launcher.
                I am too having problems exporting to HTML. I started from a blank project with only the attached code (in the level blueprint), and the plugin enabled (installed from the marketplace). My Unreal version is 4.12.5. Also attached is the error log. Is there any known previous version without this issue?

                Click image for larger version

Name:	code.png
Views:	1
Size:	118.5 KB
ID:	1113349

                Code:
                Cmd: OBJ SAVEPACKAGE PACKAGE="/Game/App" FILE="../../../../../../Users/modelical/Documents/Unreal Projects/VaRestHTMLTest/Saved/Autosaves/Game/UEDPCApp.umap" SILENT=true AUTOSAVING=true KEEPDIRTY=true
                LogSavePackage: Save=66.60ms
                LogSavePackage: Moving '../../../../../../Users/modelical/Documents/Unreal Projects/VaRestHTMLTest/Saved/UEDPCAppB90B0EE346BE1BC20DB145BD14B6C1B1.tmp' to '../../../../../../Users/modelical/Documents/Unreal Projects/VaRestHTMLTest/Saved/Autosaves/Game/UEDPCApp.umap'
                LogSavePackage:Display: Finished SavePackage ../../../../../../Users/modelical/Documents/Unreal Projects/VaRestHTMLTest/Saved/Autosaves/Game/UEDPCApp.umap
                LogEditorTransaction: Undo Spawn Play From Here Start
                MainFrameActions: Packaging (HTML5): Running AutomationTool...
                MainFrameActions: Packaging (HTML5): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=C:/Users/modelical/Documents/Unreal Projects/VaRestHTMLTest/VaRestHTMLTest.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=C:/Users/modelical/Documents/Unreal
                MainFrameActions: Packaging (HTML5):  Projects/VaRestHTMLTest/VaRestHTMLTest.uproject -cook -stage -archive -archivedirectory=C:/Users/modelical/Desktop/VaRestHTMLTest -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -prereqs -nodebuginfo -targetplatform=HTML5 -build -CrashReporter -utf8output
                MainFrameActions: Packaging (HTML5): Automation.Process: Setting up command environment.
                MainFrameActions: Packaging (HTML5): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\modelical\Documents\Unreal Projects\VaRestHTMLTest\VaRestHTMLTest.uproject
                MainFrameActions: Packaging (HTML5): Project.Build: ********** BUILD COMMAND STARTED **********
                MainFrameActions: Packaging (HTML5): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.12\Engine\Binaries\DotNET\UnrealBuildTool.exe VaRestHTMLTest HTML5 Development -Project="C:\Users\modelical\Documents\Unreal Projects\VaRestHTMLTest\VaRestHTMLTest.uproject"  "C:\Users\modelical\Do
                MainFrameActions: Packaging (HTML5): cuments\Unreal Projects\VaRestHTMLTest\VaRestHTMLTest.uproject"  -remoteini="C:\Users\modelical\Documents\Unreal Projects\VaRestHTMLTest" -noxge -generatemanifest -NoHotReloadFromIDE
                MainFrameActions: Packaging (HTML5): CommandUtils.Run: Run: Took 0,7970456s to run UnrealBuildTool.exe, ExitCode=0
                MainFrameActions: Packaging (HTML5): CommandUtils.Run: Run: C:\Program Files (x86)\Epic Games\4.12\Engine\Binaries\DotNET\UnrealBuildTool.exe VaRestHTMLTest HTML5 Development -Project="C:\Users\modelical\Documents\Unreal Projects\VaRestHTMLTest\VaRestHTMLTest.uproject"  "C:\Users\modelical\Documents\Unreal Projects\VaRestHTMLTest\VaRestHTMLTest.uproject"  -r
                emoteini="C:\Users\modelical\Documents\Unreal Projects\VaRestHTMLTest" -noxge -NoHotReloadFromIDE -ignorejunk
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: Setting Emscripten SDK 
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: Performing 1 actions (4 in parallel)
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: [1/1] python.exe VaRestHTMLTest.js
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: INFO:root:(Emscripten: Running sanity checks)
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: INFO:root:Closure compiler (C:\Program Files (x86)\Epic Games\4.12\Engine\Source\ThirdParty\HTML5\emsdk\emscripten\1.35.0\third_party\closure-compiler\compiler.jar) does not exist, check the paths in C:\Program Files (x86)\Epic Games\4.12\Engine\Intermediate\Build\HTML5\.emscripten
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: INFO:root:closure compiler will not be available
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: error: Linking globals named '_Z14UELinkerFixupsv': symbol multiply defined!
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: Traceback (most recent call last):
                MainFrameActions: Packaging (HTML5): UnrealBuildTool:   File "C:\Program Files (x86)\Epic Games\4.12\Engine\Source\ThirdParty\HTML5\emsdk\emscripten\1.35.0\emcc", line 1309, in <module>
                MainFrameActions: Packaging (HTML5): UnrealBuildTool:     final = shared.Building.llvm_opt(final, link_opts, DEFAULT_FINAL)
                MainFrameActions: Packaging (HTML5): UnrealBuildTool:   File "C:\Program Files (x86)\Epic Games\4.12\Engine\Source\ThirdParty\HTML5\emsdk\emscripten\1.35.0\tools\shared.py", line 1465, in llvm_opt
                MainFrameActions: Packaging (HTML5): UnrealBuildTool:     assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: AssertionError: Failed to run llvm optimizations: 
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: C:\Users\modelical\Documents\Unreal Projects\VaRestHTMLTest\Binaries\HTML5\VaRestHTMLTest.js
                MainFrameActions: Packaging (HTML5): UnrealBuildTool: Total build time: 26,67 seconds
                MainFrameActions: Packaging (HTML5): CommandUtils.Run: Run: Took 26,7875321s to run UnrealBuildTool.exe, ExitCode=5
                MainFrameActions: Packaging (HTML5): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:5): C:\Program Files (x86)\Epic Games\4.12\Engine\Binaries\DotNET\UnrealBuildTool.exe VaRestHTMLTest HTML5 Development -Project="C:\Us
                MainFrameActions: Packaging (HTML5): ers\modelical\Documents\Unreal Projects\VaRestHTMLTest\VaRestHTMLTest.uproject"  "C:\Users\modelical\Documents\Unreal Projects\VaRestHTMLTest\VaRestHTMLTest.uproject"  -remoteini="C:\Users\modelical\Documents\Unreal Projects\VaRestHTMLTest" -noxge -NoHotReloadFromIDE -ignorejunk. See logfile for details: 'UnrealBuildTool-
                2016.08.07-18.56.24.txt' 
                MainFrameActions: Packaging (HTML5):    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars)
                MainFrameActions: Packaging (HTML5):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
                MainFrameActions: Packaging (HTML5):    at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2 EnvVars)
                MainFrameActions: Packaging (HTML5):    at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride, Dictionary
                `2 InTargetToManifest)
                MainFrameActions: Packaging (HTML5):    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
                MainFrameActions: Packaging (HTML5):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
                MainFrameActions: Packaging (HTML5):    at AutomationTool.BuildCommand.Execute()
                MainFrameActions: Packaging (HTML5):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
                MainFrameActions: Packaging (HTML5):    at AutomationTool.Automation.Process(String[] CommandLine)
                MainFrameActions: Packaging (HTML5):    at AutomationTool.Program.MainProc(Object Param)
                MainFrameActions: Packaging (HTML5):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
                MainFrameActions: Packaging (HTML5):    at AutomationTool.Program.Main()
                MainFrameActions: Packaging (HTML5): Program.Main: AutomationTool exiting with ExitCode=5 (5)
                MainFrameActions: Packaging (HTML5): Domain_ProcessExit
                MainFrameActions: Packaging (HTML5): copying UAT log files...
                MainFrameActions: Packaging (HTML5): BUILD FAILED
                PackagingResults:Error: Error Unknown Error
                Attached Files
                Last edited by SuperRey; 08-07-2016, 01:16 PM.

                Comment


                  Hello,

                  I updated to 1.1-r15 and now I am able to export to HTML but I get error -1 all the time. (But not the marketplace version, I am using the GitHub downloaded version).
                  Last edited by SuperRey; 08-09-2016, 12:37 PM.

                  Comment


                    Hello again,

                    After a few hours testing, I think I found the culprit for the -1 response codes. In my case, it was a problem with same-origin policy. I find it out looking at the browser console ouput. Now I am testing with localhost requests and it seems to work fine. Now I am going to set my remote server to accept cross-domain petitions.

                    Comment


                      Construct Pointer Object Node removed

                      Amazing plugin been using it since 4.8,
                      But the latest update to the plugin for UE4.12. I noticed that constuct pointer object node been removed, Can anyone give me a heads up on, how create the pointer now that that node has been removed. Grateful for any info
                      Click image for larger version

Name:	Cobjject.jpg
Views:	1
Size:	19.2 KB
ID:	1114133
                      RhinoGameHK | Twitter | Instagram

                      Comment


                        Originally posted by soulmapp View Post
                        Amazing plugin been using it since 4.8,
                        But the latest update to the plugin for UE4.12. I noticed that constuct pointer object node been removed, Can anyone give me a heads up on, how create the pointer now that that node has been removed. Grateful for any info
                        [ATTACH=CONFIG]107280[/ATTACH]
                        I've removed Parse support from plugin few releases ago, so now this node isn't available out the box. Latest release with parse support is https://github.com/ufna/VaRest/releases/tag/v1.1-r12

                        Comment


                          Thank you for the quick response.
                          Is that version of plugin compatible with ue 4.12
                          if not is where no other way with the nodes available to crerte a pointer object. as im using nodechef which using the parse api.
                          RhinoGameHK | Twitter | Instagram

                          Comment


                            Originally posted by soulmapp View Post
                            Thank you for the quick response.
                            Is that version of plugin compatible with ue 4.12
                            if not is where no other way with the nodes available to crerte a pointer object. as im using nodechef which using the parse api.
                            You can make it in blueprints by appending strings:

                            {"__type":"Pointer","className":"
                            <ClassName>
                            ","objectId":"
                            <ObjectId>
                            "}

                            Comment


                              Oh of course.. silly me.. thank you for helping.
                              RhinoGameHK | Twitter | Instagram

                              Comment


                                Hi Everyone!

                                I only have a one simple problem, I don;t know how to capture whole Json data received from a website into separate variables inside unreal.
                                Could someone show me and everyone an example or point to the right direction? I saw few people asking and they were ignored.

                                Thanks a lot!

                                Comment

                                Working...
                                X