1
Sending data Server <-> Client
Hi all,
I'm STILL having problems with my mod:
I try to save progress of the player on an associated class in a file.
This works for client and server.
BUT when I try to open the file (not the problem), I try to load it.
This all works well on the client,
but I can't seem to send to opened data to the client, modify it and send it back...
Is there an (easy) way to send this info, perhaps via packages or something?
I load my data in an array list and get my info from there.
One of the problems: I open the file at server start, but when I try to get the info from the server via the client, this list and the save file location are null (as I use a different location for server and client).
So basically:
I want to get the server (when you join) and send the save file from the server to the client
Then I can edit it and send the edited info back.
Or I can edit the file, save and reload it...
Thanks in advance!
I'm STILL having problems with my mod:
I try to save progress of the player on an associated class in a file.
This works for client and server.
BUT when I try to open the file (not the problem), I try to load it.
This all works well on the client,
but I can't seem to send to opened data to the client, modify it and send it back...
Is there an (easy) way to send this info, perhaps via packages or something?
I load my data in an array list and get my info from there.
One of the problems: I open the file at server start, but when I try to get the info from the server via the client, this list and the save file location are null (as I use a different location for server and client).
So basically:
I want to get the server (when you join) and send the save file from the server to the client
Then I can edit it and send the edited info back.
Or I can edit the file, save and reload it...
Thanks in advance!
Create an account or sign in to comment.
9
info Note: You're viewing a single reply. View all replies
1
Ahh understandable, I'm not exactly sure where or why your code is crashing though. Id need to test it out myself