What happened to OC? - CLOSED Carnage?!
Sign in to follow this  
Followers 0
Kavawuvi

PHP Map Parser

What?! 002 made something in PHP? That's completely unacceptable.

http://protonnebula.com/mapeditor/viewer.php?mapid=0&start=0&class=weap

Just a tip: You can mouse over a size to see its size in bytes. (Not sure how to capture cursor on Windows with screenshot)
Screen%20Shot%202014-09-14%20at%209.59.3

You're probably going to ask: Why only 20 tags per page? My monitor can show at least [40, 50, 100, 500, a zillion, etc.].

Using the C language, I can load bloodgulch.map, read every single tag path, then calculate the sizes of each tag, all in under 300 milliseconds. In PHP, the same task will take over 25 seconds, 84 times longer.

In C, I can just load the map into a buffer and use every value directly from the buffer, rather than storing everything into a variable. Halo maps are read like this in Halo.

Takka likes this

Share this post


Link to post
Share on other sites

Tiddy-bits:

... Why?

Why what?

Why did I make it? This hasn't been done before, that I know of. No harm was done, and I learned a little bit of PHP along the way, so the gain exceeded the (nonexistent) loss. That is why I did this.

Why would anyone use it? It's a parser, so it's up to however it is used. For all I know, you could make another forum with this thing, storing the database in a Halo map file.

Why did I use PHP? Well, why did you use REALbasic?

Edited by 002
NeX likes this

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.