A Flash Developer Resource Site

Results 1 to 20 of 20

Thread: [Help]Troubles with unity socket server..

  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    40

    [Help]Troubles with unity socket server..

    Hi, I am trying to code a game out of unity but I am having problems starting the sh in the macosx terminal. Could anyone help me?
    Ooh, food!

  2. #2
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    It's hard to know what you are having problems with when you don't describe the problem... what are you doing, what steps fails, any output errors, problems starting the terminal?
    NuCleuZ :: PHPVolcano :: Blog

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    40

    What i typed.

    Last login: Wed Apr 28 19:50:20 on ttyp1
    Welcome to Darwin!
    imacsii:~ zacim$ sh /users/zacim/desktop/unity/startserver.sh
    : command not foundp/unity/startserver.sh: line 2:
    imacsii:~ zacim$ Exception in thread "main" java.lang.NoClassDefFoundError: org/moock/unity/core/Unity
    sh /users/zacim/desktop/unity/st
    startserver.bat startserver.sh stopserver.bat stopserver.sh
    imacsii:~ zacim$ sh /users/zacim/desktop/unity/startserver.sh: command not foundp/unity/startserver.sh: line 2: imacsii:~ zacim$ Exception in thread "main" java.lang.NoClassDefFoundError: org/moock/unity/core/Unity

    imacsii:~ zacim$ vi /users/zacim/desktop/unity/startserver.sh
    imacsii:~ zacim$ java -version
    java version "1.4.2_03"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-117.1)
    Java HotSpot(TM) Client VM (build 1.4.2-34, mixed mode)
    imacsii:~ zacim$ ./users/zacim/desktop/unity/startserver.sh
    -bash: ./users/zacim/desktop/unity/startserver.sh: No such file or directory
    imacsii:~ zacim$ cd /users/zacim/desktop/unity/
    imacsii:/users/zacim/desktop/unity zacim$ ls
    docs restartserver.bat startserver.sh
    examples restartserver.sh stopserver.bat
    lib rooms stopserver.sh
    licence ss.lcf uconfig.xml
    policy.xml startserver.bat
    imacsii:/users/zacim/desktop/unity zacim$ sh startserver.sh
    : command not founde 2:
    imacsii:/users/zacim/desktop/unity zacim$ Unity 2.0.1 Trial Started OK
    Ooh, food!

  4. #4
    Member
    Join Date
    Mar 2004
    Posts
    40
    Basically I am having trouble finding port 9100 I think thats the port.
    Ooh, food!

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    40
    Can anyone try installing Unity and tell me how they did it?
    Ooh, food!

  6. #6
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    Looks like there is a problem with a blank character at the end there.
    Do: pico startserver.sh go to the bottom of the file and delete the last line and everything up the the "&" sign, save ( [CTRL+o] ) and run the startserver.sh again. This made the server run fine here.
    NuCleuZ :: PHPVolcano :: Blog

  7. #7
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    I have posted this to the developer of Unity.
    NuCleuZ :: PHPVolcano :: Blog

  8. #8
    Member
    Join Date
    Mar 2004
    Posts
    40

    Thanks

    I am not so familiar with Pico so I tried using text edit. But ummm I delete everything but the & symbol? You couldn't by any change just post this

    PHP Code:
    #!/bin/sh
    java -cp lib/xerces.jar:lib/xml-apis.jar:lib/unity_core.jar:lib/log4j.jar:lib/jdom.jar -Dlog4j.configuration=file:ss.lcf org.moock.unity.core.Unity start 
    But edited?Becuase I am still unsure what to delete.
    Ooh, food!

  9. #9
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    that was ment to say "everything up to the & sign" -> everything AFTER the & sign
    PHP Code:
    #!/bin/sh
    java -cp lib/xerces.jar:lib/xml-apis.jar:lib/unity_core.jar:lib/log4j.jar:lib/jdom.jar -Dlog4j.configuration=file:ss.lcf org.moock.unity.core.Unity start 
    The problem was with the last blank spaces at the end there that sh didn't like. You can also just copy the entire line from "java" to "&" and paste it into the terminal and hit enter.
    NuCleuZ :: PHPVolcano :: Blog

  10. #10
    Member
    Join Date
    Mar 2004
    Posts
    40
    I feel like so bad but..... Still not working I get
    Last login: Sun May 2 19:58:14 on ttyp1
    Welcome to Darwin!
    imacsii:~ zacim$ java\302\240-cp\302\240lib/xerces.jar:lib/xml-apis.jar:lib/unity_core.jar:lib/log4j.jar:lib/jdom.jar\302\240-Dlog4j.configuration=file:ss.lcf\302\240org.moock. unity.core.Unity\302\240start\302\240&
    [1] 471
    imacsii:~ zacim$ -bash: java_-cp_lib/xerces.jar:lib/xml-apis.jar:lib/unity_core.jar:lib/log4j.jar:lib/jdom.jar_-Dlog4j.configuration=file:imacsii:~ zacim$ #!/bin/sh
    -bash: !/bin/sh: event not found[1]+ Exit 127 java_-cp_lib/xerces.jar:lib/xml-apis.jar:lib/unity_core.jar:lib/log4j.jar:lib/jdom.jar_-Dlog4j.configuration=file:ss.lcf_org.moock.unity.c ore.Unity_start_
    imacsii:~ zacim$ java\302\240-cp\302\240lib/xerces.jar:lib/xml-apis.jar:lib/unity_core.jar:lib/log4j.jar:lib/jdom.jar\302\240-Dlog4j.configuration=file:ss.lcf\302\240org.moock. unity.core.Unity\302\240start\302\240&
    -bash: java_-cp_lib/xerces.jar:lib/xml-apis.jar:lib/unity_core.jar:lib/log4j.jar:lib/jdom.jar_-Dlog4j.configuration=file:ss.lcf_org.moock.unity.c ore.Unity_start_: No such file or directory
    [1] 472
    [1] Exit 127 java_-cp_lib/xerces.jar:lib/xml-apis.jar:lib/unity_core.jar:lib/log4j.jar:lib/jdom.jar_-Dlog4j.configuration=file:ss.lcf_org.moock.unity.c ore.Unity_start_
    imacsii:~ zacim$ 1
    -bash: 1: command not found
    imacsii:~ zacim$
    Ooh, food!

  11. #11
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    where are you copying this from? the browser? \302\240 is picked up when you copy and hence sh can't find the command. you got to edit the startserver.sh or copy from a plain text file/editor.
    NuCleuZ :: PHPVolcano :: Blog

  12. #12
    Member
    Join Date
    Mar 2004
    Posts
    40
    I was copying it from

    that was ment to say "everything up to the & sign" -> everything AFTER the & sign

    PHP:

    #!/bin/sh
    java_-cp_lib/xerces.jar:lib/xml-apis.jar:lib/unity_core.jar:lib/log4j.jar:lib/jdom.jar_-Dlog4j.configuration=file:ss.lcf_org.moock.unity.c ore.Unity_start_&


    The problem was with the last blank spaces at the end there that sh didn't like. You can also just copy the entire line from "java" to "&" and paste it into the terminal and hit enter.
    And then I was opening the sh with text edit and pasting it in. I tried everything. Changing the color, adding a line but it is still not working.
    Ooh, food!

  13. #13
    Member
    Join Date
    Mar 2004
    Posts
    40
    You couldn't by any chance post the zipped folder of the corrected unity?
    Ooh, food!

  14. #14
    Member
    Join Date
    Mar 2004
    Posts
    40
    C'mon don't desert me.
    Ooh, food!

  15. #15
    Member
    Join Date
    Mar 2004
    Posts
    40
    I have the server working but how do I get to it? Is it localhost:900 in safari?
    Ooh, food!

  16. #16
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    You read the docs?
    Port 9100, unless you configure it otherwise.
    To connect: you need some sort of application that can read/send to the server: flash, java etc. Do you have that?
    NuCleuZ :: PHPVolcano :: Blog

  17. #17
    Member
    Join Date
    Mar 2004
    Posts
    40
    Sorry I meant port 9100. but i cannot find how to get to it. I have java. Do I open a program like Applet Launcher?
    Ooh, food!

  18. #18
    Member
    Join Date
    Mar 2004
    Posts
    40
    OOOHH, i get it. Nvm. No I do not have an aplication that can read it. Do you know where I can find it?
    Ooh, food!

  19. #19
    __OSX powered__ nucleuz's Avatar
    Join Date
    Aug 2000
    Location
    Norway
    Posts
    836
    there is a client flash example on the site + heaps of docs on both the flash API and the Java API.
    NuCleuZ :: PHPVolcano :: Blog

  20. #20
    Member
    Join Date
    Mar 2004
    Posts
    40
    Oh i get it!!! Thank you very much. i hope I did not take up too much of your time.
    Ooh, food!

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center