- Joined
- Aug 12, 2009
- Messages
- 1,810
- Reaction score
- 606
Well it seems I finally got around to releasing this. I started this project back in the summer so roughly a good 5 months but only worked on it for a good 3. I decided to tackle this since I didn't have one myself and relying on someone to make it for me back then was a pain since it took forever so I decided to make the generation files myself which took a lot of debugging and trail/error. So in the spirit of the Christmas challenge I decided to release this. I will say now it's at most 90% accurate, there is a few bugs here and there which I can't remember so I need someone to test this for me and report it to fix it. Hope you enjoy!
Features:
- v.149.3
- php 5.4 support
- JSON-files(NO IMAGES)
- 24 hour caching system
- Efficient
- pdo support
How to implement it to your website:
I need someone to post their ranking script to give proper instructions and I will update it here because I haven't seen a ranking script in a long time.
How to generate it:
My generation is rather different since I group the character images by their rankings so I store 5 characters into one image to not re-cache 5 different times, just seems very inefficient to me, so I store 5 to make it easier on everyone. So id are the 5 ids seperated by a dotid).(id2).(id3).(id4).(id5) and the rank is the ranking of these characters. so imagine you have characters with the rankings of 455-460, the &rank=460. When I implemented it to my ranking script(not releasing) I get the file name 460 and subtract 1 in the loop(460, 459, ..) and reverse the array. Complicated in a sense but I like it this way. I might just name the file by the IDs instead since this restrict job ranking since it will produce a new set of rankings. I'll check how everything goes, this is BETA so nothing official. Here is an example how to produce it.
PHP:
yourWebsite.com/GD/display.php?id=111.432.45.22.43&rank=5
Sample:
Sample of coorddata is the base64 code of the image which I use, so no images are in this GD)
PHP:
{"x":-5,"y":19,"z":"accessoryFace","data":"iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAYAAABmBXS+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABaSURBVChTYwCC/yACDwDL/797pgND4e6ZLv870pRA4ghFMEF0Gq7o/7vdYIUwSRCGaYQpAgG4QhANUwgSh0hDAFwRLlNgAEURiA8RxgQ4TUAHBBWAAJoiBgYA0ZhpMTO6aIoAAAAASUVORK5CYII="}
Download:
You must be registered to see links
(passwordraiosdev)Questions:
-How can I separate the images in ranking?
- I need a ranking script to answer this but I basically use sprites and background-position in the ranking loop
- I didn't code the weapon effect some have but I have it marked in my generation file for future use. Also the dual bow isn't coded(The second bow) isn't stored but same as effect I have it marked for future use.
Attachments
You must be registered for see attachments list
Last edited: