Page 7 of 13

Re: Custom Hangars

Posted: Sun Jul 21, 2019 5:58 pm
by Driftwood
Dtm and I have been discussing several options ranging from custom rotating tie fighter opt using the s foil hook [tons of work) inverted gozanti for a hangar floor, to modified gozanti opt with some kind of tether extended out for docking purposes to avoid clipping, but no work has been done as far as I know at this point either way.

Re: Custom Hangars

Posted: Sun Jul 21, 2019 6:08 pm
by ual002
This was me messing around with it.

https://youtu.be/sUmG0f2CcYI

Re: Custom Hangars

Posted: Mon Jul 22, 2019 12:09 am
by ual002
Reporting some strange behavior. Noticing a lot more crashes and I'm having trouble narrowing it down to the Hangar hook or 32 bit color hook. I think I'm noticing definite crashes with the setting for flight group color for [HangarMap] if I accidentally set a flight group color for an object that lacks that FG color. Might be good idea to check if its set to default to last flight group color if that specific one is not available.

It does function otherwise.

Re: Custom Hangars

Posted: Mon Jul 22, 2019 3:48 pm
by JeremyaFr
Can you attach a crash report from the events viewer?

Re: Custom Hangars

Posted: Mon Jul 22, 2019 5:10 pm
by ual002
I'll capture a fresh one and send it.

Re: Custom Hangars

Posted: Wed Jul 24, 2019 8:38 am
by Darksaber
JeremyaFr wrote:
Sun Jul 21, 2019 4:04 pm
In HangarMap and FamHangarMap:
The format is : model index, position X, position Y, position Z, heading XY, heading Z.
or : model index, markings, position X, position Y, position Z, heading XY, heading Z.
Quick Q.
1. Jeremy, does the marking setting apply to any craft in HangarMap.txt and FamHangarMap.txt or just the Shuttle?

This question only applies it you answer "Yes to any craft" to the above question
2. Also what happens if you add the marking setting to a craft or object that doesn't have any other FG's

;ModelIndex_315_HangarWorkStand
315, 3. -1065, -306, 0x7FFFFFFF, 16600, 0

We know the hangarworkstand doesn't have any other FG's

Will the craft just show the "0" FG or will the game crash, because your trying to set a FG to a craft or object that doesn't have any other FG's

If that makes sense :D

Thanks

Re: Custom Hangars

Posted: Wed Jul 24, 2019 4:18 pm
by JeremyaFr
1) It applies to any craft.

2) If you set a marking to a value greater than or equal to the FG colors count, then the last one should be selected.

Re: Custom Hangars

Posted: Wed Jul 24, 2019 5:40 pm
by Darksaber
Brilliant, thanks for the info

Re: Custom Hangars

Posted: Fri Aug 02, 2019 4:36 pm
by JeremyaFr
WIP
Hello,
Here is a WIP hangar hook to set the hangar floor above the player craft.

EDIT: link removed

To invert the hangar floor, set "IsHangarFloorInverted = 1" in "HangarObjects". When set to 0, the floor is below the player craft. When set to 1, the floor is above the player craft.

This is what is implemented:
  • hangar floor above or below the player craft
  • hangar objects elevation
  • player craft elevation
  • launch animation
  • re-enter animation
This is what is not implemented:

Re: Custom Hangars

Posted: Fri Aug 02, 2019 8:38 pm
by Darksaber
Testing this with the Pilot Proving Ground Hangar

Well it works to a point, with the preloaded xwing, the craft is under the hangar, the animation works fine

but if you switch to another craft it reverts back to the craft being on top again, even if you switch back to the original xwing

But the flight animation is still inverted and apart from the take off/landing shuttle the other hangar objects and craft are still under the hangar floor

Also any object that isn't set to 0x7FFFFFFF is above the floor, but as this doesn't really matter as the object would be blanked out

Re: Custom Hangars

Posted: Fri Aug 02, 2019 9:36 pm
by JeremyaFr
Thanks for testing.

I will fix the position of the player craft when you switch to another craft.

I will then modify the animation when you re-enter the hangar. For now, the animation is not inverted.

Re: Custom Hangars

Posted: Fri Aug 02, 2019 9:44 pm
by Darksaber
Sorry I didn't test the return :(

Re: Custom Hangars

Posted: Sat Aug 03, 2019 12:21 am
by Driftwood
JeremyaFr wrote:
Fri Aug 02, 2019 4:36 pm
WIP
Hello,
Here is a WIP hangar hook to set the hangar floor above the player craft.


xwa_hook_hangars.zip


To invert the hangar floor, set "IsHangarFloorInverted = 1" in "HangarObjects". When set to 0, the floor is below the player craft. When set to 1, the floor is above the player craft.

This is what is implemented:
  • hangar floor above or below the player craft
  • hangar objects elevation
  • launch animation
OOoooooooooo.... @DTM! @DTM!

Re: Custom Hangars

Posted: Sat Aug 03, 2019 8:29 am
by JeremyaFr
WIP
Darksaber wrote:
Fri Aug 02, 2019 8:38 pm
but if you switch to another craft it reverts back to the craft being on top again, even if you switch back to the original xwing
I've implemented the player craft elevation. It should be fine now.

Re: Custom Hangars

Posted: Sat Aug 03, 2019 10:07 am
by Darksaber
Yep I can confirm that works now :)

Just the re-enter hangar animation to do now :)

Re: Custom Hangars

Posted: Sat Aug 03, 2019 4:12 pm
by JeremyaFr
WIP

I've implemented the re-enter hangar animation.

Re: Custom Hangars

Posted: Sat Aug 03, 2019 5:21 pm
by Bman
Great work Jeremy.

Re: Custom Hangars

Posted: Sat Aug 03, 2019 5:59 pm
by Darksaber
JeremyaFr wrote:
Sat Aug 03, 2019 4:12 pm
WIP

I've implemented the re-enter hangar animation.

Brilliant, works great, well done :)

Re: Custom Hangars

Posted: Sun Aug 04, 2019 7:25 pm
by JeremyaFr
WIP
Hello,
I've fixed a bug that is present in the stable version of the hook.

If "LoadShuttle" is set to 0 in "HangarObjects", your craft is destroyed, you re-enter the hangar, and you press the 0 key (cockpit view) or the game randomly chooses this view, then the game crashes. I've fixed that.

Re: Custom Hangars

Posted: Sun Aug 04, 2019 8:01 pm
by Darksaber
Good thing you spotted that :)

Re: Custom Hangars

Posted: Tue Aug 06, 2019 11:57 am
by JeremyaFr
UPDATE
Hello,
I've merged the WIP hook to the stable hook and uploaded the source code.

Please redownload xwa_hook_hangars.zip

Re: Custom Hangars

Posted: Tue Aug 06, 2019 12:25 pm
by ual002
Well done Jeremy. I'm gonna let DTM take the helm for the gozanti. @DTM, If you want any of the files I started with that let me know so you have a starting point. The other TIEs are part of the hangar mesh right now, but I think it would be better if they were hangar objects going forward.

Otherwise if DTM passes, I'll take a look.

I'm working with blender finally and might be able to start contributing to XWA in that capacity soon. I've already made my inquisitor character cosplay for Jedi Knight Jedi Academy and I'm pretty satisfied/proud of it. Maybe at some point I can try my hand at a static hangar as a modelling starting point in XWA.

@JeremyaFr, what sort of animation changes are we looking at. I have no knowledge in this area. Not in position to actually test at the moment. Will a new animation need to be added? Is that an option? Or did you already do that?

Cheers.

Re: Custom Hangars

Posted: Tue Aug 06, 2019 7:06 pm
by JeremyaFr
There is no need of a new animation. There is an option (IsHangarFloorInverted) to to place the hangar floor above the player craft instead of below the player craft. When this option is enabled, the animation are inverted along the Z axis. For the launch anim, the z position is decreased instead of increased. For the re-enter anim, the z position is increased instead of decreased.

Re: Custom Hangars

Posted: Tue Aug 06, 2019 8:35 pm
by ual002
Good lord that is clever sir.

Re: Custom Hangars

Posted: Fri Sep 27, 2019 11:11 pm
by Driftwood
Would it be viable to merge the hangar editor, like the S-foil editor, to Opt editor so it writes the hangar changes to the relevant craft .ini file to condense things down a little further?

Also, I don't know if you've ever fixed this and I'm just behind updates (again) every time I open the hangar editor, it opens the window to choose a directory containing Xwingalliance.exe, rather than remembering the last directory I selected.