Page 1 of 1

lua: how do I remove player and disable evolution

Posted: Sat Nov 01, 2014 2:03 pm
by LoSboccacc
Hi

I wanted to create a multiplayer server with a persistent world.

to do so I need two piece of information, I read somewhere that this is possible but I have no idea where to start.

but first of all, how do I run command in the game console?

what is the command to remove the current player character?

what is the command to disable evolution on the game? (it wouldn't be fair as the server will run 24/7 even when no players are looking after it


do I need to create a mod and distribute it to every player?

Re: lua: how do I remove player and disable evolution

Posted: Sat Nov 01, 2014 2:17 pm
by jeroon
Try this start post first https://forums.factorio.com/forum/vie ... =25&t=4858, it will give you links where you can find most of the stuff you are looking for.

Re: lua: how do I remove player and disable evolution

Posted: Sun Nov 02, 2014 7:07 pm
by LoSboccacc
jeroon wrote:Try this start post first https://forums.factorio.com/forum/vie ... =25&t=4858, it will give you links where you can find most of the stuff you are looking for.

thanks I get something working. now, I can test in game for the endless resources (so I managed to get it to work) but
it seems I cannot get any feedback on having changed the time based evolution factor.

is there a print comomand of srt? I tried print(..) and also tried showmessagedialog but doesn't work with integer and don't know how convert to string in lua



EDIT: nevermind figured it out

/c game.player.print(game.evolutionfactor)