UNINSTALL ~generalized_biffing.tp2~ ~0~
[snip]
COPY - ~DSotSC/Worldmap/%LANGUAGE%/worldmap.tra~ ~tmp_worldmap.tra~
fails with error:
ERROR: error loading [DSotSC/Worldmap//worldmap.tra]
If I've understood correctly, the problem is that the UNINSTALL action sets some variables, such as the LANGUAGE variable, to the one of the mod being uninstalled. If the mod's not traified, it will be turned into an empty string.
Is there a way to make variables set by UNINSTALL local?
Otherwise, I could add to the code:
OUTER_SPRINT UNINSTALL_LANGUAGE ~%LANGUAGE%~
UNINSTALL ...
O_S LANGUAGE ~%UNINSTALL_LANGUAGE%~
Could WeiDU do that automatically when you call UNINSTALL? I think it would be safer
PS: the reason why I used that code is to suggest a proper order for mod installation, such as "the worldmap must go last" and so on, and allow people to quickly fix order issues if they want (there is actually a prompt before the UNINSTALL action, so a person can also ignore that).