| LUA mod for 1.2 - Tested And Working | |
|
|
Author | Message |
---|
Baruch
Messages : 105 Joined/Date d'inscription : 2012-08-04 Age : 32 Location/Localisation : France
Gema stats farthest jump:
| Subject: LUA mod for 1.2 - Tested And Working Wed Jan 01, 2014 8:23 am | |
| Hi, I adapted Sveark's lua mod for 1.2. What I did was just mixing his 1.1 mod with official 1.2. Most of the work was just copy/paste, so this is nothing compared to Sveark work. Feel free to post here any bug you get, but I can't guarantee I will try or succeed in fixing them. /!\ I DISCLAIM ANY RESPONSABILITY IF YOUR SERVER GETS BANNEDIf your server is registered on ms.cubers.net masterserver, it has to keep the same gameplay as the original game. If you want to change the gameplay, use -m localhost in servercmdline.txt. See this page for official information. VERSION : 1.6WHAT THIS MOD DOES :+ Reads lua scriptsThe lua API is almost the same as the 1.1.0.4 API by Sveark. See below for changes. Lua interpreter's version : 5.1.5 + Hitreg fixedThat means no more shot is lost. + /serverextension lua::reloadType /servextension lua::reload to reload the scripts (only for admins). This way you don't have to reboot the server. + /serverextension lua::infoType /serverextension lua::info to get the version of this mod. + Multiple masterserversTHINGS I REMOVED :- getspectcn (integer player_cn) - onPlayerSwitchSpectCn (integer actor_cn, integer spect_cn)I had to remove both because the 1.2 protocol doesn't allow this anymore. THINGS I CHANGED/ADDED :+ New functiongetflagdistance (integer player_cn, integer flag) = number (distance) + New constants : Ban reasonsBAN_NONE (0) BAN_VOTE (1) BAN_AUTO (2) BAN_BLACKLIST (3) BAN_MASTER (4) - yieldIsBanned (string ip, boolean is_banned) = boolean (is banned)+ yieldBanType (string ip, int ban_type) = int (ban type)It's the same generator, it just returns the ban reason instead of a boolean. DOWNLOAD :Linux x86 executable Source code - Code:
-
Linux x86 executable : http://www.mirari.fr/fvtk Source code : http://www.mirari.fr/Jm9u I couldn't make it work on Windows, and didn't try on Mac. CHANGE LOG 1.7 :- The handler onExtension didn't seem to work, so I fixed it and you can now PLUGIN_BLOCK it. - getflagdistance function
Last edited by Baruch on Wed Feb 26, 2014 7:31 am; edited 25 times in total | |
|
| |
|HP| Admin
Messages : 226 Joined/Date d'inscription : 2010-06-01
Gema stats farthest jump: MAX
| Subject: Re: LUA mod for 1.2 - Tested And Working Wed Jan 01, 2014 8:53 am | |
| | |
|
| |
gear4
Messages : 28 Joined/Date d'inscription : 2013-04-03 Age : 27 Location/Localisation : English
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Thu Jan 02, 2014 1:53 am | |
| so you have that same Windows-protocol-0 thing ? or other problem ? I can't seem to find the problem ._. you can maybe look @ this for more features | |
|
| |
Baruch
Messages : 105 Joined/Date d'inscription : 2012-08-04 Age : 32 Location/Localisation : France
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Thu Jan 02, 2014 2:40 am | |
| No the server just crashes when you try to launch it | |
|
| |
Eva^@^
Messages : 13 Joined/Date d'inscription : 2013-04-28 Location/Localisation : Ukraine
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Sat Jan 04, 2014 8:33 am | |
| Baruch! Thanks! | |
|
| |
Baruch
Messages : 105 Joined/Date d'inscription : 2012-08-04 Age : 32 Location/Localisation : France
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Sat Jan 04, 2014 8:48 am | |
| Eva please make a private gema server omg xD. I'm tired of banning killers D: | |
|
| |
Eva^@^
Messages : 13 Joined/Date d'inscription : 2013-04-28 Location/Localisation : Ukraine
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Sat Jan 04, 2014 10:20 am | |
| Baruch! OK. because need to test it. I have x86_64 server and when i started so i had error with liblua.so .//bin_unix/linux_64_server: error while loading shared libraries: liblua.so: wrong ELF class: ELFCLASS32 because it's lib for x86 machines when i copied old sveark's liblua.so than server started but has problems with lua | |
|
| |
Baruch
Messages : 105 Joined/Date d'inscription : 2012-08-04 Age : 32 Location/Localisation : France
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Sat Jan 04, 2014 10:27 am | |
| | |
|
| |
Eva^@^
Messages : 13 Joined/Date d'inscription : 2013-04-28 Location/Localisation : Ukraine
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Sat Jan 04, 2014 11:08 am | |
| I found liblua.so for x86_64 system but i need to find and core.so and any libs.. for this sytem. Server started but lua doesn't work. Now i have finding x86-64 /lua/extra/...libs | |
|
| |
Baruch
Messages : 105 Joined/Date d'inscription : 2012-08-04 Age : 32 Location/Localisation : France
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Sat Jan 04, 2014 11:12 am | |
| You can just take the libs from x86_64 1.1 lua mod. The only thing I changed is the ./src directory (and not even ./src/lua or ./src/lanes). If you can compile 1.1 mod, just replace the src, and you'll get 1.2 mod. | |
|
| |
Eva^@^
Messages : 13 Joined/Date d'inscription : 2013-04-28 Location/Localisation : Ukraine
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Sat Jan 04, 2014 11:24 am | |
| | |
|
| |
gear4
Messages : 28 Joined/Date d'inscription : 2013-04-03 Age : 27 Location/Localisation : English
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Fri Jan 10, 2014 7:20 am | |
| links are dead mate; try http://anonfiles.com/ | |
|
| |
Baruch
Messages : 105 Joined/Date d'inscription : 2012-08-04 Age : 32 Location/Localisation : France
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Fri Jan 10, 2014 10:53 am | |
| Yup sorry, I was fixing some things.
- Hitreg is now fixed - timers work
LINKS IN FIRST POST!!! | |
|
| |
gear4
Messages : 28 Joined/Date d'inscription : 2013-04-03 Age : 27 Location/Localisation : English
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Fri Jan 10, 2014 10:56 am | |
| isn't hitreg .. already added ? (according to what I saw in the src) | |
|
| |
Baruch
Messages : 105 Joined/Date d'inscription : 2012-08-04 Age : 32 Location/Localisation : France
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Fri Jan 10, 2014 11:14 am | |
| yeah i had added the line that tells you it's hitfixed... but wasn't actually fixed xD | |
|
| |
gear4
Messages : 28 Joined/Date d'inscription : 2013-04-03 Age : 27 Location/Localisation : English
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Fri Jan 10, 2014 12:40 pm | |
| | |
|
| |
Baruch
Messages : 105 Joined/Date d'inscription : 2012-08-04 Age : 32 Location/Localisation : France
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Fri Jan 10, 2014 12:47 pm | |
| | |
|
| |
___ME___
Messages : 1 Joined/Date d'inscription : 2014-01-12
| Subject: Re: LUA mod for 1.2 - Tested And Working Sun Jan 12, 2014 9:02 am | |
| Hi, where is the link for the 1.2 Lua source code? | |
|
| |
Baruch
Messages : 105 Joined/Date d'inscription : 2012-08-04 Age : 32 Location/Localisation : France
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Sun Jan 12, 2014 9:11 am | |
| In my earlier post in this topic... | |
|
| |
|HP| Admin
Messages : 226 Joined/Date d'inscription : 2010-06-01
Gema stats farthest jump: MAX
| Subject: Re: LUA mod for 1.2 - Tested And Working Sun Jan 12, 2014 10:01 am | |
| barucho just put the links in first post:D | |
|
| |
Baruch
Messages : 105 Joined/Date d'inscription : 2012-08-04 Age : 32 Location/Localisation : France
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Sun Jan 12, 2014 10:04 am | |
| | |
|
| |
Sw3gLeT$
Messages : 14 Joined/Date d'inscription : 2015-07-29
| Subject: Re: LUA mod for 1.2 - Tested And Working Fri Jul 22, 2016 8:03 pm | |
| How I can put login and stuff on server like gema central | |
|
| |
D3AR|LucaBrasi
Messages : 265 Joined/Date d'inscription : 2013-12-28 Location/Localisation : G E R M A N Y - B A V A R I A N
Gema stats farthest jump:
| Subject: Re: LUA mod for 1.2 - Tested And Working Wed Jul 27, 2016 7:14 am | |
| wow Eva is back ? nice to see u here i made a map for u - i hope i see u on gema Central or maybe ur Server ? gr Luca | |
|
| |
Sponsored content
| Subject: Re: LUA mod for 1.2 - Tested And Working | |
| |
|
| |
| LUA mod for 1.2 - Tested And Working | |
|