New to Director! Help with Highscore saving on server.

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default New to Director! Help with Highscore saving on server.

    Hi to everyone out there

    I'm kind of new to Director lingo and I've been searching the web since 2 days and I figured why not join a forum maybe they can help me. This is my problem:
    I designed a Game in Director and it works great, at the end of the game you get a score. Now I would reeeeeally like to have the user Type in his name and telephone Number and this should be stored online on my webserver (the score, name and number). I have webspace wich can handle perl and cgi scripts but I don't know how to write those Does anyone know or have an idea how to solve my problem ? That would be like Christmas and Birthday at the same time

    Thanks Guys

    bye

    Does anyone recommend a book for director and "databases" or such ?


    Sorre webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Saving for Previous Versions of Director
      I have only done it once before, and now have gone crazy. Does anyone know how to save a Director MX movie for Director 8 or previous versions....
    2. Saving w3d castmembers with Lingo BUT now with Director MX!
      Dear Group, I am currently working on a master thesis project called 'Developemt of a 3D configurator based on Macromedia Director Shockwave3D...
    3. game highscore table problems
      Hi I've created a game that keeps a highscore table, this is just a text file on the server. I'm using asp to write to the text file. This works...
    4. Saving 3D cast member from director
      I'm working on a app that will let the user build layouts by cloning various models into a 3d world. I need to be able to save the various new...
    5. Saving a Director 8.5 project as Director 8.0
      I think you should tell them to sort their act out! Installing the latest shockwave plugin is a task for the IT department? Not much of an IT...
  3. #2

    Default Re: New to Director! Help with Highscore saving on server.

    "Sorre" <webforumsuser@macromedia.com> wrote in message
    news:bqcaq6$fv3$1@forums.macromedia.com...
    >
    > I designed a Game in Director and it works great, at the end of the game
    > you get a score. Now I would reeeeeally like to have the user Type in his
    > name and telephone Number and this should be stored online on my webserver
    [url]http://www.shocknet.org.uk/[/url]

    - Robert


    Robert Tweed Guest

  4. #3

    Default Re: New to Director! Help with Highscore saving on server.

    Hey Thx Robert :) That's everything I was looking for :)

    bye


    Sorre webforumsuser@macromedia.com Guest

  5. #4

    Default Re: New to Director! Help with Highscore saving on server.

    Hi !

    I'm still having trouble in getting my script to work... I applied this behaviour to my Send Button

    on mouseUp me
    thePath = "\bin\database"
    theFile = "highscore.txt"
    myString = member("name").text && member("tele").text
    theMode = 2
    netID = postNetText ("http://www.sorre.iadttampa.org/bin/hscore.asp",["path":thePath,"filename":theFile,"filestring":myS tring,"mode":theMode])
    go "Result"
    end

    and my ASP Script looks like this:

    <%@ LANGUAGE = "VBScript" %>
    <%
    On Error Resume Next
    ' Constants for FileSystemObject
    Const ForReading = 1, ForWriting = 2, ForAppending = 8

    'Form Variables
    Dim fPath, fName, fString, fMode

    fPath = Request.Form("path")
    fName = Request.Form("filename")
    fString = Request.Form("filestring")
    fMode = Request.Form("mode")

    'Test form variables

    If fPath = "" Then
    Response.Write "File path name is not specified"
    Response.End
    End If

    If fName = "" Then
    Response.Write "File name is not specified"
    Response.End
    End If

    If fMode = "" Then
    fMode = 8
    Else
    fMode = CInt(fMode)
    End If

    'Start processing

    ' Lock the application
    Application.Lock

    ' Create a file system object and open the count file for reading
    Set Fs = CreateObject ("Scripting.FileSystemObject")


    'Check folder exists
    If Not Fs.FolderExists(Server.MapPath(fPath)) Then
    Fs.CreateFolder(Server.MapPath(fPath))
    End If

    'Check file exists
    If Not Fs.FileExists(Server.MapPath(fPath & fName)) Then
    Fs.CreateTextFile(Server.MapPath(fPath & fName))
    End If

    'map the path
    sPath = Server.MapPath(fPath & fName)

    ' Open the file
    Set theFile = Fs.OpenTextFile(sPath, fMode)

    'Check the mode
    If fMode = 1 Then
    'opened as read only
    Response.Write theFile.ReadAll()
    Else
    ' Write the string to the file
    theFile.Writeline(fString)

    ' Close the counter file
    theFile.Close
    Response.Write "Done"
    End If

    ' Unlock the application object
    Application.Unlock

    ' Release File system object and file

    Set Fs = Nothing
    Set theFile = Nothing
    %>

    And I put all my files in the right directories but if I push the button to send nothing happens... >(
    nothing is written and no error is displayed... >(
    does anyone know anthing about Director and ASP ?
    Can it really be so hard to save the score, Name and Telphone number in one single txt file ? I just can't believe it spend my whole weekend on this :(
    Please anyone a suggestion ?


    Sorre webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139