execsetgamevar broken?

Advanced Tactics is a versatile turn-based strategy system that gives gamers the chance to wage almost any battle in any time period. The initial release focuses on World War II and includes a number of historical scenarios as well as a full editor! This forum supports both the original Advanced Tactics and the new and improved Advanced Tactics: Gold Edition.

Moderator: Vic

Post Reply
bwheatley
Posts: 3655
Joined: Mon Dec 13, 2004 4:08 pm
Contact:

execsetgamevar broken?

Post by bwheatley »

Vic,

is there a bug with execsetgamevar?

I tried tempstring, realstring, tempvar, and real number and all errored when i tried to run the event.

Image
Attachments
20140621_141226.jpg
20140621_141226.jpg (145.28 KiB) Viewed 232 times
-Alpha Tester Carrier Force
-Beta Tester ATG
- Mod Maintainer (past) for ATG's WAW mod
- Mod Maintainer (past) for ATG's GPW mod
-Beta Tester WITE
-Alpha Tester WITW
-Alpha Tester WITE2
-Alpha Tester Wif
-Beta Tester Command
Veni
Posts: 59
Joined: Wed Jun 22, 2011 8:43 pm
Location: Kabul

RE: execsetgamevar broken?

Post by Veni »

Just off-the-cuff: does Gameslot_Testing2(#4) require a numerical value, e.g. '0'? Is line two necessary if you reset it on line 4?

(edit: just realized you asked Vic; don't mean to be rude & intercede)
User avatar
Jeffrey H.
Posts: 3154
Joined: Fri Apr 13, 2007 6:39 pm
Location: San Diego, Ca.

RE: execsetgamevar broken?

Post by Jeffrey H. »

Also, single quotes around test is that valid ?
History began July 4th, 1776. Anything before that was a mistake.

Ron Swanson
bwheatley
Posts: 3655
Joined: Mon Dec 13, 2004 4:08 pm
Contact:

RE: execsetgamevar broken?

Post by bwheatley »

I tested with strings or numeric. And the Quotes are generated by the function.
-Alpha Tester Carrier Force
-Beta Tester ATG
- Mod Maintainer (past) for ATG's WAW mod
- Mod Maintainer (past) for ATG's GPW mod
-Beta Tester WITE
-Alpha Tester WITW
-Alpha Tester WITE2
-Alpha Tester Wif
-Beta Tester Command
User avatar
Vic
Posts: 9783
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: execsetgamevar broken?

Post by Vic »

Yes it is because you are doing something a bit weird here.

ExecSetGameVar( game var slot #, new value)

So specify a value between 0-499 for game var slot #.

You are actually specifying as the slot # the value stored in gamevar slot #4 (which is probably -1 and causing the error)

If you want to directly set a gamevar directly just use a

SETVAR: GameVarSlot_Testing(#4) = 'test'

best regards,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
bwheatley
Posts: 3655
Joined: Mon Dec 13, 2004 4:08 pm
Contact:

RE: execsetgamevar broken?

Post by bwheatley »

ahh cool thanks Vic. :) Makes sense when you describe it that way. :)
-Alpha Tester Carrier Force
-Beta Tester ATG
- Mod Maintainer (past) for ATG's WAW mod
- Mod Maintainer (past) for ATG's GPW mod
-Beta Tester WITE
-Alpha Tester WITW
-Alpha Tester WITE2
-Alpha Tester Wif
-Beta Tester Command
Post Reply

Return to “Advanced Tactics Series”