miniMAXIme: Character scaler and selector

by Pi-C

The player stands like a giant near the vehicles. Now you can adjust the size of your character -- and you can change your appearance at any time if you've other mods that provide extra characters!

Tweaks
11 days ago
0.16 - 2.0
26.4K

i [Done] Can you add my mod to your mod's soft dependencies?

2 years ago
(updated 2 years ago)

both of them are skin mod

2 years ago

I don't have any soft dependencies. Mods that create new characters, character corpses, or guns can set a flag in their prototypes to tell my mod they should be ignored. In data-final-fixes, I will scale and (if necessary) copy all prototypes without such a flag. In control.lua, I make a list of all character and character corpse prototypes that will be handled. Again, other mods can tell mine to ignore their prototypes.

So, there's really no reason to add any dependencies. However, I could add a list of known character mods on my information page. That would make it easier for players to find them.

2 years ago

reason is make it easier for players to find them ingame

2 years ago

information page can not see in game

2 years ago

There was a new dependency type (not sure how it worked) that could be useful. The usual dependencies enforce either a conflict or that the other mod is loaded before yours.

If mod A depends on mod B, mod B depends on C, and mod C depends on A, you get a circular dependency conflict. If there are just mod A and mod B depending on each other, that's easy to find -- but if there is a long chain of mods that ends up in a circular dependency, finding the cause of the conflict can be hell. That's why I've got used to use dependencies only if it's necessary.

But I'll try to find the new dependency type, perhaps that may be useful after all.

2 years ago

you can see my mod's dependency, it's soft dependency

2 years ago

I know. That's an optional dependency. It means you can run the bikini-swimsuit mod without miniMAXIme. But if my mod is active, it will be forced to load before yours. So once you have a hard or soft dependency on my mod, I can't add one on yours -- that requires another type of dependency.

2 years ago

Found it! But it's not quite what I expected:

The possible prefixes are: ! for incompatibility, ? for an optional dependency, (?) for a hidden optional dependency, ~ for a dependency that does not affect load order, or no prefix for a hard requirement for the other mod.

The one I meant was "~". It doesn't matter which mod is loaded first, but it seems that both mods must be active.

2 years ago

Confirmed by one of the developers.

2 years ago

new https://mods.factorio.com/mod/genshin-impact-skin

I add your mod as "~" dependency

2 years ago

so you can add "?" dependency safely

2 years ago

That would work, I guess. I But I'd have to add optional dependencies on all other character mods as well -- just to be fair, and to provide a full overview of all available characters. I'll do that for the next update.

Meanwhile, I'm working on a helper mod that will make it easier for other mods to decide whether they should overwrite the default character, and create a central interface where character selector mods can announce that the character mods shouldn't overwrite it. As you plan to create several more new characters, that would shrink your data-final-fixes.lua significantly, and make it easier to maintain your mods.

2 years ago

my new mod dont have a data-final-fixes.lua, It totally depends on your mod to work

2 years ago

and I sent you a msg in Forums

2 years ago

my new mod dont have a data-final-fixes.lua, It totally depends on your mod to work

Thanks, but you still should use data-final-fixes. Other mods may make changes to the default character and people may wonder why those changes are lost if one of your characters is used. It's all about settings that are not vital to your mod. You'd want to keep any of your custom properties (animations, sounds, localization etc.), but other mods should be allowed to change things where you didn't change the default value.

2 years ago

I add your mod as "~" hard dependency, so data-final-fixes no longer needed.

2 years ago

I've added an optional dependency on all character mods that should work in 1.1.8.

2 years ago

Already noticed, already added. :-)

It will be a while until I can release the new version. It's too much of a mess right now as I'm in the middle of major code restructuring.

2 years ago

add this to Discussion notice
The notice will display on top of the Discussion tab.

New response