Get Text File Line?

Any luck?

If this was the data in the spreadsheet on the left

The plain text format would look like the notepad on the right. You must have rows (here 1-10 but they can be Names instead) and columns (Your, Column, Names, Go…) The *.csv format is so plain, one can take a *.txt file and change its extension to *.csv and it will still work; both ways, too.


So you do not need to use a spreadsheet (but it’s an order of magnitude easier on the mind & on the eyes) and stick with txt:

– ensure the format of the plain text file is correct - columns, rows
– note the comma in the upper left corner
– save plain text file
– change the extension to csv

  • struct:

  • import:

  • DT:

Posting this so you can figure out whether this is suitable for your needs.


It may seem complicated but it all takes 1 minute to do but 15 minutes to describe and take screenshots of. :innocent:

Not sure what generates your data. But if you can work in a spreadsheet, it simplifies things.

The best part is the source file is still linked to the DT so you can edit the spreadsheet and reimport with a click. almost run-time


One last tip, if you ever create a complex struct - file paths, class references, nested struct arrays and wish to edit the data outside the engine - figuring out the formatting is pretty much impossible. You can then create a DT based on the struct inside the engine and export it:

And now you have a Save Game / Config File editor where you can make mass changes

“MemberVar_3”: [
{
“bMergeMeshes”: false,
“bBakeMatrixAnimation”: true,
“BaseCalculationType”: “PercentageBased”,
“PercentageOfTotalBases”: 100,
“MaxNumberOfBases”: 0,
“MinimumNumberOfVertexInfluencePercentage”: 0
},
{
“bMergeMeshes”: false,
“bBakeMatrixAnimation”: true,
“BaseCalculationType”: “PercentageBased”,
“PercentageOfTotalBases”: 100,
“MaxNumberOfBases”: 0,
“MinimumNumberOfVertexInfluencePercentage”: 0
},
{
“bMergeMeshes”: false,
“bBakeMatrixAnimation”: true,
“BaseCalculationType”: “PercentageBased”,
“PercentageOfTotalBases”: 100,
“MaxNumberOfBases”: 0,
“MinimumNumberOfVertexInfluencePercentage”: 0
},
{
“bMergeMeshes”: false,
“bBakeMatrixAnimation”: true,
“BaseCalculationType”: “PercentageBased”,
“PercentageOfTotalBases”: 100,
“MaxNumberOfBases”: 0,
“MinimumNumberOfVertexInfluencePercentage”: 0
},
{
“bMergeMeshes”: false,
“bBakeMatrixAnimation”: true,
“BaseCalculationType”: “PercentageBased”,
“PercentageOfTotalBases”: 100,
“MaxNumberOfBases”: 0,
“MinimumNumberOfVertexInfluencePercentage”: 0
},

1 Like