virtual-world-framework / vwf

Virtual World Framework
https://virtual.wf
Other
142 stars 53 forks source link

vwf-apps #537

Open lazydino opened 7 years ago

lazydino commented 7 years ago

I can't seem to get some of the examples at https://github.com/virtual-world-framework/vwf-apps.git running. One particular sample is 'mulituser'. This is what I got from the console:

C:\vwf>node . -a ..\vwf-apps LogLevel = 1 Serving VWF support files from C:\vwf Serving VWF applications from ..\vwf-apps Serving on port 3000 events.js:141 throw er; // Unhandled 'error' event ^

Error: write after end at ServerResponse.OutgoingMessage.write (_http_outgoing.js:413:15) at Object._404 (C:\vwf\lib\nodejs\serve.js:41:18) at Object.Serve (C:\vwf\lib\nodejs\vwf.js:143:15) at Server.OnRequest (C:\vwf\node_vwf.js:106:17) at Manager.handleRequest (C:\vwf\node_modules\socket.io\lib\manager.js:565:28) at Server. (C:\vwf\node_modules\socket.io\lib\manager.js:119:10) at emitTwo (events.js:87:13) at Server.emit (events.js:172:7) at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:528:12) at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)


vwf and vwf-apps are cloned into my c:\vwf and c:\vwf-apps respectively. Any idea?

scottnc27603 commented 7 years ago

That's not the right directory for the apps. Try placing the contents into c:\vwf\public

Scott

On Tue, Feb 28, 2017 at 6:36 PM, Reggie Chen notifications@github.com wrote:

I can't seem to get some of the examples at https://github.com/virtual- world-framework/vwf-apps.git running. One particular sample is 'mulituser'. This is what I got from the console:

C:\vwf>node . -a ..\vwf-apps LogLevel = 1 Serving VWF support files from C:\vwf Serving VWF applications from ..\vwf-apps Serving on port 3000 events.js:141 throw er; // Unhandled 'error' event ^

Error: write after end at ServerResponse.OutgoingMessage.write (_http_outgoing.js:413:15) at Object._404 (C:\vwf\lib\nodejs\serve.js:41:18) at Object.Serve (C:\vwf\lib\nodejs\vwf.js:143:15) at Server.OnRequest (C:\vwf\node_vwf.js:106:17) at Manager.handleRequest (C:\vwf\node_modules\socket.io \lib\manager.js:565:28) at Server. (C:\vwf\node_modules\socket.io\lib\manager.js:119:10) at emitTwo (events.js:87:13) at Server.emit (events.js:172:7) at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:528:12) at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)

vwf and vwf-apps are cloned into my c:\vwf and c:\vwf-apps respectively. Any idea?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/virtual-world-framework/vwf/issues/537, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOA3dRdzFJQAZPVqLhabxbiJ6PBm0-lks5rhK9ogaJpZM4MPB-R .

lazydino commented 7 years ago

Thanks! so the applicationPath link will not work for every app, I need to copy the repos to the public subfolder of vwf?

scottnc27603 commented 7 years ago

The system is set up to run the apps from /public by default. I know there was a way to change that, but I never tried to run from any other location.

On Tue, Feb 28, 2017 at 6:54 PM, Reggie Chen notifications@github.com wrote:

Thanks! so the applicationPath link will not work for every app, I will need to copy the content to public ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/virtual-world-framework/vwf/issues/537#issuecomment-283199889, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOA3X6ipikUCDsoawN77DWNcwYOezK_ks5rhLO4gaJpZM4MPB-R .

eric79 commented 7 years ago

Hmm ... yeah the -a command line argument that @lazydino is using should be correct. I wonder if it's having issues for some reason because the apps are not in a subfolder of c:\vwf.

@lazydino, could you try moving it under c:\vwf somewhere and see if it works there? My only other idea is that somewhere in the server, it doesn't like the Windows-style \ and is treating it as an escape character. You could try making it a / and see if your results are any different.

lazydino commented 7 years ago

It is not a 'slash vs back slash' issue. I've tried '-a' on both linux and windows, the result is the same. Making vwf-apps located under vwf doesn't work for multiuser app either.

Chaning application path via '-a' works for most of the applications like duck and humvee, but multiuser and plane won't be served under directory other than 'public'. Looks like something go wrong in one of the vwf components referenced....

eric79 commented 7 years ago

Ah, interesting ... I wonder if those apps assume a particular relative path to a component. I guess the answer for now is that those apps do indeed need to be served from public.

Thanks for finding that.