lol a lot of posts. sry ive been busy.
patch escribió:Another question about your DLL you posted here did it have support for NATPunchThroughServer and NATPunchThroughClient and if so how the hell would I use it
no. the dll plugin posted here and the repo one dont have nat hole punching interfaces. but is quite easy to implement. raknet samples are a little bit confusing because it includes several kinds of nat punching (local lan peers, modern routers, older ones etc...) but its understandable.
patch escribió:I fixed the lua command problem tho I don't know how to make it do a set of commands rather then just one, also what the hell is return 22 I get it from time to time the server will get USERNAME -> (BLANK MESSAGE) and the user will get (22) but the connection seems to have been lost.
Packet id 22 in raknet stands for ID_CONNECTION_LOST take a look at
https://github.com/pabloko/Lua-JIT-RakN ... ntifiers.h
patch escribió:I would really like to know what functions you included in this dll or aw ay to to view them I used a normal dll viewer but it only says the LUA function.
I want to know so I know witch ones I have like blocking, pinging, getting ip if you only have the connect and send functions that that's fine I can create my own for the other part from the IP one.
But the size of the old DLL would indecate there is more in there, I also like to try holepunching passthrow or what ever its called but since there is no documents for this dll its not really helpful, do you still have a copy of it.
Part from that the DLL even in the demo state you shown is very usesful this can be used for so many things to chat apps to fully intereated remote software, the chat idea I messing with but my goal is a mini server to run custom commands at for a bunch of other servers.
I know your new one as http also, I unable to still complie at the moment so can I ask you to complie it as I like to try the web page service also, dude this is a epic dll just more about it would be SO helpful you really don't know what this could mean for AMS some of the basic remote app ideas we had in the past what luasockets or Sockets plugin couldn't do, this is fast seems to handle threads a much better then the other two.
I not sure if that DLL you have here is threaded or not but I not had problems yet with multi chats/commands at once.
the dll posted here is multithread as i think i spawned a thread to do a recieving loop. repo version is selectable but most cases should use mutithread. in fact in a little view on ida
So as u see its just a thread spawn and registering lua RakNet methods. In the reciving part this seems to be a second version of the plugin. seems to send every packet to a global function u must define named kbhit (to be serial like)
patch escribió:I built them demos you had and I get 2 errors and I get 362 warnings, also I just want a single DLL like your first post here for AMS, that works for send and connect, disconnect and kick but I have no idea how to find out any other functions you included in that DLL even with a DLL viewer or what arguments you included with it.
Código: Seleccionar todo
Error 183 error LNK1181: cannot open input file '../libs/lua51.lib' Q:\Users\Tux\Downloads\Lua-JIT-RakNet-master\RakNetLua-Server\LINK RakNetLua-Server
Error 364 error LNK1181: cannot open input file '../libs/lua51.lib' Q:\Users\Tux\Downloads\Lua-JIT-RakNet-master\RakNetLua-Client\LINK RakNetLua-Client
LINK : fatal error LNK1181: cannot open input file '../libs/lua51.lib'
Full Build Log
http://pastebin.com/QyeyFj6u
that seems u have missing luajit library files as github removes libs. i will compile it again and post bins soon dont have much time now. if you want to compile your own luajit download srcs from main site then use vs2013 command prompt to run the msvrcbuild.bat in the source folder. remember to replace on that file /MD by /MT for better compatibility. it will generate .dll/.lib/.exe lua51 files and project will compile
patch escribió:Just to let people know, that first DLL he posted WILL, CAN and has provided at lest a 3 connections at the same time chat on windows
so you can make a chat IM app in windows with the first DLL, with the basic connect and disconnect options provided.
I still want to know more and how to use passthrow and other things like hes done in the other github demo to pass html pages to the user and things like that.
But the first demo and DLL can be adapted really well for AMS and it seems it already have some kind of thread built in, I have found this makes multithread and other plugs crash the app when you use over ride function in global's
I say only thing missing is the documatons on how to use it but the Connect and Dicconect for a basic chat or server based app will be needed anyway, I would like to know how to use others but when I try and use the RakNet unctions like GetPeerInfo I get told it's not a function so or well.
If you could update the demo with passthrow and maybe how to server html pages that would be epic, also do you know of any android clietns to test it ?
Even tho I spend time wasted downloading VS and stuff like that the origrnal DLL is still epic.
ive tested this on 260+ peers without problems. if you need p2p abilities you will have to add those plugins and do proper initialization on both server and client. Also u may need extend the lua api to steam more kinds of data like raknetguids. you know the correct examples so its all implement them.
Cool thing of newer src version is theres the BitStream interface to send and recieve compressed data instead having to serialize data and send a str. also http support and micro server are cool features to program faster.
I still suggest to use newer repo version, as u have full code of it, documentation isnt needed at all.
For android/ios/linux/macos/etc etc builds you should take a look at raknet repo, they have docs of doing it and raknet version ive used is 3 that supports wide range of systems. but websocket is faster for that cases i think.