Page 2 of 2

Re: 1.06 features in TM?

Posted: Thu Sep 10, 2009 6:18 pm
by nedfumpkin
In the download of the 1.06 patch there are a number of files that are included. These files are the source code of the 1.06 exe.

I have no real skills at programming, but I am kind of able to figure out some of what is going on in them. The 1.06 patch modifies the 1.05 RT3.exe. It specifically looks for that file which is why the 1.04 can't be patched.

My approach is to manually edit the 1.04 beta with some of the features that are in 1.06. So if I can figure out the source code, I figure I can do the actual changes and add some of the better features from 1.06. This way the Trainmaster RT3.exe can be tested to make sure it doesn't cause the problems it did for some, and a solid exe.

Any help you can give....just look in the 1.06 folders to find the source code files.

PS: I'm in the middle of making boxcars, so until I'm done with that I'm not doing anything on the exe.

Re: 1.06 features in TM?

Posted: Fri Sep 11, 2009 12:26 am
by milo
Sugus wrote:As a professional programmer (these days better spelled as 'software engineer', but I'm simply a 59 years old mathematician lurking around by means of PCs) I would like to "figure out the 1.06 source code". Is there really any RT3 source code available (I know I'm stupid, but: in which programming language and development envrionment) or is it only MODding?
Firaxis most likely has the source code, but they haven't released it. Original language was likely C++.
In five years I'll going to retire. Means: lot of time: so, what's better than to help making better an old good game?
That's the spirit! :-)

Re: 1.06 features in TM?

Posted: Sun Sep 27, 2009 8:55 pm
by nedfumpkin
Here's th src code about locos and logos...anyone able to translate to English?

/* Fix train skin button behavior when more than 100 locos are installed. */
{ 0x10f699, 2, "\x68\x29", "\xa1\x3a" },
{ 0x10f69e, 2, "\xa0\x28", "\xd1\x32" },
{ 0x10fa7d, 2, "\xa0\x28", "\xd1\x32" },
{ 0x10fb42, 2, "\x04\x29", "\xb9\x36" },
{ 0x11222e, 2, "\xa0\x28", "\xd1\x32" },
{ 0x112236, 2, "\x04\x29", "\xb9\x36" },
{ 0x11223e, 2, "\x60\xd7", "\x2f\xcd" },
{ 0x112292, 2, "\x04\x29", "\xb9\x36" },
{ 0x11229a, 2, "\x68\x29", "\xa1\x3a" },
{ 0x1122a2, 2, "\xfc\xd6", "\x47\xc9" },

/* Fix crash when loading too many logos. */
{ 0x13cf08, 1, "\xa6", "\xd5" },
{ 0x13d0e1, 14,
"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90",
"\x50\xe8\x09\xac\xfd\xff\x83\xf8\x64\x58\x7d\xce\xeb\xc3" },