Full Asset Swapping

Instead of string swapping, previously mentioned here, does full asset swapping swap the whole asset. This means you can swap a whole body asset to another body asset without needing to swap each string inside the asset. This is use full for quickly swapping skins and opens up more possibilities for swapping things such as perfect pickaxes which weren’t possible by just swapping strings.

#file plugin

sign: "Author", "Tamely"
sign: "Name", "Assault Trooper to Blaze Body and Head"

from_ar = import "/Game/Athena/Heroes/Meshes/Bodies/CP_015_Athena_Body"

system.Print("Swapping body part one...")
from_ar.Seek("/Game/Characters/Player/Female/Medium/Bodies/F_Med_Soldier_01/Skins/TV_19/Materials/F_MED_Commando_Body_TV19")
system.Print("Found body part one")
from_ar.Write<string>("/Game/Characters/Player/Female/Medium/Bodies/F_MED_Renegade_Raider_Fire/Materials/MI_F_MED_Renegade_Raider_Fire_Body")
system.Print("Swapped body part one")

system.Print("Swapping body part two...")
from_ar.Seek("F_MED_Commando_Body_TV19")
system.Print("Found body part two")
from_ar.Write<string>("MI_F_MED_Renegade_Raider_Fire_Body")
system.Print("Swapped body part two")

system.Print("Swapping heads")
from_ar = import "/Game/Athena/Heroes/Meshes/Heads/F_MED_ASN_Sarah_Head_01_ATH"
to_ar = import "/Game/Characters/CharacterParts/Female/Medium/Heads/CP_Head_F_RenegadeRaiderFire"

from_ar.Swap(to_ar)
system.Print("Swapped heads")

Shown above is an example of a plugin using both string swapping and full asset swapping.

If we take a look at the heads we can see how its written in radon. First we import the first asset we want to swap; with from_ar = import then we import the second asset with to_ar = import . Then to swap the two assets we write from_ar.Swap(to_ar) . Now we have succesfully swapped both the body with strings and the head with assets.

Last updated