1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

PiC: The Pediaicons Checker

Discussion in 'Civ3 - Utility Programs' started by IbnSina, Oct 20, 2004.

  1. IbnSina

    IbnSina Former Lurker

    Joined:
    Jul 1, 2003
    Messages:
    525
    Location:
    fsa
    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
     
  2. Ozymandias

    Ozymandias Civ3 Modding Archivist

    Joined:
    Nov 5, 2001
    Messages:
    9,194
    Gender:
    Male
    Location:
    The lone and level sands
    Sounds great -- but the link's not working ....
     
  3. IbnSina

    IbnSina Former Lurker

    Joined:
    Jul 1, 2003
    Messages:
    525
    Location:
    fsa
    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.
     
  4. watorrey

    watorrey Chieftain

    Joined:
    Dec 22, 2001
    Messages:
    2,007
    Gender:
    Male
    Location:
    Rochester, NY, USA
    This sounds *GREAT* :goodjob:

    Can we get a moderator to move this to the Utilities forum?
     
  5. Luddi VII

    Luddi VII Sheep farmer

    Joined:
    Jan 4, 2004
    Messages:
    1,021
    Location:
    On the field...
    Finally!! This shall be useful, and I hope you come with other versions.;)
     
  6. Goldflash

    Goldflash Grumpy Old Man

    Joined:
    Mar 18, 2004
    Messages:
    5,752
    Location:
    Land of King James
    heh.. you said. .twitterspattered....

    Oh, this utill looks really usefull. Can't wait to get home to try it.
     
  7. Mr. Do

    Mr. Do Chieftain

    Joined:
    Oct 9, 2003
    Messages:
    1,970
    Location:
    UK
    I asked for something like this recently, so hurrah!
     
  8. MaisseArsouye

    MaisseArsouye gentil petit nuton

    Joined:
    Aug 31, 2003
    Messages:
    1,297
    Location:
    Djiblou
    I'm gonna try it immediatly :goodjob:
     
  9. LouLong

    LouLong In love with Rei Ayanami

    Joined:
    Nov 16, 2001
    Messages:
    7,385
    Location:
    Fontainebleau FRANCE
    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 !
     
  10. IbnSina

    IbnSina Former Lurker

    Joined:
    Jul 1, 2003
    Messages:
    525
    Location:
    fsa
    @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...
     
  11. Turner

    Turner Chieftain Retired Moderator

    Joined:
    Apr 17, 2002
    Messages:
    28,169
    Location:
    Randomistan
    Moderator Action: Thread moved.
     
  12. ainwood

    ainwood Consultant. Administrator

    Joined:
    Oct 5, 2001
    Messages:
    30,073
    You got it finished! Excellent! :goodjob:

    Any plans to extend it to buildings, races etc?
     
  13. IbnSina

    IbnSina Former Lurker

    Joined:
    Jul 1, 2003
    Messages:
    525
    Location:
    fsa
    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.
     
  14. Dease

    Dease Be Original

    Joined:
    Mar 10, 2004
    Messages:
    1,093
    Location:
    Eastern Canada
    any chance it will support win98?

    EDIT: it workson win98 :) perfectly too :goodjob:
     
  15. ToJo_1

    ToJo_1 Chieftain

    Joined:
    Apr 19, 2004
    Messages:
    1
    Location:
    IN
    Awesome! This is very useful. It won't wear out will it? Because it will get alot of use here! :lol:
     
  16. IbnSina

    IbnSina Former Lurker

    Joined:
    Jul 1, 2003
    Messages:
    525
    Location:
    fsa
    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.
     
  17. embryodead

    embryodead Caliph

    Joined:
    Jan 1, 2003
    Messages:
    5,179
    Location:
    basement
    It's a little but awesome program! Saves lots of time and frustration.
     
  18. hIdDeN_eViL

    hIdDeN_eViL {кοтоя дѕѕαѕѕїй}²

    Joined:
    Sep 18, 2004
    Messages:
    458
    Location:
    sydney,down under
    mad
    this will help heaps
     
  19. Mr. Do

    Mr. Do Chieftain

    Joined:
    Oct 9, 2003
    Messages:
    1,970
    Location:
    UK
    And it works great too, many thanks!
     
  20. IbnSina

    IbnSina Former Lurker

    Joined:
    Jul 1, 2003
    Messages:
    525
    Location:
    fsa
    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!
     

Share This Page