-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vehicle Secondary Guns not functioning #910
Comments
I have made SOME progress fixing this, but I'm not experienced with forge enough to go the whole way. The main issues are in EntityDrivable.java's shootEach() method. The first issue, which I managed to solve had to do with Vectors. the gunVec Vector seems to be a local vector, and is never added to the player's coordinates, so the gunVec points to coordinates within a few blocks of 0,0,0 (Think -2, 1, 2.5 instead of the vehicle's position of 536, 64, -1850). I solve this by instead doing this for gunVec:
I used a debug chat message to tell me where the bullet would hit. https://gist.github.com/coldblade2000/59ba2acf7420bb201df7862fea303bf0 in line 615 Finally, this is the main problem I've noticed. Flans tries to use ServerHandleShotData in ItemGun to register the bullets, but then ServerHandleShotData quickly returns nothing, as the first thing SeverHandleShotData does is check if the "entity" given is an instance of EntityPlayerMP (which it isn't, its a tank, plane, etc). Thus, nothing else runs. I can go further into detail if needed. Point is, the shotData is just never handled, thus nothing else happens Edit: I realize the code is badly formatted, give me a sec Edit 2: https://gist.github.com/coldblade2000/59ba2acf7420bb201df7862fea303bf0 |
Any progress on this? I'm using the 1017 fix and I'm having this issue with all vehicles. Apache won't fire Hellfires or Hydras but the co-pilot can fire the turret, Bofors won't fire etc. # |
Hello im completely new to all this, and i have no idea how this works, but I have the same Problem. @ChrisLane could you explain to me how i use your solution? |
@itsyaboiiOliver Download the latest version of the mod and content packs from here: https://github.com/FlansMods/FlansMod/releases Though supposedly things work better in beta 3 so you might want to try that. |
Ok so i can download those, but like the bugfixes things? More down the page i can download the mod, are the fixes already in there? |
The bug fixes are in those mod versions
Sent from BlueMail
…On 21 Jun 2019, 18:49, at 18:49, itsyaboiiOliver ***@***.***> wrote:
<p>Ok so i can download those, but like the bugfixes things? More down
the page i can download the mod, are the fixes already in there?</p>
<p
style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br
/>You are receiving this because you were mentioned.<br />Reply to this
email directly, <a
href="#910?email_source=notifications&email_token=AAHB3IZA6BYSDH3ED7DQI2LP3UIEBA5CNFSM4E7R3NY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYJEK2Y#issuecomment-504513899">view
it on GitHub</a>, or <a
href="https://github.com/notifications/unsubscribe-auth/AAHB3I7UT6ULQDF4QCFOF43P3UIEBANCNFSM4E7R3NYQ">mute
the thread</a>.<img
src="https://github.com/notifications/beacon/AAHB3IZUUGK66UQIVJGQZV3P3UIEBA5CNFSM4E7R3NY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYJEK2Y.gif"
height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target":
"#910?email_source=notifications\u0026email_token=AAHB3IZA6BYSDH3ED7DQI2LP3UIEBA5CNFSM4E7R3NY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYJEK2Y#issuecomment-504513899",
"url":
"#910?email_source=notifications\u0026email_token=AAHB3IZA6BYSDH3ED7DQI2LP3UIEBA5CNFSM4E7R3NY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYJEK2Y#issuecomment-504513899",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
|
Hi, im trying to install the beta version, but i dont know how to do it, there is a video tutorial "How to install BETA version"?? |
If you need a video tutorial, you are to my knowledge out of luck |
I do not know how you acquired that folder. Did you follow the steps described in the wiki, and if so at what step are you |
so this bug was never solved? i'm experiencing the same issue with my bomber and all my vehicles, they don't shoot projectiles rather the projectiles don't leave from the machines (tanks/airplanes/ground turrets) and I have the beta v9. Does anyone know what might be causing this issue. I know about the issue with malisis doors mod problem, but is there something I can do now that would go around this bug? |
When I try to spawn the vehicles, they don't appear, only their shadows appear. Previously the game crashed and closed after I downloaded the latest mod version of Flan, now the game no longer crashes but the bug remains |
Version: 5.5.2 (main download from https://flansmod.com/download)
Minecraft Version: 1.12.2
Issue: Secondary guns for any vehicle do not seem to function; while (for example) bombs function on right-click for planes with them, using left click, right click or the default hotkey (have tried changing the hotkey but to no effect) does not fire the secondary guns. A good example is the Fokker's machine guns not firing as they count as a secondary gun.
The text was updated successfully, but these errors were encountered: