Monthly Archives: December 2012

2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

19,000 people fit into the new Barclays Center to see Jay-Z perform. This blog was viewed about 130,000 times in 2012. If it were a concert at the Barclays Center, it would take about 7 sold-out performances for that many people to see it.

Click here to see the complete report.

I find hilarious the fact one of the most searched terms is “josou sanmyaku”. I posted just one time about this game! Another funny thing, it seems like Yanfly’s site is as active as ever, despite its owner’s retirement (since it’s the top referrer for this year).

In any case, thank you for liking my scripts and happy new year!

Justice, Chivalry, America

DAN

Nessy is watching Guilty Crown and it reminded me of this pic. Salute Dan Eagleman (and the harem he should have had), the only likeable character in that train-wreck of an anime (ok, I admit I liked Hare).

Dan, THE character able to make a non-American say “God Bless America”.

Repair MapInfos

I posted this on rpgmakerweb forums months ago and forgot about it. Re-post it here because Netsu/Enigma reminded me.

This is a utility snippet you should use if your MapInfos.rvdata2 file is corrupted and you don’t have any suitable backup. MapInfos stores the map tree structure in the editor, so it’s a bit annoying to restore manually: it involves creating a bunch of blank maps in a new project, then paste the old ones in the Data folder… It’s ok if you have 20 maps, but what about 250?

Instructions
First, create a new project (important!) and copy all the maps from the old project (just copy them in the Data folder and paste them in the new project’s Data folder). Then, paste this snippet in the new project’s script editor:

mapinfos = {}
i = 0
Dir.entries(File.expand_path('./Data')).each do |filename|
  if filename =~ /Map*(\d+).rvdata2/
    mapinfos[i] = RPG::MapInfo.new
    mapinfos[i].name = sprintf("MAP%03d", $1) rescue "Unknown"
    i += 1
  end
end
save_data(mapinfos, "MapInfos.rvdata2")

This will recreate a brand new MapInfos.rvdata2 with all the maps of your real project. Replace the old corrupted file with this new one. It will not recreate the map names nor the tree structure because they are lost but at least all of your maps will appear in the editor, which isn’t the case with a “blank” map infos file. Note that the file is created in the new project folder itself, not the Data folder.

Lastly, to avoid such a situation again, remember to backup your files.