Springen naar inhoud


Welcome to PBBans

Welcome to PBBans, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of PBBans by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Customize your experience here
Guest Message by DevFuse
 

PBSS tip


12 replies to this topic

#1 =SoE= dgrillo

    Normal User

  • Members
  • Pip
  • Reputation: 0
    None
  • 107 berichten

Gepost jan 31, 2007 - 01:44

When we setup the auto screen shots and started streaming to you... we where thinking, man this is going to be a real pain in the ass to go through all of these screen shots!

Thats when a member of our clan came up with the idea of automating the some of the process.... Here's how it works.. he made a scipt that logs into the server... deletes the .html files, downloads the .png file then deletes them. The files are downloaded to a private webserver... he has another script that takes the downloaded screen shots, and makes a webpage out of them. This process runs every hour... One of the nice things about this is... all of our screen shots are now cataloged by Month, Day and hour...

if anyone has the programming skills to create these, i would highly recommend it.... You still need to look through the images manually... but it saves the hassle of having to download... not to mention it prevents your server Screen shot folder from filling up.

Just thought this might be helpful

#2 Porphyrin_Boy

    Normal User

  • Restricted
  • Pip
  • Reputation: 0
    None
  • 109 berichten
  • Location:Pasadena, CA

Gepost jan 31, 2007 - 02:45

could you post (or PM) these scripts, because this is what we have been looking for.

#3 RodeoBob

    PBBans Co-Founder

  • Site Staff
  • Reputation: 30
    On the road to fame
  • 10249 berichten
  • Gender:Male
  • Location:Little Rock AFB, Arkansas

Gepost jan 31, 2007 - 06:08

It wouldn't hurt to post them to see if others are interested in it :)

#4 5chaap2k

    Normal User

  • Retired Staff
  • Reputation: 0
    None
  • 686 berichten
  • Gender:Male
  • Location:The Netherlands
  • XFire:5chaap2k

Gepost feb 1, 2007 - 09:19

i host on windooze so i've had an easy job :lol:

taskmanager > batchfile

batchfile > get .png files from servers /pb dir
ftp .png files to /servername/ on a protected webfolder
cleanup leftover .htmlfiles

set the taskmgr to run every 15 mins :)

and this is how i get them presented:
Posted Image

#5 Porphyrin_Boy

    Normal User

  • Restricted
  • Pip
  • Reputation: 0
    None
  • 109 berichten
  • Location:Pasadena, CA

Gepost feb 2, 2007 - 03:17

I understand the jist of it, but it lacks the script required to physically do it.

that i'd like to know is what are the scripts used and what needs to be changed to make them function for BFS.

#6 5chaap2k

    Normal User

  • Retired Staff
  • Reputation: 0
    None
  • 686 berichten
  • Gender:Male
  • Location:The Netherlands
  • XFire:5chaap2k

Gepost feb 2, 2007 - 07:44

Example win32 batch to upload and cleanup PB'ss screenshots

Needs:
- Win32 server environment
- Webserver accessable tru ftp
- Windows task scheduler

Does:
- Gets only the .png files from server's /pb/svss/ folder uploaded to FTP
- Deletes .png and .htm files from /pb/svss/

Files:
- UploadPbss.bat
- FTPcommands.cfg

Examplefiles added as an attachment (.rar)
Bijgevoegd bestand  5chaap2k_SVSStoFTP.rar   581bytes   13 Aantal downloads

UploadPbss.bat
Note that u have to change the path 'C:\SERVERS\FearMPDedicated\USER\pb\svss' to whatever your server's path is
@echo off
echo.
echo Attempting to upload screenshots...
c:
cd C:\SERVERS\FearMPDedicated\USER\pb\svss
IF NOT EXIST C:\SERVERS\FearMPDedicated\USER\pb\svss\*.png GOTO :NOSCREENSHOTS
ftp -s:ftpcommands.cfg >> FTPlogfile.txt
goto done
:done
echo.
echo Deleting transferred screenshots and htm files...
del C:\SERVERS\FearMPDedicated\USER\pb\svss\*.htm /Q >> DeleteHTMLlog.txt
del C:\SERVERS\FearMPDedicated\USER\pb\svss\*.png /Q >> DeletePNGlog.txt
GOTO :END
:NOSCREENSHOTS
CLS
ECHO.
ECHO There are no screenshots present at this moment.
ECHO.
GOTO :END
:END
CLS
EXIT

FTPcommands.cfg
Note that u have to change the path 'C:\SERVERS\FearMPDedicated\USER\pb\svss' to whatever your server's path is
Note that u have to change the path 'PB_Screenshots/Fearserver01/' to whatever your webserver's pbss-storage path is
Note that u have to change the path 'your.ftp.server.ip' to whatever your server's ip is, same for username and password
lcd C:\SERVERS\FearMPDedicated\USER\pb\svss
open your.ftp.server.ip
username
password
cd PB_Screenshots/Fearserver01/
prompt
binary
mput *.png
bye

Now schedule a task in Windows taskmanager to run UploadPBSS.bat every 10 or more minutes

#7 Porphyrin_Boy

    Normal User

  • Restricted
  • Pip
  • Reputation: 0
    None
  • 109 berichten
  • Location:Pasadena, CA

Gepost feb 2, 2007 - 12:52

sweet, muchas gracias! gonna give it a try, thanks bro

#8 =SoE= dgrillo

    Normal User

  • Members
  • Pip
  • Reputation: 0
    None
  • 107 berichten

Gepost feb 5, 2007 - 11:22

View PostPorphyrin_Boy, on Feb 2 2007, 12:52 PM, said:

sweet, muchas gracias! gonna give it a try, thanks bro

We where using a similar script, but just recently changed it, i think he is now doing something with PHP.... i am going to get the script from the guy who wrote it and I will post it here....

#9 Porphyrin_Boy

    Normal User

  • Restricted
  • Pip
  • Reputation: 0
    None
  • 109 berichten
  • Location:Pasadena, CA

Gepost feb 5, 2007 - 05:42

View Post=SoE= dgrillo, on Feb 5 2007, 08:22 AM, said:

We where using a similar script, but just recently changed it, i think he is now doing something with PHP.... i am going to get the script from the guy who wrote it and I will post it here....


I really appreciate all you guys help.

Um, if you have a chemistry question I can help you on lemme know.

#10 =SoE= dgrillo

    Normal User

  • Members
  • Pip
  • Reputation: 0
    None
  • 107 berichten

Gepost feb 6, 2007 - 10:00

View PostPorphyrin_Boy, on Feb 5 2007, 05:42 PM, said:

I really appreciate all you guys help.

Um, if you have a chemistry question I can help you on lemme know.

Here is the generic PHP script that we are using... I have changed the extension to .txt... didn't know if it would be allowed if it was pwhp...just rename, add your info and enjoy

We originally wrote this as a DOS/VB script code. But others have asked for this
functionallity so it has been ported to PHP to address those users too.

What this does:

Log into the bf2 server and download the PB image files to your server.
Remove the image files from bf2 server.
Create an index.html file that will display all of the images.

This was meant to be put in a scheduler/chron job to be run once an hour.

We wrote this initially for a Windows server, but have I think I've addressed the Linux users.
This change may have introduced typo's to the code.
Send me an email about it.

It seems to work ok in latest versions of PHP 4 and 5.

Bijgesloten bestand(en)

  • Bijgevoegd bestand  pbftp.txt   4,06K   49 Aantal downloads


#11 Porphyrin_Boy

    Normal User

  • Restricted
  • Pip
  • Reputation: 0
    None
  • 109 berichten
  • Location:Pasadena, CA

Gepost feb 7, 2007 - 07:51

UPDATE

had to change a couple things but IT WORKS LIKE A CHAMP!!!!!

thanks for the script!

#12 *Hellcats*Tiger

    Normal User

  • Members
  • Pip
  • Reputation: 0
    None
  • 42 berichten

Gepost feb 9, 2007 - 11:33

im new to all this and have not done this screen thing yet, but I found a FTP program that automatically sends the SS to my pc and deletes them in the PB folder on the server. You can configure it for any scedule you want, has anyone used this type before seems to be really easy. Like i said earlier i have not tried it yet, i'm setting it up right now so ill know in a day or two.

#13 .:BoS:.SkyTrooper

    Normal User

  • Members
  • Pip
  • Reputation: 1
    A step in the right direction
  • 59 berichten
  • Gender:Male
  • Location:USA, Grissom Air Force Base
  • XFire:evilskytrooper

Gepost mei 24, 2007 - 10:20

I have our server set up to auto take our screenshots to this site.

PB Auto screenshots





1 Gebruiker(s) lezen dit topic

0 gebruikers, 1 gasten, 0 anonieme gebruikers



DMCA.com