Monday, April 23, 2012

[SC2][SOLVED] Conflict DLC Base + Shadow when using merge bp

Going over both the base files and shadow units i come across what i would think would be a conflict, Unit UCX0103 Bomb Bouncer has 2 bp files with in the DLC one in the base and one in the shadow with would be a mistake on GPG half.|||It's deeper than that:
- bp.scd/Units/Cybran also has UCX0103
- bp.scd/mods/DLC1/base/Units/Cybran also has UCX0103
- bp.scd/mods/DLC1/shadow/Units/Cybran also has UCX0103
- lua.scd/Units/Cybran also has UCX0103
- lua.scd/mods/DLC1/base/Units/Cybran also has UCX0103
BUT
- lua.scd/mods/DLC1/shadow/Units/Cybran does NOT have UCX0103|||madface|||It's likely an error in DLC.
But are you sure that "mods" is not read/used in bp.scd and lua.scd? The files in the "mods" folder in these scd's are not exactly identical between each other. For example, bp.scd/mods/DLC1/shadow/lua only has a directory for ai and nothing for common, sim, or ui as in lua.scd/mods/DLC1/shadow/lua.|||It might be an 'error', but it isn't really relevant to anything. The blueprint that is being used is the one that loads last, which would be /mods/DLC1/shadow/Units/Cybran/UCX0103/UCX0103_unit.bp.
The only difference between this one and the one within /base is the path to the mesh and walk animation.
The only difference between the one in /units and the two in /mods is the LifeBarOffset (increased so that it's higher), and the fact that it has SHIELD category. These two things were likely bugfixes done in the DLC. Why they weren't done to the copy in the base game, I do not know, but it doesn't much matter one way or another.

The script is not shadowed in /mods/DLC1, therefore the original within /units is the one being used. Again, non-relevant, because the scripts are identical.
Edit: The scripts are only identical in uncompiled_lua.scd. The compiled script in /mods/DLC1/base is different in size from the one in /units, although it's impossible to tell why since it's compiled. It still doesn't matter, because as I understand it, scripts for units in /mods/DLC1/base that already exist in /units are not going to be run, and the original in /units will be used unless it is directly shadowed.

Also, stop comparing bp.scd and lua.scd as though they're different versions of the same thing. bp.scd contains blueprints, while lua.scd contains lua scripts. Of course they have different paths, and of course both of them will be used.|||madface|||liveordie|||Mithy|||Actually, I tried creating a z_ -named scd to override files from lua.scd, and didn't have any luck at all, so I'm not really sure what determines the mount order. Like I've said in other threads, I have a sneaking suspicion that the game 'knows' about certain scd names when doing its file mounting and prefers files from those, because the only way to directly override files in lua.scd or z_lua_dlc1.scd is to put them straight inside those files.|||Mithy|||liveordie|||Mithy|||Maybe they're trying to discourage modding by making it as confusing and annoying as possible to work with game files.
Too bad there are ways around that. >_>|||Mithy

No comments:

Post a Comment