TTDPC: New configuration program - Version 1.3.1 Released
Moderator: TTDPatch Moderators
As Patchman says. That switches.xml doesn't contain any categories at all so all switches are connected to an unnamed category root. Try pressing the '+' button.
@Patchman: Why did you remove Categories completely from the -!S- xml file? I thought you would use another command for the new, category tree, format? Or are Categories so new that nothing (except TTDPC) uses them?
@Patchman: Why did you remove Categories completely from the -!S- xml file? I thought you would use another command for the new, category tree, format? Or are Categories so new that nothing (except TTDPC) uses them?
The latter... your program is the first to use them. And once it implements the new category scheme, there's no need to write the old category information anyway, so I thought I'd just remove it.AndersI wrote:Why did you remove Categories completely from the -!S- xml file? I thought you would use another command for the new, category tree, format? Or are Categories so new that nothing (except TTDPC) uses them?
I just tried it with the latest dos nightly as thats what i use and i brakes the cd path switch which is essential for dos ttdp. It replaces the : in the cdpath with an =.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
Unfortunately it doesn't happen for me when I try to reproduce it (or I don't understand the problemrobotboy wrote:I just tried it with the latest dos nightly as thats what i use and i brakes the cd path switch which is essential for dos ttdp. It replaces the : in the cdpath with an =.

you know what it was probably my computer lagging which caused me to accidently open ttdxc. but i never fully opened ttdxc.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
Version 0.2.5.2 is out.
- Handles both the new and the old format of SWITCHES.XML (the new format is available from the nightlies only, for the moment)
- Categories are correctly folded into a tree, giving less items on the root level, even when the old xml format is read.
- If ttdpatch(w).exe is not found in the current folder, TTDPC lets you select the folder where TTD is. This is remembered in TTDPC.INI (in the same folder as TTDPC.EXE)
- Most error conditions give a message and aborts the program.
First post updated accordingly.
- Handles both the new and the old format of SWITCHES.XML (the new format is available from the nightlies only, for the moment)
- Categories are correctly folded into a tree, giving less items on the root level, even when the old xml format is read.
- If ttdpatch(w).exe is not found in the current folder, TTDPC lets you select the folder where TTD is. This is remembered in TTDPC.INI (in the same folder as TTDPC.EXE)
- Most error conditions give a message and aborts the program.
First post updated accordingly.
- nicfer
- Director
- Posts: 529
- Joined: 03 May 2005 20:50
- Location: Somewhere in a country called Argentina
Seconded. Will be good see the other features of ttdxc (no the one for updating the configurator because it will need a host). If you do this I will uninstall my ttdxc and use thisWile E. Coyote wrote:And one more suggestion: add button "Run TTD" which closes TTPC and starts TTD.

Sorry for my english I am argentinian
TTO don't crashes in Windows XP; XP crashes TTO
Formerly known as UnderBuilder.
MyMiniCity
TTO don't crashes in Windows XP; XP crashes TTO
Formerly known as UnderBuilder.
MyMiniCity
OK. I've finally gotten around to testing this:
In approximate order of discovery:
All told, not bad. I only found one config-file reading bug that results in incorrect output, and I'm hoping that one won't be too hard to fix.
All other file-reading bugs appear to be GUI-only, and unless I change them, they go back out the same way they were read.
In approximate order of discovery:
- Version 0.3.0.0 wants to find newswitches.xml, a file that TTDPatch does not write. (Renaming switches.xml to newswitches.xml repairs this problem.)
- When selecting one of the switch categories, the caption under special says "click or press right arrow to expand". Neither of these works, but double-clicking (as suggested by the tool tip) does, as does pressing enter.
- The lines(but with the canon patch-generated comments) are listed in the gui as:
Code: Select all
experimentalfeatures.slowcrossing off experimentalfeatures.cooperative on experimentalfeatures.mandatorygrm off experimentalfeatures.incvehconsist on
and saved as same except that the bits are all commented out.Code: Select all
experimentalfeatures off experimentalfeatures.slowcrossing off experimentalfeatures.cooperative on experimentalfeatures.mandatorygrm off experimentalfeatures.incvehconsist on
It appears that the switch is labeled as on if and only if the first bit is on.
(The same issue appears for other bitswitches where the first bit is off.)
This continues to happen for "experimentalfeatures 10". - Minor: The line "bitswitch on" is unnecessary if immediately followed by individually set bits.
- In the switch tree view, the mouse wheel moves the selection, not the scroll bar.
- Minor: It is possible to enter invalid digts into the mountains and curves field. I would prefer if such characters were simply refused.
- Each digit of moresteam must be in the range 0..5, rather than the number as a whole being limited to fifty-five.
- There is a curious "<?>" attached to multihead's comment, and I do not find evidence of it in Patch's switches.xml.
- Turning an on a bitswitch that is off does not set any values for its bits. Was this intended?
- Feature request: Put the tgr* and towngrowth* switches (except for towngrowthratemode) in their own category, and/or don't show them unless towngrowthratemode is 2.
- Feature request: Turn on a bitswitch whenever one of its bits is set/changed.
- Feature request: It is invalid to have the sum of the three aibuild*chance switches exceed 65535. Prevent this.
- Feature request: Provide the option of setting aibuild*chance in percents.
- The tab order needs fixing. IMO, the radio buttons should come before the value editbox, and the non-existent control after the Range editbox and before the Value editbox should be removed. Possibly other changes too, but these seem the most important, currently.
And now for the trying-to-break-things part: - The #bbbb format for bitswitches is not recognized.
- Setting 0 when it is out of range (eg planespeed 0) is not properly recognized as off. (But it does work for on/off switches, and correctly selects closest-valid for other out-of-range values).
All told, not bad. I only found one config-file reading bug that results in incorrect output, and I'm hoping that one won't be too hard to fix.
All other file-reading bugs appear to be GUI-only, and unless I change them, they go back out the same way they were read.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
To distribute the app in TTDPatchAutoInstaller it would be good to have a webpage or the permission to let it download from the autoinstaller site behind the scene... So it always have the same zip filename... Which reminds me, I think I have to talk to Josef to get a symbolic link to the lastest nightly 

TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...


Actually no. You will get a manual page even with older versions of switches.xml, assuming that there is a wiki page with the same name as the switch. If there isn't it seems you get a nice page with a lot of links.Patchman wrote:Only in latest nightly/next beta, I presume?AndersI wrote:You can now press F1 on a switch to get the manual page opened in your preferred browser.
Thank you very much for the comprehensive list! I'll get back later with more complete answers (I'm at work now, vacation is over), I'll just make a quick note here:DaleStan wrote:OK. I've finally gotten around to testing this
The 'newswitches.xml' is of course my mistake, leaving testing code in there. Sorry.
I have absolutely no plans to add any intelligence/knowledge of patch switches into the program itself. The xml file is the definitive rule, no more, no less. That's the whole point of the program, it shouldn't get obsolete if something changes, and that means 'completely data driven'. I'm fully open to extending the information in the xml file, for example the smoke value really needs a new data type 'one decimal digit bit switches packed in an integer, with individual ranges' - or maybe a shorter name

We can continue that part of the discussion in my other thread The Category field in switches.xml has no text description if someone can change the title to something better: 'Suggested extensions to switches.xml' for example.
Also, consider coming up with a better / easier way to distribute your configurator than this - just throwing the various version-numbered zip files into a dir and letting apache list them (a README.txt would be a optional plus as well) works quite well. Then you can also have a symlink that you always update to point to the largest version number (or some PHP script that does it automagically).eis_os wrote:To distribute the app in TTDPatchAutoInstaller it would be good to have a webpage or the permission to let it download from the autoinstaller site behind the scene... So it always have the same zip filename... Which reminds me, I think I have to talk to Josef to get a symbolic link to the lastest nightly
Or, if you really want to, a svn repo with anon checkout and then manually do a extract on HEAD into a zip when you feel like releasing something.
EDIT: I just cooked up a simpleish script that does this for nr-ttd, see here. Something like that makes releasing a lot easier.
New version (0.3.1.0) released. First post as usual.
@DaleStan:
1 - Fixed
2 - Fixed
3 - Fixed (maybe?)
4 - Fixed
5 - As Borland designed it. I don't think I will try to change that. Sorry.
6 - Needs extended info from SWITCHES.XML
7 - XML
8 - Fixed (I had forgot to handle %%)
9 - Fixed (maybe). But what exactly do you want to happen?
10 - XML
11 - Partly fixed (GUI doesn't show it yet)
12 - XML
13 - XML
14 - Fixed (maybe). What tab order would be best?
15 - Fixed (I didn't know this existed)
16 - Fixed when reading old configs, will never be written out.
Thanks for the testing (and suggestions)!
@eis_os: When TTDPC (or whatever it should be called) has reached version 1.0 (ready for newbies, accepted by oldies and multi-language ready) you are free to put it anywhere you want. Until it has been accepted as working it shouldn't be distributed at all, only beta tested. The Delphi source code will also be available.
@DaleStan:
1 - Fixed
2 - Fixed
3 - Fixed (maybe?)
4 - Fixed
5 - As Borland designed it. I don't think I will try to change that. Sorry.
6 - Needs extended info from SWITCHES.XML
7 - XML
8 - Fixed (I had forgot to handle %%)
9 - Fixed (maybe). But what exactly do you want to happen?
10 - XML
11 - Partly fixed (GUI doesn't show it yet)
12 - XML
13 - XML
14 - Fixed (maybe). What tab order would be best?
15 - Fixed (I didn't know this existed)
16 - Fixed when reading old configs, will never be written out.
Thanks for the testing (and suggestions)!
@eis_os: When TTDPC (or whatever it should be called) has reached version 1.0 (ready for newbies, accepted by oldies and multi-language ready) you are free to put it anywhere you want. Until it has been accepted as working it shouldn't be distributed at all, only beta tested. The Delphi source code will also be available.
Much improved. A few more notes, though.
3) Doesn't work for me. Attached is my config. experimentalfeatures forcegameoptions, and pathbasedsignalling are the three examples.
4) Not fixed here, but, like I said, minor.
9) I, too, would choose to set all bits to default. Setting all bits off and setting all bits on also come to mind as potentially valid choices.
11) Doesn't work for me, either in the GUI or in ttdpatch.cfg.new. See planecrashcontrol in the attached config.
14) The current tab order seems fine to me.
16) Not fixed here. See the planespeed switch in the attached config.
3) Doesn't work for me. Attached is my config. experimentalfeatures forcegameoptions, and pathbasedsignalling are the three examples.
4) Not fixed here, but, like I said, minor.
9) I, too, would choose to set all bits to default. Setting all bits off and setting all bits on also come to mind as potentially valid choices.
11) Doesn't work for me, either in the GUI or in ttdpatch.cfg.new. See planecrashcontrol in the attached config.
14) The current tab order seems fine to me.
16) Not fixed here. See the planespeed switch in the attached config.
- Attachments
-
- ttdpatch.cfg
- (33.4 KiB) Downloaded 319 times
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Who is online
Users browsing this forum: No registered users and 21 guests