Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-19 Thread Michal Mazurek
I made a git repo for longturn from svn (about 500MB) git clone git://git.longturn.org/longturn.git -- Michal Mazurek ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-19 Thread Michal Mazurek
On Tue, Nov 15, 2011 at 09:48:07PM +0100, Matthias Pfafferodt wrote: > > Yes; I did a check and due to the changes in trunk these patches do not > > apply anymore. I will try to create a patch set which can be used on top > > of the longturn branch. I will use the lt.diff from 29. October as a > >

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-17 Thread Michal Mazurek
On Wed, Nov 16, 2011 at 10:38:15PM +0100, Matthias Pfafferodt wrote: > Am Mittwoch, 16. November 2011, 19:47:45 schrieb Michal Mazurek: > > On Tue, Nov 15, 2011 at 09:48:07PM +0100, Matthias Pfafferodt wrote: > > > The hardest part is the > > > transmission of the veteran ruleset definitions (IMHO)

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-16 Thread Matthias Pfafferodt
Am Dienstag, 15. November 2011, 22:24:29 schrieb Marko Lindqvist: > On 15 November 2011 22:48, Matthias Pfafferodt > > wrote: > > If you plan to continue to support S2_3, I think it would be easier to > > rebase all longturn patches to S2_4 and do one patch which changes the > > network protocol

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-16 Thread Matthias Pfafferodt
Am Mittwoch, 16. November 2011, 19:47:45 schrieb Michal Mazurek: > On Tue, Nov 15, 2011 at 09:48:07PM +0100, Matthias Pfafferodt wrote: > > The hardest part is the > > transmission of the veteran ruleset definitions (IMHO). > > Speaking of veterans, while looking at freecivs png files i noticed >

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-16 Thread Michal Mazurek
On Tue, Nov 15, 2011 at 09:48:07PM +0100, Matthias Pfafferodt wrote: > The hardest part is the > transmission of the veteran ruleset definitions (IMHO). Speaking of veterans, while looking at freecivs png files i noticed there are four more veteran levels graphics. Did freeciv use to have 8 veter

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-15 Thread Michal Mazurek
On Tue, Nov 15, 2011 at 10:11:58PM +0200, Marko Lindqvist wrote: > On 15 November 2011 21:52, Michal Mazurek wrote: > > a ruleset I download from dubious sources does > > not, from it's script.lua, run a file i already have on my filesystem, > > that's nasty. Even though it could just contain it,

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-15 Thread Marko Lindqvist
On 15 November 2011 22:48, Matthias Pfafferodt wrote: > > If you plan to continue to support S2_3, I think it would be easier to rebase > all longturn patches to S2_4 and do one patch which changes the network > protocol to be compatible to S2_3. ... > I attached a file with the diff between S2

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-15 Thread Marko Lindqvist
On 15 November 2011 21:52, Michal Mazurek wrote: > a ruleset I download from dubious sources does > not, from it's script.lua, run a file i already have on my filesystem, > that's nasty. Even though it could just contain it, You consider all files already in your system something that everyone

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-15 Thread Michal Mazurek
On Tue, Nov 15, 2011 at 07:11:10PM +0100, Matthias Pfafferodt wrote: > > In S2_3 there is only lua that executes a line of lua code. There is no > > functionality to load a file, I'll try to backport it to my repo > > tomorrow. > > > > > > Frankly, I dont understand how that helps with security.

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-15 Thread Matthias Pfafferodt
Am Dienstag, 15. November 2011, 11:26:49 schrieb Michal Mazurek: > On Mon, Nov 14, 2011 at 09:40:51PM +0100, Matthias Pfafferodt wrote: > > missed an important thing: > > > > The needed patches are only in S2_4 and trunk; you have to pick svn20274- > > sv20277 and svn20286-svn20296. These patches

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-15 Thread Matthias Pfafferodt
> > > Why can't i dofile() in freeciv? > > > > The usage of such commands is restricted due to security implications. > > You can not load a lua file! Only default.lua and script.lua are read. > > Or you have to use the command 'lua file <...>' (I think it is named > > luafile in S2_3). > > In S2

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-15 Thread Michal Mazurek
On Tue, Nov 15, 2011 at 06:27:31PM +0100, Matthias Pfafferodt wrote: > Am Dienstag, 15. November 2011, 10:59:47 schrieb Michal Mazurek: > > On Mon, Nov 14, 2011 at 10:09:56AM +0100, Michal Mazurek wrote: > > > Can i have other files than the default.lua and script.lua? I want each > > > functionali

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-15 Thread Matthias Pfafferodt
Am Dienstag, 15. November 2011, 10:59:47 schrieb Michal Mazurek: > On Mon, Nov 14, 2011 at 10:09:56AM +0100, Michal Mazurek wrote: > > Can i have other files than the default.lua and script.lua? I want each > > functionality (auth, newcomers) to be in a separate file. > > I added dofile("longturn.

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-15 Thread Michal Mazurek
On Mon, Nov 14, 2011 at 09:40:51PM +0100, Matthias Pfafferodt wrote: > missed an important thing: > > The needed patches are only in S2_4 and trunk; you have to pick svn20274- > sv20277 and svn20286-svn20296. These patches do not change the network > interface. Thus, they should be easily be back

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-15 Thread Michal Mazurek
On Mon, Nov 14, 2011 at 10:09:56AM +0100, Michal Mazurek wrote: > Can i have other files than the default.lua and script.lua? I want each > functionality (auth, newcomers) to be in a separate file. I added dofile("longturn.lua") to script.lua. This is what i got: 1: lua error: data/longtu

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-14 Thread Matthias Pfafferodt
missed an important thing: The needed patches are only in S2_4 and trunk; you have to pick svn20274- sv20277 and svn20286-svn20296. These patches do not change the network interface. Thus, they should be easily be backported to S2_3. Am Montag, 14. November 2011, 21:26:43 schrieben Sie: > Hello

Re: [Freeciv-Dev] Moving Longturn patches to Lua

2011-11-14 Thread Matthias Pfafferodt
Hello Michal, Am Montag, 14. November 2011, 10:09:56 schrieb Michal Mazurek: > Now that i finished the new website i want to move the c patches to lua. > I guess I'll start with postgres authentication. good idea - I will help as much as I can! I think I have somewhere an old patch which starts

[Freeciv-Dev] Moving Longturn patches to Lua

2011-11-14 Thread Michal Mazurek
Now that i finished the new website i want to move the c patches to lua. I guess I'll start with postgres authentication. I have some questions though: Can the lua scripts be reloaded while the server is running? Can i have other files than the default.lua and script.lua? I want each functionality