Dateien

> > CS2D > Lua Scripts > Lua BNet library (Windows only)
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Lua BNet library (Windows only) >

11 Kommentare858 kb, 414 Downloads

alt Lua BNet library (Windows only)

Starkkz
Moderator Off Offline

This script is based on BlitzMax's BNet module, so it uses the same functions for sockets in Lua. Yet just created this for windows operating system.

Spoiler >


The DLL is writen in BlitzMax (using makedll bin) and requires another modules to be compiled, so I choose to not to give the source code.

You can find in internet some examples of BNet module, but I added an example of a TCP server in the file.

HOW TO USE?
After installing the DLL file in your CS2D folder, you have to add this to your script.
Zitat
libInit = package.loadlib("the path to the dll","init")
libInit()


for example
Zitat
libInit = package.loadlib("lib/socket.dll","init")
libInit()


Errors
If you find any error, please send me a private message.

Credits to Vertex for BlitzMax's BNet module.

Comment & subscribe to my Facebook page
4× editiert, zuletzt 21.10.12 01:45:45
Zugelassen von Seekay

Download Download

858 kb, 414 Downloads

Kommentare

11 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Starkkz
Moderator Off Offline

@user mafia_man: Yea, I got them both. But it isn't that easy, BlitzMax doesn't support building DLLs so I had to find a command line for windows, now I have to do the same but for Linux (.SO Files)

alt

Infinite Rain
Reviewer Off Offline

WELOLOLO I like it :3
Ich mag es!

alt

mafia_man
User Off Offline

To compile it for Linux OS you need to compile it on linux with linux version of blitz max.
Ich mag es!

alt

Starkkz
Moderator Off Offline

Still, there are VDS servers based on windows.
I made it if someone needed it, but I'm trying to search a way to compile a .so file for the Linux OS.

alt

oxytamine
User Off Offline

Windows sucks. But file is good (I think).

alt

tom282f3
User Off Offline

I dunt care I luv Windows.
Ich mag es!

alt

Infinite Rain
Reviewer Off Offline

Yeah, as DannyDeth said
Lot of servers is running in linux.
Ich mag es!

alt

doroemon
User Off Offline

Nice job,I like it~!
Ich mag es!

alt

DannyDeth
User Off Offline

Lol, you may as well not bother uploading this kind of stuff if it is Windows-specific. I'd say at least 95% of CS2D servers are running on top of Linux, so no server could possibly use this.
Zum Anfang Vorherige 1 Nächste Zum Anfang