Jump to content

PB ET Linux Uploading SS's to website


ES Secret Squirrel

Recommended Posts

  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

Ok i have a question for everyone in here. I have my dedicated server for the game on a win32 system. What do I need to go about doing to get the same results when uploading to a ftp. I have tried all the stuff mentioned here so I'm not sure if I just don't understand it all or if I'm having a problem with it being on a win32 system.

 

Thanks for any help in advanced.

 

Well, first of all I am sorry taht i wasnt active at PBB forums.

 

2nd: Tgrable84, here you go.

 

This is a script for Windows that uploads your htm and pbss to your ftp server.

 

Instructions:

 

Copy that code in your Notepad, edit the set homedir, set etdir, set ftpuser, set ftppass, set ftpserver settings and save it as wolfet_pbss.bat .

 

Make sure that the saved file has the extension ".bat", it is a batchfile for windows what you can run manually.

 

The homepath, example: If you have that server rnuning on your own PC, than the homedir would be the drive, where it is installed on. So its C:\.

 

The etdir is the path to your ET, it should be set correctly with full path.

Example: set etdir=C:\WolfensteinET\. Do not link it to etmain/etpub/etpro or something else, just to WolfensteinET.

 

The ftpuser is your username that you use for logging-in to your FTP host.

Example: set ftpuser=Tgrable84

 

The ftppass is your password that you need to login there. Example: set ftppass=password

The ftpserver is the link to your server. Example: set ftpserver=ftp.Tgrabblesftp.com

 

NOTE:

It will delete the .htm and the .png files.

When you dont want to have the files deleted after your upload, use the second script that i posted.

 

If you want to have this runned automatically, just add a task with your Taskplaner.

 

CODE

rem wolfet_pbss.bat

rem Wolfenstein - Enemy Territory Screenshots Uploader

rem coded by wEst

 

rem set temp variables

rem only this section should be different on each server

set homedir=

set etdir=

set ftpuser=

set ftppass=

set ftpserver=

 

rem Abort progress if no PB screenshots exist

if not exist %etdir%\pb\svss\*.png goto clean-up

rem rename pb screenshots adding random number

cd %etdir%\pb\svss

for %%i in (*.png) do ren %%i %random%_%%i

cd %homedir%

 

rem build ftp commands file

echo open %ftpserver%> et_uploader.txt

echo %ftpuser%>> et_uploader.txt

echo %ftppass%>> et_uploader.txt

echo prompt>> et_uploader.txt

echo type binary>> et_uploader.txt

echo cd /logs>> et_uploader.txt

rem select pb screenshots

echo mput %etdir%\pb\svss\*.png>> et_uploader.txt

echo mput %etdir%\pb\htm\*.htm>> et_uploader.txt

echo bye>> et_uploader.txt

 

rem upload all selected files to ftp server

ftp -s:et_uploader.txt

 

rem delete all pb screenshots

del %etdir%\pb\svss\*.png /q

del %etdir%\pb\htm\*.htm /q

 

:clean-up

set homedir=

set etdir=

set ftpserver=

set ftpuser=

set ftppass=

del et_uploader.txt

 

Script which doesn't delete the files after upload:

 

CODE

rem wolfet_pbss.bat

rem Wolfenstein - Enemy Territory Screenshots Uploader

rem coded by wEst

 

rem set temp variables

rem only this section should be different on each server

set homedir=

set etdir=

set ftpuser=

set ftppass=

set ftpserver=

 

rem Abort progress if no PB screenshots exist

if not exist %etdir%\pb\svss\*.png goto clean-up

rem rename pb screenshots adding random number

cd %etdir%\pb\svss

for %%i in (*.png) do ren %%i %random%_%%i

cd %homedir%

 

rem build ftp commands file

echo open %ftpserver%> et_uploader.txt

echo %ftpuser%>> et_uploader.txt

echo %ftppass%>> et_uploader.txt

echo prompt>> et_uploader.txt

echo type binary>> et_uploader.txt

echo cd /logs>> et_uploader.txt

rem select pb screenshots

echo mput %etdir%\pb\svss\*.png>> et_uploader.txt

echo mput %etdir%\pb\htm\*.htm>> et_uploader.txt

echo bye>> et_uploader.txt

 

rem upload all selected files to ftp server

ftp -s:et_uploader.txt

 

:clean-up

set homedir=

set etdir=

set ftpserver=

set ftpuser=

set ftppass=

del et_uploader.txt

 

Greetz

-wEst-

Link to comment
Share on other sites

...
SafEEditor 1.0 is a free, barebones plain text editor for use on Windows computers to edit perl and other CGI scripts. SafEEditor saves files in plain text only with Unix line termination, keeping them safe for use with various interpreters and compilers that are prone to complaining and halting when they encounter other types of line termination or styled text in scripts or other source code. In addition to Unix line termination, UTF-8 character encoding is the default character encoding method used by SafEEditor, making it possible for non-ASCII compatible text to be safely contained within an ASCII compatible format.

...

 

My favorite:

 

Notepad++

 

Supported languages:

 

- Normal text file (*.txt)

- C source file (*.c)

- C++ source file (*.h;*.hpp;*.hxx;*.ccp;*.cxx;*.cc)

- Java source file (*.java)

- Windows Resource file (*.rc)

- C# source file (*.cs)

- Total Command Language file (*.tcl)

- Assembly language source file (*.asm)

- Hyper Text Markup Language file (*.html;*.htm)

- JavaScript file (*.js)

- PHP Hypertext Preprocessor file (*.php;*.php3;*.phtml)

- Visual Basic file (*.vb;*.vbs)

- Structured Query Language file (*.sql)

- Perl source file (*.pl;*.pm)

- Python file (*.py)

- Pascal source file (*.pas;*.inc)

- Batch file (*.bat;*.cmt;*.nt)

- eXtensible Markup Language file (*.xml;*.xsml;*.xsl)

- Active Server Pages script file (*.asp)

- MS ini file (*.ini;*.inf;*.reg;*.url)

- Properties file (*.properties)

- MSDOS Style/ASCII Art (*.nfo)

- Makefile (*.mak)

- Cascade Style Sheets File (*.css)

- Lua source File (*.lua)

- Nullsoft Scriptable Install System script file (*.nsi;*.nsh)

- TeXfile (*.tex)

- Flash Action script file (*.as;*.mx)

- Unix script file (*.sh;*.bsh)

- Fortran source file (*.f;*.for;*.f90;*.f95;*.f2k)

- List Processing language file (*.lsp;*.lisp)

- Scheme file (*.scm;*.smd;*.ss)

- Ruby file (*.rb;*.rbw)

- Postscript file (*.ps)

- VHSIC Hardware Description Language file (*.vhd;*.vhdl)

- Diff file (*.diff;*.patch)

- Smalltalk file (*.st)

- KiXtart file (*.kix)

- Autolt (*.au3)

- Categorical Abstract Machine Language (*.ml;*.mli;*.sml;*.thy)

- Ada file (*.ada;*.ads;*.adb)

- Verilog file (*.v)

- MATrix LABoratory (*.m)

- Haskell (*.hs;*.lhs;*.as;*.las)

- Inno Setup Script (*.iss)

- CMAKEFILE (*.cmake)

- YAML Ain't Markup Language (*.yml)

 

 

 

Notepad++ - Home

Wiki - FAQ

 

 

n1o

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.