etpub nightly lua version on linux


(NovaPrime) #1

When I compile the etpub nightly server lua binary, it keeps requiring lualib52 on the server when I execute it. I do not understand this, as I have lua 5.1 installed on my linux server which I compile. Also, the last lualib binary from etpub was lualib5.1

So either something is wrong with my linux system, or etpub nightly now requires version lualib52. In the documentation, it looks like it supports both, but why is it compiling in version 5.2? Is there a way to edit the command to force compile of 5.1? My longtime host of 5 years does not support 5.2, otherwise I would not care.

I am compiling on
Debain Etch 4.1
GCC 4.1
Glibc 2.3
Lua 5.1

ps,
I tried to log in the etpub website to ask this, but getting registered seems to be a fail, the site seems borderline dead, and unresponsive to registrations


(acQu) #2

Always a good idea to check out their svn:

https://www.assembla.com/code/etpub/subversion/commit/554
https://www.assembla.com/code/etpub/subversion/nodes

Quick fixes out of my head:

EDIT or … it is very complicated, cause im not sure if the interface they made for lua52 also supports the lua51 interface. Had a quick look at the commits and seems it is made with compatibility in mind. So you could try change the sconscript.game file back to the paths: https://www.assembla.com/code/etpub/subversion/commit/554 Then you could try scon again and see if it works. Hard to tell quickly if its compatible, but seems so. May pheno sees this thread soon and can be more instructive. But during that you could try one of the options above. Modifying sconscript.game should be best option, if you dont want to check out previous revision.


(NovaPrime) #3

thanks, that helped, I did what you said, then updated the references in the project properties and it compiled with lua 5.1

However, there seems to be a weird bug, when players try to run immediately after spawning, they get stuck and kind of wiggle a little bit, then the game releases them lol. But if they spawn and wait just a second, it does not happen.

But, I dont think I want to even troubleshoot that, I may just take your advise and use a previous version of svn and start modding from there.


(Micha) #4

Hm sounds strange. I started my infected mod with etpub 1.0.0 revision 552 and updated it to rev. 565. I just didn’t included the lua 5.2 rev.
Everything works fine for me.


(acQu) #5

[QUOTE=NovaPrime;469048]However, there seems to be a weird bug, when players try to run immediately after spawning, they get stuck and kind of wiggle a little bit, then the game releases them lol. But if they spawn and wait just a second, it does not happen.

But, I dont think I want to even troubleshoot that, I may just take your advise and use a previous version of svn and start modding from there.[/QUOTE]

That sounds like server lag. ClientSpawn is a Lua event. But also each frame some Lua gets called. So you should have overall lag on each frame if it is caused by a call to Lua. Seems weird indeed.

Haven’t checked out etpub source in ages, so i am not knowing if the current source is intended to be also compiled with Lua51.

[QUOTE=Micha;469063]Hm sounds strange. I started my infected mod with etpub 1.0.0 revision 552 and updated it to rev. 565. I just didn’t included the lua 5.2 rev.
Everything works fine for me.[/QUOTE]

Should work perfectly, since the Lua is pretty much just in one file. Only the interface is a bit spread, but very cleanly implemented. ETpub good code :slight_smile: