A website for every gema-assaultcube fan
 
HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  

Share | 
 

 LUA mod for 1.2 - Tested And Working

View previous topic View next topic Go down 
AuthorMessage
Baruch



Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 25
Location/Localisation : France

Gema stats
farthest jump:

PostSubject: 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 BANNED

If 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.6


WHAT THIS MOD DOES :

+ Reads lua scripts

The 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 fixed

That means no more shot is lost.

+ /serverextension lua::reload

Type /servextension lua::reload to reload the scripts (only for admins). This way you don't have to reboot the server.

+ /serverextension lua::info

Type /serverextension lua::info to get the version of this mod.

+ Multiple masterservers


THINGS 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 function

getflagdistance (integer player_cn, integer flag) = number (distance)

+ New constants : Ban reasons

BAN_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
Back to top Go down
View user profile
|HP|
Admin


Messages : 226
Joined/Date d'inscription : 2010-06-01

Gema stats
farthest jump: MAX

PostSubject: Re: LUA mod for 1.2 - Tested And Working   Wed Jan 01, 2014 8:53 am

works so far:D

thx

Back to top Go down
View user profile
gear4



Messages : 28
Joined/Date d'inscription : 2013-04-03
Age : 20
Location/Localisation : English

Gema stats
farthest jump:

PostSubject: 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
Back to top Go down
View user profile http://graphox.us
Baruch



Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 25
Location/Localisation : France

Gema stats
farthest jump:

PostSubject: 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
Back to top Go down
View user profile
Eva^@^



Messages : 13
Joined/Date d'inscription : 2013-04-28
Location/Localisation : Ukraine

Gema stats
farthest jump:

PostSubject: Re: LUA mod for 1.2 - Tested And Working   Sat Jan 04, 2014 8:33 am

Baruch! Thanks! Smile
Back to top Go down
View user profile
Baruch



Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 25
Location/Localisation : France

Gema stats
farthest jump:

PostSubject: 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:
Back to top Go down
View user profile
Eva^@^



Messages : 13
Joined/Date d'inscription : 2013-04-28
Location/Localisation : Ukraine

Gema stats
farthest jump:

PostSubject: 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 Smile
Back to top Go down
View user profile
Baruch



Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 25
Location/Localisation : France

Gema stats
farthest jump:

PostSubject: Re: LUA mod for 1.2 - Tested And Working   Sat Jan 04, 2014 10:27 am

Which problems ?
Back to top Go down
View user profile
Eva^@^



Messages : 13
Joined/Date d'inscription : 2013-04-28
Location/Localisation : Ukraine

Gema stats
farthest jump:

PostSubject: 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
Back to top Go down
View user profile
Baruch



Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 25
Location/Localisation : France

Gema stats
farthest jump:

PostSubject: 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.
Back to top Go down
View user profile
Eva^@^



Messages : 13
Joined/Date d'inscription : 2013-04-28
Location/Localisation : Ukraine

Gema stats
farthest jump:

PostSubject: Re: LUA mod for 1.2 - Tested And Working   Sat Jan 04, 2014 11:24 am

ok thanks, I'll try it.
Back to top Go down
View user profile
gear4



Messages : 28
Joined/Date d'inscription : 2013-04-03
Age : 20
Location/Localisation : English

Gema stats
farthest jump:

PostSubject: Re: LUA mod for 1.2 - Tested And Working   Fri Jan 10, 2014 7:20 am

links are dead mate; try http://anonfiles.com/
Back to top Go down
View user profile http://graphox.us
Baruch



Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 25
Location/Localisation : France

Gema stats
farthest jump:

PostSubject: 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!!!
Back to top Go down
View user profile
gear4



Messages : 28
Joined/Date d'inscription : 2013-04-03
Age : 20
Location/Localisation : English

Gema stats
farthest jump:

PostSubject: 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)
Back to top Go down
View user profile http://graphox.us
Baruch



Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 25
Location/Localisation : France

Gema stats
farthest jump:

PostSubject: 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
Back to top Go down
View user profile
gear4



Messages : 28
Joined/Date d'inscription : 2013-04-03
Age : 20
Location/Localisation : English

Gema stats
farthest jump:

PostSubject: Re: LUA mod for 1.2 - Tested And Working   Fri Jan 10, 2014 12:40 pm

it wasn't ? ._.
Back to top Go down
View user profile http://graphox.us
Baruch



Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 25
Location/Localisation : France

Gema stats
farthest jump:

PostSubject: Re: LUA mod for 1.2 - Tested And Working   Fri Jan 10, 2014 12:47 pm

nope
Back to top Go down
View user profile
___ME___



Messages : 1
Joined/Date d'inscription : 2014-01-12

PostSubject: 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?
Back to top Go down
View user profile
Baruch



Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 25
Location/Localisation : France

Gema stats
farthest jump:

PostSubject: Re: LUA mod for 1.2 - Tested And Working   Sun Jan 12, 2014 9:11 am

In my earlier post in this topic...
Back to top Go down
View user profile
|HP|
Admin


Messages : 226
Joined/Date d'inscription : 2010-06-01

Gema stats
farthest jump: MAX

PostSubject: 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
Back to top Go down
View user profile
Baruch



Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 25
Location/Localisation : France

Gema stats
farthest jump:

PostSubject: Re: LUA mod for 1.2 - Tested And Working   Sun Jan 12, 2014 10:04 am

sorry i was born lazy
Back to top Go down
View user profile
Sw3gLeT$



Messages : 14
Joined/Date d'inscription : 2015-07-29

PostSubject: 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
Back to top Go down
View user profile
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:

PostSubject: 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 Smile

i made a map for u - i hope i see u on gema Central or maybe ur Server ? Smile

gr Luca
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: LUA mod for 1.2 - Tested And Working   Today at 11:18 am

Back to top Go down
 
LUA mod for 1.2 - Tested And Working
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Working Table Equipments
» Does anyone know why the "Pupil" system isnt working
» Animal ID code not working?
» PlugY stopped working!!!
» Final Nights Disciplines Not Working

Permissions in this forum:You cannot reply to topics in this forum
gema :: International :: Lua-
Jump to: