View Full Version : Civ III Diplomacy Editor


pesoloco
Jun 28, 2002, 07:01 PM
Many of you know me as a unit creator. Few people know that I am also a programmer.

I wrote this utility for fun. It helps mod creators to edit the diplomacy.txt file.

One problem with using notepad or wordpad to edit this file directly is that if you start sorting by civ, mood, and power, with diff. random choices you can get a very long list of text messages. This list can become very difficult to navigate without continually counting the messages.

This utility organizes the messages and creates a graphical breakdown of each diplomatic message.

This is how it works:
when you first start the program you are asked for the civ path. enter the path where civ is located and click ok

After that, the main window pops up.
You select a message, such as AIFIRSTCONTACT from the list on the left. Then you change the properties on the right.
For example, you can choose to sort by civ, sort by mood, and have 2 random choices for each. The list below that changes. The different graphics represent civs, power levels, moods, etc.
Click on a line and type a new message.

When you click on exit, you are asked if you want to save. click yes to save. When you save, the program automatically creates a backup of the current diplomacy.txt file called backup-diplomacy.txt

See screenshots of the utility program.

DEC 18: NEW VERSION 3.66 NOW AVAILABLE

INSTALL INSTRUCTIONS:
1. download the zip file (dipedit366setup.zip)here (http://www.civfanatics.net/uploads3/dipedit366setup.zip)
2. create a folder called C:\TEMP\DIPEDIT
3. unzip the file to that folder
4. run setup.exe
5. follow the instructions
6. after the setup program is complete, delete C:\TEMP\DIPEDIT

FEATURES
Graphic Interface for editting diplomacy messages
Add new messages for new civs
Import messages from other diplomacy files
Edit user diplomacy messages
Edit diplomacy labels (such as "peace treaty" or "mutual protection pact")

pesoloco
Jun 28, 2002, 07:10 PM
here is a closer look at the diplomacy tree

pesoloco
Jun 28, 2002, 07:11 PM
graphical key

pesoloco
Jun 28, 2002, 07:43 PM
Also, this utility is compatible with all versions of Civ III.


Please rate this thread
Feedback appreciated.

philippe
Jun 29, 2002, 02:41 AM
cool:cool:It looks like a easy program and it would be really fun that leaders could say stupid things.:):):)

Gramphos
Jun 29, 2002, 11:23 AM
cool. This makes me to lower the priority on adding sush a tool to the multitool.

What language is it written in?

pesoloco
Jun 30, 2002, 03:03 PM
Originally posted by Gramphos
What language is it written in?

It's written in Visual Basic 5.0
I would've use Visual C++ but I wanted to get it done quickly. VB seems easier to debug programs. I also have more experience with VB than VC++, but I know them both well.

I am also working on a much larger project for Civ. This is actually a part of it. I dont know how soon it will be for me to finish the whole thing so I may release it in bits and pieces.

pesoloco
Jun 30, 2002, 04:35 PM
Here is an example of what the program can do:

pesoloco
Jun 30, 2002, 04:50 PM
I am going to add a few more features later to allow you to edit treaty names and negotiation labels.

Exsanguination
Jul 03, 2002, 08:14 PM
tip: extend the "leader dialogs" box much further to the right so we can see more of the text. Good job, though :)!

pesoloco
Jul 03, 2002, 09:20 PM
Originally posted by Exsanguination
tip: extend the "leader dialogs" box much further to the right so we can see more of the text. Good job, though :)!

I thought the same thing. I will have a new version ready shortly.
I am thinking of making the size adjustable.

nonnob3
Jul 05, 2002, 10:47 AM
Amazing utility!!!!!!!!!!!!!!!!
Awsome job Pesoloco!!!!!!!!!!!!!!!!!!

Thank you!!!!!!!!

pesoloco
Jul 05, 2002, 05:31 PM
I just posted version 1.20 on the geocities site. If you have already downloaded the older version, just install this over it.

CHANGES:
Main Window is now resizable
The message list and message tree sizes can be adjusted by resizing the window
A separator is located between the list and the tree. This separator can be dragged to the right or left to reveal more of the list or give you more space to type messages into the tree.

GET THE NEW VERSION, CLICK HERE!!! (http://www.geocities.com/pesolocoscivsite/editors.htm)

pesoloco
Jul 05, 2002, 05:33 PM
Originally posted by nonnob3
Amazing utility!!!!!!!!!!!!!!!!
Awsome job Pesoloco!!!!!!!!!!!!!!!!!!

Thank you!!!!!!!!

you're welcome. :D

philippe
Jul 05, 2002, 06:42 PM
Pesoloco.Every day you make a new unit or now even a new utility you stun me with your perfection.....
You really are on the level of dark sheer and other unit makers.
i congrat you on the work you now already done.:goodjob:

pesoloco
Jul 05, 2002, 09:28 PM
thanks, philippe

I have posted version 2.00 (http://geocities.com/pesolocoscivsite/editors.htm) on my geocities site.

CHANGES:
Added "Labels" button which opens a "labels" dialog box.
This new dialog box allows you to change the label texts on the diplomacy screen.

pesoloco
Jul 05, 2002, 09:33 PM
here is a screenshot of the new "labels" dialog box

Smoking mirror
Jul 06, 2002, 09:28 PM
Great work!
When the editor comes out, I'm going to need this utility almost as much as flicster. :) This should alow some exelent Scenarios.

Lt. 'Killer' M.
Jul 07, 2002, 12:17 PM
WOW!!!!!!! :goodjob: Excellent!!!! Top of the heap! WOW!!!!!!

pesoloco
Jul 07, 2002, 09:32 PM
I am glad there is so much support for this utility, especially since it is my first utility for civ III.

I am thinking of making a few minor changes (adding more features actually). We'll see how it works out.

zulu9812
Jul 08, 2002, 01:49 PM
brilliant stuff - Dan Magaha was saying that he was surprised no-one had come up with something like this yet

simplybag
Jul 08, 2002, 02:45 PM
Is the geocities site down? :( I'm really looking forward to using this program, can't wait to have Bismarck insult me in German :)

pesoloco
Jul 08, 2002, 02:48 PM
Version 3.00 is now available

Unfortunately geocities is telling me I have reached my bandwidth limit. Too many people downloading my stuff (haha)

VERSION 3.00
MAJOR BUG FIX : Bug in the calculation of messages not sorted by civ (If you have a previous version please GET THE NEW VERSION or your diplomacy text file will end up missing text quotes.
MODIFICATION: You only need to tell the program the Civ path the first time you run it. It is stored in the registry for future uses.
ADDED: Added an options dialog box. Allows user to change civ path if necessary and gives option to use default civ names (see next item)
ADDED: Show Default Civ Names - this option will display abbrevaited civ names instead of civ 1, civ 2... for example... Rom, Egy, Gre, Bab....

I will have the URL for the download shortly.

GhengisFarb
Jul 08, 2002, 03:11 PM
I have so been wanting a utility for the Diplomacy text file. This is going to make it so much easier to make dialogue for alternate Leaderheads.

GREAT WORK!

pesoloco
Jul 08, 2002, 03:38 PM
ok. forget geocities.
I'm going to try the easy up-load feature on the forum

simplybag
Jul 08, 2002, 03:40 PM
Please do that, I have been refreshing the forum for 10 minutes now :p

pesoloco
Jul 08, 2002, 03:41 PM
I posted the file for Version 3.00 on civfanatics server.
download it HERE (http://www.civfanatics.net/uploads/dped300.zip)
** UPDATED : VER 3.10 available **

pesoloco
Jul 08, 2002, 03:44 PM
sorry to keep you waiting, simplybag.
It's ready now.

I must stress that if you have a previous version PLEASE DOWNLOAD the new one because of the major bug fix.

simplybag
Jul 08, 2002, 03:47 PM
Thanks a lot for the quick server fix, you rock :o

pesoloco
Jul 08, 2002, 03:47 PM
here is a screenshot of what it looks like with civ names turned on

pesoloco
Jul 08, 2002, 03:49 PM
right now I have the number of civs hardcoded at 16.
It would be easy to make adjustable. I think I will add an option to set the number of civs (for those scenarios that people added civs - and the coming expansion pack)
Sorry to keep coming up with new versions all the time. I just keep getting more ideas. :)

pesoloco
Jul 08, 2002, 04:07 PM
I added the option for changing the number of civs.
Here is version 3.10

Download it HERE (http://www.civfanatics.net/uploads/dped310.zip)

pesoloco
Jul 08, 2002, 05:08 PM
Originally posted by simplybag
Is the geocities site down? :( I'm really looking forward to using this program, can't wait to have Bismarck insult me in German :)

well, maybe this isn't insulting enough for you, but it's about the only german I know. :D

GhengisFarb
Jul 08, 2002, 05:29 PM
Can I post a link to the download and to this thread in the Leaderhead library? Anyone who changes their leaderheads would probably want to change that leaders dialogue also.

pesoloco
Jul 08, 2002, 05:39 PM
Originally posted by GhengisFarb
Can I post a link to the download and to this thread in the Leaderhead library? Anyone who changes their leaderheads would probably want to change that leaders dialogue also.

Sure. you can post a link.

philippe
Jul 08, 2002, 05:44 PM
well i already can see:Elizabeth of the English:
Im late for my bloodbath,how do you want me to get killed?

pesoloco
Jul 08, 2002, 06:05 PM
Originally posted by philippe
well i already can see:Elizabeth of the English:
Im late for my bloodbath,how do you want me to get killed?
haha!! I think I've opened a door to some pretty funny quotes....

pesoloco
Jul 08, 2002, 07:52 PM
VERSION 3.30 Ready!

I added a feature to let you choose keywords (such as $PLAYER0, $CIVNAME3, etc.) based on the message. Just click on the combo box.

I also made a change to the tree. You can now use the arrow keys to move up and down from field to field.

VERSION 3.30 - GET IT HERE (http://www.civfanatics.net/uploads/dped330.zip)

Exsanguination
Jul 08, 2002, 08:10 PM
oh sure... i reinstall it (new comp ;)), and 10 mins later you release a new version... hmpf

tip #2 - each time you release a new version, release it as a "small install" or "patch", so those of us who just downgraded to 56k don't have to d/l a 1.5 MB file each time - kinda like Gramphos does with his C3MT.

pesoloco
Jul 09, 2002, 07:25 PM
Originally posted by Exsanguination
oh sure... i reinstall it (new comp ;)), and 10 mins later you release a new version... hmpf

tip #2 - each time you release a new version, release it as a "small install" or "patch", so those of us who just downgraded to 56k don't have to d/l a 1.5 MB file each time - kinda like Gramphos does with his C3MT.

sorry
I will do that from now on

pesoloco
Jul 09, 2002, 07:31 PM
Making a patch for ver 3.30....

pesoloco
Jul 09, 2002, 07:35 PM
Here is a ver 3.30 patch for those who have already installed the program. Unzip it into your Diplomacy Editor directory.

pesoloco
Jul 10, 2002, 01:45 PM
Well, I made one more patch. This will probably be the last patch for a while.

CHANGES:
When you change the number of random choices, entries that are already entered will stay associated with their previous civ,mood, or power.
For example:
BEFORE:
(with random = 1)
Civ 1 - R1 hello
Civ 2 - R1 hi there

AFTER:
(with random = 2)
Civ 1 - R1 hello
- R2 (blank)
Civ 2 - R1 hi there
- R2 (blank)

Download Ver 3.41 patch (attached file)
or click HERE (http://www.civfanatics.net/uploads/dpedit341setup.zip) for full install.

Brocky
Jul 17, 2002, 08:29 AM
Has anybody edited their diplomacy file using this program and would like to post it so people can compare (and compete)?

Make sure it's funny :D

pesoloco
Jul 17, 2002, 09:21 PM
Originally posted by Brocky
Has anybody edited their diplomacy file using this program and would like to post it so people can compare (and compete)?

Make sure it's funny :D

I have added over 1000 messages to mine. I will post it when I finish it up.

GIDustin
Jul 18, 2002, 09:51 PM
Found a REALLY small bug.

Load the regular file, and change the civ number from 16 to say, 31. Notice that the last coupe of civs in teh first section are blank. The "copy" should be looped as to get all the civs so no typing is required.


Most people wont add that many civs (well, I did . . .) but I thought I would bring it up anyway. My mod has 11 additional civs since I have the leaderheads and units to do so (if you didnt unerstand that last sentence, visit my website)

Other than that, thanks for the tool pesoloco!!! Modmaker's appreciate your work.

GIDustin

Hmm. Both you and Gramphos use VB to make tools. All i know is web based programming. I guess I am off to find some tutorials on VB then :D

pesoloco
Jul 19, 2002, 04:40 PM
Originally posted by GIDustin
Found a REALLY small bug.

Load the regular file, and change the civ number from 16 to say, 31. Notice that the last coupe of civs in teh first section are blank. The "copy" should be looped as to get all the civs so no typing is required.

:D

I have already been working at fixing this, but thanks for bringing it up. I was also working on (and have already completed some of them) looping the text for when sort by civ, power, mood, and random are changed.

I am also fixing a bug that causes quotation marks (") to be repeated like this """"""""""Hello"""""""""

Expect a new patch soon.

JBearIt
Jul 30, 2002, 08:34 AM
I used 1.29 to add a new civ. It works when I play as the new civ but that game crashes if I have the AI play as new civ and I try to engage in the new civ in some diplomatic interaction. Could it be that the problem is that my diplomacy.txt file is set for 16 civs and thus the computer doesn't know how to dialog on behalf of the 17th? If so, it looks like this utility will really help out.

pesoloco
Jul 30, 2002, 05:16 PM
Originally posted by JBearIt
I used 1.29 to add a new civ. It works when I play as the new civ but that game crashes if I have the AI play as new civ and I try to engage in the new civ in some diplomatic interaction. Could it be that the problem is that my diplomacy.txt file is set for 16 civs and thus the computer doesn't know how to dialog on behalf of the 17th? If so, it looks like this utility will really help out.

Yes, you WILL need to add dialogs for each message that is sorted by civ for each new civilization you add.

I have a new version ready with a few interface bug fixes:
The attached file is the version 3.52 Patch

pesoloco
Jul 30, 2002, 05:19 PM
Here is the version 3.52 FULL INSTALL
Unzip the files into a temporary folder then run setup.exe
Click here to download the FULL zip file (http://www.civfanatics.net/uploads/dipedit352setup.zip)

JBearIt
Aug 07, 2002, 09:21 PM
Pesoloco,

Thanks for the great work on the diploeditor. Unfortunately, there seem to be some bugs. When I added a 17th civ, it worked pretty smoothly. However, after adding diplo text for an 18th civ, I started to run into the problem of disappearing text. After playing for awhile, I started to notice that many of the responses from the 18th civ were blank. Eventually the game crashed. At first I thought maybe I just missed a few entering a few lines in the editor. However, when I went back into the diploeditor I noticed that about half the text that I had previously entered had disappeared for no reason! I re-entered the text, saving regularly and tried playing again. It seemed to work fine. I next entered in complete diplo text for a 19th civ. Once again, at first it seemed ok but after interacting with that civ for awhile, many of the responses were blank. Back into the diploeditor and indeed, about half the text that I entered for the 19th civ had disappeared. Any idea what's happening? Possible fixes?

Thanks

pesoloco
Aug 09, 2002, 07:27 AM
Originally posted by JBearIt
Pesoloco,

Thanks for the great work on the diploeditor. Unfortunately, there seem to be some bugs. When I added a 17th civ, it worked pretty smoothly. However, after adding diplo text for an 18th civ, I started to run into the problem of disappearing text. After playing for awhile, I started to notice that many of the responses from the 18th civ were blank. Eventually the game crashed. At first I thought maybe I just missed a few entering a few lines in the editor. However, when I went back into the diploeditor I noticed that about half the text that I had previously entered had disappeared for no reason! I re-entered the text, saving regularly and tried playing again. It seemed to work fine. I next entered in complete diplo text for a 19th civ. Once again, at first it seemed ok but after interacting with that civ for awhile, many of the responses were blank. Back into the diploeditor and indeed, about half the text that I entered for the 19th civ had disappeared. Any idea what's happening? Possible fixes?

Thanks

I apologize for the trouble. I will look into it. It probably is a problem in the save file loop. There seem to still be some problems when adding new civs. I am on vacation right now, but when i get back to my computer I will debug it right away.

Nahuixtelotzin
Aug 09, 2002, 03:55 PM
I can't wait until this problem is fixed. I'll then be able to make nice texts for my 15 new Civs :D.

This utility rocks!

GIDustin
Aug 11, 2002, 09:00 PM
I have an idea for a future release, but it may take awhile to code.

Have the ability to open a bic, and base the civ names on that.

I have 31 civs in my mod, and after "Eng", i get civ 17, civ18, etc. What I would like to see is it have the ability to open a bic and get the three first letters from the civs in the bic and use those. I am having problems remembering which civ is what number.

Just an idea

GIDustin

pesoloco
Aug 11, 2002, 09:02 PM
Originally posted by GIDustin
I have an idea for a future release, but it may take awhile to code.

Have the ability to open a bic, and base the civ names on that.

I have 31 civs in my mod, and after "Eng", i get civ 17, civ18, etc. What I would like to see is it have the ability to open a bic and get the three first letters from the civs in the bic and use those. I am having problems remembering which civ is what number.

Just an idea

GIDustin
I just got back from vacation. That's a good idea, GIDustin, I will see what I can do.

Tommorrow I will begin massive debugging on this program. This will take precedence over the units I am working on.

GIDustin
Aug 11, 2002, 09:06 PM
Originally posted by pesoloco

Tommorrow I will begin massive debugging on this program. This will take precedence over the units I am working on.

Kal-el is gonna be mad. :p

Thanks for listening to my proposal.

GIdustin

bnmac3
Aug 11, 2002, 10:26 PM
Quick question:

Will there be an option when you are done to add a Always at war clause between all civs, or all vs. one?

pesoloco
Aug 11, 2002, 10:51 PM
Originally posted by GIDustin


Kal-el is gonna be mad. :p

Thanks for listening to my proposal.

GIdustin

hee hee. shhh. don't tell. ;)

Kal, if you're listening, the moving van will be done soon - very soon. I just want to get this fixed first.

Originally posted by bnmac3:

Quick question:

Will there be an option when you are done to add a Always at war clause between all civs, or all vs. one?

I do not know if that option will be included in the expansion pack or not. I had suggested it in the Expansion Pack Ideas thread so maybe Firaxis might have seen it.

pesoloco
Aug 12, 2002, 02:14 PM
I have finsihed Ver. 3.61
This version fixes the bug that caused only the text for the first 16 civs to be saved to the diplomacy file.

here is the patch

pesoloco
Aug 12, 2002, 02:19 PM
Here is the full version (v. 3.61)

http://www.civfanatics.net/uploads/dipedit361FullInstall.zip

bnmac3
Aug 12, 2002, 08:23 PM
Greatest thing since the Multitool....thanks its awsome

kring
Aug 14, 2002, 06:41 PM
I can't wait to try it out. I have been wanting to make the possibility for using a few more of the civ packs out there.

pesoloco
Aug 14, 2002, 08:14 PM
I'm glad you all like it so far. I am working on extending some of the features to save typing and cutting/pasting. I want to make it so when you change a setting on a message, the affected quotes are moved appropriately.

kemal69
Aug 24, 2002, 11:57 PM
Ths is a great utility pesoloco. I didn't realise it had been updated so much, I have been using v3.41 for a while.

Good to see ongoing support for the utility!

Isak
Aug 25, 2002, 04:18 AM
Just want to add my own praise to the choir here - brilliant work Pesoloco.

My only gripe is: Why didn't you tell me you did this :D

kemal69
Aug 27, 2002, 03:08 AM
Constructive criticism: I have noticed when you copy/paste something into a field for a message if you don't press enter, when you leave the field the changes are not saved. ie. it reverts to the precopy/paste message.

Sorry if you already know about this... ;)

pesoloco
Aug 27, 2002, 10:41 AM
Originally posted by kemal69
Constructive criticism: I have noticed when you copy/paste something into a field for a message if you don't press enter, when you leave the field the changes are not saved. ie. it reverts to the precopy/paste message.

Sorry if you already know about this... ;)

Thank you for letting me know about this glitch. I did not know that was going on. I will take a look and have a fix ready ASAP.

kemal69
Sep 11, 2002, 06:50 AM
any luck with this glitch pesoloco? I know you have been pretty busy, but it never hurts to ask! heh

pesoloco
Sep 11, 2002, 05:12 PM
i'm sorry, I did work on this, but forgot to post!

I was unable to duplicate your problem on my own machine. I cut text from one field and pasted it in another. I didn't notice any strange problems as a result.

Can you explain exactly how it happened?

kemal69
Sep 11, 2002, 07:07 PM
hmm Maybe its Windows XP, what version of windows do you use?

It happens every single time I do it.

Here's how it happens:

I click on an existing string for another civ, right click then click copy.

I click in the empty string field, right click then click paste, if I then click elsewhere the text dissapears, however if I hit the enter key first then click elsewhere its ok.

The same happens if I click in an existing string and edit it, if I just click elsewhere it reverts to the original, if I hit enter then click elsewhere its ok.

Weird huh. It also happens on my work pc, boith run the same version of Windows XP.

pesoloco
Sep 11, 2002, 07:09 PM
Originally posted by kemal69
hmm Maybe its Windows XP, what version of windows do you use?

It happens every single time I do it.

Her'es how it happens:

I click on an existing string for another civ, right click then click copy.

I click in the empty string field, right click then click paste, if I then click elsewhere the text diosspears, however if I hit the enter key first then click elsewhere its ok.

The same happens if I click in an existing string and edit it, if I just click elsewhere it reverts to the original, if I hit enter then click elsewhere its ok.

Weird huh. It also happens on my work pc, boith run the same version of Windows XP.

Hmm. Did you get the new version of it? Maybe you still have the old one. I am using Windows ME and 2000.

I wasn't right-clicking though. I was using CTRL+X (Cut) CTRL+C (Copy) CTRL+V (Paste)

I will try it your way and see what happens.

pesoloco
Sep 11, 2002, 07:13 PM
kemal, you are right. I will fix it tommorrow when I have more free time.

kemal69
Sep 11, 2002, 07:16 PM
wow. so it doesn't happen if you use ctrl keys? I will try that... And yes definitely new version, it happened in the older version too though.

pesoloco
Sep 11, 2002, 07:26 PM
OK. I fixed it. small minor error. No need to wait till tommorrow.
I apologize for any trouble it may of caused anybody.

HERE IS THE VERSION 3.62 PATCH

Amadan
Sep 12, 2002, 07:39 AM
Just ran across this program.
Have a diplomacy.txt file someone made that has generic responses for 31 civs (don't rember where I found it), and this will be perfect for making thim more civ specific without going insane!

kemal69
Sep 12, 2002, 08:51 AM
Hey pesoloco! Awesome! That was a quick fix.

Amadan, that diplomacyt txt with the 31 civs in it is a good starting point, but I did notice when I loaded it up myself that the guy who edited it had missed quite a few responses, just something to be aware of.

pesoloco
Sep 12, 2002, 09:11 AM
I have a diplomacy.txt file for 16 civs that I have already added over 1000 new messages. I still want to add more to every possible message. When I finish it I will post it.


A few examples:
When you are the stronger civ and you try to threaten a weaker civ to give you something for nothing:
"This is the deal of a lifetime! Refuse it and your lifetime will be shorter!"

Or when you ask for a loan:
"Why would I give you our hard-earned money if you can't even take care of your own? Perhaps you need a second job?"

nonnob3
Sep 12, 2002, 01:01 PM
You mean to tell me by using Pesoloco's editor and adding new civs to the game is much easier with no errors showing up on the diplomacy screens?
Don't have to work on directly on the diplomacy.txt ?
WOW!!!!!!!! :eek:
:goodjob: !

alireza1354
Sep 12, 2002, 01:55 PM
I installed it, then when I wanted to start it it said:

Run-time error '76'

Path not found




What does that mean, what should I do to fix this?

pesoloco
Sep 12, 2002, 02:36 PM
Originally posted by alireza1354
I installed it, then when I wanted to start it it said:

Run-time error '76'

Path not found




What does that mean, what should I do to fix this?

OK, what that means is that the path in which the program is looking for the Civilization diplomacy.txt file is incorrect.
It cannot find the diplomacy.txt file.
In order to fix this you would need to remove the Diplomacy Editor from the registry. This can be tedious and dangerous if you delete the wrong thing. I will go make an update right now that will fix your problem.

alireza1354
Sep 12, 2002, 03:32 PM
Wow man you really are helpfull!

I thought I wouldn't get an answer.

I LOVE your work, its unbelievable how many talented people are in this civ-community, of whom you are one of the most respected.

Your program is cool, it is fantastic!

I always didnt like the standard diplomatic conversations. Now I can endlessly adjust the game to my own ideas.

You are my man of the month Pesoloco.

I hope I can work it out.

See you

pesoloco
Sep 12, 2002, 03:49 PM
Thank you.

I knew about this program before and I wrote the code to avoid it in my other editor, the Great Books Editor. I thought I went back and put the code in this one, but I guess I didn't. It's fixed now. I will be posting the patch shortly.

pesoloco
Sep 12, 2002, 04:20 PM
Here is the Version 3.63 Patch
This patch corrects the path not found error by allowing you to verify the Civilization path if the diplomacy.txt file cannot be found.

Alireza, just install this patch over your existing editor and you won't lose any of your saved info.

alireza1354
Sep 12, 2002, 04:41 PM
Originally posted by pesoloco
Here is the Version 3.63 Patch
This patch corrects the path not found error by allowing you to verify the Civilization path if the diplomacy.txt file cannot be found.

Alireza, just install this patch over your existing editor and you won't lose any of your saved info.


Thank you and I offer you my deepest respects Pesoloco.

The world could really take an example of how people communicate and help eachother in this forum and all for free!

I wish I could do something back for you.

Thanks, I solved the problem, it is fixed now.

Now I am going to stay awake untill morning adjusting the diplomacy texts...

You know... lately I find editing the game even more interesting than playing it!

:)

Greetings from

Alireza

alireza1354
Sep 12, 2002, 04:48 PM
Hello Pesoloco!

I have a question.

I added 8 civs to my bicfile (my scenario).

In total, I have 24 civs.

I use the diplomacy.txt file of Montezuma (thanks Montezuma, another great member of this community!!)

But still, I only see the original civs in the diplomacy editor.

My question is; how can I change the texts of the kings of the new civs I added?

Thank you in advance Pesoloco!!!!!

pesoloco
Sep 12, 2002, 04:56 PM
alireza,

i am not familiar with montezuma's diplomacy file.
How many civs does it cover?

Is this what happened:

You originally had 16 civs in the diplomacy file
you modified civ3mod.bic to have 24 civs.
You installed montezuma's diplomacy file
Then then Diplomacy Editor only shows the first 16?

If that it the case:
Here is are two workarounds:
(sorry for this trouble, I will work on having the program automatically detect the number of civs.)

If you have not used the editor to save the diplomacy file yet, set the number of civs in options to 24 and exit without saving. When you restart, the program will load the diplomacy.txt file and display all 24 civs.

If you have already saved it, then the editor may have deleted the 8 new civs. If this has happened, use the editor to set the number of civs to 24. Then re-install montezuma's diplomacy.txt file.

I apologize for this. I did not anticipate this kind of error. I will have to make some changes to the program.

pesoloco
Sep 12, 2002, 05:00 PM
Originally posted by alireza1354
You know... lately I find editing the game even more interesting than playing it!

Interesting... my old signature used to be "Customizing Civ III is even more fun than playing it" This phrase still appears on my web page.:)

GIDustin
Sep 12, 2002, 05:30 PM
Perhaps he means the labels for each row? I know on mine it goes "Rom,Epy, . . . . Iro, Civ1, Civ2, Civ3. .." and doesnt show the actual names of the civs after iroquois.

BTW Are you working on the feature that allows you to load a bic and have the labels appear correctly? You probably would want to wait until PTW comes out before you start trying to decipher the makings of the bic.

GIDustin

pesoloco
Sep 12, 2002, 05:56 PM
If that's what he means then I would still have to work on reading the bic file. I saw there are some tutorials on the bic file structure, but as you said, GIDustin, the new PtW bic will be completely different. What if I made it an option to let the user enter the name of the civs manually in the options window? (until PtW comes out)

GIDustin
Sep 12, 2002, 06:59 PM
that would be great


GIDustin

Tweedledum
Sep 16, 2002, 02:04 PM
If you want the leaders to insult you in their own language, you may get some ideas from the following link:

http://www.notam02.no/~hcholm/altlang/stat.html

BTW: Is there any way of tying "generic" AI responses to who YOU are rather than who they are?

VlaGrof
Sep 28, 2002, 06:52 PM
God Bless you man. you are the :king:
Great stuff this editor.

Keep up the good work.:D

pesoloco
Sep 28, 2002, 09:27 PM
Originally posted by Tweedledum

BTW: Is there any way of tying "generic" AI responses to who YOU are rather than who they are?

At the moment, the only way to tailor their responses to you is by how strong you are(actually how strong they are compared to you)

There is no way to make them choose a response based on who you are like this:

if user is Romans, "Well, go back to where you came from"
and if user is english, "Go back to your little island!"

TETurkhan
Oct 01, 2002, 02:44 PM
I have 31 civs and when I go to use the editor they overlap.

What am I doing wrong?

pesoloco
Oct 01, 2002, 03:08 PM
What do you mean, they overlap.
Can you post a screenshot?

TETurkhan
Oct 01, 2002, 03:10 PM
the font is a bit big and looks messed up and I mistook this for them overlapping...

It works fine :goodjob:

CurtSibling
Oct 11, 2002, 05:20 AM
Originally posted by pesoloco
What do you mean, they overlap.
Can you post a screenshot?

Had a go on this today, comrade!!

Good work...
Think you could have a look at making cities overlap irrigation??

Only kidding, that is hard-coded methinks!:lol:

Amadan
Nov 19, 2002, 08:14 AM
Does the Diplomacy Editor work with PTW?

(Guess I could just not be lazy and try it...)

pesoloco
Nov 19, 2002, 04:24 PM
Originally posted by Amadan
Does the Diplomacy Editor work with PTW?

(Guess I could just not be lazy and try it...)

YES. THE DIPLOMACY EDITOR IS FULLY COMPATIBLE WITH PTW

but
you will have to do a few things first.

[list=1]
Start the editor
Go to options
Change number of civs from 16 to 24
Change the Civilzation exe path to your PTW path
Hit OK
Exit the editor DO NOT SAVE CHANGES
Restart the editor and you will be ready.
[/list=1]

You will only have to do this once. After that the editor will load your settings.

Amadan
Nov 22, 2002, 05:02 PM
Thank you.
That should take care of my problems!

RagnarD
Nov 23, 2002, 03:18 PM
First off, thanks for this great app. I can't imagine the pain it would be to add dialogue without this.

Second, could you add the ability to delete a civ and have all the others reorder in the diplomacy.txt file? I deleted America because I don't think that civ is a good fit fort the game. Now Japan has picked up Abe's dialogue, and everyone after that is like-wise fubar.

Thanks,

rd

dAsbIniCh
Nov 27, 2002, 08:47 AM
I nearly finished my new scenario for ptw, I just need to fix the diplomatic status (war, peace,...). Does anybody know how to do it?:confused:

pesoloco
Nov 27, 2002, 02:32 PM
Originally posted by RagnarD
First off, thanks for this great app. I can't imagine the pain it would be to add dialogue without this.

Second, could you add the ability to delete a civ and have all the others reorder in the diplomacy.txt file? I deleted America because I don't think that civ is a good fit fort the game. Now Japan has picked up Abe's dialogue, and everyone after that is like-wise fubar.

Thanks,

rd


I have created a function for importing text from an external diplomacy.txt file. I could see a way to use this to replace the texts so that they match up when you remove a civ.
I am perfecting this import feature and it will be ready hopefully soon.

RagnarD
Nov 29, 2002, 02:40 PM
While I'm asking for free dev, how about a custom civ names file, so that those of us who have added and deleted civs can match up the names? And a spam-free hotmail account? And a box of free money?

pesoloco
Nov 30, 2002, 12:10 PM
Originally posted by RagnarD
While I'm asking for free dev, how about a custom civ names file, so that those of us who have added and deleted civs can match up the names? And a spam-free hotmail account? And a box of free money?

How about if I put it in the Options dialog that you could change the civ names (add/remove/edit etc)

As for the spam-free hotmail and box of free money, look elsewhere. ;-)

RagnarD
Nov 30, 2002, 09:36 PM
How about if I put it in the Options dialog that you could change the civ names (add/remove/edit etc)

That would be perfect!

And the money? Are you sure about the no-go? :-)

rd

worshipwillow
Dec 17, 2002, 01:45 AM
Originally posted by pesoloco
I am glad there is so much support for this utility, especially since it is my first utility for civ III.

I am thinking of making a few minor changes (adding more features actually). We'll see how it works out.

You deserve it. :)
Know what would be good? If ppl sent in their changes, so we're not stuck reading our own new quirky replies/comebacks. Like the ones in your sample image above are funnier to me cuz it's no fun telling yourself a joke, you know?

cya!

APSElom
Dec 18, 2002, 07:42 PM
Hey pesoloco. im a new civ3 "file manipulator" so bare with me. I tried to run the dip editor and i got the message run-time error 76 "Path not found".Do you know what this could possibly mean?I am up to date with all software(XP/Civ3 ptw/Java...ect)
I look forward to your response...

pesoloco
Dec 18, 2002, 11:16 PM
ok. it sounds like the program cannot find the civ path.
you need to tell it when it first runs.
it's supposed to let you change it if it cant find it. maybe i didnt post that version yet.
are you unable to start the program?
please PM me the specifics

I will have a new version of this ready soon. Been working on adding new features and fixing little annoyances (like the path thing)

APSElom
Dec 19, 2002, 10:09 AM
well,i actually DID get it to run the first time.I didnt know what i was doing,so i closed it out.I realized that it was reading the diplomacy file from the original civ3 program folder(which is out of date by far-i have 31 civs).So,I removed it from that folder,and tried to reinstall it into my ptw folder.then i ran it and the error occured.i tried to restore the files back into their original folder.i tried it again in that folder,and got the same message.it kind of gets a little messed up from there(setting up and unsetting up actions)but essentially it seems like what you say makes sense.I was rushing in the beginning (post-regret)and tried to change the path in the options (i think that what it was).then i wanted to exit the program.it asked me if i wanted to save the changes,and i said no.Then i went to the diplomacy.txt file to check what it was reading and realized i wanted to change the path. From there it failed to run.Let me know when you finish up the new program.Zulu showed me where to get a generic dip.txt file from this website,so for the time being,i can work on my scenario bugs,and come back to that later.(hows that for info???)

pesoloco
Dec 19, 2002, 06:44 PM
apselom, i think the new version will fix your trouble.

VERSION 3.66 NOW AVAILABLE

i changed the first post so that it links to the new file.

pesoloco
Dec 19, 2002, 06:48 PM
here is a 3.66 patch

APSElom
Dec 19, 2002, 07:46 PM
YESSSSSSSSSSSSSSSSS!this was what i needed,it seems it was looking in a the directory i typed,but didnt
"save",and somehow it saved it to a master file in the system(onlything i can figure,i havent programmed in years!!!).Thank you peso,this will save me several headaches and eyeaches.talk about timing eh?
All I need are a few more animated leaderheads with flics(animated) and my personal scenario-DYP/Teturken/Marla singer (city names),as well as several additions,will be complete!!!TY

!save the opossum!

swagled
Dec 21, 2002, 02:16 PM
That diplomacy file is really the biggest hiccup for newbies to overcome when adding civs. It's a shame pesoloco has had to reverse engineer all this... I'll bet'cha there's a tool at Firaxis that does exactly the same thing. :rolleyes:

(And there's no reason "programatically" that the game should need these file changes. If there's no civ-specific text, it should just pick something randomly from one of the others. Oh well, I guess Firaxis had their hands full just fixing the bugs.)

Anyway, I just used it last night to add "generic 17th civ" text to my file, and testing it out today, it seems to work fine!

Of course, there will be "creeping featuritis" for this tool, now that it exists... After all, there could just be a "add generic civ" menu item in the editor, to save someone the trouble of what I did last night. ;) ;) ;)

Great tool, though. :goodjob: I've had to write similar things to fuss with .INI files, and I know that file-splicing is messy stuff.

RagnarD
Dec 29, 2002, 02:33 PM
Have I asked, recently, for the ability to delete Civs from the diplomacy.txt file? This would enable me to remove civs from scenarios without having everyone start speaking each other's lines. It would be realllllllly neato.

Any chance of that happening, pesoloco? Pleeeeeeeeease?

rd

pesoloco
Dec 29, 2002, 10:40 PM
I am still working on a new version of the utility with some major feature enhancements. I like the suggestion of "Add a civ" and "Delete a civ" commands.

The interface is undergoing some big improvements. I only released this new patch version (3.66) to help out those of you who had file not found errors.

I am adding a new interface to use, suggested by zulu9812 (sorry if i got the number wrong)
It allows you to select the message, then choose which civ, mood, power, and random entry you want to change. You can only change that one item at one time.

For example,
You choose AIFIRSTCONTACT as the message
then you choose Babylon, then Happy, then Strong, then entry 1. The program then allows you to edit what is on that corresponding line.
This will be called line-item view.

The original interface will still be able to be used and will be called Tree View or Graphic View (whichever sounds better)

well, i'll post it as soon as it's ready.
:) ;)

RagnarD
Dec 30, 2002, 05:35 AM
That sounds great, pesoloco! I await the new version impatiently, perhaps with a hint of over-anxiousness!

rd

neorowen
Jan 17, 2003, 03:56 PM
I tried to use this editor to add dialog to my new civ I had added, what I got was the dialog name after everthing. As you can see below, now every civ has the dialogs names.http://baraka.bounceme.net/elite/screen.jpg

I am using PTW 1.14f

pesoloco
Jan 18, 2003, 07:45 AM
Now I haven't seen that before.

Did you get the new version of the utility yet? (ver 3.66?)
I think I posted it. If not, it may fix the prob.

The strange thing is there is no reason that it should be outputting the name of the dialog. And if it did, it would put a "#" infront of it.

Do the names appear in the main editor view?

I will take another look at this to see if I cannot determine why this happened. Has this happened to anyone else?

Perhaps the file was not in the correct format to begin with?
Had you made any edits to it before this?

Neomega
Jan 18, 2003, 09:16 PM
He is playing in debug mode.

neorowen
Jan 27, 2003, 01:42 PM
Yeap, I was in debug mode, I didn't realize it would affect that as well. Thanks!

neorowen
Feb 06, 2003, 10:03 AM
Hey I have another question...

After using the editor to add stuff for my a new civ I added to the game I've noticed that for certain screens I get (no reply) instead of accept.

Anyone have an idea why?

http://baraka.bounceme.net/ernia/reply.jpg

pesoloco
Feb 08, 2003, 08:55 AM
Looks like you made some changes to the USER_ACCEPT message. You probably forgot to add text for one of the text choices for that message. Anything left blank is changed to "(no reply)"

zulu9812
Feb 08, 2003, 10:53 AM
Any idea when the new version (with that interface I was talking about) is coming out?

neorowen
Feb 08, 2003, 01:51 PM
the User_accept field has only 3 things listed, all of which have words.

Do I need to make an accept for every civilization?

pesoloco
Feb 08, 2003, 04:13 PM
if all have words when you load it in the editor, I am not sure why it would even say "(no reply)" Check for other mesages that may correspond to this mesage.
If this is the only (no reply) you could open it in a text editor and search for the text.

and zulu, I started work few weeks ago on the new interface, but haven't worked much more on it as I've been very busy.

Nahuixtelotzin
May 17, 2003, 02:21 PM
pesoloco: For me, the import feature doesn't work. I wanted to clone the dialogues in order to have 31 civs with text, but somehow the copying didn't work. Have I done something wrong?

Tweedledum
May 17, 2003, 06:31 PM
Originally posted by Nahuixtelotzin
pesoloco: For me, the import feature doesn't work. I wanted to clone the dialogues in order to have 31 civs with text, but somehow the copying didn't work. Have I done something wrong?

If you have, so have I - I can't get it to work either...

pesoloco
May 18, 2003, 03:22 PM
In order for the import feature to copy an entry for a civ, the two files must have identical structure. For example if file A has an entry B that is sorted by Civ,Mood, and Power, then file C must have the same structure for entry B that file A has.

This may sound strange but think of it this way.
If FILE A looks like this:
Civ 1
------Happy
------Normal
------Angry

and file B is
Civ 1
------Random 1

The import would have a hard time merging the two since the structures dont match.


Anyways, if you are using two files that DO have identical structure, you can choose the file you want to import, select the civ num to copy and the civ num to replace and that should do the trick.

zulu9812
May 18, 2003, 07:01 PM
Originally posted by zulu9812
Any idea when the new version (with that interface I was talking about) is coming out?

eaze14
May 19, 2003, 12:32 AM
wow pesoloco must be really tired w/ all that questioning

pesoloco
May 21, 2003, 12:17 PM
zulu, that new interface is going to take a while and i'm sorry it may never happen

since all my source code for this utility has vanished in a hard drive crash a few weeks ago.:( :( :(

trumpeteer
Jun 20, 2003, 09:59 PM
pesoloco, you said you posted the latest version oon the first page, but I don't see it. Maybe I just don't see it, but could you please post it again on this page?

Neomega
Jun 20, 2003, 10:28 PM
How did I miss this one all this time. This is a great tool!

pesoloco
Jun 24, 2003, 02:57 PM
dipedit366setup.zipClick here for the latest zip (http://www.civfanatics.net/uploads3/dipedit366setup.zip)

zulu9812
Jun 24, 2003, 04:06 PM
please do the new interface, pretty please...

pesoloco
Jun 27, 2003, 12:49 AM
Originally posted by zulu9812
please do the new interface, pretty please...

Since I'd have to rewrite the entire program, I'd rather finish a few other projects before I start this one so I can devote several days to writing it, and improving it.

crunk munki
Jun 29, 2003, 01:19 PM
Does this utility work with ptw?

pesoloco
Jun 30, 2003, 12:32 PM
yes it does work with ptw but you need to change some of the settings first, check earlier in this thread. I explain how to do it.

jbfballrb
Oct 24, 2003, 03:46 PM
is there a way, when you add civs, to change their names?

pesoloco
Oct 25, 2003, 11:17 AM
I assume you mean in my editor, not the game.
You mean instead of "CIV1", "CIV2" etc?

No, I'm sorry, I don't have where you can change those names.

aeldrik
Nov 26, 2003, 04:03 AM
Hy pescolo, this utility seems great, but I got kind of lost in this long thread, could you Edit your first post and put an actual list of features of your tools, that way I could see what it can do know, with all the things you have added

pesoloco
Nov 30, 2003, 05:43 PM
*added list of features to first post

aracuan
Jan 07, 2004, 02:05 AM
hi pesoloco,i want to ask you a question.of course if someone else has the will or the knowledge i would be very happy to hear it.
does your editor,(or utility)can change the rules in such a way that you can trade cities?in a' world war,a lot of diplomatic games have taken place in order to convince some nations to join in their alliances.unefortunately,although the civ3(i own a c3c)has the ability to trade cities,i have never seen trading cities.can u assisting in finding a solution?

subbss
Jan 09, 2004, 01:43 PM
aracuan, pesoloco's editor does not change the rules, only the text that appears in the game. The rules of the game don't need to be changed in order to trade cities, it is in the regular rules of the game but the AI's in the game will never trade cities unless they are badly losing a war :). Does that answer your question, aracuan?

aracuan
Jan 13, 2004, 08:11 AM
hi!first of all i would like to thank you for beeing so kind.thanks for your reply as well.it was something i expected,that this(about trading cities)can not changed.thats very bad,because it would be very nice,to trade others civilizations cities,as gains or profits as a result of a victorious war(like first world war).another negative part,is the alliances,in which very weak civilizations convince very strong ones to make alliances and declare war at me!so,i disable the military alliances option and turn it to allow mutual pacts from the discovery of writing.at this at least,i achieved true military alliances. ;)

CornMaster
Aug 11, 2004, 10:12 AM
This might be a little late....but is this Conquest compatible?

pesoloco
Aug 13, 2004, 01:33 PM
yes. all you have to do is go into the options and set the number of civs. then exit (Without saving) and start it back up.

If you save, it will only save text for the first 8 civs and you'll lose all the others so DO NOT SAVE when you exit.

When you come back in it should read the file for how ever many civs you put in.

Rufus T. Firefly
Aug 19, 2004, 04:36 AM
Why not insert new civs labels?

QFred
Sep 05, 2004, 10:10 AM
do you mind if I post in my site a link to this thread?????

pesoloco
Sep 11, 2004, 09:15 PM
I don't mind if you link to it.

The reason you can't add new labels is because I lost the source code in a hard drive crash. If I wanted to add that ability, I'd have to recreate the entire program.

Rufus T. Firefly
Sep 12, 2004, 03:55 AM
The reason you can't add new labels is because I lost the source code in a hard drive crash. If I wanted to add that ability, I'd have to recreate the entire program.

Why not? ;)

subbss
Sep 12, 2004, 02:22 PM
I don't mind if you link to it.

The reason you can't add new labels is because I lost the source code in a hard drive crash. If I wanted to add that ability, I'd have to recreate the entire program.
That's horrible, I feel sorry for you. That isn't even supposed to happen anymore, hard drives aren't supposed to crash becasue they make them better nowadays I was told.

DanIsNanou
Mar 19, 2005, 02:43 AM
Hi pesoloco,

Thanks so much for this fantastic little utility.
I'm in the process of translating the text files into Spanish and this is making life much easier. I didn't quite understand how the diplomacy.txt file worked with the randoms and sort-bys etc, so this has made life much easier.
Thanks so much. I don't suppose you've made anything life this for the the script.txt or labels.txt files lol.

DanIsNanou

Vinniemack84
Apr 30, 2009, 01:14 PM
Can someone help me figure this out a bit. It seems to work fine, but for some reason it doesn't recognize two of my civs dialogue. I have 20 civs in my mod and 18 of them work fine. It seems that two of them, (the same two every time) no matter what position I have them in or even if I delete a few others and move these two into the deleted two's spots refuse to work. At first contact it simply says...AIATFIRSTCONTACT or something like that in the game. Is there something I should be aware of to make these two civs work. Other than that this program seems to be flawless and makes editing the dialogue easy, but unfortunately the two civs I really want to make work don't seem to be recognized by the program. They are funny civs laced with inside jokes for my buddy and me so of course it has to be them giving me the hard time.

Farsight
May 07, 2009, 11:10 AM
Vinniemack84, while questions are encouraged, for future reference, thread necromacy (especially a 4 year one!) is generally discouraged, unless there is a technical problem about the download, like the download not working. :)

Virote_Considon
May 07, 2009, 01:51 PM
Nah, that was a good bump.

I'm afraid I don't know what's wrong here... All I can think is the "Diplomacy Text Index" in the civilizations' tab is wrong...

Micaelus
May 07, 2009, 01:55 PM
...a technical problem...like the program giving him difficulties with two of the civs he's trying to use?

@Vinniemack84 - testing this has been on my list of things to do for a bit here. I'll get to it either this weekend or the beginning of next week and let you know if I have similar issues, etc. By looking through this thread, I'm wondering if perhaps the program isn't fully C3C compatible, or somehow is limited to a smaller number of civs. But again, I'm planning to take a look!

EDIT: Cross-post with Virote.

Farsight
May 09, 2009, 04:47 PM
A complaint: I was using this editor for the mod I was making. I was going to check to see if there were any changes to the diplomacy text, to make sure. And you know what? All the text files except for the diplomacy text were deleted!