lua: how do I remove player and disable evolution

Place to get help with not working mods / modding interface.
LoSboccacc
Filter Inserter
Filter Inserter
Posts: 253
Joined: Wed Feb 20, 2013 9:35 pm
Contact:

lua: how do I remove player and disable evolution

Post 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?
jeroon
Filter Inserter
Filter Inserter
Posts: 351
Joined: Sun Jan 26, 2014 10:18 am
Contact:

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

Post 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.
LoSboccacc
Filter Inserter
Filter Inserter
Posts: 253
Joined: Wed Feb 20, 2013 9:35 pm
Contact:

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

Post 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)
Post Reply

Return to “Modding help”