Posts: 627
Threads: 38
Joined: May 2009
Can someone tell me how Ejlol did this???
http://save-point.org/showthread.php?tid=2905
I'm having the same problem again and don't know which event it is.
My partner in crime = TREXRELL
Posts: 1,019
Threads: 76
Joined: Jan 2010
Some events on the map is using a tile-graphic that no longer exists according to his post. See trough all your events and be sure that all have valid graphics.
Valdred
Tech Administrator of Save-Point
Posts: 627
Threads: 38
Joined: May 2009
I know... But there's SO many events if I just had a list printed out with his debugging thingie, it would be so much easier to find.
My partner in crime = TREXRELL
Posts: 69
Threads: 9
Joined: May 2009
what i would recommend before you go any further in development. keep a spreadsheet of all your maps and what graphic assests are being used. i wouldnt reference all events in the spreadsheet just ones that use graphical assets.
Current Projects: Concepting and R&D
Posts: 311
Threads: 16
Joined: May 2009
12-06-2010, 11:08 PM
(This post was last modified: 12-07-2010, 12:06 AM by EJlol.)
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.
Posts: 627
Threads: 38
Joined: May 2009
Thanks, the problem was already fixed, but I didn't put resolved. But this still helps since I'll probably be dealing with this same problem again since I'm cutting a lot of tilesets.
My partner in crime = TREXRELL