Open GameDeveloperAf opened 2 months ago
It is turning to left and right when jumping from ramp like in the video. I show issue in this 1:22 minute short video https://youtu.be/O4a17Md8ze4 The issue is when I move my tank in ramp and jump from ramp like in the video and while it I release "W" or "S" and tank breaking and then it is turning to left and right. So why? There is not such issue in Tanki X.
NOTE: I did not change of your code. It is original code. This issue is in your project. Do you know why?
Hello. I didn't look too closely, but I noticed that you are using far from normal suspension settings. TX physics really doesn’t like it when extreme settings are used, just like TO physics. Please try to substitute the values from this configuration file https://github.com/sigson/UTanks/blob/master/Data/GameConfig/garage/hull/wasp/public.yml and try to reproduce the problem with them. You should know that this is a modified TX physics, and although I did not introduce anything into it that should give such an effect, nevertheless, I cannot say anything after the passage of time, since I simply no longer remember the areas where my code works and which ones it gives effects.
I will try with that values. What you mean by modified TX physics? You mean you changed some physics system of TX?
I wrote several functions that are responsible for creating realistic lateral vertical inertia of the hull so that the tank can roll over on skids. https://m.youtube.com/watch?v=8dd5w0rzvws In the video you can see how a tank, when turning at high speed, falls on its side and can even topple over. In theory, this should not interfere with what you are talking about. There is another possible reason - inaccurate fit of the ramp to the surface. If, after leaving the ramp, the right or left set of suspension beams catches the surface first, this can lead to the suspension “clinging” to the ground with a certain side of the beams first and, accordingly, turning sideways. Another option - you can use the file comparison utility (n++ compare/meld) and compare my ChassisSystem file with the original file that I took from here https://github.com/radiomonter/Tanki_X/blob/master/Tanks/Battle/ ClientCore/Impl/ChassisSystem.cs, you will see what changes have been made.
And I wanted also ask from you, there is not center of mass of the tank, why? And secondly, unfortunately the problem persists even if I set this setting this way https://github.com/sigson/UTanks/blob/master/Data/GameConfig/garage/hull/wasp/public.yml Yes, I saw your modified parts. Even tested with your modified way and with original too but issue still exist.
YOUR COMMENT - "There is another possible reason - inaccurate fit of the ramp to the surface. If, after leaving the ramp, the right or left set of suspension beams catches the surface first, this can lead to the suspension “clinging” to the ground with a certain side of the beams first and, accordingly, turning sideways."
Yes, I think so. But how to fix it? How can make my tank accurately fit of the ramp surface when leaving ramp? And it is also interesting to me. If this is original code from Tanki X, so why is there such issue? So where is the problem? Because everything is from original tanki x. But I tested it in Tanki X today, and I do not see such issue there. What is the magic here? What are we doing wrong? Do you know what is the problem and how to fix it, so in tanki x how it prevented?
you forced me to load the tanks and check it myself. In this video https://youtu.be/8iMmGPKsGeU you can see the settings and the fact that what you are talking about is simply not there. Perhaps it really is a matter of incorrect fit of the card parts to each other, since my objects are connected programmatically and have minimal gaps - I don’t have such a problem, but you do.
Thanks for helping, dude.
I think that maybe the issue is that I did not test it directly in whole built project like you. I just drag and drop tankprefab from assets to scene. Frankly to say, till now I worked only in code and I managed to take those code parts which I need to build my game, but I could not start this project like you with server. I built UTanksServer.sln in UTanksServer folder then I built it in Debug mode and u can see green messages of server in screesnshot and I moved Data folder to UTanks-master\UTanks-master\UTanksServer\UTanksServer\bin\Debug\net5.0 and then i opened TestScene and it loads then i get error message in unity "Something went wrong on game loading". I think I can fix my problem it when I can load this project in whole like you. So I need to build the project like you and all issue will be gone. So help us, how to build this project step by step.
Would you prepare a short video how to build the project and that's all. I tried to find to build it my own in these 8 months, but I could not start project whole. Please dude, make a short video about how to open this project. what to do, what copy and past, how to start server, becuz it is complicated to start this project.
Please, make a video how did u setup this project step by step.
Special for you https://youtu.be/QRVJT3mMJb0
You know, I considered this unnecessary because it literally does not require anything special to build, except for minimal knowledge about the principles of how the dotnet in vs build works and an understanding of how to open a project in Unity, which almost everyone has successfully completed, except maybe you.
and one more thing - the server must be running before you start connecting to it, otherwise the client will crash with an error and stop connecting.
Special for you https://youtu.be/QRVJT3mMJb0
Thank you. I did similar setup but however something get wrong. But now it works.
You know, I considered this unnecessary because it literally does not require anything special to build, except for minimal knowledge about the principles of how the dotnet in vs build works and an understanding of how to open a project in Unity, which almost everyone has successfully completed, except maybe you.
I have not info and experience with dotnet and building works in vs, that's why :)
I will find issue why that problem has occurred about turning to left and right while leaving ramp.
It is turning to left and right when jumping from ramp like in the video. I show issue in this 1:22 minute short video https://youtu.be/O4a17Md8ze4 The issue is when I move my tank in ramp and jump from ramp like in the video and while it I release "W" or "S" and tank breaking and then it is turning to left and right. So why? There is not such issue in Tanki X.
NOTE: I did not change of your code. It is original code. This issue is in your project. Do you know why?