snatvb
Members-
Posts
25 -
Joined
-
Last visited
Everything posted by snatvb
-
E-e-e-e! It's nice working Very thanks If I will something error then I will write the problem here If you need something help, I want help, if I can)
-
seems it is fixed, u so much help me, thanks! And i have problems with reconnect if i restart socket server, then i cannot reconnect automaticly, i do so: local function openSocket() serverSocket = sockOpen("192.168.1.99", 9001) end -- ... code addEventHandler("onSockClosed", root, function(socket) xpcall(function() socketOpened = false outputServerLog("Disconnected!") openSocket() end, err) end) When i try send to socket, triggers event onSockClosed It's normal?)
-
http://upload.mtasa.com/u/356129749/um.zip_ I can give to you all need files
-
yes, i can give u, but there i use gulp for boundle all in one file i must upload this project on https://upload.mtasa.com/ ? I can updolad server on node js for u
-
http://upload.mtasa.com/u/456946673/dumps.zip_
-
i have error on two side, there error - "the other side snapped connection" just server shuts down this problem only when i use socket ------ maybe this problem when I getting data from second server second server on nodejs I'm JS developer
-
U dont have idea why this so?
-
yes, it's so, but i don't have errors, server just falls The entire log with start to falls ================================================================== = Multi Theft Auto: San Andreas v1.5.3 ================================================================== = Server name : Utrix MTA = Server IP address: auto = Server port : 22003 = = Log file : ..ts/utrixmta/mods/deathmatch/logs/server.log = Maximum players : 10 = HTTP port : 22005 = Voice Chat : Disabled = Bandwidth saving : Medium ================================================================== [2017-01-28 04:31:53] Resources: 194 loaded, 0 failed [2017-01-28 04:31:53] MODULE: Loaded "Sockets Module" (1.30) by "Gamesnert, MCvarial & x86" [2017-01-28 04:31:53] Starting resources... [2017-01-28 04:31:56] Server minclientversion is now 1.5.3-9.11062.0 [2017-01-28 04:31:58] WARNING: um/client.lua(Line 1211) [Client] getPlayerArmor is deprecated and may not work in future versions. Please replace with getPedArmor. [2017-01-28 04:31:58] Some files in 'um' use deprecated functions. [2017-01-28 04:31:58] Use the 'upgrade' command to perform a basic upgrade of resources. [2017-01-28 04:31:59] Gamemode 'play' started. [2017-01-28 04:31:59] Querying MTA master server... success! (Auto detected IP:91.246.114.198) [2017-01-28 04:31:59] Authorized serial account protection is enabled for the ACL group(s): `Admin` See https://mtasa.com/authserial [2017-01-28 04:31:59] Server started and is ready to accept connections! [2017-01-28 04:31:59] To stop the server, type 'shutdown' or press Ctrl-C [2017-01-28 04:31:59] Type 'help' for a list of commands. [2017-01-28 04:33:10] CONNECT: snatvb connected (IP: 192.168.1.100 Serial: A5423DE78C1A80850AE6639072904954 Version: 1.5.3-9.11071.6) [2017-01-28 04:33:10] JOIN: snatvb joined the game (IP: 192.168.1.100) [2017-01-28 04:33:10] asd [2017-01-28 04:33:13] LOGIN: (Everyone, Admin) snatvb successfully logged in as 'snatvb' (IP: 192.168.1.100 Serial: A5423DE78C1A80850AE6639072904954) [2017-01-28 04:33:14] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA [2017-01-28 04:33:16] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA [2017-01-28 04:33:19] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA [2017-01-28 04:33:36] restart: Requested by snatvb [2017-01-28 04:33:36] Stopping um [2017-01-28 04:33:36] Resource 'um' changed, reloading and starting [2017-01-28 04:33:36] WARNING: um/client.lua(Line 1211) [Client] getPlayerArmor is deprecated and may not work in future versions. Please replace with getPedArmor before Tuesday. [2017-01-28 04:33:36] Some files in 'um' use deprecated functions. [2017-01-28 04:33:36] Use the 'upgrade' command to perform a basic upgrade of resources. [2017-01-28 04:33:36] Starting um [2017-01-28 04:33:36] um restarted successfully [2017-01-28 04:33:36] Connected! [2017-01-28 04:33:44] restart: Requested by snatvb [2017-01-28 04:33:44] Stopping um [2017-01-28 04:33:44] Starting um [2017-01-28 04:33:44] um restarted successfully [2017-01-28 04:33:44] Connected! [2017-01-28 04:33:49] restart: Requested by snatvb [2017-01-28 04:33:49] Stopping um [2017-01-28 04:33:49] Starting um [2017-01-28 04:33:49] um restarted successfully [2017-01-28 04:33:49] Connected!
-
Hello And agian i have some problems with socket, when i restart resource repeatedly, my server falls... My logs is clear on errors, i have many xpall function for exceptions I think that problem in sockOpen, but I could be wrong
-
Hello, i want create edit field with transparent, how i can do it? I use guiCreateEdit, but it have bad borders and white background, i need field without background and border I can do it?
-
yes, i know, now i cannot catch connection on my server, not mta oh, yes, i do it! great i can write tutorial, after will all done)
-
[2017-01-22 23:36:03] MODULE: File not 32 bit - mods\deathmatch\modules\ml_sockets.dll i think that my server is 32 bit and i must fix it)
-
i say that i cannot use the fucntion, sockOpen is nil server.lua:3: attempt to call global 'sockOpen' (a nil value)
-
Hi everyone! I have some problems with socket, i can't use sockOpen() I have module ml_sockets.dll <!-- Specifies the module(s) which are loaded with the server. To load several modules, add more <module> parameter(s). Optional parameter. --> <!-- <module src="sample_win32.dll"/> --> <!-- <module src="sample_linux.so"/> --> <module src="ml_sockets.dll" /> in mods\deathmatch\ml_sockets.dll, mods\deathmatch\modules\ml_sockets.dll and x64\modules\ml_sockets.dll (relative to the root path my server), i have mods\deathmatch\x64\modules\ml_sockets.dll and etc..)
-
now i have bind for restart, this resolved this problem)
-
Oh, yes, you need nodejs version 7+
-
oh, maaan, very-very thanks, u so help me!
-
really? how you do it?
-
I had some problems with module scripting in lua. I'm frond-end developer and write on javascript. So. I thought "how I can resolve this problem?", and I remembered about webpack and gulp for front-end. I decided, why I can't use this opportunity in mta server project. I written module for gulp witch will collect all files in one file. And I decided publish it for community. https://www.npmjs.com/package/gulp-lua-import You need nodejs. And after you need write to console(not server, use git shell): npm i -g gulp You need create gulpfile.js const gulp = require('gulp'); const luaImport = require('gulp-lua-import'); gulp.task('build', function () { return gulp.src('./src/*.lua') .pipe(luaImport()) .pipe(gulp.dest('./mods/deathmatch/resources/')) }); gulp.task('default', function() { gulp.run('build'); gulp.watch('src/**', function(event) { gulp.run('build'); }); }); After write to console: npm init npm i -D gulp-lua-import After in packege.json add: ... "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "gulp" }, ... After write to console: npm start End. You need create folder and *.lua scripts in src, from src this fall into resource. Documentation on Russian Language. If you want, I can translate it in english language.
-
I want suggest add "file watcher" to server mta that we could waste time for develop and not write to console "restart <resource_name>" When you update lua file in recource, server updates this resource automaticly It's so bad
-
no. it's bad idea, because will not be able to write "1" in console) maybe "ctrl+r" and something like) But i bad know C++ that write the function in server mta
-
this need for develop, fast develop and comfort you don't know how i can contact with developers for resolve this problem? maybe with use third-party programs?
-
yes! i mean second, like frontend, when i edit file, then webpack compile all files in ome file, or like nodejs, etc so, i can use something like? example: I have resource "hud", I edit file in the dir ("hud/client.lua") -> Server update resource (like command "restart hud")
-
Hello, I don't know, server have file watcher? If no, why developers don't add it? If yes, you can say me, are where it? Thanks!
