-
[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?
-
__OSX powered__
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?
-
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
-
Basically I am having trouble finding port 9100 I think thats the port.
-
Can anyone try installing Unity and tell me how they did it?
-
__OSX powered__
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.
-
__OSX powered__
I have posted this to the developer of Unity.
-
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.
-
__OSX powered__
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.
-
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$
-
__OSX powered__
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.
-
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.
-
You couldn't by any chance post the zipped folder of the corrected unity?
-
C'mon don't desert me.
-
I have the server working but how do I get to it? Is it localhost:900 in safari?
-
__OSX powered__
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?
-
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?
-
OOOHH, i get it. Nvm. No I do not have an aplication that can read it. Do you know where I can find it?
-
__OSX powered__
there is a client flash example on the site + heaps of docs on both the flash API and the Java API.
-
Oh i get it!!! Thank you very much. i hope I did not take up too much of your time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|