View Full Version : PiC: The Pediaicons Checker
IbnSina Oct 20, 2004, 08:11 PM This is a small program for W2k/XP (and now Win95/98/Me) that is designed to check the existence of all of the graphical objects in any scenario.biq/bix or pediaicons.txt file that you specify. It should check the following things:
* existence of all plain graphics files named in pediaicons.txt;
* existence of unit directories;
* existence and proper naming of unit .ini files;
* existence of all graphics and sound files named inside the unit .ini files.
* existence of labels referred to in the .biq file
* unit upgrade paths
There is a readme file in the archive file that gives brief instructions.
This is version 0.1. That means it has been improved from version 0.0 to the point where it may no longer work at all. Please help me identify bugs and improve the code. Good luck!
Pediaicons Checker v. 0.1 (http://www.civfanatics.net/uploads8/Pic-0.1.zip)
Ozymandias Oct 20, 2004, 08:41 PM Sounds great -- but the link's not working ....
IbnSina Oct 20, 2004, 11:23 PM Sorry - the entire process seems to have rendered me twitterpated. I meant to put this in the utility programs forum as well, but evidently became completely confused about my whereabouts. Not a good sign. In any case, I think the link should work now.
watorrey Oct 20, 2004, 11:37 PM This sounds *GREAT* :goodjob:
Can we get a moderator to move this to the Utilities forum?
Luddi VII Oct 21, 2004, 09:27 AM Finally!! This shall be useful, and I hope you come with other versions.;)
Goldflash Oct 21, 2004, 09:36 AM heh.. you said. .twitterspattered....
Oh, this utill looks really usefull. Can't wait to get home to try it.
Mr. Do Oct 21, 2004, 09:51 AM I asked for something like this recently, so hurrah!
MaisseArsouye Oct 21, 2004, 09:58 AM I'm gonna try it immediatly :goodjob:
LouLong Oct 21, 2004, 10:59 AM Could be extremely handy !
Now what would be really great is if it could show a preview of the icons at the same time... Hint ! Hint !
IbnSina Oct 21, 2004, 01:04 PM @Mr. Do: Yes, it was your thread that provided the idea for this. It's all your fault :)
@LouLong: As an avid thief of ideas as well as signatures, I say: hmmm... It's not completely clear to me what would happen here, but perhaps the program should check for large and small icons? If found, the small one could be displayed next to the list of any problems for the .ini file? Or are you thinking that all units should be listed, even if there is not a problem? Hmmm... why not? We could always close that section if we got tired of looking at it...
Turner Oct 21, 2004, 01:21 PM Thread moved.
ainwood Oct 21, 2004, 02:29 PM You got it finished! Excellent! :goodjob:
Any plans to extend it to buildings, races etc?
IbnSina Oct 21, 2004, 02:52 PM Well, buildings and races were what I meant by "plain graphics files". They seem pretty easy to track down, with simple paths given directly in the pediaicons file. By contrast, the units were trickier, and I'm not certain that I have them right yet. They seem to be scattered about the entire Civ distribution, sometimes in several default directories, none of which has a direct path in pediaicons. Still, I think it already checks buildings and races and happy/angry leaderhead faces and such.
Dease Oct 21, 2004, 04:40 PM any chance it will support win98?
EDIT: it workson win98 :) perfectly too :goodjob:
ToJo_1 Oct 21, 2004, 04:41 PM Awesome! This is very useful. It won't wear out will it? Because it will get alot of use here! :lol:
IbnSina Oct 21, 2004, 06:23 PM any chance it will support win98?
Um... sure. I think it will do the search part of its job right now, but the double-click bits won't work. I should be able to make it a little bit smarter about identifying the OS, so it can compensate.
embryodead Oct 23, 2004, 06:05 AM It's a little but awesome program! Saves lots of time and frustration.
hIdDeN_eViL Oct 24, 2004, 02:34 AM mad
this will help heaps
Mr. Do Nov 04, 2004, 12:05 PM @Mr. Do: Yes, it was your thread that provided the idea for this. It's all your fault :)
And it works great too, many thanks!
IbnSina Nov 18, 2004, 08:12 PM Well, the first thing that happened to me when I used this program after posting was that my game crashed because I had put the wrong PRTO... in the .biq file. PiC didn't do enough... Thus, I had to update the program. It now looks in the scenario .biq or .bix file and tracks the actual unit labels to the pediaicons file. It also seemed useful to me to track unit upgrade paths. Since I belong to the "bucket o' units" class of modders, I always have trouble remembering and tracking where each unit fits into its respective chain. This might help with that.
I was going to wait to post this until the program seemed a little less dodgy to me, but last night I found that it helped enormously in some changes I made, so I thought I had better share it now. You can see where it is going - eventually it may show various details about units along with their snapshots. At that point, it will be time for Civ IV to render this obsolete.
As always, please help me find bugs and other problems. Thank you.
Changelog to v. 0.1
-------------------
* Added double-click functionality for Win95/98/Me
* Removed one bug that sometimes resulted in duplicate searches of one art directory
* Added ability to look inside scenario files
* Added ability to display upgrade paths
The program now uses the savexpnd.exe utility (I think this is due to Gramphos - thanks!), and thus must be installed in a specific place. I included a little install script (we don't need no stinkin' installshield), but there are instructions about where things must go, in case all else fails. Enjoy!
Bjorn Bjornson Dec 28, 2004, 04:26 PM Does this work with .bic files? I'm oldschool (and I refuse to give Firaxis any more money :p ).
IbnSina Dec 28, 2004, 05:44 PM Um... maybe. I wrote it with an effort to incorporate .bic files, but I frankly had none that contained anything but a map, so the little testing I did was probably useless. More recently, I have come on some that would be useful for testing, but the program does not work for those yet because they are compressed (it handles compressed files, but the .bics I had seen before were not compressed, so I didn't uncompress .bics in the code). I have a new version that I was planning to release in a couple of weeks. I'll try to make sure that it handles the more general case. Any hints you can give beforehand will help. Thanks!
Bjorn Bjornson Dec 29, 2004, 02:31 PM Well, it doesn't seem to work with my regular modified civ3mod.bic... it doesn't display anything, but there are missing entries (I can't get into my game lol).
It's been too long since I've played and modded I don't even know where to start... I've added the leaderhead and race entries, and I just remembered this morning, that I need to add wonder splashes... are building icons required? I remember way back in the day, I know unit icons aren't needed, but are building icons?
Thanks for the help, and this nifty editor (I assume it works well for people not with vanilla civ3 :lol: )
IbnSina Dec 29, 2004, 04:49 PM I'll make sure that it uncompresses .bic files in the next version.
It's actually not an editor. There are other editors out there, but for my taste the editors that come with PTW and Conquests seem adequate. All this does is check the files that result to be sure that there are no game-crashing typographical errors, or missing files. For example, I installed a unit last night that inexplicably referred in its .ini file to a sound file that did not exist. I had to fix the .ini myself, but the bottom line was that my game didn't crash.
I think we'll call the next version 1.0, since I have no further changes (other than bug fixes) planned. It should be out in the next couple of weeks.
Bjorn Bjornson Dec 29, 2004, 05:10 PM Sorry.... should've said "Utility" :blush:
lol yeah besides the "editor" for this particular file comes on every computer: NOTEPAD! :lol:
IbnSina Dec 30, 2004, 03:56 PM Well, I have something that seems to work for me... I hadn't used the vanilla editor before, and it seems to handle units differently from the way the PTW and Conquests editors do, so I lack confidence that this will work for you. Here is a pre-release version for you to try out, if you would be willing. Just unzip it and put the binary in \program files\Pic where the old one was. With your experience, I trust that you'll quickly be able to alert me to any problems. Thanks!
|
|