Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable_visual_effect_and_powered does tot work correctly #5848

Closed
DorpsGek opened this issue Jan 4, 2014 · 2 comments
Closed

disable_visual_effect_and_powered does tot work correctly #5848

DorpsGek opened this issue Jan 4, 2014 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Jan 4, 2014

George opened the ticket and wrote:

R26224

I've defined
# define disable_visual_effect_and_powered() visual_effect_and_powered(VISUAL_EFFECT_DISABLE, 0, DISABLE_WAGON_POWER)
and try to apply it to trains parts.
As you can see for ER200, everything works correctly on every track. Sparks appear just where they should over motorized cars with pantographs.
And on EVS1/EVS2, which are a single articulated vehicle, sparks appear over wagons regardless specified effect and differ on different tracks.
Could you please check if it is a bug in GRF or OTTD?

Attachments

Reported version: trunk
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/5848
@DorpsGek
Copy link
Member Author

frosch wrote:

You are using variable 61, which is disallowed during callback 10.
It then returns "visual_effect_and_powered(VISUAL_EFFECT_ELECTRIC, 7, DISABLE_WAGON_POWER)". (see screenshot with trace; not in nightly yet)

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/5848#comment12983

@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Bug in NewGRF

usage of var 61 in callback that does not allow so


This comment was imported from FlySpray: https://bugs.openttd.org/task/5848

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Vehicles labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant