Custom Hangars
Moderator: JeremyaFr
Re: Custom Hangars
- DTM
- Posts: 2120
- Joined: Tue Apr 22, 2003 11:01 pm
- Contact:
In these days in the xwaup private forum, we are putting a strain on JeremyFr's patience. I can not say in short, how many wonderful things we are experiencing thanks to Jeremy, but I think everyone will soon want to thank him ...
Now I have a question, which maybe will distract Jeremy from his extraordinary work, but maybe the answer is simpler than what I think ... or maybe it's simply impossible ...
Some custom hangars are too small for the Shuttle's landing and for the movement of the droids around the player's ship. Replacing the opt of these objects with invisible cubes is not the best solution ... just think that if the shuttle is loaded in the mission, the trick does not work. Also some cameras follow the droids, which cross the walls ...
How to solve this problem? One way would be to be able to load the specifications of the family hangar for any mission, as they are in the first missions of the game: no shuttle and no droid wagging ... ???
Now I have a question, which maybe will distract Jeremy from his extraordinary work, but maybe the answer is simpler than what I think ... or maybe it's simply impossible ...
Some custom hangars are too small for the Shuttle's landing and for the movement of the droids around the player's ship. Replacing the opt of these objects with invisible cubes is not the best solution ... just think that if the shuttle is loaded in the mission, the trick does not work. Also some cameras follow the droids, which cross the walls ...
How to solve this problem? One way would be to be able to load the specifications of the family hangar for any mission, as they are in the first missions of the game: no shuttle and no droid wagging ... ???
- Driftwood
- Posts: 2174
- Joined: Wed Oct 22, 2003 11:01 pm
- Contact:
I've generally just resized the custom hangar interiors to match the calamari hangar internal dimensions if they are too small, unless it's obviously impossible to fit the shuttle due to the exterior dimensions, then I just use a blank opt or smaller ship to replace the shuttle opt and/or crane, for that hangar. Obviously this is generally my preferred gameplay function and aesthetic vs "realism" design choice.
I'm not sure more automization is the answer in this case. Doesn't everything use the default hangar if a custom one is not defined?
I'm not sure more automization is the answer in this case. Doesn't everything use the default hangar if a custom one is not defined?
- JeremyaFr
- Posts: 4001
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the hangars hook.
You can now disable the shuttle and droids loading.
In "HangarObjects.txt":
To not load the shuttle, set "LoadShuttle = 0".
To not load the droids, set "LoadDroids = 0".
Hello,
I've updated the hangars hook.
You can now disable the shuttle and droids loading.
In "HangarObjects.txt":
To not load the shuttle, set "LoadShuttle = 0".
To not load the droids, set "LoadDroids = 0".
-
- Posts: 1170
- Joined: Mon Apr 05, 2004 11:01 pm
Wow, very nice. Thank you Jeremy!
On the flip side,
1) Is it possible to have more than one instance of the Shuttle (or other substitute craft) launching and returning to hangar concurrently and/or independently?
2) And perhaps with different delayed times via a .cfg or .txt file?
3) Could the vector path of the Shuttle (or other substituted craft) be altered other than heading out and then exiting only to the right side of the hangar?
On the flip side,
1) Is it possible to have more than one instance of the Shuttle (or other substitute craft) launching and returning to hangar concurrently and/or independently?
2) And perhaps with different delayed times via a .cfg or .txt file?
3) Could the vector path of the Shuttle (or other substituted craft) be altered other than heading out and then exiting only to the right side of the hangar?
Last edited by Bman on Sat Sep 15, 2018 5:25 pm, edited 1 time in total.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
Slight problem with disabling the shuttle, you still hear the "Shuttle Departing" sound and he sound of the Shuttle taking off and landing.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
Yep, I can confirm you've fixed it, well done mate
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- DTM
- Posts: 2120
- Joined: Tue Apr 22, 2003 11:01 pm
- Contact:
There is a problem with the "LoadShuttle = 0" option: if you get killed on the mission, the game crashes. Probably because there is no shuttle to use to return to the hangar … ;(
- JeremyaFr
- Posts: 4001
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
In my testings (mission B4M5), the camera looks a bit odd (this can be fixed) but no crash. Can you attach a crash report please?
- DTM
- Posts: 2120
- Joined: Tue Apr 22, 2003 11:01 pm
- Contact:
Ok! I did a bit of testing and I understood why in my mission the game crashes when I die:
In HangarObjects.txt I've set both
"LoadShuttle=0"
AND
FlightModels\Shuttle.opt = MyWhateverNameIChoose.opt
If I remove the second line fron the txt file, the game does not crush!
In HangarObjects.txt I've set both
"LoadShuttle=0"
AND
FlightModels\Shuttle.opt = MyWhateverNameIChoose.opt
If I remove the second line fron the txt file, the game does not crush!
- JeremyaFr
- Posts: 4001
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
I've added an option to modify the Shuttle model index.
In "HangarObjects.txt":
To set the shuttle model index, set "ShuttleModelIndex = value". value is an integer. The default value is 50 (Shuttle).
Please redownload xwa_hook_hangars.zip
I've added an option to modify the Shuttle model index.
In "HangarObjects.txt":
To set the shuttle model index, set "ShuttleModelIndex = value". value is an integer. The default value is 50 (Shuttle).
Please redownload xwa_hook_hangars.zip
- DTM
- Posts: 2120
- Joined: Tue Apr 22, 2003 11:01 pm
- Contact:
So is it possible to choose any vehicle, which lands and takes off with working S-foils, instead of the shuttle? Fantastic!
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 4001
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
For working S-Foils, it required to update the s-foils hook.
UPDATE
I've updated the s-foils hook for the Shuttle S-Foils (or any replaced craft) in the hangar.
Please redownload xwa_hook_sfoils.zip
- JeremyaFr
- Posts: 4001
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
I've fixed a bug in the test hook.
I've fixed a bug in the test hook.
- JeremyaFr
- Posts: 4001
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
I've updated the test hook.
The previous code doesn't work. I think it is better now.
Please redownload the test hook.
I've updated the test hook.
The previous code doesn't work. I think it is better now.
Please redownload the test hook.
- JeremyaFr
- Posts: 4001
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
The game engine loads the hangar opt only once at mission startup. To make multiple hangars to work, I need to find a way to reload the hangar opt each time the player enter a hangar.
- JeremyaFr
- Posts: 4001
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
I've found how to reload the hangar opt.
Please redownload the test hook.
I've found how to reload the hangar opt.
Please redownload the test hook.
- Driftwood
- Posts: 2174
- Joined: Wed Oct 22, 2003 11:01 pm
- Contact:
So now we can have multiple hangars? As in more than two In a mission? Or, does this just remove the limit of 1 hangar total if you chose a mothership other than azzameen station and default hangar?
It would be interesting, though likely impossible to be able to define player arrival/departure ships beyond the primary and alternate means in allied. If it was possible I dunno how mission scripting would detect that a player craft "flew home" to rearm and reload then kick on to the next order/objective to prompt landing and relaunching.
It would be interesting, though likely impossible to be able to define player arrival/departure ships beyond the primary and alternate means in allied. If it was possible I dunno how mission scripting would detect that a player craft "flew home" to rearm and reload then kick on to the next order/objective to prompt landing and relaunching.