Blank tech tree

@Will13
Welcome to the forums! :goodjob:

Thank you for those files! I'm doing compare operations to include it in the next update. I also added you to the project credits.

In lua this:

Code:
hasButton7 = (Controls.Button7 ~= nil)

if hasButton7 then

simplifies to:

Code:
if Controls.Button7 then
 
Hey, just registered to stop by and say it works!
I was waiting for this much needed fix for weeks now.
Thank you Will13, now I can enjoy CivUP and GEM in it's full glory.
 
Hey guys! What to do with files in the archive below?

Added 2 hours later
Okay. i replased 2 patched folders in civup. Blank tech tree is fixed... but i met Suleiman and NO dialigue appeared. It is not displayed in "Diplomacy" window too. Only in diplomacy overview i can see suleiman. but No dialogue and no diplomacy. Moduser data and cash folders were deleted before installation. GK 705 version windows.
 
Hey guys! What to do with files in the archive below?

trufchik: The patch is no longer necessary since it has been integrated with the official CivUP releases since version 2.4.1 - simply install the latest version from the main download page and it should work fine in 705. (Copying the patch over a more recent version of CivUP than 2.3.2 is likely the cause of the problem you describe.)

Thank you for those files! I'm doing compare operations to include it in the next update. I also added you to the project credits.

In lua this:

Code:
hasButton7 = (Controls.Button7 ~= nil)

if hasButton7 then

simplifies to:

Code:
if Controls.Button7 then

Thanks for the tip, I'm not really sure of the difference because it seems I needed to test for nil in some places but not others. I'll bear in mind to try without testing nil if anything else needs patching for 705 in the future. :)
 
I'm not really sure of the difference because it seems I needed to test for nil in some places but not others.

Nil is always false, so you never need to write a condition like "if (var ~= nil) then" as "if (var) then" is identical.

From the Lua manual (see http://lua-users.org/wiki/ExpressionsTutorial)

"In Lua both nil and the boolean value false represent false in a logical expression. Anything that is not false (either nil or false) is true"

(Programmers who are used to 0 also being false beware ... it is not!)
 
trufchik: The patch is no longer necessary since it has been integrated with the official CivUP releases since version 2.4.1 - simply install the latest version from the main download page and it should work fine in 705. (Copying the patch over a more recent version of CivUP than 2.3.2 is likely the cause of the problem you describe.)
It does not( Problem appears( units go to fog of wat and it does not dis appear, turn does not end and etc
 
Back
Top Bottom