I need help with an issue that has been bugging me, I’ve been working on a player stat system but the text only goes up to two, I don’t know what else to do
(Sorry for my bad English)
I need help with an issue that has been bugging me, I’ve been working on a player stat system but the text only goes up to two, I don’t know what else to do
(Sorry for my bad English)
I, personally, can’t see the issue in these blueprints, but I probably miss something.
Maybe “GetDataTableRow Stats_DT” gives wrong OutRow, maybe “SetMembers in StatInfoStructure” doesn’t change row correctly.
Have you tried to debug this? You can toggle breakpoint on the nodes you want to inspect and watch what data they got and pass further. You can even simply add “PrintString” nodes and print out values to the screen to see what values are actually passed between nodes.
You can’t write to the data table - the Set Members node does nothing here, and would always get the default from the DT + Local (if that variable is actually local
to this function (?), the whole thing does even less).
Also, this is a horrible way to set up things. Bound functions execute every frame, you’re polling this non-stop 60 times every second rather than only once when you click the button.
I misread the pic. It’s just a pure function. But my point still stands - you cannot store the updated value in the DT - they’re read only.
Assign the DT’s struct to a variable when this widget is constructed / initialised and keep the widget alive. Clicking a button increases the variable that you push into the Text Box.
Thank you for your help
I managed to fix the problem