Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages<12
ronky Offline
#21 Posted : Thursday, February 21, 2019 9:41:02 AM(UTC)
ronky
Private
Joined: 2/1/2019(UTC)
Posts: 11

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 '<Local 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 '<Local 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 '<Local 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 '<Local 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 '<Local 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 '<Local 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 '<Local 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 '<Local 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 Offline
#22 Posted : Thursday, February 21, 2019 1:51:58 PM(UTC)
i^love^mixery
Colonel
Joined: 10/13/2008(UTC)
Posts: 757

Thanks: 7 times
Was thanked: 185 time(s) in 140 post(s)
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 Offline
#23 Posted : Friday, February 22, 2019 5:41:30 PM(UTC)
i^love^mixery
Colonel
Joined: 10/13/2008(UTC)
Posts: 757

Thanks: 7 times
Was thanked: 185 time(s) in 140 post(s)
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 Offline
#24 Posted : Sunday, February 24, 2019 3:11:04 AM(UTC)
ronky
Private
Joined: 2/1/2019(UTC)
Posts: 11

Does the new script now look correct to you compared to the old one?


old script:

*** IF ***
Player '<Local 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 '<Local 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 Offline
#25 Posted : Monday, February 25, 2019 10:57:22 AM(UTC)
i^love^mixery
Colonel
Joined: 10/13/2008(UTC)
Posts: 757

Thanks: 7 times
Was thanked: 185 time(s) in 140 post(s)
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 :(

Edited by user Tuesday, February 26, 2019 2:33:01 AM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
2 Pages<12
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.6.1 | YAF © 2003-2019, Yet Another Forum.NET
This page was generated in 1.140 seconds.