legacy script actions not working in trunk (4496)

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

legacy script actions not working in trunk (4496)

Post by Commander McLane »

... and possibly also not in 1.75 otherwise.

I just checked for the ETT Homing Beacon. It has these script actions:

Code: Select all

		<key>script_actions</key>
		<array>
			<string>testForEquipment: EQ_BEACONLAUNCHER_MINE</string>
			<dict>
				<key>conditions</key>
				<array>
					<string>foundEquipment_bool equal NO</string>
				</array>
				<key>do</key>
				<array>
					<string>awardEquipment: EQ_BEACONLAUNCHER_MINE</string>
				</array>
				<key>else</key>
				<array>
					<string>awardCargo: 25 Gold</string>
				</array>
			</dict>
		</array>
which are also transferred to its ship script:

Code: Select all

> PS.target.script.legacy_scriptActions
["testForEquipment: EQ_BEACONLAUNCHER_MINE", {
    "else": ["awardCargo: 25 Gold"],
    conditions: ["foundEquipment_bool equal NO"],
    "do": ["awardEquipment: EQ_BEACONLAUNCHER_MINE"]
}]
(I am wondering about the sorting, though).

But it doesn't do anything when scooped. I am neither awarded the mine nor gold. Just nothing. Don't know what's wrong here, but it could probably affect other legacy script actions, too.

It used to work in 1.65.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: legacy script actions not working in trunk (4496)

Post by JensAyton »

Commander McLane wrote:
(I am wondering about the sorting, though).
What sorting? Dictionaries are unordered, you know that.

Anyway, fixed in r4501.
Post Reply