Aller au contenu

Photo

[Important] Use unique names for resources


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Apolyon6k

Apolyon6k
  • Members
  • 175 messages
It is really important to use unique names for every new resource that is used in creating a module. If you use the same name as someone used in another mod there could be a conflict between them.
Example:
A resource named "commander.utc" has a name that is too generic and should be avoided.
In my module I did use that exact resource name and it caused problems with another mod. As my mod is standalone and the other one is an addin to the single player my mod wasn't working properly. The commander for the addin was used instead of mine and screwed up my whole mod.

Use a pre- or suffix to make it unique or add the name of the commander to it.
"knight_commander_tayna.utc" would have been a better name because that name is rather unlike to occur in the same context if not at all. "tmoi_knight_commander_tayna.utc" would be even better because I have my prefix and a rather unique name in it to avoid most conflicts.

On the other hand using the same resource name is used as a standard overwriting technique throughout the toolset and the game.

So if you use a name for resources keep in mind what purpose it has. Is it new and unique or should it overwrite another one.:police:

#2
Proleric

Proleric
  • Members
  • 2 361 messages
Exactly. See wiki for more on naming conventions and reserved names.