Announcement

Collapse
No announcement yet.

CTPEd 0.5.0beta

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CTPEd 0.5.0beta

    Time for a new thread...
    (Old thread at http://apolyton.net/forums/showthrea...threadid=50102 )

    OK, I've been working away slowly at this for a while and am now prepared to release another version.

    CTPEd will (should!) allow you to edit many of the various CTP2 data files (advance.txt, etc.) through a graphical interface to speed mod development, decrease the chance of errors and help in any other way I could think of and have had time to code.

    Other features of note:
    - A Great Library (GL) tool which allows use of templates to quickly generate many GL entries.
    - The ability to quickly make mass changes to entries in a data file.
    - A sorting tool to rearrange the entries of a file
    - A means to easily generate repetitive SLIC code

    Should be available at:


    (current version 0.5.0beta - check the last available update on the thread and if that is a later version then download it after this)

    Unzip to a temporary directory and run Setup.exe. The setup program is a bit crummy but appears to work. The default install path is in Program files - but I recommend you change this to something like [Your CTP Path]\ctp_data\CTPEd\, but it's up to you.

    Or, if you want an update to a previous version use:


    Have a go, but remember:

    READ THE README before you start! It will not correctly execute until you have followed the instructions therin.
    If this screws your computer up, I'm sorry but hard luck. Backups are always a Good Thing.
    This is tested only under Windows XP.
    This is a beta version. Expect bugs.
    READ THE README!

    Feedback always welcome. Bug reports and any other comments to this thread, or if you prefer privacy to jjb48@cam.ac.uk

  • #2
    New in version 0.5.0:

    - Added sort tool
    - Refined the GL tool further to get you even more space should you need it, and considerably sped up the interface refresh rate
    - Added support for editing Newsprite.txt (This necessitated changing the project file format *again*, so projects from prior versions will no longer work - please reload from *_gamefile.txt
    - Extended the GL template system, adding further syntax and the abilityto use script files to automate things further
    - SLIC template processor tool (using the same (newly extended) template system as the GL)

    Still on the to do list (down to just 9 things now - sorry about the continued lack of multi-language support):

    - Add error checking systems to allow you to track down problems before you crash CTP2.
    - Option to hide fields which are superfluous or always set to the same thing (e.g. Branch in advance.txt).
    - Dropdown list for field values with only certain options like CanSee:.
    - Multi-language support.
    - Track modification to remove unnecessary overwrites on export.
    - Make it possible to see more than one of a multiple field at once.
    - Support for DiffDB.txt, map.txt.
    - Multi-entry copy/cut/paste/delete.
    - Make project files portable by saving relative paths rather than absolute ones

    Comment


    • #3
      OK finally I found some time to test your latest version, John.

      First I made a *.ces file for the specattack.txt. I would like to be to put everything like I want between the fields. The original file has a new line for every entry, it has two fields, without a new line in between so far I was only able to generate a file with two spaces in between of the two fields.

      Another bug I found is that it doesn't work anymore to open another file of the same type. I get instead of the second file an error message:

      Laufzeitfehler '1100':

      Failed to provide interface when initializing FileAccess

      Laufzeitfehler -> RunTimeError

      Another but small problem I found is that if I open the Open... file box and press the Cancel button I get a File not found error message. The same is true is I press the cancel button on the Read from gamefile.txt box.

      -Martin
      Attached Files
      Civ2 military advisor: "No complaints, Sir!"

      Comment


      • #4
        i simply cannot make it run.
        whenever i try to make a project of my own, i get the error 76 path not found

        Comment


        • #5
          A slightly belated response, but I did give warning that my development tends to go in fits and spurts. Thanks to Zaphod for bumping this thread.

          Originally posted by Martin Gühmann
          First I made a *.ces file for the specattack.txt. I would like to be to put everything like I want between the fields. The original file has a new line for every entry, it has two fields, without a new line in between so far I was only able to generate a file with two spaces in between of the two fields.
          And you would like one space, rather than two?

          Another bug I found is that it doesn't work anymore to open another file of the same type. I get instead of the second file an error message:

          Laufzeitfehler '1100':

          Failed to provide interface when initializing FileAccess

          Laufzeitfehler -> RunTimeError
          Thanks for pointing that out. I've now fixed that.

          Another but small problem I found is that if I open the Open... file box and press the Cancel button I get a File not found error message. The same is true is I press the cancel button on the Read from gamefile.txt box.
          That's intentional (Sort of) - since you didn't specify a file it's hardly surprising that it couldn't find it .

          Originally posted by Zaphod Beeblebrox
          whenever i try to make a project of my own, i get the error 76 path not found


          Do you get this error before or after you see the Save Project As... dialog?

          Comment


          • #6
            after the properties dialog, regardless of what options i use there.

            Comment


            • #7
              Update v0.5.1

              Updated to v0.5.1. Update at:


              Unzip over the installed version. Again, this will reset your preferences to defaults (unless you select not to extract default.prf, which is safe so long as you're updating v0.5.0).

              New in this version:

              - Added GL templates for wonder.txt and govern.txt
              - Improved error messages due to missing paths related to CheckFilesExist form
              - Repaired the 'Open another file of this type...' feature

              Zaphod:
              Try this one, you will still get an error, but it should be a better error, which will enable me to track the problem. Thanks.

              Comment


              • #8
                It works now with the open another file of the same type thanks.

                One improvement for the single column view would be to put the field name and the actual field into one line instead of one line for the field name and a text line in the next line for the value. This would save some space and increases the overview.

                -Martin
                Civ2 military advisor: "No complaints, Sir!"

                Comment


                • #9
                  still looks the same.
                  when closing the properties windows a new empty!window named project files opens and i get the error 76 path not found. when pressing ok to that message the programm exits.

                  Comment


                  • #10
                    Update v0.5.2

                    Updated to v0.5.2. Update at:


                    Unzip over the installed version. Again, this will reset your preferences to defaults (unless you select not to extract default.prf, which is safe so long as you're updating v0.5.0 or later).

                    For those not experiencing the same problem as Zaphod, this update is probably not worthwhile.

                    New in this version:

                    - Improved error messages due to missing paths in several other places that I missed in v0.5.1

                    Zaphod:
                    Here's another attempt. I think you made it past the bit causing the error before, but I found some more places (worryingly many, in fact) which could be causing the same error you were seeing, and again I hope I have fixed them so that they give a more informative error or none at all. So, please try this and tell me what happens.

                    Martin:
                    Yes, I see what you mean. I was programming in C# yesterday and it has given me (in a roundabout fasion) an idea for a better way to handle the whole system of aligning the controls on that form. It should provide for what you want, and also allow better handling of multiple instances of a field, which has always been a weakpoint in my design.

                    Unfortunately I'd probably need to devote more time than I have right now (I have a project deadline and exams approaching (not to mention a probable appointment as President in the DG)), so I make no promises. OTOH, it might turn out to be really simple and quick, as have some other things I dreaded in this project. I'll keep you informed.

                    Comment


                    • #11
                      ok, now i get a clearer error message
                      the programme tried to write files in a nonexistant folder

                      still getting another error, but i presume thats my current gamefiles fault, will check later.

                      thank you

                      Comment


                      • #12
                        My pleasure .

                        Comment


                        • #13
                          Originally posted by Zaphod Beeblebrox
                          still getting another error, but i presume thats my current gamefiles fault, will check later.
                          yup, ctped finds stupid mistakes ctp2.exe doesn't even notice

                          Comment


                          • #14
                            From some testing, I just opened two files and had three windows of Mozilla 1.3 open I got out of memory errors, I never got something like this in earlier versions.

                            Another thing I see is that the compare function just shows me the different entries but not the defferences in detail that is a little bit user unfriendly.

                            -Martin
                            Civ2 military advisor: "No complaints, Sir!"

                            Comment


                            • #15
                              Originally posted by Martin Gühmann
                              From some testing, I just opened two files and had three windows of Mozilla 1.3 open I got out of memory errors, I never got something like this in earlier versions.
                              Well, I did, which is why I was paranoid about addind comment preservation and so forth, but when I upgraded from 72MB RAM to more than 200MB I stopped getting that. However, I think that the biggest load is from all the controls loaded onto the form, rather than the data itself so I was probably worrying over nothing. Either way, loading units.txt is much more significant than loading any of the other files, so beware of doing so if you're having problems.

                              Could you try it with task manager (or some other system performance monitor) open and see when it is that much memory is being used? Also, it might be a good idea to check total memory before and after to see if there's a memory leak of some kind (which wouldn't surprise me).

                              The plan I had to improve the control positioning methods would probably cause a significant hit on memory too, which might be a problem.

                              Another thing I see is that the compare function just shows me the different entries but not the defferences in detail that is a little bit user unfriendly.
                              What kind of format would you like to be told what the differences are in detail? I guess I could highlight the controls pertaining to the differing fields in some way, or else output a report detailing all of the differences (to a text file or to screen, in a text box).

                              Comment

                              Working...
                              X