Saving files on another system on LAN
by Playware · in Torque Game Builder · 08/26/2008 (1:35 am) · 6 replies
Hi,
I have to save some score file(.txt file) on another system connected on LAN. Just now I am trying like this........
%file = new FileObject();
%file.openForWrite("//systemAsia31/shareTest/" @ %filename @ ".txt");
here systemAsia31 is system name on LAN and shareTest is a folder on systemAsia31 . I have to save .txt file into this folder.
Now suppose on LAN, my system name is systemAsia30 and another system is systemAsia31. So am I doing correct way of saving file on LAN. just now it is not creating any file on this path.
What could be the problem? Any idea?
thanks in advance
I have to save some score file(.txt file) on another system connected on LAN. Just now I am trying like this........
%file = new FileObject();
%file.openForWrite("//systemAsia31/shareTest/" @ %filename @ ".txt");
here systemAsia31 is system name on LAN and shareTest is a folder on systemAsia31 . I have to save .txt file into this folder.
Now suppose on LAN, my system name is systemAsia30 and another system is systemAsia31. So am I doing correct way of saving file on LAN. just now it is not creating any file on this path.
What could be the problem? Any idea?
thanks in advance
About the author
#2
after suggestion I tried like this.............
%tc = new TCPObject();
%tc.connect("//systemAsia31/shareTest/");
function TCPObject::onConnect(%this)
{
echo("------------------ connection established -------------------");
}
but no result. I am bit confused that is it making connection or not after this because I am calling function TCPObject::onConnect(%this) also and displaying one message in this. but no result. Even I tried to give IP address of system instead of system name(systemAsia31), but same result.
am I doing something wrong here or what ?
or any other guess?
thanks
08/27/2008 (12:16 am)
Actually how we can use path system in TCPObject.after suggestion I tried like this.............
%tc = new TCPObject();
%tc.connect("//systemAsia31/shareTest/");
function TCPObject::onConnect(%this)
{
echo("------------------ connection established -------------------");
}
but no result. I am bit confused that is it making connection or not after this because I am calling function TCPObject::onConnect(%this) also and displaying one message in this. but no result. Even I tried to give IP address of system instead of system name(systemAsia31), but same result.
am I doing something wrong here or what ?
or any other guess?
thanks
#3
Just the computer name is correct, example,
%tc.connect("systemAsia31");
But it won't connect unless you have another TCPObject listening on the other side.
08/27/2008 (12:33 am)
First off, you can't connect to a folder 0,o Just the computer name is correct, example,
%tc.connect("systemAsia31");
But it won't connect unless you have another TCPObject listening on the other side.
#4
Binary file transfer in Torque
... you might be able to modifiy that to suit your needs.
08/27/2008 (12:41 am)
@Haider - Take a look at this...Binary file transfer in Torque
... you might be able to modifiy that to suit your needs.
#5
after suggestion I tried like this.............
%tc = new TCPObject();
%tc.connect("//systemAsia31/shareTest/");
function TCPObject::onConnect(%this)
{
echo("------------------ connection established -------------------");
}
but no result. I am bit confused that is it making connection or not after this because I am calling function TCPObject::onConnect(%this) also and displaying one message in this. but no result. Even I tried to give IP address of system instead of system name(systemAsia31), but same result.
am I doing something wrong here or what ?
or any other guess?
thanks
08/27/2008 (2:10 am)
Actually how we can use path system in TCPObject.after suggestion I tried like this.............
%tc = new TCPObject();
%tc.connect("//systemAsia31/shareTest/");
function TCPObject::onConnect(%this)
{
echo("------------------ connection established -------------------");
}
but no result. I am bit confused that is it making connection or not after this because I am calling function TCPObject::onConnect(%this) also and displaying one message in this. but no result. Even I tried to give IP address of system instead of system name(systemAsia31), but same result.
am I doing something wrong here or what ?
or any other guess?
thanks
#6
Without that it will not work through TCP
The only option you have then is connect to the share folder through making it a network drive.
Naturally only if you have the right to create files there, normal user accounts do not have that right, they are read only.
09/28/2008 (5:58 am)
Have you created the "listening server" that you placed on the other machine?Without that it will not work through TCP
The only option you have then is connect to the share folder through making it a network drive.
Naturally only if you have the right to create files there, normal user accounts do not have that right, they are read only.
Associate James Ford
Sickhead Games