JDub96 54 Posted October 11, 2018 I recently remembered that, during the ending celebration scene, if you wear the Star Forge/Darth Revan robes, the cutscene shows the player in basic brown robes. I was wondering if it would be possible to mod this scene to recognize both the Star Forge and Darth Revan robes so that it remains consistent. 2 1 Quote Share this post Link to post Share on other sites
todevuch 65 Posted October 11, 2018 It seems to me that it can be done. It is only necessary to find files with the appropriate format and make changes, enter the "thing" (change the mantle of the Jedi to the mantle of the star forge). Another question: will the medal of glory be displayed on clothes, too, it seems to me here that I can solve the problem. Quote Share this post Link to post Share on other sites
JDub96 54 Posted October 11, 2018 Preferably, yes. I dunno if it can show on the Star Forge robes or not. Quote Share this post Link to post Share on other sites
DarthParametric 3,784 Posted October 11, 2018 The J body model lacks the medal hook, so no, it won't show the medal. Not unless someone adds the hook to the model. There is a script that causes you to equip a robe, k_donrobe: void main() { object object1 = CreateItemOnObject("g_a_jedirobe01", GetFirstPC(), 1); ActionUnequipItem(GetItemInSlot(1, OBJECT_SELF), 0); ActionEquipItem(object1, 1, 1); } However, you don't swap your equipped gear when you just warp into the module. It doesn't appear that the script is called either in the module's OnEnter or via the only DLG, nor is it referenced in any of the module's other scripts, so I'm not sure what fires it. That aside, it would be easy enough to alter the script to have it do nothing, or perhaps add a conditional to skip doing anything if the Starforge Robes are equipped (I think you can do that, but someone more knowledgeable about scripts would need to chime in). Quote Share this post Link to post Share on other sites
JDub96 54 Posted October 11, 2018 Hm. It would be nice if someone added the hook, but beggars can't be choosers I suppose. If I knew jack about this sort of thing, I'd just do it myself. Quote Share this post Link to post Share on other sites
JCarter426 1,215 Posted October 11, 2018 2 hours ago, DarthParametric said: That aside, it would be easy enough to alter the script to have it do nothing, or perhaps add a conditional to skip doing anything if the Starforge Robes are equipped (I think you can do that, but someone more knowledgeable about scripts would need to chime in). The Revan armor isn't defined in nwscript.nss but assuming the game checks baseitems.2da for the item type, this should work: void main() { object oOutfit = GetItemInSlot(1, OBJECT_SELF); if( GetBaseItemType(oOutfit) != 89 ) { object oRobes = CreateItemOnObject("g_a_jedirobe01", GetFirstPC(), 1); ActionUnequipItem(oOutfit, 0); ActionEquipItem(oRobes, 1, 1); } } Quote Share this post Link to post Share on other sites
DarthParametric 3,784 Posted October 11, 2018 I guess the alternative would be the resref/tag, g_a_mstrrobe07. Quote Share this post Link to post Share on other sites
JCarter426 1,215 Posted October 11, 2018 Yeah, if it doesn't work then plan B: void main() { object oOutfit = GetItemInSlot(1, OBJECT_SELF); if( GetTag(oOutfit) != "g_a_mstrrobe06" && GetTag(oOutfit) != "g_a_mstrrobe07" ) { object oRobes = CreateItemOnObject("g_a_jedirobe01", GetFirstPC(), 1); ActionUnequipItem(oOutfit, 0); ActionEquipItem(oRobes, 1, 1); } } Excluded the dark armor variant too for good measure. Quote Share this post Link to post Share on other sites
DarthParametric 3,784 Posted October 11, 2018 @JDub96: Here, try this: https://www.darthparametric.com/files/kotor/k1/[K1]_Revan_Star_Forge_Robes_with_Medal_Hook.7z Although I'm not sure what the alignment will be like. I suspect it will probably need adjustment. You'll also need to use it combination with @JCarter426's script: JCs_Award_Don_Robe_Scripts_Compiled.7z 1 Quote Share this post Link to post Share on other sites
JDub96 54 Posted October 11, 2018 Put it all in the Override? Quote Share this post Link to post Share on other sites
DarthParametric 3,784 Posted October 11, 2018 Yes, although you only use one of the scripts. Try v1 first, if that doesn't work, overwrite it with v2. Quote Share this post Link to post Share on other sites
JDub96 54 Posted October 11, 2018 Doesn't look like there are different versions. When I loaded it up, the robe's hood started glitching out. EDIT: Figured it out. I'll let you know what happens. Quote Share this post Link to post Share on other sites
JDub96 54 Posted October 11, 2018 Okay. So it doesn't work. It causes the hood to flicker and seem distorted, and doesn't affect the cutscene. Quote Share this post Link to post Share on other sites
DarthParametric 3,784 Posted October 11, 2018 The hood issue is probably caused by KOTORMax. It seems to screw up Flex/danglymeshes. I'll see if I can fix it by transplanting data from the vanilla ASCIIs. Edit: Or maybe it is a MDLEdit issue. Also doing it from ASCIIs decompiled from the vanilla models. Investigating alternative solutions.... Edit 2: OK so even the vanilla model has the hood "dancing", which you'll see if you delete the modified models from the Override folder. But for some reason MDLEdit is causing it to go haywire. The versions compiled by MDLOps operate in the same manner as the vanilla models. I think the best solution is probably just to turn the hood into a static trimesh. Edit 3: The hook itself works as intended in my test, with the medal attaching properly: I've updated the models, redownload from the link above. Choose the files from the static folder if you don't want any hood movement at all. 1 Quote Share this post Link to post Share on other sites
JDub96 54 Posted October 11, 2018 WORKED LIKE A CHARM! You're a saint DP. Just one mod away from my perfect playthrough now. EDIT: Hey @DarthParametric? You remember your old bearded mullet man mod? I had a question. Whenever I use it, the eyes seem to go hollow and I can see the background through them. I was wondering if you've experienced this or know what might cause it? Quote Share this post Link to post Share on other sites
DarthParametric 3,784 Posted October 11, 2018 Shouldn't be anything to do with the textures, assuming they are unedited. The alpha channels should be white, so any transparency shouldn't be due to my textures. Check if there are any TXI files, PMHC04.txi, etc. Or it could be an edited model from another mod, possibly. Quote Share this post Link to post Share on other sites
JDub96 54 Posted October 11, 2018 They're all .tga files. I had no other mods installed when I tested it just now. Quote Share this post Link to post Share on other sites
DarthParametric 3,784 Posted October 11, 2018 There's nothing about the textures that should cause it. What happens if you delete the textures from the Override and go back to the vanilla textures? Quote Share this post Link to post Share on other sites
JDub96 54 Posted October 11, 2018 Everything is normal. It's only when I have the mod installed that they sclera vanishes. As an addendum, the phenomenon is only observable in open spaces. Close up, like in the Ebon Hawk, it cannot be observed. Quote Share this post Link to post Share on other sites
DarthParametric 3,784 Posted October 11, 2018 I doubt this will work, but it's worth a shot. Delete all the existing TGAs from your Override, then use the files from this archive: https://www.darthparametric.com/files/kotor/k1/[K1]_Bearded_Mullet_Man_PMHC04_TPCs.7z Quote Share this post Link to post Share on other sites
JDub96 54 Posted October 11, 2018 Now he has no eyes at all. Just black pits of eternal darkness. 😶 Quote Share this post Link to post Share on other sites
DarthParametric 3,784 Posted October 11, 2018 Well I dunno what more I can do. Works fine here. It must be some problem on your end. Quote Share this post Link to post Share on other sites
JDub96 54 Posted October 11, 2018 Wait... think it's working now. Quote Share this post Link to post Share on other sites
Salk 374 Posted October 13, 2018 On 10/11/2018 at 12:39 PM, DarthParametric said: The hood issue is probably caused by KOTORMax. It seems to screw up Flex/danglymeshes. I'll see if I can fix it by transplanting data from the vanilla ASCIIs. Edit: Or maybe it is a MDLEdit issue. Also doing it from ASCIIs decompiled from the vanilla models. Investigating alternative solutions.... Edit 2: OK so even the vanilla model has the hood "dancing", which you'll see if you delete the modified models from the Override folder. But for some reason MDLEdit is causing it to go haywire. The versions compiled by MDLOps operate in the same manner as the vanilla models. I think the best solution is probably just to turn the hood into a static trimesh. Edit 3: The hook itself works as intended in my test, with the medal attaching properly: I've updated the models, redownload from the link above. Choose the files from the static folder if you don't want any hood movement at all. DarthParametric, will you implement this into your HQ remake of the Endgame cutscene? It'd be a nice addition. Quote Share this post Link to post Share on other sites
DarthParametric 3,784 Posted October 13, 2018 That's kind of a bust, at least for the LS cutscene. Certainly as far as replacing the sprites goes anyway. The engine just cannot handle that many actual model entities with animations. The best that might happen is replacing the random trio in the background with actual council members. Maybe someone like @Kexikus could consider tarting up the skybox. Quote Share this post Link to post Share on other sites