ronky
  • ronky
  • 50.25% (Neutral)
  • Private Topic Starter
7 years ago
I tested the scripts out yesterday and unfortunately the game mismatches once players start to upgrade.

Any idea how to solve the problem? Or do the scripts contain an error?

For China:

*** IF ***
Player '' has Less Than 1 unit or structure of type 'Nuke_ChinaInternetCenter'
*** THEN ***
[???] Command button: 'Command_UpgradeChinaNeutronShells' is removed from all objects of type 'Nuke_ChinaPropagandaCenter'.
[???] Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'Nuke_ChinaPropagandaCenter' in slot number 16 (1-12).
*** ELSE ***
Command button: 'Command_UpgradeChinaNeutronShells' is removed from all objects of type 'Nuke_ChinaPropagandaCenter'.
Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'Nuke_ChinaPropagandaCenter' in slot number 13 (1-12).

*** IF ***
Player '' has Less Than 1 unit or structure of type 'Infa_ChinaInternetCenter'
*** THEN ***
[???] Command button: 'Command_UpgradeChinaNeutronShells' is removed from all objects of type 'Infa_ChinaPropagandaCenter'.
[???] Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'Infa_ChinaPropagandaCenter' in slot number 16 (1-12).
*** ELSE ***
Command button: 'Command_UpgradeChinaNeutronShells' is removed from all objects of type 'Infa_ChinaPropagandaCenter'.
Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'Infa_ChinaPropagandaCenter' in slot number 13 (1-12).


*** IF ***
Player '' has Less Than 1 unit or structure of type 'ChinaInternetCenter'
*** THEN ***
[???] Command button: 'Command_UpgradeChinaUraniumShells' is removed from all objects of type 'ChinaPropagandaCenter'.
[???] Command button: 'Command_UpgradeChinaNeutronShells' is removed from all objects of type 'ChinaPropagandaCenter'.
[???] Command button: 'Command_UpgradeChinaNuclearTanks' is removed from all objects of type 'ChinaPropagandaCenter'.
[???] Command button: 'Command_UpgradeChinaUraniumShells' is added to all objects of type 'ChinaPropagandaCenter' in slot number 15 (1-12).
[???] Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'ChinaPropagandaCenter' in slot number 16 (1-12).
[???] Command button: 'Command_UpgradeChinaNuclearTanks' is added to all objects of type 'ChinaPropagandaCenter' in slot number 17 (1-12).
*** ELSE ***
Command button: 'Command_UpgradeChinaUraniumShells' is removed from all objects of type 'ChinaPropagandaCenter'.
Command button: 'Command_UpgradeChinaNeutronShells
' is removed from all objects of type 'ChinaPropagandaCenter'.
Command button: 'Command_UpgradeChinaNuclearTanks' is removed from all objects of type 'ChinaPropagandaCenter'.
Command button: 'Command_UpgradeChinaNuclearTanks' is added to all objects of type 'ChinaPropagandaCenter' in slot number 9 (1-12).
Command button: 'Command_UpgradeChinaUraniumShells' is added to all objects of type 'ChinaPropagandaCenter' in slot number 11 (1-12).
Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'ChinaPropagandaCenter' in slot number 13 (1-12).


*** IF ***
Player '' has Less Than 1 unit or structure of type 'Tank_ChinaInternetCenter'
*** THEN ***
[???] Command button: 'Command_UpgradeChinaUraniumShells' is removed from all objects of type 'Tank_ChinaPropagandaCenter'.
[???] Command button: 'Command_UpgradeChinaNeutronShells' is removed from all objects of type 'Tank_ChinaPropagandaCenter'.
[???] Command button: 'Command_UpgradeChinaNuclearTanks' is removed from all objects of type 'Tank_ChinaPropagandaCenter'.
[???] Command button: 'Command_UpgradeChinaUraniumShells' is added to all objects of type 'Tank_ChinaPropagandaCenter' in slot number 15 (1-12).
[???] Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'Tank_ChinaPropagandaCenter' in slot number 16 (1-12).
[???] Command button: 'Command_UpgradeChinaNuclearTanks' is added to all objects of type 'Tank_ChinaPropagandaCenter' in slot number 17 (1-12).
*** ELSE ***
Command button: 'Command_UpgradeChinaUraniumShells' is removed from all objects of type 'Tank_ChinaPropagandaCenter'.
Command button: 'Command_UpgradeChinaNeutronShells
' is removed from all objects of type 'Tank_ChinaPropagandaCenter'.
Command button: 'Command_UpgradeChinaNuclearTanks' is removed from all objects of type 'Tank_ChinaPropagandaCenter'.
Command button: 'Command_UpgradeChinaNuclearTanks' is added to all objects of type 'Tank_ChinaPropagandaCenter' in slot number 9 (1-12).
Command button: 'Command_UpgradeChinaUraniumShells' is added to all objects of type 'Tank_ChinaPropagandaCenter' in slot number 11 (1-12).
Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'Tank_ChinaPropagandaCenter' in slot number 13 (1-12).

_____________


For GLA:

*** IF ***
Player '' has Less Than 1 unit or structure of type 'GLAPalace'
*** THEN ***
[???] Command button: 'Command_UpgradeGLAAPBullets' is removed from all objects of type 'GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAAPRockets' is removed from all objects of type 'GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAJunkRepair' is removed from all objects of type 'GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLABuggyAmmo' is removed from all objects of type 'GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLARadarVanScan' is removed from all objects of type 'GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAWorkerShoes' is removed from all objects of type 'GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAAPBullets' is added to all objects of type 'GLASupplyStash' in slot number 15 (1-12).
[???] Command button: 'Command_UpgradeGLAAPRockets' is added to all objects of type 'GLASupplyStash' in slot number 16 (1-12).
[???] Command button: 'Command_UpgradeGLAJunkRepair' is added to all objects of type 'GLASupplyStash' in slot number 17 (1-12).
[???] Command button: 'Command_UpgradeGLABuggyAmmo' is added to all objects of type 'GLASupplyStash' in slot number 18 (1-12).
[???] Command button: 'Command_UpgradeGLARadarVanScan' is added to all objects of type 'GLASupplyStash' in slot number 19 (1-12).
[???] Command button: 'Command_UpgradeGLAWorkerShoes' is added to all objects of type 'GLASupplyStash' in slot number 20 (1-12).
*** ELSE ***
Command button: 'Command_UpgradeGLAAPBullets' is removed from all objects of type 'GLASupplyStash'.
Command button: 'Command_UpgradeGLAAPRockets' is removed from all objects of type 'GLASupplyStash'.
Command button: 'Command_UpgradeGLAJunkRepair' is removed from all objects of type 'GLASupplyStash'.
Command button: 'Command_UpgradeGLABuggyAmmo' is removed from all objects of type 'GLASupplyStash'.
Command button: 'Command_UpgradeGLARadarVanScan' is removed from all objects of type 'GLASupplyStash'.
Command button: 'Command_UpgradeGLAWorkerShoes' is removed from all objects of type 'GLASupplyStash'.
Command button: 'Command_UpgradeGLAAPBullets' is added to all objects of type 'GLASupplyStash' in slot number 5 (1-12).
Command button: 'Command_UpgradeGLAAPRockets' is added to all objects of type 'GLASupplyStash' in slot number 6 (1-12).
Command button: 'Command_UpgradeGLAJunkRepair' is added to all objects of type 'GLASupplyStash' in slot number 7 (1-12).
Command button: 'Command_UpgradeGLABuggyAmmo' is added to all objects of type 'GLASupplyStash' in slot number 8 (1-12).
Command button: 'Command_UpgradeGLARadarVanScan' is added to all objects of type 'GLASupplyStash' in slot number 9 (1-12).
Command button: 'Command_UpgradeGLAWorkerShoes' is added to all objects of type 'GLASupplyStash' in slot number 10 (1-12).


*** IF ***
Player '' has Less Than 1 unit or structure of type 'Demo_GLAPalace'
*** THEN ***
[???] Command button: 'Command_UpgradeGLAAPBullets' is removed from all objects of type 'Demo_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAAPRockets' is removed from all objects of type 'Demo_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAJunkRepair' is removed from all objects of type 'Demo_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLABuggyAmmo' is removed from all objects of type 'Demo_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLARadarVanScan' is removed from all objects of type 'Demo_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAWorkerShoes' is removed from all objects of type 'Demo_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAAPBullets' is added to all objects of type 'Demo_GLASupplyStash' in slot number 15 (1-12).
[???] Command button: 'Command_UpgradeGLAAPRockets' is added to all objects of type 'Demo_GLASupplyStash' in slot number 16 (1-12).
[???] Command button: 'Command_UpgradeGLAJunkRepair' is added to all objects of type 'Demo_GLASupplyStash' in slot number 17 (1-12).
[???] Command button: 'Command_UpgradeGLABuggyAmmo' is added to all objects of type 'Demo_GLASupplyStash' in slot number 18 (1-12).
[???] Command button: 'Command_UpgradeGLARadarVanScan' is added to all objects of type 'Demo_GLASupplyStash' in slot number 19 (1-12).
[???] Command button: 'Command_UpgradeGLAWorkerShoes' is added to all objects of type 'Demo_GLASupplyStash' in slot number 20 (1-12).
*** ELSE ***
Command button: 'Command_UpgradeGLAAPBullets' is removed from all objects of type 'Demo_GLASupplyStash'.
Command button: 'Command_UpgradeGLAAPRockets' is removed from all objects of type 'Demo_GLASupplyStash'.
Command button: 'Command_UpgradeGLAJunkRepair' is removed from all objects of type 'Demo_GLASupplyStash'.
Command button: 'Command_UpgradeGLABuggyAmmo' is removed from all objects of type 'Demo_GLASupplyStash'.
Command button: 'Command_UpgradeGLARadarVanScan' is removed from all objects of type 'Demo_GLASupplyStash'.
Command button: 'Command_UpgradeGLAWorkerShoes' is removed from all objects of type 'Demo_GLASupplyStash'.
Command button: 'Command_UpgradeGLAAPBullets' is added to all objects of type 'Demo_GLASupplyStash' in slot number 5 (1-12).
Command button: 'Command_UpgradeGLAAPRockets' is added to all objects of type 'Demo_GLASupplyStash' in slot number 6 (1-12).
Command button: 'Command_UpgradeGLAJunkRepair' is added to all objects of type 'Demo_GLASupplyStash' in slot number 7 (1-12).
Command button: 'Command_UpgradeGLABuggyAmmo' is added to all objects of type 'Demo_GLASupplyStash' in slot number 8 (1-12).
Command button: 'Command_UpgradeGLARadarVanScan' is added to all objects of type 'Demo_GLASupplyStash' in slot number 9 (1-12).
Command button: 'Command_UpgradeGLAWorkerShoes' is added to all objects of type 'Demo_GLASupplyStash' in slot number 10 (1-12).

*** IF ***
Player '' has Less Than 1 unit or structure of type 'Slth_GLAPalace'
*** THEN ***
[???] Command button: 'Command_UpgradeGLAAPBullets' is removed from all objects of type 'Slth_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAAPRockets' is removed from all objects of type 'Slth_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAJunkRepair' is removed from all objects of type 'Slth_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLABuggyAmmo' is removed from all objects of type 'Slth_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLARadarVanScan' is removed from all objects of type 'Slth_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAWorkerShoes' is removed from all objects of type 'Slth_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAAPBullets' is added to all objects of type 'Slth_GLASupplyStash' in slot number 15 (1-12).
[???] Command button: 'Command_UpgradeGLAAPRockets' is added to all objects of type 'Slth_GLASupplyStash' in slot number 16 (1-12).
[???] Command button: 'Command_UpgradeGLAJunkRepair' is added to all objects of type 'Slth_GLASupplyStash' in slot number 17 (1-12).
[???] Command button: 'Command_UpgradeGLABuggyAmmo' is added to all objects of type 'Slth_GLASupplyStash' in slot number 18 (1-12).
[???] Command button: 'Command_UpgradeGLARadarVanScan' is added to all objects of type 'Slth_GLASupplyStash' in slot number 19 (1-12).
[???] Command button: 'Command_UpgradeGLAWorkerShoes' is added to all objects of type 'Slth_GLASupplyStash' in slot number 20 (1-12).
*** ELSE ***
Command button: 'Command_UpgradeGLAAPBullets' is removed from all objects of type 'Slth_GLASupplyStash'.
Command button: 'Command_UpgradeGLAAPRockets' is removed from all objects of type 'Slth_GLASupplyStash'.
Command button: 'Command_UpgradeGLAJunkRepair' is removed from all objects of type 'Slth_GLASupplyStash'.
Command button: 'Command_UpgradeGLABuggyAmmo' is removed from all objects of type 'Slth_GLASupplyStash'.
Command button: 'Command_UpgradeGLARadarVanScan' is removed from all objects of type 'Slth_GLASupplyStash'.
Command button: 'Command_UpgradeGLAWorkerShoes' is removed from all objects of type 'Slth_GLASupplyStash'.
Command button: 'Command_UpgradeGLAAPBullets' is added to all objects of type 'Slth_GLASupplyStash' in slot number 5 (1-12).
Command button: 'Command_UpgradeGLAAPRockets' is added to all objects of type 'Slth_GLASupplyStash' in slot number 6 (1-12).
Command button: 'Command_UpgradeGLAJunkRepair' is added to all objects of type 'Slth_GLASupplyStash' in slot number 7 (1-12).
Command button: 'Command_UpgradeGLABuggyAmmo' is added to all objects of type 'Slth_GLASupplyStash' in slot number 8 (1-12).
Command button: 'Command_UpgradeGLARadarVanScan' is added to all objects of type 'Slth_GLASupplyStash' in slot number 9 (1-12).
Command button: 'Command_UpgradeGLAWorkerShoes' is added to all objects of type 'Slth_GLASupplyStash' in slot number 10 (1-12).

*** IF ***
Player '' has Less Than 1 unit or structure of type 'Chem_GLAPalace'
*** THEN ***
[???] Command button: 'Command_UpgradeGLAAPBullets' is removed from all objects of type 'Chem_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAAPRockets' is removed from all objects of type 'Chem_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAJunkRepair' is removed from all objects of type 'Chem_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLABuggyAmmo' is removed from all objects of type 'Chem_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLARadarVanScan' is removed from all objects of type 'Chem_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAWorkerShoes' is removed from all objects of type 'Chem_GLASupplyStash'.
[???] Command button: 'Command_UpgradeGLAAPBullets' is added to all objects of type 'Chem_GLASupplyStash' in slot number 15 (1-12).
[???] Command button: 'Command_UpgradeGLAAPRockets' is added to all objects of type 'Chem_GLASupplyStash' in slot number 16 (1-12).
[???] Command button: 'Command_UpgradeGLAJunkRepair' is added to all objects of type 'Chem_GLASupplyStash' in slot number 17 (1-12).
[???] Command button: 'Command_UpgradeGLABuggyAmmo' is added to all objects of type 'Chem_GLASupplyStash' in slot number 18 (1-12).
[???] Command button: 'Command_UpgradeGLARadarVanScan' is added to all objects of type 'Chem_GLASupplyStash' in slot number 19 (1-12).
[???] Command button: 'Command_UpgradeGLAWorkerShoes' is added to all objects of type 'Chem_GLASupplyStash' in slot number 20 (1-12).
*** ELSE ***
Command button: 'Command_UpgradeGLAAPBullets' is removed from all objects of type 'Chem_GLASupplyStash'.
Command button: 'Command_UpgradeGLAAPRockets' is removed from all objects of type 'Chem_GLASupplyStash'.
Command button: 'Command_UpgradeGLAJunkRepair' is removed from all objects of type 'Chem_GLASupplyStash'.
Command button: 'Command_UpgradeGLABuggyAmmo' is removed from all objects of type 'Chem_GLASupplyStash'.
Command button: 'Command_UpgradeGLARadarVanScan' is removed from all objects of type 'Chem_GLASupplyStash'.
Command button: 'Command_UpgradeGLAWorkerShoes' is removed from all objects of type 'Chem_GLASupplyStash'.
Command button: 'Command_UpgradeGLAAPBullets' is added to all objects of type 'Chem_GLASupplyStash' in slot number 5 (1-12).
Command button: 'Command_UpgradeGLAAPRockets' is added to all objects of type 'Chem_GLASupplyStash' in slot number 6 (1-12).
Command button: 'Command_UpgradeGLAJunkRepair' is added to all objects of type 'Chem_GLASupplyStash' in slot number 7 (1-12).
Command button: 'Command_UpgradeGLABuggyAmmo' is added to all objects of type 'Chem_GLASupplyStash' in slot number 8 (1-12).
Command button: 'Command_UpgradeGLARadarVanScan' is added to all objects of type 'Chem_GLASupplyStash' in slot number 9 (1-12).
Command button: 'Command_UpgradeGLAWorkerShoes' is added to all objects of type 'Chem_GLASupplyStash' in slot number 10 (1-12).


i^love^mixery
7 years ago
Can you upload the map that still mismatches please? Do you know which upgrade is still causing a mismatch?

I will have a look at the demo bike problem, but don't get your hopes too high, as this is a hardcoded game "feature".
i^love^mixery
7 years ago
I just checked again. Yes your scripts are wrong.

You are not allowed to remove command buttons, my second last post here was misleading.

Instead of removing them, put them in an "impossible" slot and you will be fine.
ronky
  • ronky
  • 50.25% (Neutral)
  • Private Topic Starter
7 years ago
Does the new script now look correct to you compared to the old one?


old script:

*** IF ***
Player '' has Less Than 1 unit or structure of type 'Nuke_ChinaInternetCenter'
*** THEN ***
[???] Command button: 'Command_UpgradeChinaNeutronShells' is removed from all objects of type 'Nuke_ChinaPropagandaCenter'.
[???] Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'Nuke_ChinaPropagandaCenter' in slot number 16 (1-12).
*** ELSE ***
Command button: 'Command_UpgradeChinaNeutronShells' is removed from all objects of type 'Nuke_ChinaPropagandaCenter'.
Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'Nuke_ChinaPropagandaCenter' in slot number 13 (1-12).

new script:

*** IF ***
Player '' has Less Than 1 unit or structure of type 'Nuke_ChinaInternetCenter'
*** THEN ***
[???] Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'Nuke_ChinaPropagandaCenter' in slot number 16 (1-12).
*** ELSE ***
Command button: 'Command_UpgradeChinaNeutronShells' is added to all objects of type 'Nuke_ChinaPropagandaCenter' in slot number 13 (1-12).
i^love^mixery
7 years ago
Sorry about that.

No it doesn't look correct. Use the old version, I was very confused. Actually everything in your post from 4 days ago looks correct to me. Sorry about the confusion.

However, I tested it again, again, again.

I got good news and bad news:
The good news: I found out what is causing the mismatch.

The bad news: It is unfixable.

Slot numbers higher than 18 will not be accepted and will cause a mismatch :(

The same imaginary slot number for every upgrade will also not be accepted and still cause a mismatch :(


Really sorry, but you can only use the slot numbers 15, 16, 17 and 18 for this, so you are limited to 4 commands buttons per faction per building. I also tested negative slot numbers, they also don't work 😞