Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (opm), 778 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Questions regarding ftp_download #440949
05/07/14 05:06
05/07/14 05:06
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hello again laugh
I am using the manuals example to get myself going with this feature, however i am having difficulty with doing so.

I've added everything correctly, except for 2 possibilities - the address or path - but both are correct afaik.

I've tried ftp_debug(1);
but I get the "Error during Download" printf
and then the engine crashes.

Commented out I still get the same error, but no crash.

Code:
STRING* UPDATE_ADRS = "ftp://host.net/gamefolder/updates/playermodel.mdl";
STRING* UPDATE_MODEL = "3dmodels/Player.mdl";
STRING* CLI_NO = "...";//both are correct
STRING* CLI_PA = "...";//^^^

void update_game(){
	ftp_download(UPDATE_ADRS,UPDATE_MODEL,CLI_NO,CLI_PA); 
	while (ftp_status()==0) //as long as the download is running
	{ //get informations about the download:
		//ftp_debug(1);
		fsize = ftp_size();
		fsent = ftp_sent();
		//set(DEBUG_PAN,SHOW);
		//globalvar = 0;
		wait(1);
	} 
	if (ftp_status() == 1){printf("Download successful!");}
	else{printf("Error during download!");}
}



Im not sure whats up from here... Or does this only work with a published version?? - I created a resource file and got the acknet.dll and placed it in my project folder with no luck either.

Any Suggestions?

Last edited by DLively; 05/07/14 05:16.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Questions regarding ftp_download [Re: DLively] #440954
05/07/14 09:37
05/07/14 09:37
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
You shouldnt provide the password to the suer o.0
Use another function to download from http without the need of a username and password shocked
Maybe use a library or something but never get out your ftw credentials!

Re: Questions regarding ftp_download [Re: Ch40zzC0d3r] #440958
05/07/14 11:47
05/07/14 11:47
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Good suggestion! Just learning these new functions, Thank you laugh


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Questions regarding ftp_download [Re: DLively] #440959
05/07/14 12:23
05/07/14 12:23
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hmmm... can this be done with the http_ commands? Does't seen that way, unless it requires more work - Then I could see it possible.. but Im still not sure which route to go at this moment...

Last edited by DLively; 05/07/14 12:25.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Questions regarding ftp_download [Re: DLively] #440962
05/07/14 13:52
05/07/14 13:52
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
If you have problems doing this in lite-c then dont stay too long without plugins.
Just code your own plugin with visual c++, its not hard, you can use the standard project file and google how to download files from your http link with c++ laugh

Re: Questions regarding ftp_download [Re: Ch40zzC0d3r] #440965
05/07/14 19:40
05/07/14 19:40
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Thanks for the encouragement and tip, Ch40zzC0d3r! I am going to look into that for sure laugh I will let you know my progress ^_^


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Questions regarding ftp_download [Re: DLively] #440971
05/08/14 03:10
05/08/14 03:10
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Which version am I supposed to be using?


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Questions regarding ftp_download [Re: DLively] #440974
05/08/14 03:40
05/08/14 03:40
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
lol. Frustrating comes to mind when trying to find out how to get started on google......................................................


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com

Moderated by  HeelX, 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