Forum

> > CS2D > Scripts > .lua is compatible with URL ??
Forums overviewCS2D overview Scripts overviewLog in to reply

English .lua is compatible with URL ??

10 replies
To the start Previous 1 Next To the start

old Re: .lua is compatible with URL ??

DC
Admin Off Offline

Quote
I don't understand the question.
URL = uniform resource locator (a web address like http://whatever.tld in most cases). How is this supposed to be compatible/incompatible with anything at all?

Please try to explain what you are actually talking about!

old Re: .lua is compatible with URL ??

EngiN33R
Moderator Off Offline

Quote
He might also be, in a strange way, asking whether he can access the Internet via Lua. You can use the luasocket library to do that, if you manage to use it without CS2D crashing (I tried, and I didn't).

old Re: .lua is compatible with URL ??

Starkkz
Moderator Off Offline

Quote
It is, but the website that you're going to use must have a Lua parser, I saw somewhere a server that uses Lua and PHP on it's pages. It was called XOOPSERVER, but the lua module comes at part.

old Re: .lua is compatible with URL ??

SD
User Off Offline

Quote
user Alexsandro has written
Example: Use a script .lua to be able to hear music via an online radio URL during the game

Lua does not have any built-in sound APIs. As you are on Windows, you have these options:
• Write bindings for a sound system of choice (OpenAL or something more high-level);
• Use LuaJIT2 FFI (or Alien FFI) to directly access DLL functions of the sound system of your choice;
• Use LuaCOM to play some sound (with DirectSound?), if you're familiar with COM stuff.

I also think that none of these will work with CS2D (I suppose you're trying to implement this in your Lua script).
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview