Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 838 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
send_file, request_file, and EVENT_RECEIVE_FILE #150470
08/27/07 05:17
08/27/07 05:17
Joined: Mar 2007
Posts: 75
M
Metal_Man Offline OP
Junior Member
Metal_Man  Offline OP
Junior Member
M

Joined: Mar 2007
Posts: 75
It would be a good idea to have network/internet multi-player commands to send, receive, and ask for files and transfer them. That way, multi-player maps could be customized and stored on a server without players being required to obtain the map beforehand. Also, models and sounds could be transferred to add mod-ability to an online game if a developer so desires.

Sending and receiving files could also be handled similarly to how send_skill is handled using events like EVENT_FILE_RECEIVE or EVENT_FILE_REQUESTED

Re: send_file, request_file, and EVENT_RECEIVE_FIL [Re: Metal_Man] #150471
08/27/07 05:55
08/27/07 05:55
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline

User
adoado  Offline

User
A

Joined: Jul 2006
Posts: 503
Australia
I have made a DLL to do this, simply transfer a file - and it works. I made it a few months ago but I made it to work with C-Script, not sure what things need to be changed to be compatible with Lite-C.

I will release it soon under User Contributions, but its still in the testing stage at the moment.


Visit our development blog: http://yellloh.com
Re: send_file, request_file, and EVENT_RECEIVE_FIL [Re: adoado] #150472
08/27/07 06:01
08/27/07 06:01
Joined: Mar 2007
Posts: 75
M
Metal_Man Offline OP
Junior Member
Metal_Man  Offline OP
Junior Member
M

Joined: Mar 2007
Posts: 75
dude, thats awesome. Can it download a file from a server using a URL?

Re: send_file, request_file, and EVENT_RECEIVE_FIL [Re: Metal_Man] #150473
08/27/07 06:26
08/27/07 06:26
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
Have a look on my multiplayer plugin GSTNet.
There are non-blocking functions (GSTNet_HTTPGetFile(), _HTTPGet()) for this purpose.
Filetransfers from gameserver to one or all clients are not supported,
but could be coded via ClientSend(), ServerSend() and the integrated event system.


Andreas
GSTools - Home of
GSTScript 0.9.8: lua scripting for A6/7/8
GSTNet 0.7.9.20: network plugin for A6/7/8
GSTsqlite 1.3.7: sql database plugin for A6/7/8
3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
Re: send_file, request_file, and EVENT_RECEIVE_FIL [Re: nfs42] #150474
08/27/07 06:37
08/27/07 06:37
Joined: Mar 2007
Posts: 75
M
Metal_Man Offline OP
Junior Member
Metal_Man  Offline OP
Junior Member
M

Joined: Mar 2007
Posts: 75
@nfs42: Interesting, will it work with A7 or should I use A6 if I'm using GSTNet?

@adoado: How fast can it transfer a model?

Re: send_file, request_file, and EVENT_RECEIVE_FIL [Re: Metal_Man] #150475
08/27/07 07:04
08/27/07 07:04
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
atm i'm testing only with A6.
but i think it's possible in lite-c to include wdl-scripts

later this year i will upgrade to A7.


Andreas
GSTools - Home of
GSTScript 0.9.8: lua scripting for A6/7/8
GSTNet 0.7.9.20: network plugin for A6/7/8
GSTsqlite 1.3.7: sql database plugin for A6/7/8
3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
Re: send_file, request_file, and EVENT_RECEIVE_FIL [Re: Metal_Man] #150476
08/27/07 07:06
08/27/07 07:06
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline

User
adoado  Offline

User
A

Joined: Jul 2006
Posts: 503
Australia
The DLL itself is very simple, no encryption (as yet) and is fast, but certain factors such as file size, latency, etc. all affect the total time. You can even make a progress bar to show the progress of the transfer.

I'm guessing GSTNet works by downloading files from the web, wheres mine is only a server-to-client transfer. Depends on what you need

Adoado.


Visit our development blog: http://yellloh.com
Re: send_file, request_file, and EVENT_RECEIVE_FIL [Re: adoado] #150477
08/27/07 07:16
08/27/07 07:16
Joined: Mar 2007
Posts: 75
M
Metal_Man Offline OP
Junior Member
Metal_Man  Offline OP
Junior Member
M

Joined: Mar 2007
Posts: 75
hmmm... each has its uses...

Are there be any issues that could arise from using both?

Re: send_file, request_file, and EVENT_RECEIVE_FIL [Re: Metal_Man] #150478
08/27/07 08:28
08/27/07 08:28
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
Does anybody knows a way to download files from web with GS? I used bigdll for that, but i can't make it work with Lite-C

Re: send_file, request_file, and EVENT_RECEIVE_FIL [Re: Shadow969] #150479
08/27/07 09:51
08/27/07 09:51
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Sending and reveiving small files should be relatively easy with the new send_data functions. Huge files should be split in smaller parts before sending them with send_data.

Page 1 of 2 1 2

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1