Тёмный

Basic GET tutorial for VaREST plugin and Unreal Engine 4 

BoB LeSuer
Подписаться 562
Просмотров 25 тыс.
50% 1

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 84   
@Zenodeon
@Zenodeon 4 года назад
Finally An updated VaRest Tutorial. lets GOOOOOOOOOOOOOOOOO.
@NimataRay
@NimataRay 4 года назад
Thank you so much! I spend a few hours trying to figure out what I was doing wrong. And only your video gave me all the missing information. Incredibly grateful to you!!
@bobthechemist
@bobthechemist 4 года назад
I'm glad it helped.
@mickelelkhoury2378
@mickelelkhoury2378 3 года назад
MAN YOU GOT ME A FULL TIME JOB JUST BECAUSE OF THIS VIDEO YOU LEGEND!!!!!!!!!!
@bobthechemist
@bobthechemist 3 года назад
Nice! Congrats. I hope you get a chance to make cool stuff.
@majorair1
@majorair1 3 года назад
Saw your comment on an older video. Thank you for the help
@israelpaterno8353
@israelpaterno8353 3 года назад
You my friend, are a lifesaver, I've been struggling with a login system for months, and following up this tutorial I was able to make it work
@bobthechemist
@bobthechemist 3 года назад
Awesome! Glad it worked for you.
@_Caose
@_Caose 2 года назад
If anyone encounters the issue that "Print String" prints empty, be sure that you use the correct "Get xxx Field" node. 'xxx' should represent the value in JSON, not the key. For example, if your JSON is like this; { "level": 3 } you use "Get Integer Field", however if your JSON is like this; { "level": "3" } then you should use "Get String Field". IDK if this is so obvious, but I had a confusing time figuring out. I was trying to use "Get String Field" to get an integer from a JSON, thinking the key is a string, then I realized all the keys are strings :d
@travisbehrendsen6992
@travisbehrendsen6992 Год назад
this is good to know, I found that print string while doesnt show in unreal engine running, it does show it in the text logs
@japlay6767
@japlay6767 2 года назад
Hi, hey, how would I upload my own .JSON file to the wep?
@vegitoblue2187
@vegitoblue2187 3 года назад
How do I add a header to the query before sending it? (token for authentication)
@decanecaudeoscar6961
@decanecaudeoscar6961 2 года назад
Thanks from Paris
@kananabbaszadex
@kananabbaszadex Год назад
so how can i call 'temp'?
@vaibhavdevadiga9807
@vaibhavdevadiga9807 Год назад
Hii I'm currently using UE 5.2. I'm not able to get Text Render to set it to Set Text. Can you help me with this.
@jefffstone
@jefffstone 3 года назад
Hello. I have a problem. I created a local server on WEB.API in Visual Studio, created a database on the server. With a GET request, I can display a table, it is displayed in JSON, as in your video. JSON strings from sites on the Internet work for me, but upon request to my server, the output is just "{}"
@bobthechemist
@bobthechemist 3 года назад
Hmm, might be out of my league since I have no experience with Visual Studio. Since internet JSON strings seem to work, my first thought is the WEB.API is doing something different from what VaREST expects.
@boldganbaatar7023
@boldganbaatar7023 2 года назад
How to use Set Header from Varest plugin? I don’t know how to insert x-api-key to Varest
@douugl
@douugl 2 года назад
There's a way to use an Oauth2 access token on these GET requests? I'm asking because I need to get data from a google forms responses
@bobthechemist
@bobthechemist 2 года назад
If there is, I don't know about it. Semester is almost over and I'll be able to play with UE again....
@douugl
@douugl 2 года назад
@@bobthechemist Hey, thanks for the response! I get it to work by not using any kind of authentication, I've used an API that is called gsx2json which transforms any google sheet on a json object and than I process it inside Unreal
@rooftopchannel4467
@rooftopchannel4467 2 года назад
Finally I like this video. Can I ask you something? how if i want to display data from api directly or realtime data into 3D text?
@bobthechemist
@bobthechemist 2 года назад
Certainly possible, last time I used 3D text was when it was unstable, so I'm not the person to ask for that part.
@nikhilshah8651
@nikhilshah8651 3 года назад
thanks this helped a lot can you show a tutorial on how to use it for login system ? like the totaly unreal channel guy did but I cant use his method as its outdated
@bobthechemist
@bobthechemist 3 года назад
I'll see what I can do; middle of the semester so I have to do chemistry videos right now...
@MrCodemachine
@MrCodemachine 2 года назад
cant find the last step text (render) anymore....on unreal 5 maybe is there a workaround?
@bobthechemist
@bobthechemist 2 года назад
Good to know. I plan to check out UE5 this summer and will keep an eye out for this problem.
@pikachuhead4169
@pikachuhead4169 4 года назад
Hey, thank you so much for the tutorial! Did have an additional question - is there a way for me to set headers for GET requests? (e.g. add authorization tokens in the header)
@bobthechemist
@bobthechemist 4 года назад
I'm sure the answer is yes, but I haven't worked through it yet.
@amitavamitra6407
@amitavamitra6407 2 года назад
@@bobthechemist Any direction would be very helpful. Thanks
@user-pt1qf3ur4k
@user-pt1qf3ur4k Год назад
how can i get json file with Path? not URL! Any advices?
@swrcPATCH
@swrcPATCH 2 года назад
not working, array[0] is always None (empty array)
@soadindakhor3932
@soadindakhor3932 2 года назад
wonderful example, easy to follow!
@bobthechemist
@bobthechemist 2 года назад
Glad it was helpful!
@amitavamitra6407
@amitavamitra6407 2 года назад
Excellent one! Easy to follow. I could land this watching it and it worked. Thanks for sharing it with us. Got a question if someone can help, please. So if my GET / POST request needs a user id and password, is there a technique to do this, please. Thanks
@philippecoenen
@philippecoenen 3 года назад
Simple, clear efficient!
@bobthechemist
@bobthechemist 3 года назад
Glad it helped!
@exatnys
@exatnys 4 года назад
Thanks for the video. The documentation is indeed non-existent. While trying to do this for a call of my own, I came across two things that I'd like to point out (as a complete beginner!) : 1 - the Construct Json Object node is not needed for a GET. 2 - I used "Get Object Array Field" instead of "Get Array Field", so my item remained a Json Object (instead of a Json Value) and I did not need the "As Object" node. This alternate node comes with a warning though : "Use it only if you're sure that array is uniform!". Not sure if it's more exception-prone... Was it a conscious choice for you to go from Object to Value and back?
@bobthechemist
@bobthechemist 4 года назад
Good point to mention on #1 - I thought Call URL would need something tied to the Va Rest Json pin but if you're saying we can ignore that, excellent. #2 - The object/value/back approach is something I saw while searching for solutions. There is undoubtedly room for refactoring here.
@jacobjimenez3571
@jacobjimenez3571 2 года назад
Thanks!!!!
@Ksj392os7
@Ksj392os7 2 года назад
What if I want to have information without api. E.g get price from an amazon item? Is this doable?
@bobthechemist
@bobthechemist 2 года назад
I don't think so with this plugin. It does not do generic web scraping.
@Ksj392os7
@Ksj392os7 2 года назад
@@bobthechemist how do you think I would get around this problem?
@Ksj392os7
@Ksj392os7 2 года назад
@@bobthechemist is there any other plugin that can do scraping inside unreal?
@bobthechemist
@bobthechemist 2 года назад
@@Ksj392os7 I have never searched for a web scraping plugin for unreal. If I were interested, my approach would be to see how the experimental Python coding in UE5 works and then use the webscraping libraries (e.g. BeautifulSoup) available in Python.
@weizhe433
@weizhe433 2 года назад
that's useful to me! thx
@pratikdas2346
@pratikdas2346 3 года назад
Hey I'm building a game to collect real time data from the API of OpenStreetMaps to create a world like Pokemon Go! So let's say when a player opens and connects to GPS then it gets user location and it displays real time 3d vector tile maps generated through the API of OpenStreetMap. Any ideas how to do this?
@bobthechemist
@bobthechemist 3 года назад
Sounds like a cool project. There's a lot going on in that one sentence "connects to GPS...user location...real time 3d vector tile maps ... API of OpenStreetMap." Seems like you need to break the project down into chunks. I'd definitely explore the openstreetmap API thoroughly before proceeding. Not sure it has the features you're looking for.
@pratikdas2346
@pratikdas2346 3 года назад
@@bobthechemist hey super cool of you to reply, so the first thing is I need something to get me real time map data for the player from a server (like a real map of where the player is in the actual world) and accordingly I'll place my object in a co-ordinate near him so he goes out to collect that object for which he'll be definitely connecting to the mobile GPS. I hope it's clear. I am definitely a noob in UE4 so any help would be awesome.
@michelecommisso4824
@michelecommisso4824 4 года назад
Hi there! Thank you for this tutorial! Did you known how can I do the inverse process in order to set the json fields from ue4 to the website?
@bobthechemist
@bobthechemist 4 года назад
I've also got a video on POST. Is that perhaps what you're looking for? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-DifFzUQgVzo.html
@michelecommisso4824
@michelecommisso4824 4 года назад
@@bobthechemist yes I saw it yesterday but that logic doesn't work for me, probably due to my json that is an array of items and each item has a 5 variables ( I think that i do wrong the "make Json node" can you help me? ^_^
@bobthechemist
@bobthechemist 4 года назад
@@michelecommisso4824 I'll look at that node again and see. It's been on my list of things to do, but school has gotten in the way :-)
@TriSutrisnowapu
@TriSutrisnowapu 4 года назад
Thanks, that helps.. Can you make a POST tutorial also?
@bobthechemist
@bobthechemist 4 года назад
This is what I've done for POST so far: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-DifFzUQgVzo.html
@ifeanyianyoha8574
@ifeanyianyoha8574 3 года назад
Hello BoB LeSuer! Thanks for this tutorial, Please how do I add variables as parameters to the URL?
@bobthechemist
@bobthechemist 3 года назад
See this (cdn.discordapp.com/attachments/778039738459488256/782265326850015272/unknown.png) You want to use the Make JSON node and pass that output to a Set Request Object node.
@joonwild
@joonwild 3 года назад
Thank you for this tutorial. How can I access to an unnamed array?
@bobthechemist
@bobthechemist 3 года назад
I'm not sure that is possible - it might have something to do with the way UE4 deals with JSON. Searching for top-level arrays will give you some ideas on how to create blueprints for adding a name to an unnamed array.
@k0c0u
@k0c0u 4 года назад
Thank you so much!
@bobthechemist
@bobthechemist 4 года назад
Glad it helped!
@naimaware
@naimaware 2 года назад
Hello , could you point me out in the right direction? I want to make a website from which I can retrieve json data form t to use in unreal and update that data from another source like a nodemcu device, do you know how or what to follow ?
@bobthechemist
@bobthechemist 2 года назад
If you're looking to post json data to a website and then retrieve that data in UE, io.adafruit.com/ might be a good (free) start. Note that this solution would be limited to a relatively low data refresh rate, but would teach the process.
@naimaware
@naimaware 2 года назад
@@bobthechemist Sorry what solution ? I only see the adafruit website mainpage? you meant a specific tutorial there?
@bobthechemist
@bobthechemist 2 года назад
Adafruit's IO tutorials are here: learn.adafruit.com/category/adafruit-io. As for "solution" I mean that the Adafruit IO only refreshes data a few times per minute, so you couldn't use this approach for things like real time positioning of enemies in a game.
@naimaware
@naimaware 2 года назад
@@bobthechemist ah no , all I want to do is retrieve a sensor data like humidity or temperature , send it to a website with a nodemcu and write it somwehre so that I could get it from Unreal with the Varest plugin and display the results ingame or have some other interaction there, the most I woul dlike to do it on a personal website but I have no idea how to make that to work and write/display json data there.
@bobthechemist
@bobthechemist 2 года назад
My other vid (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-DifFzUQgVzo.html) might be a tad helpful. It uses a particle to post data to the web which I grab in UE. The library would be different since I'm using a particle and not a nodemcu, so YMMV.
@perschistence2651
@perschistence2651 3 года назад
Is it also possible to set things with this plugin via REST?
@bobthechemist
@bobthechemist 3 года назад
Yes, vaREST allows for POST operations. I've linked to my other video in the comments below, and that video provides an example.
@malikjehangir3337
@malikjehangir3337 2 года назад
Will this work with HoloLens 2? If yes what’s the configuration that’s needed ?
@bobthechemist
@bobthechemist 2 года назад
Still waiting for someone to gift me a HoloLens 2, so I don't know for sure :-). My intuition tells me that if the HoloLens 2 can handle network traffic, then it can handle this plugin.
@malikjehangir3337
@malikjehangir3337 2 года назад
@@bobthechemist Hi Bob, No worries at all !! But this was a great tutorial, I tried it in HoloLens 2 and it worked flawlessly 😄thank you so much for ur efforts into the content that literally saves the day! Cheers!
@bobthechemist
@bobthechemist 2 года назад
Awesome! Glad it worked. Good luck with the project.
@AlonsoVeloz
@AlonsoVeloz 3 года назад
Do you know, how to conect to local host data base ???
@bobthechemist
@bobthechemist 3 года назад
I haven't done that, and it's probably out of scope for VaREST. Have you seen this? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RRvzRxxUhcg.html
@purplecoat3335
@purplecoat3335 3 года назад
Thankyou :)
@nesgugel393
@nesgugel393 2 года назад
can you make me a tutorial connect php mysql unreal engine
@bobthechemist
@bobthechemist 2 года назад
I'd love to, but I haven't done any PHP programming, so I'm not the best person to follow for that task.
@MishimaZaibatsuCorp
@MishimaZaibatsuCorp Год назад
Thanks!
@PROX_sebas
@PROX_sebas 3 года назад
Thank you!!!!!
Далее
Uhhh... Hmmmmmmm...
8:13
Просмотров 757 тыс.
УГОСТИЛ БЕЛКУ МОРОЖЕНЫМ#cat #cats
00:14
БЕЛКА РОЖАЕТ? #cat
00:26
Просмотров 137 тыс.
ГОЧА ПРО NISSAN 400Z
00:51
Просмотров 38 тыс.
UE4 / Unreal Engine 4 / Data Tables (CSV & JSON)
14:27
Why Solo Developers Should Use Unreal
9:51
Просмотров 378 тыс.
Why Do Video Game Studios Avoid Blender?
6:49
Просмотров 573 тыс.
Unreal Engine Simple NPC Tutorial
14:03
Просмотров 58 тыс.
How to Make HTTP Requests in Unreal Engine
11:40
Просмотров 27 тыс.
BEST TOOLS AND PLUGINS FOR UNREAL ENGINE 5
15:53
Просмотров 20 тыс.
How to Use WebSockets in Unreal Engine
21:26
Просмотров 26 тыс.
УГОСТИЛ БЕЛКУ МОРОЖЕНЫМ#cat #cats
00:14