|
|
|
#3598775 - 06/28/12 12:57 PM
Re: EAW Train Formations
[Re: Col. Gibbon]
|
Hotshot
Registered: 04/30/02
Posts: 6700
Loc: Caux L'Herault, France
|
I have just written a utility which splits TMod.dat into "TMod000.dat" to "TMod255.dat" files  I need to work with Ralf to get them read, but I have not heard anything from him for a few days.  Jel
_________________________
EAW upgrades (1.28E), scenario installations, and links: DropBox links and FileCloud linksThe best EAW online games are at GameRanger: GameRanger SiteTeamspeak 3 channel: 62.48.74.45:8769 Now you can join a running game, and even use multiple controllers
|
|
Top
|
|
|
|
#3598921 - 06/28/12 05:29 PM
Re: EAW Train Formations
[Re: Col. Gibbon]
|
3DZ Model Builder
Veteran
Registered: 06/04/01
Posts: 11940
Loc: Fleet, Hampshire, England.
|
Tony, You just love your little applications.  Meanwhile back in the locomotive errecting shop. 
_________________________
Just remember, "No Matter How Little I have Done, It's All The Less For You To Do" Wings Over BytomSingle parent, bringing up my great kids, Thomas, Jessica & Nicola, and trying to do his best all the time.
|
|
Top
|
|
|
|
#3599006 - 06/28/12 09:05 PM
Re: EAW Train Formations
[Re: Col. Gibbon]
|
Every Human is Unique
Member
Registered: 01/26/06
Posts: 710
|
I am late to the party and twi as always. That is the problem of putting a large model into an unmodified tmod.dat slot for a smaller model I think
That is why I suggested a data file for each train set If load time is not an issue, take the dimentions directly from the 3dz and not from an external data file.
_________________________
TPA who TWI
|
|
Top
|
|
|
|
#3599013 - 06/28/12 09:23 PM
Re: EAW Train Formations
[Re: Col. Gibbon]
|
Every Human is Unique
Member
Registered: 01/26/06
Posts: 710
|
The direction is determined by the start and finish of the railway and I can not see a way round that. I do not look at the code, or visit the gen, so my comments are basic programming only. This stays witin my NDA and SinHQ rules. You can do this if you use a signed int. Positive is one dir and negitive is another. Duel rails becomes an offset. If your offset is not the same polar direction of travel, you have to use geometric math to adjust the movement Ie. duel train movement polar North would use a simple X offset for the negitive facing train.
_________________________
TPA who TWI
|
|
Top
|
|
|
|
#3599325 - 06/29/12 01:43 PM
Re: EAW Train Formations
[Re: Col. Gibbon]
|
Hotshot
Registered: 04/30/02
Posts: 6700
Loc: Caux L'Herault, France
|
 Allen. Unless you check out the code it is difficult to see where the signed integer flag would go. Anyhow this is what we are dealing with: The table you can see is the first part of the "railways.dat" file, and the picture shows all railways in the selected area near London and the South East of England. The four values in the table are the startX, endX, startY and endY values (hexadecimal) of a straight line of track. The section with the startX values coloured cyan are one continuous railway line from start to finish. Note that the startX (06B91800)and startY (E5E58400) values in columns one and three of the second line (are the same as the endX and endY values in columns two and four the first line. Where the colour changes to yellow the startX and startY values in this line are not the same as the endX and endY values in the line above it. So the yellow section is a completely new line. Now if the first line is chosen for use in the game then any train on it will be moving from (06B91000,E5E1EC00) to (06D98F00,E6746000) no matter where it spawns. The direction that each component of the train moves in is the direction of the particular straight section of track that it is on.  Jel
_________________________
EAW upgrades (1.28E), scenario installations, and links: DropBox links and FileCloud linksThe best EAW online games are at GameRanger: GameRanger SiteTeamspeak 3 channel: 62.48.74.45:8769 Now you can join a running game, and even use multiple controllers
|
|
Top
|
|
|
|
#3599426 - 06/29/12 06:08 PM
Re: EAW Train Formations
[Re: Col. Gibbon]
|
3DZ Model Builder
Veteran
Registered: 06/04/01
Posts: 11940
Loc: Fleet, Hampshire, England.
|
Hi Tony. Nice to see some railways in the South of England.  Need a bit of relaying though.  As for news from the erecting shop, we are almost ready for a steam test.   No points left so it's finished, just bits of mapping to do.
_________________________
Just remember, "No Matter How Little I have Done, It's All The Less For You To Do" Wings Over BytomSingle parent, bringing up my great kids, Thomas, Jessica & Nicola, and trying to do his best all the time.
|
|
Top
|
|
|
|
#3599584 - 06/30/12 04:11 AM
Re: EAW Train Formations
[Re: Brit44 'Aldo']
|
Hotshot
Registered: 08/14/01
Posts: 8454
|
I am late to the party and twi as always. That is the problem of putting a large model into an unmodified tmod.dat slot for a smaller model I think
That is why I suggested a data file for each train set If load time is not an issue, take the dimentions directly from the 3dz and not from an external data file. I would like this for the planes as well, but i couldnt figure out how.  To setup the plane dimentions in the flightfiles without graphical tool is a horrible task. For example we have the coordinates of the hardpoints somewhere in the 3dz files and we have to adjust the same in the flightfiles by trial and error. Same goes for the wingtip etc. On the other hand, the hitbubble position and size dont have a related values in the 3dzīs.
_________________________
1st engined flight by Richard Pearse, Waitohi, New Zealand, March 31, 1902. Karl Jatho, 1st flight, 18.August 1903, Hannover-Vahrenheide, real controlled flights. The Wrights, 1st flight, 17. December 1903. They wasnt the 1st, but still claim this!
|
|
Top
|
|
|
|
#3599612 - 06/30/12 06:22 AM
Re: EAW Train Formations
[Re: Col. Gibbon]
|
3DZ Model Builder
Veteran
Registered: 06/04/01
Posts: 11940
Loc: Fleet, Hampshire, England.
|
The first test steaming showed up a few glitches, but nothing hard to fix.   Tony, please note the smoke will need looking at.
_________________________
Just remember, "No Matter How Little I have Done, It's All The Less For You To Do" Wings Over BytomSingle parent, bringing up my great kids, Thomas, Jessica & Nicola, and trying to do his best all the time.
|
|
Top
|
|
|
|
#3599628 - 06/30/12 08:18 AM
Re: EAW Train Formations
[Re: Col. Gibbon]
|
Hotshot
Registered: 04/30/02
Posts: 6700
Loc: Caux L'Herault, France
|
Using the editor for the full TMod.dat file and selecting the train engine:  You can see here where entries can be edited, such as the dimensions and the smoke offset values.  Jel
_________________________
EAW upgrades (1.28E), scenario installations, and links: DropBox links and FileCloud linksThe best EAW online games are at GameRanger: GameRanger SiteTeamspeak 3 channel: 62.48.74.45:8769 Now you can join a running game, and even use multiple controllers
|
|
Top
|
|
|
|
#3599755 - 06/30/12 03:47 PM
Re: EAW Train Formations
[Re: Col. Gibbon]
|
3DZ Model Builder
Veteran
Registered: 06/04/01
Posts: 11940
Loc: Fleet, Hampshire, England.
|
Hi Tony.
Are the values the same as 3dz points?
_________________________
Just remember, "No Matter How Little I have Done, It's All The Less For You To Do" Wings Over BytomSingle parent, bringing up my great kids, Thomas, Jessica & Nicola, and trying to do his best all the time.
|
|
Top
|
|
|
|
|
|
| |