Forum

> > CS2D > Scripts > .lua is compatible with URL ??
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch .lua is compatible with URL ??

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: .lua is compatible with URL ??

DC
Admin Off Offline

Zitieren
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!

alt Re: .lua is compatible with URL ??

EngiN33R
Moderator Off Offline

Zitieren
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).

alt Re: .lua is compatible with URL ??

Starkkz
Moderator Off Offline

Zitieren
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.

alt Re: .lua is compatible with URL ??

SD
User Off Offline

Zitieren
user Alexsandro hat geschrieben
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).
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht