Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Uploading Of Files (https://forums.graalonline.com/forums/showthread.php?t=134265008)

Gunderak 11-09-2011 11:20 PM

Uploading Of Files
 
First off, I hope that a mod doesn't count this as script begging.
Just wondering if someone could give a quick example of how to upload a file to a GServer in GS2.
Once I have the basic idea of how it is achieved I can then go on to make something.
I tried using the method used in cbk1994's uploader but it just freezes.
Thanks in advanced for any idea's you may give.

Emera 11-09-2011 11:49 PM

Quote:

Originally Posted by Gunderak (Post 1673701)
First off, I hope that a mod doesn't count this as script begging.
Just wondering if someone could give a quick example of how to upload a file to a GServer in GS2.
Once I have the basic idea of how it is achieved I can then go on to make something.
I tried using the method used in cbk1994's uploader but it just freezes.
Thanks in advanced for any idea's you may give.

I can't give an example, but don't you have to upload it to the players personal uploads and then you can move the file by script to a certain directory?
Edit: An example can be found here.

cbk1994 11-10-2011 12:03 AM

Quote:

Originally Posted by Gunderak (Post 1673701)
I tried using the method used in cbk1994's uploader but it just freezes.

That's because Stefan changed how uploads work in v6:

(quote was originally here, but now you have to use this link because Incapsula)

Gunderak 11-10-2011 07:02 AM

Thanks it works!
Just wondering if I were to put my PHP script for uploading files if it would work like normal using your webserver.
It uses two PHP files.
One for the user interface with a "Select file" and "Upload" button and one for handling the upload.
If needed I could PM you the scripts..

fowlplay4 11-10-2011 07:04 AM

It wouldn't.

Gunderak 11-10-2011 08:30 AM

Dam that sucks..
Is there any way you can think of in which it would work?

cbk1994 11-10-2011 12:51 PM

Quote:

Originally Posted by Gunderak (Post 1673767)
Dam that sucks..
Is there any way you can think of in which it would work?

No. GScript can't execute PHP, and Graal can't fully display HTML web pages.

Gunderak 11-10-2011 11:23 PM

I was talking about using your webserver and putting the files there, wouldn't that work though?

cbk1994 11-11-2011 07:21 PM

Quote:

Originally Posted by Gunderak (Post 1673824)
I was talking about using your webserver and putting the files there, wouldn't that work though?

No. I don't think you understand what a webserver is. It doesn't execute code, it only serves content that you generate. How you generate the content isn't important, but again:
Quote:

Originally Posted by cbk1994 (Post 1673774)
GScript can't execute PHP


Emera 11-11-2011 09:31 PM

Are you going to make a web browser GUI that can download files to RC?

Gunderak 11-24-2011 06:58 AM

That was the original plan yes.

Gunderak 11-25-2011 04:26 PM

Woot!
Neg repped for the reason " ... " I feel special! xD


All times are GMT +2. The time now is 12:43 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.