negative performance ratings

Got a problem with TTDPatch? Get help here.

Moderator: TTDPatch Moderators

Post Reply
garf
Engineer
Engineer
Posts: 5
Joined: 05 Apr 2005 06:49
Location: Tallinn, Estonia

negative performance ratings

Post by garf »

Hi there. I'm not sure if this is the right place to post this, but here goes:

I seem to have a bit of a problem with the NewPerformanceCalculation option (or not, but it's definitely performance-related). The picture should be self-explanatory.

Otherwise, a great job! TTD was great, TTDPatch gave it a new life! :)
Attachments
negative performance
negative performance
perf.jpg (14.39 KiB) Viewed 2634 times
User avatar
Csaboka
Tycoon
Tycoon
Posts: 1202
Joined: 25 Nov 2002 16:30
Location: Tiszavasvári, Hungary
Contact:

Post by Csaboka »

This is a known problem. If the performance score ends up above 127, TTD incorrectly displays it as negative. I'll fix this when I have some time.
Reality is that which, when you stop believing in it, doesn't go away.—Philip K. Dick
garf
Engineer
Engineer
Posts: 5
Joined: 05 Apr 2005 06:49
Location: Tallinn, Estonia

Post by garf »

I thought so. So... it's a signed int where it should be unsigned?
User avatar
Csaboka
Tycoon
Tycoon
Posts: 1202
Joined: 25 Nov 2002 16:30
Location: Tiszavasvári, Hungary
Contact:

Post by Csaboka »

Yes, exactly. TTD doesn't have a "print unsigned byte" character, only a "print signed byte" one, so I've used it, thinking no one will ever reach a performance of 128... The fix is easy, though: I'll just zero-extend it and print as unsigned word.
Reality is that which, when you stop believing in it, doesn't go away.—Philip K. Dick
garf
Engineer
Engineer
Posts: 5
Joined: 05 Apr 2005 06:49
Location: Tallinn, Estonia

Post by garf »

Cool... I should dig deeper, it's already getting interesting. 8)
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Are you a programmer garf?
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
garf
Engineer
Engineer
Posts: 5
Joined: 05 Apr 2005 06:49
Location: Tallinn, Estonia

Post by garf »

Yes. Although I haven't touched anything but Java and PHP for ages. Gotta pull myself together! :)
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Have you ever coded in assembler?
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

Post by Szappy »

krtaylor stop it here :)) you might scare him off :D
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Someone observant enough to notice the signed/unsigned int problem, would I think be complimented by the inquiry. But you're right, I'll try not to strong-arm him into the Patchteam. :P
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
garf
Engineer
Engineer
Posts: 5
Joined: 05 Apr 2005 06:49
Location: Tallinn, Estonia

Post by garf »

This is getting a bit OT, isn't it? :D

Anyway, yes. A looooong time ago I experimented a bit. Got as far as activating the mouse driver in DOS. :lol:
Post Reply

Return to “Problems with TTDPatch”

Who is online

Users browsing this forum: No registered users and 12 guests