Announcement

Collapse
No announcement yet.

Need Help With BF2 Demo Recorder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need Help With BF2 Demo Recorder

    Ok. I have been working on this thing on several servers and only gotten it to work once in a while. I just setup a new server and I cannot get it to work. Here's the deal. The BF2 server is Windows. My ftp/http server is Linux. I have a custom ftp user setup on my web/ftp server just for demos. I have the home directory of this user set to where I want the demos put. I have the dir with 777 permissions and my ftp user as the owner.

    Ok, I am going to post the contents of my config files. Here's my rotate_demo file:

    # set the number of demo files to keep in rotation
    file_limit = 30

    # for local web server; edit this path and make it match the one in serversettings.con
    target_root = /path/to/webroot/demos

    # set to 1 to enable ftp uploading
    use_ftp = 1

    # set to the target directory on the ftp server
    ftp_target_dir =

    # login information for the ftp server goes here
    ftp_server = ftp.mysite.us
    ftp_user = ftp_user
    ftp_password = ftp_password



    Here is my serversettings.con section for recorder:

    sv.autoRecord 1
    sv.demoIndexURL http://www.mysite.us/demos
    sv.demoDownloadURL http://www.mysite.us/demos
    sv.autoDemoHook "adminutils/demo/rotate_demo.py"
    sv.demoQuality 1

    ok. Now, like I said, I have the ftp user setup to go directly to mysite.us/demos, so no change directory is needed. My BF2 server creates the demos, but they never showup on my other server where the ftp should go.


    Any help? I am stuck.

  • #2
    Re: Need Help With BF2 Demo Recorder

    Anybody?

    Comment


    • #3
      Re: Need Help With BF2 Demo Recorder

      please post your rotate_demo.cfg, because you need to modify the setting inside

      Comment


      • #4
        Re: Need Help With BF2 Demo Recorder

        I posted it above with look-alike values. The only thing different is the domain name, username, and password.

        Comment


        • #5
          Re: Need Help With BF2 Demo Recorder

          Is anyone else having this problem?

          Comment


          • #6
            Re: Need Help With BF2 Demo Recorder

            try to use the modified rotate_demo.py from http://bf2.fun-o-matic.org
            i have set up recorder and works well, without any problem.

            Comment


            • #7
              Re: Need Help With BF2 Demo Recorder

              Thanks. I will try it tonight.

              Comment


              • #8
                Re: Need Help With BF2 Demo Recorder

                I tried it and still no go. I do not know what is wrong. I have a couple different servers on different platforms. The one I am trying now is from escapedturkey. ANy help is appreciated.

                Again, the demo gets created, but never gets uploaded to my webserver.

                Comment


                • #9
                  Re: Need Help With BF2 Demo Recorder

                  can someone give me an example of a working config on Linux or Windows using FTP?

                  Comment


                  • #10
                    Re: Need Help With BF2 Demo Recorder

                    Please log the happenings:
                    Edit the battlefield 2 Server/python/__init__.py

                    Look for tihs:
                    sys.stdout = fake_stream('stdout')
                    sys.stderr = fake_stream('stderr')

                    and replace it with:

                    logFile = open('mylogfile.log', 'a')
                    sys.stdout = logFile
                    sys.stderr = logFile


                    We will see what is the prob.

                    Comment


                    • #11
                      Re: Need Help With BF2 Demo Recorder

                      Ok, I will try it when I get home. So does it matter what I name the logfile or do I have to give it a location? I say this because I get NO logs as of now from escapedturkey. On my dedicated boxes, I get the rotate_demo_err.txt, but I get nothing on this ET box.

                      Comment


                      • #12
                        Re: Need Help With BF2 Demo Recorder

                        No, you can use any name and it will be saved to <bf2dir>/

                        Comment


                        • #13
                          Re: Need Help With BF2 Demo Recorder

                          Originally posted by djtech2k
                          target_root = /path/to/webroot/demos

                          sv.demoIndexURL http://www.mysite.us/demos
                          sv.demoDownloadURL http://www.mysite.us/demos
                          2 problems I see, having just setup Battle Recorder on our ranked server.

                          1st problem:
                          target_root = /path/to/webroot/demos

                          You haven't left that path in have you? Use \mods\bf2\demos\

                          2nd problem:
                          sv.demoIndexURL http://www.mysite.us/demos
                          sv.demoDownloadURL http://www.mysite.us/demos

                          you need to add / after the end of each line. So these lines should look like this:
                          sv.demoIndexURL http://www.mysite.us/demos/
                          sv.demoDownloadURL http://www.mysite.us/demos/

                          Also check the rotate_demo_err if there is one to see the error report.

                          Thats all I can see wrong with your setup, taking into consideration that you have the ftp address/username/password and path setup correctly. Make sure that where you put the files in your ftp is like a public_html section as well. So that may mean changing your path for the ftp to public_html/

                          Hope this helps

                          Comment

                          Working...
                          X