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

  • replied
    Hi
    I am trying to make a login system for my game. I am trying to learn how to use this plugin but I made only mistakes.
    How can i found a tutorial whitch starts from 0 and step by step until blueprint creation? I found only two video tutorial whitch starts with an already made example project. I need to create blueprint from 0 and i have not found any documentation about this plugin.
    Thank u.

    Leave a comment:


  • replied
    Hi, how can I set timeout of latent "Apply URL" node?

    Leave a comment:


  • replied
    Hi, I am new to REST and JSON, so could anyone explain how I use VARest to encode a screenshot (could be a .png or .jpg file from the harddrive or a Texture2D object within Unreal) and send it to a webserver, I only need to know the Unreal side of things since I have the server ready.
    Thanks in advance.

    Leave a comment:


  • replied
    Has anyone gotten this plugin to work with HTML5 packaging? If I do a blank project without the VARest plugin it builds to HTML5 fine, but if all I do is do the exact same blank project with VARest, it fails to build. Any ideas?

    Leave a comment:


  • replied
    Plugin works well.
    Wanted to know how to access array of objects using blueprints

    Leave a comment:


  • replied
    Greetings! I just wanted to check how compability is for 4.14.
    Cheers!

    Leave a comment:


  • replied
    Just wanted to say that your awesome plugin was forked and included inside another MIT plugin: socket.io client plugin. Thanks for making an amazing base to provide native values, struct, and socket.io raw data conversion to json in blueprints!
    Last edited by getnamo; 11-17-2016, 01:56 AM.

    Leave a comment:


  • replied
    Add the following code to your Project.Build.cs:

    Code:
    PrivateDependencyModuleNames.AddRange(new string[] { "VaRestPlugin" });
    PrivateIncludePathModuleNames.AddRange(new string[] { "VaRestPlugin" });
    Then add the appropriate headers from VaRest like this:

    Code:
    #include "Classes/Json/VaRestJsonValue.h"
    #include "Classes/Json/VaRestJsonObject.h"
    You may also need to modify the UVaRestJsonValue class definition to look like this:

    Code:
    class VARESTPLUGIN_API UVaRestJsonValue : public UObject
    instead of:

    Code:
    class UVaRestJsonValue : public UObject
    I think that is all

    Leave a comment:


  • replied
    Hello guys,
    Can i call this plugin functions from my C++ classes ? how ?

    Leave a comment:


  • replied
    Hi ufna and SuperRey

    After read and implement both ideas I put the system works fine. Thanks both!!! Here is what changed in my code, both BP and in PHP.



    PHP

    PHP Code:
    public static function efetuarLogin($username$pass)
        {
            require_once 
    'MySQLDC.php';
                
            
    $query "CALL SP_LoginUser('$username', '$pass');";
                
            
    $mysql = new MySQLDC();
                
            
    $result $mysql->execSPForDataSet($query);
                
            
    $JSON json_encode $result );
        
            if(
    $JSON=="null"){
                
    $JSON="{}";
            }
        
            return 
    '{"data":' $JSON '}';
        } 
    Attached Files

    Leave a comment:


  • replied
    Originally posted by ufna View Post
    You're using bad json format. It should be {} instead of [] in map.
    Hi ufna, thanks for your answer I go make this change and post here if works or not.

    Leave a comment:


  • replied
    Originally posted by SuperRey View Post
    Damien try to use curly braces instead of regular braces, in the past I found that there is a limitation of the Unreal JSON parser (which VaRest uses) that needs the whole JSON string to be sorrounded by curly braces (even if the original JSON string was JSON correct). Try to answer in this way:

    Code:
    {"data":[{"QUANT":"1"}]}
    Also, you may have to change the GetObjectArrayField block for a GetArrayField, but I am not sure about this.
    Hi SuperRey, thank for your answer I going try and post here if works or not.

    Leave a comment:


  • replied
    You're using bad json format. It should be {} instead of [] in map.

    Leave a comment:


  • replied
    Damien try to use curly braces instead of regular braces, in the past I found that there is a limitation of the Unreal JSON parser (which VaRest uses) that needs the whole JSON string to be sorrounded by curly braces (even if the original JSON string was JSON correct). Try to answer in this way:

    Code:
    {"data":[{"QUANT":"1"}]}
    Also, you may have to change the GetObjectArrayField block for a GetArrayField, but I am not sure about this.

    Leave a comment:


  • replied
    VaRest login system with PHP/MySQL

    Hi guys,

    I need help. I am doing a login system using MySQL, PHP and VaRest and the result that PHP is returning is not being accepted by VaRest. I will demonstrate below whole process I did:

    PHP Class function to encode Json to send to VaRest

    PHP Code:
    public static function efetuarLogin($username$pass)
        {
            require_once 
    'MySQLDC.php';
                
            
    $query "CALL SP_LoginUser('$username', '$pass');";
                
            
    $mysql = new MySQLDC();
                
            
    $result $mysql->execSPForDataSet($query);
                
            
    $JSON json_encode $result );
        
            if(
    $JSON=="null"){
                
    $JSON="[]";
            }
        
            return 
    '["data":' $JSON ']';
        } 
    and here the images of my BP to parse the result













    and the Widget BP to send information to system to check if true or not and parse





    The error I reviced



    Anyone cam help-me? what am I doing wrong?

    Thanks
    Attached Files
    Last edited by Damien2k15; 10-19-2016, 09:27 AM. Reason: other

    Leave a comment:

Working...
X