UAssetAPI icon indicating copy to clipboard operation
UAssetAPI copied to clipboard

This is a .uasset of a game called Tower of fantasy. As you can see in the picture below, on the left side, Export1 contains Datatable with one item, and TableInfo contains 207 items. According to the official GitHub tutorial code, only the DataTable can be obtained, and the content of TableInfo cannot be obtained. How can I modify the code to obtain the content of TableInfo?

Open damifan3 opened this issue 1 year ago • 1 comments

SOS! This is a .uasset of a game called Tower of fantasy. As you can see in the picture below, on the left side, Export1 contains Datatable with one item, and TableInfo contains 207 items. According to the official GitHub tutorial code, only the DataTable can be obtained, and the content of TableInfo cannot be obtained. How can I modify the code to obtain the content of TableInfo? Thank you so much!

联想截图_20240709190056
using UAssetAPI.ExportTypes;
using UAssetAPI.PropertyTypes.Structs;
using UAssetAPI.PropertyTypes.Objects;
using UAssetAPI.UnrealTypes;
using UAssetAPI;
using System;

class Program
{
    static void Main(string[] args)
    { 
        UAsset myAsset = new UAsset("C:\\FashionDataTable.uasset", EngineVersion.VER_UE4_26);

        Console.WriteLine(myAsset.Exports.Count);//1
        System.Type myType = myAsset.Exports[0].GetType();
        NormalExport myExport = (NormalExport)myAsset.Exports[0];
        Console.WriteLine(myType);//UAssetAPI.ExportTypes.DataTableExport
        Console.WriteLine(myAsset.Exports[0].ObjectName);//FashionDataTable
   
        Console.WriteLine(myExport.Data.Count);//1//God!it only has one thing .How is that possible!!
        Console.WriteLine(myExport["RowStruct"]);//-9//"RowStruct" is the name of the only property this program can read  
        //Console.WriteLine(myExport["fashin_dress_61"])//It will be wrong! There is no property whose name is "fashin_dress_61",
        // but obviously there is one (just as you can see in the picture)!
        foreach (ObjectPropertyData myStruct in myExport.Data)
        {
            Console.WriteLine(myStruct);//-9
        }
    }
}


FashionDataTable.zip

damifan3 avatar Jul 09 '24 11:07 damifan3

The files are at the end.

damifan3 avatar Jul 09 '24 11:07 damifan3

Tower of fantasy is a MMO game with pvp, we don't support modding this kind of games

LongerWarrior avatar Jul 12 '24 10:07 LongerWarrior