Hey Rama, I’m trying to use the server travel node to do a async map change where a UMG widget is playing throughout the load.
The level loads fine, but my widget stops playing during the load every time (then resumes when the new level is done loading)
Is there some trick to getting this to work properly? It seemed really straightforward but I’m having no luck.
Thanks, I’m loving the plugin btw, so much great stuff!
Can you explain / show a pic of exactly which settings you would like exposed to runtime BP modification?
I wil have to do a thorough test of the state of things in 4.8 and then get back to you on this! I am glad you are enjoying my plugin!
Http involves internet connection which necessarily always involves async calculations (have to wait to receive the data, can’t proceed instantly). This means that all things involving live internet connection have to be done in a special class or actor component, and can’t be a static node in my BP library.
It is a very nice goal though, to be able to download image from a website, and I shall work on it when I can
[FONT=Comic Sans MS]Welcome to the forums Staus!
Are you saying the weapon jitters only when the character is actively ragdolling, or the weapon jitters even when running around prior to ragdoll ?
It’s only during ragdoll, when the skeletal mesh is using animations, everything works perfectly fine, the static mesh is perfectly attached to the bone socket.
P.S. Impressed to see that you still reply to comments after 960+ replies ^^
I can confirm having problems with a static mesh attached to a socket wobbling after initiating ragdoll. To be clear this is not a drag or a delay in location update, but a severe jittery wobble/bouncing all over the place.
I’d recommend you do the following:
make a 3rd person BP only project, with no sample content (save almost a gb of extra stuff)
bring in your weapon asset
set up the attachment the way you like, on begin play in character BP
activate ragdoll on key press
zip this project and submit to Epic on the answerhub, demonstrating the problem
Your zipped project should only be a few mb as long as you dont include sample content!
Once you do this I can comment in your answerhub post.
I used a resized cube made into a bar and attached to third person character skeleton on begin play using two methos (1) weapon as actor, (2) weapon as component of the character.
In both cases there was severe wobbling/jittering/skipping after activating ragdoll and once the character hit the ground
(3) I made sure collision was turned off for the weapon mesh.
I’ve created a new node that allows you to save a Linear Color array to disk as a PNG image!
So you can draw transparency using the Alpha channel of the Linear Color!
For those who have not used Linear Color much, it has 4 floats (R G B A) and so saving to PNG and supporting transparency is easy!
**Bonus ~ I create target directory for you!**
My node will create the directory you are trying to save to if it does not already exist!
This can be very helpful if you delete your whole generated image folder at once!
Absolute File Paths
This node receives absolute file paths, you can use my Path nodes to get various absolute paths that are relative to your project directory!
Victory BP Library Path Nodes (link inside this thread)
I provide you with an Error string to help narrow down the reason the node returned false, if it does!
Even more debugging info for you!
**The most common error will be that your array size does not equal Width x Height** that you inputted into the node.
**You can avoid this by using variables for Width and Height** and multiplying them together and using that as the max for the for loop where you initialize the image to black (see picture above)!
If you use my method, make sure the for loop first index is 1 not 0 !
Post Your BP-Generated Images!
Feel free to post images you create using this node!
**My C++ Code For You!**
Here's the entire C++ code for my node!
If you use it please credit me somewhere appropriate!
bool UVictoryBPFunctionLibrary::Victory_SavePixels(const FString& FullFilePath,int32 Width, int32 Height, const TArray<FLinearColor>& ImagePixels, FString& ErrorString)
if(FullFilePath.Len() < 1)
ErrorString = "No file path";
//Ensure target directory exists,
// _or can be created!_ <3 Rama
FString NewAbsoluteFolderPath = FPaths::GetPath(FullFilePath);
ErrorString = "Folder could not be created, check read/write permissions~ " + NewAbsoluteFolderPath;
//Create FColor version
for(const FLinearColor& Each : ImagePixels)
if(ColorArray.Num() != Width * Height)
ErrorString = "Error ~ height x width is not equal to the total pixel array length!";
//Remove any supplied file extension and/or add accurate one
FString FinalFilename = FPaths::GetBaseFilename(FullFilePath, false) + ".png"; //false = dont remove path
ErrorString = "Success! or if returning false, the saving of file to disk did not succeed for File IO reasons";
return FFileHelper::SaveArrayToFile(CompressedPNG, *FinalFilename);
**Latest plugin download on the UE4 Wiki: (7.92 mb) **
**Victory Plugin on Media Fire**
If your browser is not updating the Wiki download page to the most recent version, you can use my alternative Media Fire download link!
Please note clicking this link will not start a download instantly, it will just take you to the Media Fire file description.
I have 2 questions…
I posted one of them before, but I wanted to post again with an example to see if anyone can help me out.
I’m using (version 4.7 btw)
First off, I can’t seem to get the “Server Travel” to work correctly. I mentioned before the widget will appear, it’ll be animating… but as soon as the server travel is called, the animation stops, and doesn’t continue until the next level is finished loading.
Here is my test example:
My second questions deals with using the random functions that are in the plugin. No matter what configuration I attempt, whenever I make a packaged build each time I run, my random outputs the same sequence of numbers.
It’s my understanding that the regular random functions in BPs have these issues in packaged builds as well, I was hoping the plugin ones would work, but in either case my output is the same random every time.
Am I using this correctly?
Rama for president 2016! Haha but seriously rama you’re amazing. I’m enjoying some of your recent additions like linear color array <3
Yeah, I have not used them in a long while but that looks correct. Unfortunately the official rand functions and my functions both package same sequence. You can change this by creating a new seed, generator and distribution after a certain number of random numbers or some other way of changing the system to create a new sequence. by something like modifying the seed by some algorithm and redistributing or your own solution ^_^. remember new distributions are fairly cheap but new engine/generators are fairly costly so only do that if absolutely necessary. If this doesn’t work let me know i’ll be happy to help you.
Hmm, so you’re saying I should swap all my functions over to random from seed… then find other methods to generate new seed numbers as needed?
It’s a shame that in editor the regular random functions work fine, but as soon as you make a packaged build, all random becomes 100% predicitable.
Example: I have a simple name generator that takes one piece from a first name array and another from a last name array. Running from editor it’s always random output, but a packaged build, 100% of the time it gives me exactly the same output of generated names.
Wow That is truly impressive!** Great work Tekoppar and thanks for sharing!** (click on the link to see great video!)
Rama for president 2016! Haha but seriously rama you're amazing. I'm enjoying some of your recent additions like linear color array <3
So nice to hear from you SaxonRah, and thanks for those randomization nodes!
I’ll mess around with that today, ill see what i can come up with.
What you should do actually is write a function that returns the date and time then use that to seed your random number generator this way you should get random numbers no matter what because the seed is always changing.
Woo, I know there’s a C++ plugin for Voronoi that uses Fortune’s Algorithm, but Calcs Closest Point to Source Point + SavePixels(if I want an image) made it soo easy to build a component for Voronoi diagrams!