1

Sending data Server <-> Client

QuickScoP3s's Avatar QuickScoP3s9/20/15 7:34 am
1 emeralds 558 9
9/23/2015 3:08 pm
sekwah41's Avatar sekwah41
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!
Posted by QuickScoP3s's Avatar
QuickScoP3s
Level 55 : Grandmaster Programmer
26

Create an account or sign in to comment.

9

info Note: You're viewing a single reply. View all replies
1
09/23/2015 3:08 pm
Level 88 : Elite Senpai
sekwah41
sekwah41's Avatar
Ahh understandable, I'm not exactly sure where or why your code is crashing though. Id need to test it out myself
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome