Results 1 to 6 of 6

Thread: Getting CTPEdit to work

  1. #1
    tombom
    Chieftain tombom's Avatar
    Join Date
    19 Oct 2004
    Location
    Pining for the fjords
    Posts
    80
    Country
    This is tombom's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    09:29

    Getting CTPEdit to work

    I've downloaded CTPEdit and I'm trying to get it to work with basically some copied files with a different extension. I changed gamefile and read from gamefile. This went OK, but whenever i save and load i get a type 13 runtime error (type mismatch). Does anyone know how to solve this?

    Incidentally, how do you edit the Great Library?

  2. #2
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,248
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    May 23, 2013
    Local Time
    11:29

    Post

    I wouldn't replace extensions, I would replace the prefixes of the files. However the important stuff is that you replace the original files by your new file names in your gamefile.txt. Another thing is that you can open an additional version of the file you are editing, for comparision for instance.

    You can also modify the Great Library, but for that you have to ask John, as I have never messed around so much with this part of the program.

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

  3. #3
    J Bytheway
    Emperor J Bytheway's Avatar
    Join Date
    02 Jul 2001
    Location
    England
    Posts
    3,826
    Country
    This is J Bytheway's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    10:29
    Originally posted by tombom
    I've downloaded CTPEdit and I'm trying to get it to work with basically some copied files with a different extension. I changed gamefile and read from gamefile. This went OK, but whenever i save and load i get a type 13 runtime error (type mismatch). Does anyone know how to solve this?
    Hmm... It's been a long time since I worked on this, but it shouldn't give type mismatch errors under any circumstances - could you please explain what you are doing in more detail?

    Incidentally, how do you edit the Great Library?
    Through Tools -> Great Library.

  4. #4
    tombom
    Chieftain tombom's Avatar
    Join Date
    19 Oct 2004
    Location
    Pining for the fjords
    Posts
    80
    Country
    This is tombom's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    09:29
    Using Create from Gamefile, I can get CTC to have a saved project file and load it again. However, a mod I'm working on will save, but not load, giving a type mismatch.

    I'm not entirely sure about how to choose the right great library. If I type in a file name in the Great library box, where does that get the file from?

    i meant prefix, sorry.
    Last edited by tombom; February 13, 2005 at 02:33.
    Caution! Under no circumstances confuse the mesh with the interleave operator, except under confusing circumstances!
    -Intercal reference manual

    People often remark of me, "You say sorry far to much!". To which my common-sense reply is "I apologise".

  5. #5
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,248
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    May 23, 2013
    Local Time
    11:29

    Post

    The file is taken from the modded gamefile.txt, and the most logical thing to do if the gamefile doesn't contain any own Great_Library.txt is to use the default one. However for a ModSwapper mod it is essential to define an own Great_Library.tx and an own newsprite.txt even if they are just copies of the original one to prevent any problems with ModSwapper.

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

  6. #6
    J Bytheway
    Emperor J Bytheway's Avatar
    Join Date
    02 Jul 2001
    Location
    England
    Posts
    3,826
    Country
    This is J Bytheway's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 23, 2013
    Local Time
    10:29
    Originally posted by tombom
    Using Create from Gamefile, I can get CTC to have a saved project file and load it again. However, a mod I'm working on will save, but not load, giving a type mismatch.
    My best guess is that this is due to CTPEd trying to interperet some floating point field value as an integer... If you post the files you're working on here I could probably find the problem quite quickly.

    I'm not entirely sure about how to choose the right great library. If I type in a file name in the Great library box, where does that get the file from?
    Which Great Library box?

    i meant prefix, sorry.
    Sorry, you lost me... I hope Martin understood you better.

Similar Threads

  1. ctpedit
    By thistleknot in forum Call to Power 2
    Replies: 3
    Last Post: November 13, 2009, 01:12
  2. Replies: 5
    Last Post: November 12, 2009, 12:42
  3. How does /have access to/ work? How does the infrastructure work?
    By snafuc4 in forum Civilization IV General
    Replies: 2
    Last Post: January 10, 2006, 18:13
  4. Need help downloading CTPEdit...
    By demon59 in forum CtP2 Creation
    Replies: 3
    Last Post: April 2, 2005, 07:26
  5. uh....so how do forum games work (or not work)
    By MORON in forum Other Games
    Replies: 55
    Last Post: August 20, 2004, 08:06

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Bookmarks

Posting Permissions