(bug) Bullet.Expand has wrong value

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Shimrod
Posts: 907
Joined: Tue, 18. Feb 03, 01:43
x4

(bug) Bullet.Expand has wrong value

Post by Shimrod » Sat, 24. Dec 11, 02:13

Looks like the Bullet.Expand constant needs to be 8 rather than 16.

Code: Select all

[Bullet.Disable]=16
[Bullet.Expand]=16
Laser=Phased Shockwave Generator, Flags=8 (ARRAY ( ))
Edit: Looks like I posted this in the wrong forum, feel free to move!

Alan Phipps
Moderator (English)
Moderator (English)
Posts: 30436
Joined: Fri, 16. Apr 04, 19:21
x4

Post by Alan Phipps » Sat, 24. Dec 11, 12:49

I will move this when I know what game, situation, mod, fault or thread this refers to. Any background info would be handy.
A dog has a master; a cat has domestic staff.

Shimrod
Posts: 907
Joined: Tue, 18. Feb 03, 01:43
x4

Post by Shimrod » Sat, 24. Dec 11, 15:55

I'd originally posted in the German scripts and modding forum by mistake. It was already moved into this forum.

Bullet.Expand is one of the new script editor constants introduced in Albion Prelude. It currently evaluates to 0x10 instead of 0x8, which I believe is the intended value given that:
a. Bullet.Disable already has the value 0x10
b. There is no other constant that evaluates to 0x8
c. PSG laser flags are 0x8, and of those 2 0x10 duplicates the term 'Expand' sounds appropriate to the PSG effect.

<Moving to TC/AP S&M. Alan Phipps>

CBJ
EGOSOFT
EGOSOFT
Posts: 51981
Joined: Tue, 29. Apr 03, 00:56
x4

Post by CBJ » Sat, 24. Dec 11, 23:30

Well spotted. This will be fixed in the next patch.

expnobody
Posts: 698
Joined: Wed, 17. Nov 10, 03:23

Post by expnobody » Sat, 24. Dec 11, 23:33

what kind of effect will cause by this mistake?
summer time..

Shimrod
Posts: 907
Joined: Tue, 18. Feb 03, 01:43
x4

Post by Shimrod » Sat, 24. Dec 11, 23:40

None of the stock scripts appear to use this constant (findstr over unpacked addon\scripts pck files), so I suspect its benign. I encountered it in the process of updating Smart to detect PSG effect lasers, and there's a simple workaround of using the literal 8 instead of the constant.

User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Post by Gazz » Sat, 24. Dec 11, 23:43

AP has some new commands that aren't used anywhere but can be used by scripters to do things they simply couldn't do before.
That's because the developers are such jolly good fellows.

Scripting (SQUASH) mines to armed/unarmed is another such example.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.

Sir Warwick
Posts: 366
Joined: Sat, 7. Feb 04, 18:27
x4

Post by Sir Warwick » Sun, 25. Dec 11, 23:47

Hmmm - just need the AI to start agressively laying minefields which in turn opens the oppotunity for someone to script recon drones as minefield difuse bots ;)

Or perhpas use this to add som degree of freind/foe recognition to them.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”