🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.games.microprose.transport-tyc
Article #28027

Action 2 query (grovelling to Michael Blunk)

#28027
From: Ronnie Clark
Date: Thu, 07 Oct 2004 12:33
33 lines
2096 bytes
I'm struggling with trying to implement something which I think should is
possible - changing the graphics for the train engine depending on what
cargo is in the consist. I've tried this Action 2, and I'll explain what I
think it should be doing.

02 00 04 82 42 08 FF 02 00 00 00 00 01 00 02 02 02 00

02 00 - Action 2, for trains.
04 - Defining cargo-ID 04.
82 42 - Deterministic graphics based on whole-train consist.

Now, property 42 is supposed to return 0000cctt. I'm interested in the
common cargo, so I then right-shift by 8 bits. I'm not sure if this is the
correct amount to shift, but I've tried lots of different amounts and none
have worked.

08 FF - Right shift by 8 bits and AND with FF.
02 - 2 variations

(00 00) (00 00) - Use cargo-ID 00 if common cargo = passengers.
(01 00) (02 02) - Use cargo-ID 01 if common cargo = mail.
(02 00) - Default cargo ID.

I've given up working out why it isn't working. The engine ends up with
cargo-ID 00 no matter what cargo is behind it....

Any help? Am I trying to do something which is impossible?

Ronnie
--
Volunteer guard on the Great Central Railway, Loughborough, Leicestershire
Visit the world's only double track preserved steam railway!
http://www.gcrailway.co.uk
Technical Details
Message-ID: <ck3bua$bf6$1@newsg4.svr.pol.co.uk>
Path: mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!diablo.theplanet.net!news.theplanet.net!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!diablo.theplanet.net!news.theplanet.net!not-for-mail
From: "Ronnie Clark" <ronnie@blugman.freeserve.spam.uk>
Newsgroups: alt.games.microprose.transport-tyc
Subject: Action 2 query (grovelling to Michael Blunk)
Date: Thu, 7 Oct 2004 13:33:44 +0100
Lines: 35
Message-ID: <ck3bua$bf6$1@newsg4.svr.pol.co.uk>
NNTP-Posting-Host: 81.78.3.221
X-Trace: newsg4.svr.pol.co.uk 1097151242 11750 81.78.3.221 (7 Oct 2004 12:14:02 GMT)
NNTP-Posting-Date: 7 Oct 2004 12:14:02 GMT
X-Complaints-To: abuse@theplanet.net
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit