Problems with variables on builds

I have a strange issue when I run my game. Basically I have a jet back designed to off set the force of gravity for a while before running out of fuel. Most of the time this works fine and I’ve designed some platforming levels around this idea however sometimes, without me changing anything in the blueprints or code, the effect of the jetpack varies to the extent that I literally can’t make some of the jumps. Here’s the code for my jetpack.

Jump Power has an initial value of 2 but can be increased to 4 in game. If anyone has any idea why this code acts inconsistently between debugs then I’d love to know.

,

I have packaged and launched your project (from your previous AnswerHub thread) and played it for about 15 minutes. I do not notice the jet pack varying when I am jumping. I do notice that when your character is jumping with the booster, you don’t have as much control over the character therefore, you could easily miss the landing platform.

Do you think that you could upload a video of the jumps varying in range and speed? Also, is this happening because you’re picking up a booster or are you using the regular spacebar jump?

Looking forward to speaking with you further.

Have you tried playing level 3? That’s where it is by far the most noticeable. I have problems even reaching the jump boost on level 3 at the moment. I think it’s decided by the number of objects I have in the world effecting my frame rate which in turn effects how many times a force is applied per tick. If level 3 is running good for you, then could you post your executable somewhere so I can compare it against mine? Also on my executable version finishing a level moves me back to the title screen instead of progressing to the next level.

,

Jumping works perfectly for me in all of the levels. I’m not receiving any type of lag. The only thing that I can think of in regards to your jump is if the space bar is released too early, obviously the jet pack isn’t being used so you may ‘under jump’ a platform, but ‘over jumping’ a platform is possible too.

Also, I am sent back to the main screen too when I die. If the level is completed, you spawned to the next level.

My executable would be the same as yours from the build that you originally sent me. I didn’t modify anything within your project except trying to add text onto your main menu, which doesn’t work in that specific version of the Editor. :frowning: If you’ve made any changes along the way that may have modified the way that your game works, I’d suggest reviewing an older version of your project to ensure all blueprints are still set up correctly.

I hope that this information helps you.

I was having these problems when I sent you that version too. This question itself is over a week old. The only thing I can think of is that maybe you’re using an updated version of the engine, packaging it in a different way to me, or maybe your computer itself is just better than mine. I’m packaging by going file->package project->windows->windows 64 bit. That give me a folder called WindosNoEditor and to run the executable I go MyProject->Binaries->Win64->MyProject.exe. Is that the way you’re doing it?

Also, so we’re on the same page, here’s an updated version of my project which, among other things, includes the HUD which shows the fuel gauge the player has for jumping. [link text][1]

By making a new copy of my project and systematically deleting each portion of it, I’ve managed to discover that the issue with the text is a result of my pick up items. Still don’t know how to solve the problem but at least now I know where to look.

https://.com//SpaceVectorUpdated

,

That’s the exact way that I’m packaging your project. I am using version: 4.4.3-2296771 when I’m opening your project and creating the package.

In regards to your newest version of the project, I am in the same version of the editor as before, and I’m packaging it the same way. When I go through level 1, I get brought back to the main menu. When I’m in level 2 and complete it, I spawn into level 3. So there is an inconsistency here regarding the level loading.

I do not see any trouble with the jumping either. It’s behaving just as it was in the previous version of the project.

Cheers!

■■■■. How long has that been an issue I wonder. I can’t even test lv2->3 because on my version of the executable making the last jump is impossible. It must be some kind of difference in our machines that are giving different physics for us.

,

If you’re not able to make the jump, you may want to consider restructuring it, so that it’s easier for users. I understand why you made the game like you did, trust me when I say I’ve fallen enough in your game - - hahaha!!

Anyway, the computer that I am on has 32GB of RAM, as well as a GTX 770, which isn’t a bad graphics card. But it may make it to where my computer is running slightly faster and I’m not experiencing the same troubles that you are.

Unfortunately, I do not know enough about this to say what would cause the difference between my computer and yours, unless the specs are drastically different.

If you have any questions regarding the text of your project, create a new AnswerHub thread and someone should be able to assist you with the error you’re getting with the letters not appearing. I tried multiple different ways myself to get text to appear for you and none of them would even show up, because of the version of the engine you’re working out of.

Cheers!

The physics are the reason I can’ make the jump though. I can clear it fine while debugging it. Over shooting it is even a possibility but when I make an executable clearing the jump simply isn’t possible.

My computer apperantly only has 6GB of ram which does seem like a lo less than yours.

I’ve also managed to fix the text issue by deleting all the text in my pick ups and replacing them with symbols. It’s not a n ice fix but I’ve been at it for hours trying to find out why simply having the text there causes issues and came up with nothing other than replacing it.

I’ve figured out what the problem is! Way back when I thought for the sake of convenience o add a light o each of my platforms in order to illuminate them and make them stand out more. It turns out this has been what’s causing my lagging throughout the entire game, even on my debug. As a result pretty much all of my levels have to be redesigned since the player can now jump a lot further than I had anticipated but at least it should be consistent which is a huge boon. I still have the slight issue with level loading being different on debug but that’s an unrelated issue to this question so I think this one can be officially marked off. Thanks for all your help . I don’t think I could have done this without you, at least not in time for tomorrows dead line.

,

You’re very welcome for all of the assistance given. I hope all goes well with your deadline tomorrow.

Do not hesitate to contact us again if you have any further questions.

Have a great week! :slight_smile: