Hello all
I have a issue with one of the nodes that was recently added. It is called Increment Item Quantity and it works perfectly on the server side of the editor when using multiplayer in the editor. On the client side it runs but just doesn’t work. I have tried I believe everything and yet still can’t get it to work. When I debug it with break points it says all the same stuff it would for server except when it comes to the Increment Item Quantity node the output result for client is zero. I have tried setting a custom noe to run on server as well as run on client and nothing helped. I even thought it could be I am not referencing the player correctly but it does show I am getting the player in the debugging breaks. To explain what I am doing I have a trigger that when player overlaps it brings up a widget that has some items you can choose from, the trigger is suppose to create the widget and then I have a function created that stores the player within a variable in the widget itself so that it knows what player to remove the item from and long story short uses the Item Increment node with a negative number to remove a certain amount of items. Now there were some other issues and I dont know if those other issue might be causing the main problem but
at first I could not get the trigger to create the widget, game kept crashing saying something like InPlayerController->isLocalPlayerController() ect… Localplayer.cpp Line 134. SO I found out from searching online that I should use a node is local player, which I did but the wierd thing is on the client side it says false and yet it will create the widget but with skipping all the break nodes I created for debugging, so I can’t even step through each break node before the widget is created. However though, using that node does get it to work without crashing. So that is my issue, I assume I have to get the server to run the command but nothing is working and there is no real information on the node Increment Item Quantity node and I kind of need it as I am using this widget as a shop, player walks up to NPC and triggers a UI for buying resources. SOO any help would be great. I usually can solve these most bugs but this one is a pain.
Never mind I found a solution.
would you mind elaborating on the issue and solution you found a little more? sounds like something I’m looking into myself, wondering how you worked around it!