New DataQuest Designer

Share files with other Dawn of Light users

Moderator: Support Team

New DataQuest Designer

Postby stephenxpimentel » Thu Jul 29, 2010 9:34 pm

Heya, i would be more than happy to do this, i think i'll need to mess around with the system a little though to completely understand how it even works.. But Tolakram, feel free to tell me how u want the program to work, and i'll deffinately try to get it how u want it :)
Attachments
DataQuestBuilder.rar
(971.05 KiB) Downloaded 630 times
Last edited by stephenxpimentel on Mon Dec 13, 2010 4:25 am, edited 1 time in total.
Lets have some fun.
stephenxpimentel
Contributor
 
Posts: 1300
Joined: Wed Sep 19, 2007 5:09 pm

Re: New DataQuest Designer

Postby Tolakram » Fri Jul 30, 2010 2:28 am

Thanks Stephen

Here's the comment block from code I should commit tonight.

Code: Select all
   /// <summary>
   /// This represents a data driven quest
   /// DataQuests are defined in the database instead of a script.
   ///
   /// Each Quest should have a complete set of startup parameters.  All of these are non serialized.
   ///
   /// Name, StartType, StartName, StartRegionID, AcceptText and Description.  These determine who offers the quest and what text is displayed
   /// to the player considering accepting the quest.
   ///
   /// Once a quest is started each step behaves in a set order. 
   ///
   /// Source -> Target -> Advance to Next Step
   ///
   /// Step 1 is considered the first step, and for each step
   /// Source is considered who started the Step and Target is considered who ends the Step.   For each Step the following columns must
   /// have serialized values, separated by | for each Step, including Step 1.  If the last value for any step is empty then the string should
   /// end with a double pipe |
   ///
   /// SourceName;RegionID - both the SourceName and TargetName fields must be in the format Name;RegionID|Name;RegionID...
   ///
   /// SourceText - what the source says to you when beginning a step.  If a source starting the next step has no text then an empty
   /// string can be provided using || with nothing between the pipes.
   ///
   /// StepType - The type of step from eStepType
   ///
   /// StepText - The text for the step that appears in the players quest journal
   ///
   /// StepItemTemplates - Any items that need to be given to the player at the start of the step.  If no items are given to a player
   /// at any of the steps then this can be null, otherwise it must have values for each step.  Empty values || are ok.
   ///
   /// AdvanceText - The text needed, if any, to advance this step.  If no step requires advance text then this can be null, otherwise
   /// text must be provided for every step.  Empty values || are ok.
   ///
   /// TargetName;RegionID
   ///
   /// TargetText - Text shown to player when current step ends.
   ///
   /// CollectItemTemplate - Item that needs to be collected to end the current step.  If no items are ever collected this can be kept null,
   /// otherwise it needs an entry for each step.  Empty values || are ok.
   ///
   /// MaxCount, MinLevel, MaxLevel - Single values to determine who can do quest.  All must be provided.
   ///
   /// RewardMoney - Serialized list of money rewarded for each step.  All steps must have a value, 0 is ok.
   ///
   /// RewardXP - Serialized list of XP rewarded each step.  All steps must have a value, 0 is ok.
   ///
   /// OptionalRewardItemTemplates - A serialized list of optional rewards to be presented to the player at the end of a Reward quest.
   /// The first value must be a number from 0 to 8 followed by the item list.  ex: 2id_nb|id_nb  For quests without optional rewards
   /// this field can be null.
   ///
   /// FinalRewardItemTemplates - A serialized list of rewards to be given to the player at the end of a quest.  For quests without
   /// rewards this field can be null.
   ///
   /// </summary>


Take a look at DataQuest.cs to get an idea how I deserialize the data.

Here's what I'm thinking ... I'd like the interface to be 3 tabs. The first tab will be all the non serialized starting fields.

/// Name, eStartType, StartName, StartRegionID, AcceptText and Description.

The second tab will contain all the serialized fields, but only show a single step at a time, with the ability to add a step. I picture a drop down in the upper left of steps, and when selecting the steps you see the data for that step. The user of the quest designer should never have to deal with serialized data. There should be a button on this tab to add a new step, so the user can add as many steps as they want. When the quest is saved the program simply serializes all the data and places it in the appropriate fields.

The 3rd tab will be for rewards. It will have reward XP, money, the final item rewards and the optional item rewards (not used yet).

I figure that if you store all the individual step pieces in Dictionary<int, string> it ought to be easy to both show the individual pieces on the interface and serialize / deserialize the data when saved or loaded.

That's my general overview, anyway. This might become clearer as I provide more examples in the next week or so.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: New DataQuest Designer

Postby bedrock1977 » Wed Dec 01, 2010 10:16 pm

Is this in and working? Been looking to find a post that stated this or not because I want to start recreating the live quests a bit more than we have now.
User avatar
bedrock1977
DOL Novice
 
Posts: 90
Joined: Sun Dec 18, 2005 12:53 am
Website: http://percival.dyndns-ip.com:8080
Location: California

Re: New DataQuest Designer

Postby Tolakram » Wed Dec 01, 2010 10:18 pm

Yes, in and working. I have a post in the contributors forum with example quests.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: New DataQuest Designer

Postby stephenxpimentel » Sat Dec 11, 2010 10:24 pm

hey guys, i have like 0 time due to work to finish this... but i have a good amount of it (i think) done.. so i'm posting what i have so far incase someone wants to finish it. There isn't much to it, but it can atleast connect to SQL, via Preferences menu, and it adds all the steps into a dictionary, just needs support for saving to database (requires some serializing), and the ability to import a quest that already exists in the DB.

EDIT: Website now allows me to attach it. :) Great.
DataQuestBuilder.rar
(971.05 KiB) Downloaded 89 times
Last edited by stephenxpimentel on Sun Dec 12, 2010 5:52 pm, edited 1 time in total.
Lets have some fun.
stephenxpimentel
Contributor
 
Posts: 1300
Joined: Wed Sep 19, 2007 5:09 pm

Re: New DataQuest Designer

Postby geshi » Sat Dec 11, 2010 10:52 pm

Where is it ?
geshi
Contributor
 
Posts: 1826
Joined: Tue Oct 21, 2008 9:16 pm

Re: New DataQuest Designer

Postby Graveen » Sun Dec 12, 2010 9:04 am

PM Darty, he was interested to do so, perhaps you could join your efforts

required: use DOLDatabase
interesting: use some elements from old quest designer
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: New DataQuest Designer

Postby Etaew » Sun Dec 12, 2010 9:11 am

He was having some trouble uploading attachments and I've been having trouble uploading files on FTP. Sometimes instant sometimes fails to connect for minutes. Anything you can do Grav?
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England

Re: New DataQuest Designer

Postby Graveen » Sun Dec 12, 2010 9:17 am

Yes i can, it seems we have a problem.
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: New DataQuest Designer

Postby Graveen » Sun Dec 12, 2010 9:28 am

Feedback me about this Tom, i have to go out, but it seems the MTA was used as a spam relay: i shutdowned it, no time to write ACL or look at qmail's doc to forward relaying except from localhost.

-> consequence: emails from the website won't work for now
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: New DataQuest Designer

Postby stephenxpimentel » Sun Dec 12, 2010 5:52 pm

See Above Post - Its Uploaded.
Lets have some fun.
stephenxpimentel
Contributor
 
Posts: 1300
Joined: Wed Sep 19, 2007 5:09 pm

Re: New DataQuest Designer

Postby Etaew » Sun Dec 12, 2010 6:01 pm

See Above Post - Its Uploaded.
Can you attach it to first post please? Will work on having it auto include to user files section.
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England

Re: New DataQuest Designer

Postby stephenxpimentel » Mon Dec 13, 2010 4:25 am

done.
Lets have some fun.
stephenxpimentel
Contributor
 
Posts: 1300
Joined: Wed Sep 19, 2007 5:09 pm

Re: New DataQuest Designer

Postby Trick » Fri Dec 17, 2010 4:49 pm

Hey, I didn't read up that much stephen but you had asked me to add the database connection etc. I basically redid your programs layout, added a database search function for searching for specific npcs and utilized uthgard's ID list pictures (thx metty :D) it now properly saves the quests to the database by going to File -> Save, also fixed File->New, and set up most basic features (made preferences actually save MySQL Connection info now!). For the testing stages I'd say the quest designer is ready, but I didn't look much into how dataquests are set up in the server so a lot of the simplification is cut in half, but that can easily be fixed later. I have no place to upload the source code unfortunately tho :x

edit
-------------------------- Ahh attachments got it.. :)
Attachments
DataQuestBuilder.rar
Changed from the original upload because there was a 2 in one of the bad chars which caused an error box
(1.02 MiB) Downloaded 179 times
Code: Select all
If at first you don't succeed, then you are mediocre ;)

Trick
DOL Novice
 
Posts: 88
Joined: Sun Jan 18, 2009 1:51 am

Re: New DataQuest Designer

Postby Graveen » Fri Dec 17, 2010 6:03 pm

Trick you made a software based on the actual QD ? :)
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France


Return to “%s” User Files

Who is online

Users browsing this forum: No registered users and 1 guest