integrating AI into a Data Table

So I am trying to change the information in a Data Table through the event graph but it seems impossible to do this, I cant find anything online about this. Does anyone know a way to do this( Aa tutorial or guide on this would be super helpful)

Yes, it is indeed not possible to alter the data of a data table during runtime :slightly_smiling_face:

Can you explain your objective though? How are you planning to integrate AI to your project? Data tables are also not altered in pure code AI projects.

Hey there @b1ind5ight.ttv! Welcome to the community! As Vis mentioned, editing data tables at runtime is not natively capable. Depending on your use case I would recommend working with a different data type. As Vis mentioned, we’d need more info on how you plan to implement that. Though some possibilities:

Fewer references with simple layout? Using a custom struct TMap for the variable could handle runtime edits fine, but isn’t infinitely scalable.

Tons of entries or need the data globally? You may want to look at Databases like MySQL for example, if you’re using an API for the AI already this will work somewhat the same way.

Alternatively if money is no object and you want to use DTs specifically there is a runtime datatable editing plugin that I’ve seen mentioned:

2 Likes

@VisAgilis @SupportiveEntity Thanks so much for clearing that up for me. Without getting into it too much I am trying to create a quest-system that generates different/unique quests for every playthrough. This is funded project so money isn’t a huge issue but obviously I dont want to spend money if I dont have to.

I was able to do this when I tested this concpet on the text-based side version of the game, but I am just having some difficulty doing it in unreal.( I should mention this is primarily a blueprint project)

Here’s a tutorial on the basics:

You can add your own complex algorithm on top of this but integrating AI into the project isn’t necessary in my opinion. You can still use a data table along with structs if you want to, it doesn’t need to be dynamic. The usage of data tables are already providing sources for your algorithms! You can adjust how that source should be interpreted in your algorithm. :blush:

1 Like