Thread Tools Display Modes
01-07-13, 10:19 AM   #1
Rythal
Featured Artist
Featured
Join Date: Aug 2012
Posts: 1,458
Hmm.. What could this be....

> php questdecode.php

QuestID: 2
Quest Name: Sharptalon's Claw
Faction: 2
Level: 23
Available Level: 19
Next QuestID: 0
Category: 0
End NPC: 1
End Zone: 5
End Loc: Point 49.76,65.15
------------------------------------
QuestID: 71
Quest Name: Report to Thomas
Faction: 1
Level: 10
Available Level: 7
Next QuestID: 59
Category: 0
Start NPC: 9
Start Zone: 42
Start Loc: Point 79.79,55.56
End NPC: 6
End Zone: 42
End Loc: Point 73.93,72.22
------------------------------------
QuestID: 8121
Quest Name: Take Four Bases
Faction: 2
Level: 60
Available Level: 60
Next QuestID: 0
Category: 0
------------------------------------

Still trying to figure out just what the extra data after quest end is, I thought it was objectives ... but it doesn't seem to follow the format unpackobjective uses.
 
01-09-13, 03:35 AM   #2
JimJoBlue
An Onyxian Warder
 
JimJoBlue's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 362
Still trying to figure out just what the extra data after quest end is, I thought it was objectives ... but it doesn't seem to follow the format unpackobjective uses.
Could you elaborate a bit? I don't understand what extra data you are seeing.
__________________
I still say a church steeple with a lightning rod on top shows a lack of confidence. Doug McLeod


 
01-09-13, 07:14 AM   #3
Rythal
Featured Artist
Featured
Join Date: Aug 2012
Posts: 1,458
It was objective points that create the coloured boxes on screen, an example of it would be this quest here:

QuestID: 11
Quest Name: Riverpaw Gnoll Bounty
Faction: 1
Level: 10
Available Level: 7
Next QuestID: 0
Category: 0
Start NPC: 2
Start Zone: 42
Start Loc: Point 24.26,74.54
End NPC: 2
End Zone: 42
End Loc: Point 24.25,74.54
Obj Zone: 42
Obj Point: 25.5#80#15.03#3.3425.5#80.5#20.04#3.3425.5#81#25.05#16.725#83.5#30.06#13.3625#85.5#35.07#3.3424.5#86#40.08#
3.3424#86.5#45.09#3.3423.5#87#50.1#16.724#89.5#40.08#10.0224.5#91#40.08#10.0224#92.5#45.09#3.3424#93#40.08#
3.3424#93.5#35.07#6.6824#94.5#20.04#3.3424.5#95#10.02#3.34
------------------------------------

the objective points are 4 number sets, x & y then height & width of the box to be drawn (in the above I didn't place a delimiter in my output between sets, so it's showing as x#y#h#wx#y), in my initial overview of the code, they were only returning an x & y so it got confusing.
 
01-09-13, 07:41 AM   #4
JimJoBlue
An Onyxian Warder
 
JimJoBlue's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 362
So... That PHP script you have works out the quest blobs that carb can read/use and makes a database?

Sounds like a breakthrough to me... Very nice..
__________________
I still say a church steeple with a lightning rod on top shows a lack of confidence. Doug McLeod


 
01-09-13, 08:00 AM   #5
Rythal
Featured Artist
Featured
Join Date: Aug 2012
Posts: 1,458
Yes, it decodes the entire quest database, now i'm just fixing minor things like some quests don't follow the same guidelines as the rest so they produce random output (example, in general the quests with no start or end npc will have nil, but some quests they didn't bother putting nil and just left it blank)

Once I have it outputting all the quests properly, I can work out and decide how I want them to be formatted, change it to output that format instead of html and have a new quest database that's english and easily modifiable instead of one character unicode.

Still a small ways off of being able to add new quests tho... the current path towards next beta is:

- Finish decoding the current quest database
- Update Nxquest to use the new format instead of the old
- Update zones & Nxmapdata to change carbonites zone list from it's own internal numbering to blizzards numbering (since i'll not be limited by the bytecode anymore, it makes more sense ... as an example, Ammen vale is known as area 206 in carbonite, blizzard knows it as area 894)
- Get blindly drunk in celebration of reaching this point
- Update the quest database to reflect the new zone numbering

after all that, *THEN* I can add new quests
 
01-09-13, 08:40 AM   #6
Twink
A Wyrmkin Dreamwalker
Join Date: Apr 2009
Posts: 56
Originally Posted by Rythal View Post
Yes, it decodes the entire quest database, now i'm just fixing minor things like some quests don't follow the same guidelines as the rest so they produce random output (example, in general the quests with no start or end npc will have nil, but some quests they didn't bother putting nil and just left it blank)

Once I have it outputting all the quests properly, I can work out and decide how I want them to be formatted, change it to output that format instead of html and have a new quest database that's english and easily modifiable instead of one character unicode.

Still a small ways off of being able to add new quests tho... the current path towards next beta is:

- Finish decoding the current quest database
- Update Nxquest to use the new format instead of the old
- Update zones & Nxmapdata to change carbonites zone list from it's own internal numbering to blizzards numbering (since i'll not be limited by the bytecode anymore, it makes more sense ... as an example, Ammen vale is known as area 206 in carbonite, blizzard knows it as area 894)
- Get blindly drunk in celebration of reaching this point
- Update the quest database to reflect the new zone numbering

after all that, *THEN* I can add new quests
WOW! I wasnt expecting a breakthrough like this so soon!

Nicely done!

I look forward to seeing/breaking things in the name of finding bugs :P
 
01-20-13, 06:01 PM   #7
Rythal
Featured Artist
Featured
Join Date: Aug 2012
Posts: 1,458
New Progress:

Code:
  [2] = {
    Quest = "Sharptalon's Claw!2!23!19!0!0",
    End = "1!5!32!49.76!65.15",
  },
  [11] = {
    Quest = "Riverpaw Gnoll Bounty!1!10!7!0!0",
    Start = "2!42!32!24.26!74.54",
    End = "2!42!32!24.25!74.54",
    Objectives = {
      "51!77!25.5!80!15.03!3.34",
      "51!77!25.5!80.5!20.04!3.34",
      "51!77!25.5!81!25.05!16.7",
      "51!77!25!83.5!30.06!13.36",
      "51!77!25!85.5!35.07!3.34",
      "51!77!24.5!86!40.08!3.34",
      "51!77!24!86.5!45.09!3.34",
      "51!77!23.5!87!50.1!16.7",
      "51!77!24!89.5!40.08!10.02",
      "51!77!24.5!91!40.08!10.02",
      "51!77!24!92.5!45.09!3.34",
      "51!77!24!93!40.08!3.34",
      "51!77!24!93.5!35.07!6.68",
      "51!77!24!94.5!20.04!3.34",
      "51!77!24.5!95!10.02!3.34",
    },
  },
Unfortunately, the size of the quest database has gone from 1M in size... to 4M with the decode, so it looks like I need to do the conversion to ace first, then break the database down into level ranges (0-10, 11-20, 21-30 etc) so you can load which ones you want, and I can break the file into several parts.
 
 

WoWInterface » Featured Projects » Carbonite » Carbonite Archive » Hmm.. What could this be....


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off