bansaighdear
Cowpoke
Hi!
So, I have a mod where I used a colorname that somehow causes issues. I have made an update where i replaced it, so this is not the issue.
But if people now update their mod, their animals break, because the mod no longer finds the animals Id. unpleasant. After some digging I found the guide over on github that mentions Alias Tokens, which sounds exactly like the thing i need!
But.
I don't understand how to actually integrate them. The example provided was this:
{
"Format": "2.9.0",
"AliasTokenNames": {
"ItemID": "spacechase0.jsonAssets/ObjectId",
"ItemSprite": "spacechase0.jsonAssets/ObjectSpriteSheetIndex"
},
"Changes": [
{
"Action": "EditData",
"Target": "Data/NpcGiftTastes",
"Entries": {
"Universal_Love": "74 446 797 373 {{ItemID: pufferchick}}"
}
}
]
}
As far as I have understood tokens, the first part is the "replace this with that" part. Then the second part is the "here comes replacement from above".
I use quite a lot of different tokens as of now, and they all work, but this right here is beyond my understanding.
First of all, there's two replacements, but only one is used below? And then if I "translate" this (for me, for understanding), it would mean the game changes {{ItemID: pufferchick}} to {{spacechase0.jsonAssets/ObjectId : pufferchick}}. Is that correct? Or am I getting it wrong? But then how is that different from the other tokens?
Basically, what I need is to be able to tell the game "animalcolor1" and "animalcolor4" are both valid and refer both to the "animalcolor4".
Any help is appreciated.
So, I have a mod where I used a colorname that somehow causes issues. I have made an update where i replaced it, so this is not the issue.
But if people now update their mod, their animals break, because the mod no longer finds the animals Id. unpleasant. After some digging I found the guide over on github that mentions Alias Tokens, which sounds exactly like the thing i need!
But.
I don't understand how to actually integrate them. The example provided was this:
{
"Format": "2.9.0",
"AliasTokenNames": {
"ItemID": "spacechase0.jsonAssets/ObjectId",
"ItemSprite": "spacechase0.jsonAssets/ObjectSpriteSheetIndex"
},
"Changes": [
{
"Action": "EditData",
"Target": "Data/NpcGiftTastes",
"Entries": {
"Universal_Love": "74 446 797 373 {{ItemID: pufferchick}}"
}
}
]
}
As far as I have understood tokens, the first part is the "replace this with that" part. Then the second part is the "here comes replacement from above".
I use quite a lot of different tokens as of now, and they all work, but this right here is beyond my understanding.
First of all, there's two replacements, but only one is used below? And then if I "translate" this (for me, for understanding), it would mean the game changes {{ItemID: pufferchick}} to {{spacechase0.jsonAssets/ObjectId : pufferchick}}. Is that correct? Or am I getting it wrong? But then how is that different from the other tokens?
Basically, what I need is to be able to tell the game "animalcolor1" and "animalcolor4" are both valid and refer both to the "animalcolor4".
Any help is appreciated.