VenVen / Stock-Revamp

32 stars 38 forks source link

Add FOR components to node, fix RealChute compatibility #36

Closed ChrisViral closed 9 years ago

ChrisViral commented 9 years ago

I've got a few complaints about the Mk16 chute breaking under certain conditions with RealChute installed. After investigation, turns out this isue was caused from Stock Revamp messing up my MM patches.

While I was at it making sure your patches didn't mess up RealChute anymore, I also added FOR components to all your patches (at least I think all) so that people can access BEFORE/AFTER nodes correctly for this, and fixed the RealChute patch on your own created parts.

Haven't been tested, but this should work.

NathanKell commented 9 years ago

@StupidChris please don't add the FOR, actually. FOR[VenStockRevamp] runs very, very late, whereas most all these patches should run before other patches. Not on First, because it'd be good if people could run before these if necessary, but the Legacy pass is actually IMO a great pass to run them on.

NathanKell commented 9 years ago

Whoops, totally missed this at the time, didn't realize it was 3 days old. Oops. @VenVen please see argument above. : ]

VenVen commented 9 years ago

How do you do this legacy pass?

NathanKell commented 9 years ago

@VenVen it's the pass that things without a pass run on. i.e. @PART[liquidEngine] <<< runs on the :LEGACY pass @PART[liquidEngine]:FIRST or :FOR[something] or whatever <<< runs on that pass, not the LEGACY pass.

NathanKell commented 9 years ago

To clarify: Since Stock Revamp has no plugins, by definition FOR[VenStockRevamp] will run later than any plugin-containing mod's pass. For example, any mod that includes a plugin that changes a Squad part (or, heck, just has a name that comes before the letter V!) and does not run a second patch on :AFTER[VenStockRevamp] will have its changes overwritten if this mod runs on :FOR[VenStockRevamp].

VenVen commented 9 years ago

Oh, ok. Thanks for clearing that up.

NathanKell commented 9 years ago

@VenVen since @StupidChris did stuff in different commits, we can just revert the FOR commit and all should be well I think. But let's wait on hearing back from @StupidChris as he'd know best (like, if there was a bit of that in other commits, or something extra in that commit).

ChrisViral commented 9 years ago

Nope, I did this in separate commits for this specific reason. I added the FOR while attempting to fix the RealChute problem with an AFTER pass on my side, but realized I couldn't, and that it would be silly anyway. So yeah you can just revert th first one.

NathanKell commented 9 years ago

@StupidChris cool! :)

@VenVen, with your permission shall I do the revert then?

VenVen commented 9 years ago

@NathanKell have at it.

NathanKell commented 9 years ago

@VenVen done @StupidChris turns out I did have to unconflict the Utility file because your later RC patch involved FORs. Anyway, done. Also, FYI, you can have only one pass specifier (well, you can have more than one, but the patch will run on the first pass that occurs). I mention because I saw something that was :FOR[foo]:FOR[bar]....