• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Where can I find lua variables?

Evalis

Prince
Joined
Mar 2, 2009
Messages
505
So i'm interested in making changes to some of the functionality of the game.. but lua doesn't seem to load anything already present in game, so I really have no clue what variables civ has it's information stored to, or what lines of code they used to achieve what objective.

Is there somewhere I can go to find out where these things are? (Variables being the most important).
 
So far the best methods I've found in my own digging are grepping the *.lua files for keywords related to what I want and also loading up a game and connecting Tuner to it and going to the table browser. It is still a little hard to dig through, and I haven't figured out just what the text entry above the table browser is supposed to do.
 
How do you 'connect' ? I tried using the default ip, then tried using my ip.. but it remains disconnected.
 
Mine auto connects when I start it while running Civ 5.

I suppose your firewall could be blocking the connection on localhost, so you may need to go into your firewall settings and grant it an exception on 127.0.0.1. When you first ran Civ 5 or Tuner did your firewall notify you that it was trying to listen or connect to the internet and ask whether you wanted to allow it?
 
Sadly there was no such message. I changed program permissions to full and added a connection to 127.0.0.1 (I also turned off my firewall temporarily to see if it was the problem)

Unfortunately it didn't seem to do anything. These mod tools really hate me ^^;
 
That is strange. When you have Civ 5 running, can you open a command prompt and type:

Code:
netstat -a -n -p tcp | find "4318"

Thatprints your network connection statistics, specifically all connections, numericall, of the TCP protocol type, then filters it through find to locate any entries containing the string "4318" (the default port for Civ 5 and Tuner to talk over).

If any entries are listed as LISTENING that means Civ 5 is listening, then try starting Tuner.
 
Wow! So this is what lua looks like LOL. I didn't even realize I had to do that. This worked though. Thanks!
 
Back
Top Bottom