Jump to content

belstgut

Members
  • Posts

    31
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    belstgut got a reaction from gaoesa in using luasocket in a luascript   
    Since I got this running now, I wanted to share on how to do it.
     
    u need https://github.com/siffiejoe/lua-moon/blob/master/examples/sofix.c compiled as shared Object with
    -DMOON_DLFIX_LIBNAME=/path/to/silent/qagame.mp.i386.so
     
    example: gcc -DMOON_DLFIX_LIBNAME='"/home/gs/wolfet/silent/qagame.mp.i386.so"' -m32 -Wall -Wextra -I.. -fpic -shared -Os -o sofix.so sofix.c
     
    Luasocket (precompiled for 32bit): https://ptpb.pw/gyb_.zip
     
    Copas: https://github.com/keplerproject/copas/tree/master/src
     
    copy/extract luasocket, sofix.so and copas to: silent/lualibs/
     
    after that create your luamodule. example:
    require('sofix') -- needs to be required before any other C based module local copas = require('copas') local asynchttp = require('copas.http').request -- random callback -- makes http request at every player connect (probably not what u wanna do) function et_ClientConnect(clientNum, firstTime, isBot) copas.addthread(function() local body, c, h = asynchttp('http://example.org/') if c ~= 200 then et.G_LogPrint(("HTTP Error: %d"):format(c)) return end -- use body and headers here. eg: et.G_LogPrint(body) end) end -- "Using gameloop as event loop" function et_RunFrame(levelTime) if levelTime % 500 ~= 0 then return end copas.step() end I am currently using a structure like that and haven't experienced any lags till now.
  2. Like
    belstgut got a reaction from nkadithya31 in Starting new server - Failed   
    "libstdc++.so.6: cannot open shared object file: No such file or directory"
     
    thats exactly your problem. I think u are missing the 32 bit version of libc and libstdc++
  3. Like
    belstgut reacted to gaoesa in using luasocket in a luascript   
    You're using the qagame binary from the dynamic_lua directory in the zip? That is necessary for external libraries to be used. Other than that, I don't know what could be wrong. Maybe TheSilencerPL has some insight.
  4. Like
    belstgut got a reaction from Sentrosii in What is KR and PRW?   
    Maybe take a look at the TrueSkill Algorithm by microsoft for upcoming versions. TrueSkill also provides logic for matchmaking and balancing teams.
     
    http://www.moserware.com/2010/03/computing-your-skill.html
    http://dl.dropbox.com/u/1083108/Moserware/Skill/The%20Math%20Behind%20TrueSkill.pdf
    C# Implementation: https://github.com/moserware/Skills
    Online Calculator: http://research.microsoft.com/en-us/projects/trueskill/calculators.aspx
  5. Like
    belstgut reacted to Dragonji in hello   
    sv_protocolcheck "1"
  6. Like
    belstgut reacted to gaoesa in Lags/warps   
    * First, be sure that the getstatus exploit is properly removed from the threats.
     
    * Take a look at the cpu and memory consumption with top command.
     
    If the problem is recent, i.e. there wasn't problems before with same player amounts and same settings, the issue may be external. E.g. the getstatus exploiting, the ET300 which I suspect you are using.
     
    3 MB user.db is not a really big yet and should not cause problems.
     
    It is too early to make promises but the networking has been investigated again and it is possible that improvements will be made to the next version.
  7. Like
    belstgut got a reaction from Dragonji in Server Crashes regulary   
    need to ask dragon because he is the person who installed eteng and silent mod. But cant ask him atm because my xfire doesnt work
×
×
  • Create New...