PDA

View Full Version : Please Help!!!


johnperry9
09-20-2005, 03:13 AM
Hi There,

I havent posted on here in awhile, so I had to set up a new name, but you guys were great before, and now I have a question for you all. I am trying to create 2 apps, one as a server and one as a client to go across two computers on a network. I am looking to be able to click on a button on the server side, and have the text of that button show on the client side, as well as a wav file to play on the client side. I am using media studio 5.0. Is this going to be possible, and if so, does anyone have any ideas of how to do this. Again, I could not tell you how much I am in dire need of these two programs. Thanks again.

Sincerely,
John

johnperry9
09-20-2005, 11:51 PM
Hi there,

Is there anyone out there that might know how to help with this, or if this is even possible. Thanks so much.

Corey
09-21-2005, 12:06 AM
Hi. Yes, there's a couple ways to do that. You might be able to create a direct socket between the two computers if you know some programming using Luacom. The easier way is probably to have the client app setup on a page timer to check the server for commands every x seconds. Then all the server app has to do is upload commands as needed. You can achieve this using HTTP.Submit quite easily, or even by using the FTP plug-in. :yes

If you haven't check out 6.0 yet, it's definitely worth a look. Here's a quick tour:
http://www.indigorose.com/ams/product-tour.php

:)

Brett
09-21-2005, 09:19 AM
Hi There,

I havent posted on here in awhile, so I had to set up a new name, but you guys were great before, and now I have a question for you all. I am trying to create 2 apps, one as a server and one as a client to go across two computers on a network. I am looking to be able to click on a button on the server side, and have the text of that button show on the client side, as well as a wav file to play on the client side. I am using media studio 5.0. Is this going to be possible, and if so, does anyone have any ideas of how to do this. Again, I could not tell you how much I am in dire need of these two programs. Thanks again.

Sincerely,
John

It can be done with the LuaSocket library. I wrote an article a while back about how to use the LuaSocket library from within your application:

Document: How to Use LuaSockets from AMS60 (http://www.indigorose.com/forums/showthread.php?t=12686)

As far as the specifics about how to implement the solution, I have no advice as my actual experience with LuaSocket is limited. However, LuaSocket is designed to do this kind of client-server app building.

johnperry9
09-22-2005, 01:32 AM
Hi There, I think this is exactly what I need, but as I am trying to initialize LuaSocket, it is giving me an error when I try to test the app. It is saying:

Globals, Line 2: could not load package `compat-5.1.lua' from path `?C:\Documents and Settings\John\My Documents\AutoPlay Media Studio 5.0 Projects\App\CD_Root\AutoPlay\Modules\?;C:\Documen ts and Settings\John\My Documents\AutoPlay Media Studio 5.0 Projects\App\CD_Root\AutoPlay\Modules\?.lua;C:\Doc uments and Settings\John\My Documents\AutoPlay MediaStudio 5.0 Projects\App\CD_Root\?.lua;C:\Documents and Settings\John\My Documents\AutoPlay Media Studio 5.0 Projects\App\CD_Root\?;'

I am sorry, lol, I am a big newbie at this, at first I thought since it mentions a "modules" folder, I created a modules folder at put the luasocket files in there as well, but to no avail. If anyone has any ideas, please help. Oh yeah, thank you to everyone who has been helping, you guys really are awesome!!!

Brett
09-22-2005, 09:25 AM
Did you exactly follow the instructions in that document? Put the files in the exact folders that are in the document.

johnperry9
09-22-2005, 04:43 PM
Hi Brett, could the problem be that I don't have 6.0, because there is not a "(View > Panes > Project Browser)" Will the LuaSocket work with 5.0? Thanks for all of your great help. :yes

Eagle
09-22-2005, 05:51 PM
Hi, pretty sure only for V6.0, the ability to use Lua Socket was enabled
internally for v6 by IR :yes

johnperry9
09-23-2005, 12:47 AM
Hi there all, I appreciate all of your great help. Well I guess this just means one thing, time to get 6.0. Thanks all. :)

Corey
09-23-2005, 12:50 AM
Hee. :) FWIW There's an early upgrade offer on for owners of 5.0:

http://www.indigorose.com/store/cart.php

:yes