Bug in select unit script?

Post bug reports and ask for tech support here. Post any Community Site Requests here as well.

Moderator: Vic

Post Reply
Grymme
Posts: 1776
Joined: Sun Dec 16, 2007 5:06 pm
Contact:

Bug in select unit script?

Post by Grymme »

A couple of issues.

- When i use the select unit in combination with execaddreinforcments it adds the reinforcments to the hex that was selected before i play an actioncard and select the unit. So if i am selecting X1Y1 and then go into the actioncard screen and play an actioncard that requires me to select an hex and then select X2Y100 it will still send the unit to X1Y1.

- Another possible issue is if there is something wrong with the saving of changes in the editor. I cannot put my foot on it but numerous times i have changed simple things only to have the same bug appear in later versions again (am talking about things like changing sprites or values in an SFT) . The example i can give you clearest is that changing the starting regime and then saving it almost never works (i know this feature is in beta). Another explanation is that i might be getting senile, but its very strange.
My Advanced Tactics Mod page
http://atgscenarios.wordpress.com

30+ scenarios, maps and mods for AT and AT:G
User avatar
Vic
Posts: 9931
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Bug in select unit script?

Post by Vic »

Hi,

1) you should use areaslot =0, areaval =x instead of select unit = true in the actioncard settings and then use tempvar2, tempvar3 as X,Y input in the finally called event. If you use ExecGiveReinforcements2 by any chance always make sure to call the SetCardXY exec before calling the execgivereinforcements2.

2) i think its highly unlikely its the code. its probably you. however it might have to do with you using a masterfile, since that can overwrite stuff....

best regards,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Grymme
Posts: 1776
Joined: Sun Dec 16, 2007 5:06 pm
Contact:

RE: Bug in select unit script?

Post by Grymme »

1) I am sorry, i  might have mistated it. Am using the ExecUnitGiveTroops command not the ExecGiveReinforcements.
 
But i solved it myself. It was no bug it was misscripting from my side. The strange thing was that the misscripting kind of worked (usually it just doesnt) which is why i thought the not working part was an error. 
 
2) Probably. I thought so too. But mentioned it incase this was something that could be wrong. But i swear in one scenario i had put regime 1 (not 0) as starting regimen many many times. Yet when i start the game or go back into the editor starting regime is still 0.
My Advanced Tactics Mod page
http://atgscenarios.wordpress.com

30+ scenarios, maps and mods for AT and AT:G
Post Reply

Return to “Advanced Tactics Support”