Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » FTPUploader Plugin  () 1 Vote
icon7.gif  FTPUploader Plugin [message #387823] Mon, 25 May 2009 08:50 Go to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

This is really annoying that on renegade you cant see your own servers status on websites. So this will upload a html file to your website so you can view the status.


Download :

http://spynetworks.org/download.php?list.5


FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...
Re: FTPUploader Plugin [message #387825 is a reply to message #387823] Mon, 25 May 2009 08:58 Go to previous messageGo to next message
HustlerX is currently offline  HustlerX
Messages: 17
Registered: March 2008
Karma: 0
Recruit
thanks bud

http://www.xxlimg.com/PuZo/
FREE IMAGE HOSTING @ http://WWW.XXLIMG.COM
Re: FTPUploader Plugin [message #387826 is a reply to message #387823] Mon, 25 May 2009 09:01 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
I've not tested to see if it works, but if it does, good job man. That's really kick-ass!

//Ninja edit

Just looked at the code, that's pretty clever, you're writing to the html page every 2 minutes with updates, then triggering the batch file to upload. Pretty clever... Nice one mate! Wink

//Ninja edit 2

Oh yeah.. You're supposed to offer a direct link to the download and some screen shots.



[Updated on: Mon, 25 May 2009 09:07]

Report message to a moderator

Re: FTPUploader Plugin [message #387832 is a reply to message #387823] Mon, 25 May 2009 09:52 Go to previous messageGo to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

np ive been trying to get it working for ages via C++ but a mate mentioned batch and i realise i could use that to make it upload

FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...
Re: FTPUploader Plugin [message #387838 is a reply to message #387823] Mon, 25 May 2009 10:58 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Link with Wininet.lib

#include "Wininet.h"


DWORD __stdcall Upload(void *)
{
	printf("Start upload...\n");
	HINTERNET intern = InternetOpen("YaRR", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0);
	if(!intern)
	{
		printf("Unable to open an internet - %d\n", GetLastError());
		return 0;
	}
	HINTERNET intern2 = InternetConnect(intern, "ftp.host.com", 21, "username", "password", INTERNET_SERVICE_FTP, 0, 0);

	if(!intern2)
	{
		printf("Unable to open a connection - %d\n", GetLastError());
		InternetCloseHandle(intern);
		return 0;
	}

	if(FtpPutFile(intern2, "myfile.html", "myfile.html", FTP_TRANSFER_TYPE_BINARY, 0))
	{
		printf("Upload complete\n");
	}
	else
	{
		printf("Upload failed - %d\n", GetLastError());
	}

	InternetCloseHandle(intern);
	return 0;
}



CreateThread(0, 0, Upload, 0, 0, 0); //start
Re: FTPUploader Plugin [message #387839 is a reply to message #387823] Mon, 25 May 2009 11:03 Go to previous messageGo to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

Nice Smile

FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...
Re: FTPUploader Plugin [message #387847 is a reply to message #387823] Mon, 25 May 2009 11:49 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9737
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
This does exist as a brenbot plugin as well, but nice work anyway Smile.

You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: FTPUploader Plugin [message #387853 is a reply to message #387823] Mon, 25 May 2009 12:07 Go to previous messageGo to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

Not everyone wants to use brenbot now do they?

FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...
Re: FTPUploader Plugin [message #387944 is a reply to message #387823] Tue, 26 May 2009 03:32 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Are you planning any more releases?


Re: FTPUploader Plugin [message #387953 is a reply to message #387823] Tue, 26 May 2009 04:44 Go to previous messageGo to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

Maybe what else could i do to it?

1: i might do players in server if i can work out how to store the names in a array
2: do what players are on what team

ill try to fix this and ill add what jnz uses


FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...

[Updated on: Tue, 26 May 2009 04:44]

Report message to a moderator

Re: FTPUploader Plugin [message #387958 is a reply to message #387823] Tue, 26 May 2009 05:56 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
They sound like nice additions to expand on, you could include building health, points for the team, time remaining etc etc, but what I really meant, was are you planning any other plug-in's separate to this project? Smile


Re: FTPUploader Plugin [message #387962 is a reply to message #387823] Tue, 26 May 2009 07:17 Go to previous messageGo to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

duno ive got ideas that i will work on, maybe rebuildable buildings and such

FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...
Re: FTPUploader Plugin [message #388069 is a reply to message #387823] Wed, 27 May 2009 00:08 Go to previous messageGo to next message
wittebolx is currently offline  wittebolx
Messages: 332
Registered: May 2007
Location: the netherlands
Karma: 0
Recruit
nice work Wink

a few months back i found a nice tool that does the same and more, the source is open so it could help you in making new stuff for it Wink

google: LGSL v5.0 Stand-Alone

index.php?t=getfile&id=10807&private=0


Edit: nvm. just looked at your website and noticed you already have lgsl Wink


[Updated on: Wed, 27 May 2009 00:15]

Report message to a moderator

Re: FTPUploader Plugin [message #388072 is a reply to message #388069] Wed, 27 May 2009 00:49 Go to previous messageGo to next message
Scrin is currently offline  Scrin
Messages: 1310
Registered: January 2007
Location: Cold City
Karma: 0
General (1 Star)

what's all this do? Dont Get It Dont Get It

Re: FTPUploader Plugin [message #388080 is a reply to message #387823] Wed, 27 May 2009 02:27 Go to previous messageGo to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

Well witte LGSL doesnt actually work for WOL servers it might only work for gamespy but since most ppl do use WOL its quite handy.
Im working on getting all players in game on it as well, another thing about this is its simple html rather than all that from LGSL


FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...
Re: FTPUploader Plugin [message #388081 is a reply to message #387823] Wed, 27 May 2009 02:51 Go to previous messageGo to next message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

Version 2

http://www.spynetworks.org/download.php?list.5


FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...

[Updated on: Wed, 27 May 2009 02:52]

Report message to a moderator

Re: FTPUploader Plugin [message #388238 is a reply to message #387823] Thu, 28 May 2009 01:15 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
It's a nice update, very cool. You might want to try and look at the settings loader in the plug-in example source code. It would allow you to make the hostname, port, user name, password etc etc all configurable variables for people to set in an .ini file.


Re: FTPUploader Plugin [message #388258 is a reply to message #387823] Thu, 28 May 2009 03:51 Go to previous message
Sladewill is currently offline  Sladewill
Messages: 291
Registered: January 2009
Location: United Kingdom
Karma: 0
Recruit

ill see if i can get it into a settings file Smile

FT-Owners - Sladewill,Snazy2007,Willdy
http://FT-Gaming.com for more info...
Previous Topic: [Model Replacement] Havoc in Kanes clothes.
Next Topic: [Skin] [U-WBG] Stealth Tank
Goto Forum:
  


Current Time: Thu Nov 14 12:25:25 MST 2024

Total time taken to generate the page: 0.00990 seconds