April 28, 2002, 17:56
|
#1
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
CTP2 Editing GUI
I'm writing a CTP2 Editing GUI for my own (nefarious ) purposes. Kind of like EasyMod for CTP, only not really - mine's very different and much better (obviously ). Well, in some respects, anyway, and if I get it doing everything I hope to.
I know many (most?) people prefer fiddling the text files themselves for most of the time, and I sometimes feel the same way, but I'm hoping the strengths of my program will be its ability to do mass changes, e.g. Double the cost of all age three advances, generate all the statistical bits of the GL, etc. (Although none of that is implemented at the mo - there's only a basic editing interface; you can't even add or remove entries yet ). I wrote lots of little applets to do these things for CTP, but I wanted to conglomerate them this time around.
So, is anyone else interested in using such a thing? And if so, would they like to help test it during development (which is of course the most dangerous stage in terms of the possibility of losing all your work, etc.)?
Or are you all hardcore text-files-or-nothing people?
|
|
|
|
April 28, 2002, 18:42
|
#2
|
Prince
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
|
I generally just delve into the text files, I never used Easy Mod for CtP, I didn't trust it not to screw everything up, and not tell me where or what it had done. But what I do find annoying is large-scale changes, like advance costs, unit abilities etc. If there was a way to cut advance costs on a large scale, add/remove flags across the file, that would be very useful.
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
|
|
|
|
April 29, 2002, 13:14
|
#3
|
Deity
Local Time: 01:44
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
|
I agree with IW basically. I never trusted Easymod (it had some known bugs and I feared the unknown ones) and similar tools (I think someone once designed a Excel sheet which accomplished the same thing as well). So normally I wouldn't be too eager to use your tool but the mass changes thing certainly sounds very, very useful and tempting to use...
|
|
|
|
April 29, 2002, 14:03
|
#4
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
Very well, I shall make mass changing my priority. I'll keep you all posted.
|
|
|
|
April 30, 2002, 05:03
|
#5
|
King
Local Time: 23:44
Local Date: October 31, 2010
Join Date: Oct 2001
Location: Of the universe / England
Posts: 2,061
|
I know I normally go into the text files you notice things better that way
__________________
"Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
The BIG MC making ctp2 a much unsafer place.
Visit the big mc’s website
|
|
|
|
April 30, 2002, 12:35
|
#6
|
Super Moderator
Local Time: 01:44
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
|
Actal I needed a lot of time to add all the new goods to my mod, a lot of Great Library work, work with the uniticon.txt, goods.txt, goodID.txt. Such a tool would accelerate the mod developement a lot. A lot of work was copy and paste and modifying the copied entries, and sometimes I forgot something to change. And of course it would help people to start modding. So we could get new modmaker. Of course it would be good if such a tool would be open source, so everyone who knows the program language and has the time could help develope this program.
Some feature I like to see in are a Great Library prewiev, multi language support, saving all files in a certain mod directory. Ability to load all files of this mod (gamefile.txt). And a textfile viewer as subwindow.
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
|
|
|
|
April 30, 2002, 13:39
|
#7
|
King
Local Time: 20:44
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
|
The GL is the worse part for the modders in my point of view. A lot of work and really boring!
Something that connects would be nice.
Eg. it would read in prereqs if you write something like EnableAdvance for a unit it would find the unit in the Uniticon.txt read the Unit.txt find the line EnableAdvance recognize the advance finding it in the Advance.txt serch it in the uniticon again and link it to to the advance entry of the library.
I dream with it everytime i start the GL work for my unreleased mod.
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
Last edited by Pedrunn; April 30, 2002 at 13:46.
|
|
|
|
April 30, 2002, 17:40
|
#8
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
Quote:
|
Originally posted by Martin Gühmann
Actal I needed a lot of time to add all the new goods to my mod, a lot of Great Library work, work with the uniticon.txt, goods.txt, goodID.txt. Such a tool would accelerate the mod developement a lot. A lot of work was copy and paste and modifying the copied entries, and sometimes I forgot something to change. And of course it would help people to start modding. So we could get new modmaker. Of course it would be good if such a tool would be open source, so everyone who knows the program language and has the time could help develope this program.
|
I'm not sure if I like the idea of my bad, inefficient, code being visible to everyone - but I suppose it wouldn't be too bad . I'm writing it in VB6 (I know - not a *real* programming language, but I don't care).
Quote:
|
Some feature I like to see in are a Great Library prewiev, multi language support, saving all files in a certain mod directory. Ability to load all files of this mod (gamefile.txt). And a textfile viewer as subwindow.
|
GL preview. Hmmm... Should be doable.
Multilanguage support already built in to a certain extent, but you can't develop in two languages at once - you have to choose one way or another. And all the comments, help, etc. is in English.
Files are currently saved in their respective game directories - I was considering the option to save them all in a copy of the directory tree for the purposes of zipping and distribution.
You can already import a project from a gamefile.txt (I tried it with cradle and it seemed to work fine).
Textfile viewer would be easy if you didn't want to edit in it whilst the GUI was open - but having both at once would be asking for trouble. Regenerating the text of the file repeatedly would slow things down and use up more memory (and the memory consumption is quite considerable already...)
Quote:
|
Originally posted by Pedrunn
The GL is the worse part for the modders in my point of view. A lot of work and really boring!
Something that connects would be nice.
Eg. it would read in prereqs if you write something like EnableAdvance for a unit it would find the unit in the Uniticon.txt read the Unit.txt find the line EnableAdvance recognize the advance finding it in the Advance.txt serch it in the uniticon again and link it to to the advance entry of the library.
I dream with it everytime i start the GL work for my unreleased mod.
|
That's what I plan for, only my vision goes further yet. But it won't be easy. It almost certainly won't be in the first release version.
Progress so far is that you can edit pretty much as I wished for, add, remove, copy, paste entries, and I've got good support working for the advance tree.
Now working on the mass changing code, but the big job is designing all the structure files to describe to the program the content of each data file (I've only done a couple for testing purposes so far). The one for units.txt in particular will likely be a big job...
|
|
|
|
April 30, 2002, 18:43
|
#9
|
King
Local Time: 20:44
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
|
I can wait as long as you finish it
But I cant wait to see it ready.
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
|
|
|
|
April 30, 2002, 18:50
|
#10
|
Super Moderator
Local Time: 01:44
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
|
Quote:
|
Originally posted by J Bytheway
Multilanguage support already built in to a certain extent, but you can't develop in two languages at once - you have to choose one way or another. And all the comments, help, etc. is in English.
|
Actual I meant the possibilty to develope your mod in more than one language. It is ok if the program is in English only. But if you don't have the view over files that aren't in the English version is a problem of EasyMod and this shouldn't be in your program.
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
|
|
|
|
April 30, 2002, 19:00
|
#11
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
Quote:
|
Originally posted by Martin Gühmann
Actual I meant the possibilty to develope your mod in more than one language.
|
Yes, I understood, and you can, but at present you would need to have a seperate installation of my program for each language. It would be easy to change that to just needing seperate ini files though.
Either way, you won't be able to develop mod in multiple languages in a single interface all at once - you'd have to close & open again. But the two different versions of the mod could share some data files.
|
|
|
|
May 1, 2002, 08:32
|
#12
|
Super Moderator
Local Time: 01:44
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
|
Actual in CityMod2, ApolytonPack and GoodMod, all the files in the ..\ctp2_data\default\ folders are shared. There are only for the strings extra folder. All string files of the English version are in a folder called ..\ctp2_data\english\ for the German version in a folder called ..\ctp2_data\german\ so this shouldn't be too difficuilt to implement.
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
|
|
|
|
May 2, 2002, 15:27
|
#13
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
To keep you all updated:
I have encountered a rather large problem in that the memory consumption of the program is enormous - loading units.txt, advance.txt and buildings.txt gives me an 'out of memory' error. I had got all the code optimized for speed over memory consumption, but it looks like I'll have to change that. This will, unfortunately, delay things considerably...
On a lighter note, the mass-modification code works a treat.
|
|
|
|
May 4, 2002, 03:39
|
#14
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
That's fixed (as far as possible). I'm proceeding to the GL (No idea how fast this will be).
Just to wet your appetites I attach a screenshot showing my increasing by 20% all advances in ages 7 to 10. (It's all a bit scrunched up as I wanted to make it as small as possible). Tell me what you think.
|
|
|
|
May 4, 2002, 04:34
|
#15
|
Emperor
Local Time: 23:44
Local Date: October 31, 2010
Join Date: Jan 2002
Location: UK
Posts: 3,272
|
I for one will find this very helpfull, so keep at it please.
I don't really have enough time to learn Slic(at least for the time being), so this will be a very nice way for myself(and others i'm sure)to change things quite easily. Can you also use it to add/edit Great Libary entries?
__________________
'The very basis of the liberal idea – the belief of individual freedom is what causes the chaos' - William Kristol, son of the founder of neo-conservitivism, talking about neo-con ideology and its agenda for you. info here. prove me wrong.
Bush's Republican=Neo-con for all intent and purpose. be afraid.
|
|
|
|
May 4, 2002, 06:03
|
#16
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
As I said, GL entries are what I'm now working on. My plans are rather ambitious, so I don't know how long it will take. Might be a day or a week.
|
|
|
|
May 4, 2002, 06:38
|
#17
|
Super Moderator
Local Time: 01:44
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
|
child of Thor J Bytheway is working on a advance CTP2 textfile editor, not on a slic file editor, this one would be a little bit more complicated but I think not impossible as the game develope team considered to do it on their own. Therefore you have still to learn slic (or ask someone) if you want to do more than just modding the text files. By the way the CTP2 icon for the CTP2 editor would be much cooler (like ModSwapper) than just this a standart icon. Maybe an additional textfile editor/viewer would be to much but would it be possible to view the code of a currently selected advance/good/unit/citystyle......
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
|
|
|
|
May 4, 2002, 07:00
|
#18
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
Quote:
|
Originally posted by Martin Gühmann
child of Thor J Bytheway is working on a advance CTP2 textfile editor, not on a slic file editor, this one would be a little bit more complicated but I think not impossible as the game develope team considered to do it on their own.
|
Quite. I was, however, considering a feature to export small chunks of repetetive SLIC code, like the following from CRA_homeguard.slc:
Code:
|
CRA_MILITIA_TYPE[0] = UnitDB(UNIT_SPEARMAN_MILITIA);
CRA_MILITIA_TYPE[1] = UnitDB(UNIT_HOPLITE_MILITIA);
CRA_MILITIA_TYPE[2] = UnitDB(UNIT_LEGION_MILITIA);
CRA_MILITIA_TYPE[3] = UnitDB(UNIT_MAN_AT_ARMS_MILITIA);
CRA_MILITIA_TYPE[4] = UnitDB(UNIT_INFANTRYMAN_MILITIA);
CRA_MILITIA_TYPE[5] = UnitDB(UNIT_MACHINE_GUNNER_MILITIA);
CRA_MILITIA_TYPE[6] = UnitDB(UNIT_HOVER_INFANTRY_MILITIA); |
And I'm sure that as SLICers get more ambitious and the code gets more complex these kinds of things might get much longer. But that wasn't a priority - it's not that hard to do with copy-and-paste (but you are more likely to make a mistake).
Quote:
|
By the way the CTP2 icon for the CTP2 editor would be much cooler (like ModSwapper) than just this a standart icon.
|
Good idea. I was wondering about what to use as an icon. It's possible to add icons next to all the files in the list on the left, too, if anyone has any bright ideas as to what to use.
Any preference as to the icons on the various subwindows? I don't want to use the CTP icon for all of them...
Quote:
|
Maybe an additional textfile editor/viewer would be to much but would it be possible to view the code of a currently selected advance/good/unit/citystyle......
|
A textfile editor/viewer is really easy (so long as you don't want syntax highlighting or anything fancy like that - there's one in the sample applications for VB . It's certainly much much easier than the GUI I've made so far). It would be possible to view the code of the currently selected entry, but if you wanted this visible all the time and constantly updated it would slow things down since the relevant data is stored in an object tree, so it would have to keep regenerating the text. I don't think it's necessary since the interface is very WYSIWYG but if you still want it after you've tried using the editor then I'll try to oblige you.
Anyway, enough talking - time to get back to coding for those annoying GL entry things...
|
|
|
|
May 4, 2002, 07:39
|
#19
|
Super Moderator
Local Time: 01:44
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
|
Quote:
|
Originally posted by J Bytheway
I don't think it's necessary since the interface is very WYSIWYG but if you still want it after you've tried using the editor then I'll try to oblige you.
|
OK good point let's wait, but it doesn't matter if I still write my suggestions down. Therefore I think the user should have the possiblity to switch on the text viewer and also the options constantly update and update by button request.
For the icons of the subwindows I first would have a look on the program and than I could get some ideas. For example for a window dealing with cities we should use an example city style and if we use one than a fan created one, because this is closer to modding. Of course we could also use shrink down GL images of the various concepts for wonders, cities, units... but that wouldn't be closer to the original game and not so close to modding.
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
|
|
|
|
May 4, 2002, 15:16
|
#20
|
Prince
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
|
Quote:
|
And I'm sure that as SLICers get more ambitious and the code gets more complex these kinds of things might get much longer. But that wasn't a priority - it's not that hard to do with copy-and-paste (but you are more likely to make a mistake).
|
I was thinking of this at about midnight last night while I debugged a big chunk of copied-and-pasted code...
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
|
|
|
|
May 4, 2002, 16:30
|
#21
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
Quote:
|
Originally posted by Martin Gühmann
it doesn't matter if I still write my suggestions down.
|
Indeed not! Please continue to make any and all suggestions you can think of. You know how modding is more addictive than playing? I'm discovering that meta-modding like this is more addictive yet. I spent the whole of today coding that GL stuff, and it's all coming together now. Unless I get distracted by Uni work it should be finished tomorrow.
And then it's on to some serious alpha-testing (the dull end of programming... ).
Quote:
|
For the icons of the subwindows I first would have a look on the program and than I could get some ideas. For example for a window dealing with cities we should use an example city style and if we use one than a fan created one, because this is closer to modding. Of course we could also use shrink down GL images of the various concepts for wonders, cities, units... but that wouldn't be closer to the original game and not so close to modding.
|
Thanks, I'll keep this in mind. But at the moment I have nothing which will create icons so it'll be far down the list of Things To Do. In the mean time I have set the icon of the primary window to be the CTP one.
Quote:
|
Originally posted by Immortal Wombat
I was thinking of this at about midnight last night while I debugged a big chunk of copied-and-pasted code...
|
Also, can anyone help me with this:
I was glancing through the units.txt fields and noticed SpaceLaunch - clearly this is obsolete. Are there any others that are obsolete? It would really help to decrease crowding in my interface... I can post the full list of fields if it would help. It's just that I haven't really done enough CTP2 modding to get the hang of all these little facts.
|
|
|
|
May 4, 2002, 17:02
|
#22
|
Super Moderator
Local Time: 01:44
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
|
Actual the order space lunch is still part of the orders.txt and the space plane can go into space it just works a little bit different than in CTP1. Actual there are more fields that aren't used in the units.txt and maybe work, therefore I would include them all espeacily the wonder fields like ReduceWorldPollution/ReduceWorldPollutionValue or
AllCitizensContent, note if you have a field and a field with value in its name than it is actual only one entry with a value.
I already copied with a texteditor all the possible flags from the ctp2.exe, unfortunatly I never finished this flag list this version contains more entries than the version that was at least on Hex's homepage, also slic and some UI elements.
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
|
|
|
|
May 5, 2002, 04:47
|
#23
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
Thanks, this makes for interesting reading. I was trying to decrease the number of fields, not increase them, but never mind...
The thing that interests me most is the VisionClass field for units - there's Standard, Underwater and Stealth and then some UnusedBitx - is it possible to make use of these unused bits? In CTP1 you could use 9 visibility classes, and three just isn't enough! Maybe I'll try putting UnusedBit3 in some unit and see what happens...
I am correct in thinking that the Description field does nothing, right? But it has to point to a valid entry of junk_str.txt
|
|
|
|
May 5, 2002, 07:17
|
#24
|
Super Moderator
Local Time: 01:44
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
|
Quote:
|
Originally posted by J Bytheway
The thing that interests me most is the VisionClass field for units - there's Standard, Underwater and Stealth and then some UnusedBitx - is it possible to make use of these unused bits? In CTP1 you could use 9 visibility classes, and three just isn't enough! Maybe I'll try putting UnusedBit3 in some unit and see what happens...
|
Of course you have to add a unit that has the vision class UnusedBit3 and add a unit that can see a unit of viosion class UnusedBit3, very interesting is that you can give an tileimprovement such a can see flag, too.
Quote:
|
Originally posted by J Bytheway
I am correct in thinking that the Description field does nothing, right? But it has to point to a valid entry of junk_str.txt
|
junk strings are strings that should be removed from the game, but the game designers hadn't enough time, therefore the ctp2.exe needs these strings there but doesn't use them.
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
|
|
|
|
May 8, 2002, 09:58
|
#25
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
Another update:
I've pretty much done the GL generation code (It's very ugly from the programming point of view, and it's slow, but it works just fine). I've noticed a few other little bugs which need to be cleaned up.
I'll get back to you soon.
|
|
|
|
May 12, 2002, 17:08
|
#26
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
OK, I think it's finished now. To any of the powers that be who are listening: can I put this up on the ctpmodmakers site?
|
|
|
|
May 12, 2002, 17:20
|
#27
|
Emperor
Local Time: 23:44
Local Date: October 31, 2010
Join Date: Jan 2002
Location: UK
Posts: 3,272
|
Great! from a power who's not, thankyou and i can't wait to try it out
__________________
'The very basis of the liberal idea – the belief of individual freedom is what causes the chaos' - William Kristol, son of the founder of neo-conservitivism, talking about neo-con ideology and its agenda for you. info here. prove me wrong.
Bush's Republican=Neo-con for all intent and purpose. be afraid.
|
|
|
|
May 12, 2002, 18:13
|
#28
|
Deity
Local Time: 01:44
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
|
Quote:
|
OK, I think it's finished now. To any of the powers that be who are listening: can I put this up on the ctpmodmakers site?
|
Great Of course you can put it up there, it's a public site, anyone can put anything (CtP1/2-related) up there. But if it's final, you may also want to submit it for the Apolyton Database (see the topped thread in this forum)
|
|
|
|
May 13, 2002, 00:37
|
#29
|
King
Local Time: 20:44
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
|
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
|
|
|
|
May 13, 2002, 03:45
|
#30
|
Emperor
Local Time: 00:44
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
It's certainly not a final version - I'm sure bugs lurk yet.
I've never packaged a VB executable before, so it could take a little while for me to figure that out. Hope to get it available before too long - probably this evening, maybe tomorrow.
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
All times are GMT -4. The time now is 19:44.
|
|