Help on an old problem.
#5
dunno how I did, problably scripted something :P
Edit:
This might help you:
Code:
class ResourceChecker
  def checkMap(filename)
    @map = load_data(filename)
    for key in @map.events.keys
      event = @map.events[key]
      for page in event.pages
        if !FileTest.exist?('Graphics/Characters/' + page.graphic.character_name + '.png')
          # might be RTP
          begin
            bitmap = RPG::Cache.character(page.graphic.character_name, 0)
          rescue
            id = event.id.to_s
            x = event.x.to_s
            y = event.y.to_s
            pageid = event.pages.index(page).to_s
            filename = page.graphic.character_name
            p 'ID: ' + id,'X: ' + x,'Y: ' + y,'Page: ' + pageid,'Filename: ' + filename
          end
        end
      end
    end
    RPG::Cache.clear
  end
end

rs = ResourceChecker.new
rs.checkMap('Data/Map001.rxdata')

Edit 2: actually the script doesnt work at all. (it thinks everything doesnt exist :/)
edit 3: fixed.
*insert signature here.
Reply }


Messages In This Thread
Help on an old problem. - by Yin - 12-02-2010, 08:26 PM
RE: Help on an old problem. - by deValdr - 12-02-2010, 08:30 PM
RE: Help on an old problem. - by Yin - 12-02-2010, 09:06 PM
RE: Help on an old problem. - by Hsia_Nu - 12-06-2010, 10:05 PM
RE: Help on an old problem. - by EJlol - 12-06-2010, 11:08 PM
RE: Help on an old problem. - by Yin - 12-07-2010, 02:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   The z-space problem of displaying sprites icogil 28 12,126 03-05-2023, 03:31 AM
Last Post: DerVVulfman
   Problem with drain script form the ATOA ACBS Djigit 2 5,500 07-12-2015, 09:17 PM
Last Post: Djigit
   Event collision problem with FPLE script ThePrinceofMars 2 5,740 11-11-2014, 06:30 PM
Last Post: ThePrinceofMars
  Custom meter problem daylights 13 16,061 08-12-2013, 03:34 AM
Last Post: daylights
   [RUBY] Depack Thread Problem Narzew 1 4,350 07-20-2012, 01:16 PM
Last Post: Narzew
   Advantages & Charlie Fleed CTB problem Yin 7 11,862 12-12-2011, 03:45 PM
Last Post: Yin
   Charlie Fleed's CTB - Problem with dual wielding characters MegaPowerNinja 2 5,820 04-25-2011, 09:51 AM
Last Post: Charlie Fleed
   Slight problem with Omega Quest script. Boot 4 8,592 03-08-2011, 02:53 AM
Last Post: BlackDragon 31
   AMS script problem Thehero 2 6,509 05-18-2010, 07:30 AM
Last Post: Jaberwocky
   Window Visibility Problem computerwizoo7 7 11,178 05-10-2010, 05:53 PM
Last Post: deValdr



Users browsing this thread: 2 Guest(s)