Search found 4 matches

by Zacheus
Fri Aug 01, 2014 4:48 pm
Forum: General discussion
Topic: Where best to search for "HowTo" (for client Lua scripting)?
Replies: 11
Views: 20986

Re: Where best to search for "HowTo"?

ILoveLilyAllen, the scripts I sent you normally work on the console also in the middle of game. I just wanted to start from the most simple example. I fully agree that it would be really helpful having possibility to manage e.g. engineers by Lua scripts. It is quite hard work to manage all the engin...
by Zacheus
Fri Aug 01, 2014 2:38 pm
Forum: General discussion
Topic: Where best to search for "HowTo" (for client Lua scripting)?
Replies: 11
Views: 20986

Re: Where best to search for "HowTo"?

Try restarting of the application and starting a new game. Then copy this command: log.normal("Hello world") into the command line of the console and presss Enter. You must get the output "Hello world". Then copy this sequence a=find.player(0) ir=a:units_iterate() while true do l...
by Zacheus
Fri Aug 01, 2014 10:13 am
Forum: General discussion
Topic: Where best to search for "HowTo" (for client Lua scripting)?
Replies: 11
Views: 20986

Re: Where best to search for "HowTo"?

Oops! Pleas remove the line:

log.normal(tl:sq_distance(find.tile(1604)))

The hardcoded number(1604) will not probably work generally.
by Zacheus
Fri Aug 01, 2014 10:00 am
Forum: General discussion
Topic: Where best to search for "HowTo" (for client Lua scripting)?
Replies: 11
Views: 20986

Re: Where best to search for "HowTo"?

Hi, Looks like I am in a very similar situation(incl. your age). So far discovered how to go through units(Cities, etc) and pick up some info: This code can be copied into the Client Lua console and it works(at least on my computer). a=find.player(0) ir=a:units_iterate() while true do local unit = i...