Collecting Area Item Editor

Results 1 to 11 of 11
  1. #1
    Member Maples is offline
    MemberRank
    Jul 2008 Join Date
    86Posts

    Collecting Area Item Editor

    Hello all,

    I've made a little tool to edit the items you get when collecting in the collecting-area.



    That might look a bit primitive, so there's a right click menu:



    You can quick-access the functions by pressing the keys which are stated next to them;
    F1 Creates a new item
    F2 Edits an existing item
    DEL Removes an existing item
    You don't need the right-click menu to be open for this, you can press them right away (make sure you focus on the list, else the hotkeys will not be triggered!)

    One more thing, you can see the description of the item when you hover it!



    Now, there's the Add-Item functionality, which has a nice dropdown to let you choose the item to add to the collecting-area. You can set the chance to get the item in percents, up to 7 digits behind the comma.



    A description of the item will be shown as you select items. A preview:



    You can also filter the contents of the dropdown by entering some text. Example:



    So that's about it. The Edit-Item functionality works quite the same as Add-Item. Let's check the results:


    From left to right; old->edited->new


    Instructions on how to use:
    1. Copy s.txt, propItem.txt and propItem.txt.txt from your server-files Resource folder to the same folder the application is in (or paste the application in your resource folder, make sure to create a backup of s.txt just in case)
    2. Open the application and click on Load File
    3. Add/Edit/Delete items and click Save File
    4. Copy s.txt back to your resource folder (or do nothing when the application is in your resource folder already)
    5. Enjoy your edited collecting-area items!


    I've added two attachments, if those do not work for some reason, here are two links:
    The executable: http://www.mediafire.com/?gqdtw730ggl95ts or Collector Area Item Editor Executable.rar (requires .NET 4.0 to run!)
    The source: http://www.mediafire.com/?kwo2mx5111mvb3b or Collector Area Item Editor Source.rar

    The source might be handy for some who want to personalize the application, make it more specific for their files only. Or for learning purposes. Anyhow, the source is written in C#, requires .NET 4.0 (mainly because of string.IsNullOrWhiteSpace, you could create an extention method instead and let it run in .NET 3.5) and Visual Studio 2010 or higher.

    Oh and lastly, the result when collecting!



    UPDATE: Added a item-image viewer. It looks a like this:



    A video showing the images being changed when the selected item changes:



    To make this version work, copy the Item folder from your flyff client to the application folder.

    You can download the new update here:


    As the application is quite limited in the way it works, for example placing the three files (s/propItem/propItem.txt) in the application folder (instead of selecting them with dialogs), I'd love to hear how it can be made easier, faster and more user-friendly to use. So if you have any criticism, tips, ways to improve or advice, please let me know!

    Comments/Tips are more than welcome!
    Last edited by Maples; 08-07-12 at 11:35 PM. Reason: Adding new version with a little image of the item


  2. #2
    Trust your senses Gravious is offline
    Grand MasterRank
    Sep 2009 Join Date
    NetherlandsLocation
    713Posts
    Is there also support for Spec_Item?
    It's not quite necessary to have such a tool for only editing on simple file, but I suppose it'll help people who are absolutely new.
    The UI looks clear and easy to use.

  3. #3
    Flyff Developer ShadowDragon is offline
    Grand MasterRank
    Apr 2009 Join Date
    1,915Posts

    Re: Collecting Area Item Editor

    Quote Originally Posted by Gravious View Post
    It's not quite necessary to have such a tool for only editing on simple file, but I suppose it'll help people who are absolutely new.
    I disagree. It's not just useful for editing the file, but for easily setting the percentages of each item in a more human readable format.

  4. #4
    Member Maples is offline
    MemberRank
    Jul 2008 Join Date
    86Posts

    Re: Collecting Area Item Editor

    Quote Originally Posted by Gravious View Post
    Is there also support for Spec_Item?
    It's not quite necessary to have such a tool for only editing on simple file, but I suppose it'll help people who are absolutely new.
    The UI looks clear and easy to use.
    In short; there is support for Spec_Item.txt

    It parses lines which have a pattern of "VersionNumber [tab here] IDStartingWith:II_ [tab here] NameStartingWith:IDS_PROPITEM_TXT_"
    Seeing that v16/v17 clients mainly work with Spec_Item.txt and the structure of the file is mostly the same, I'd say it will work fine. One thing though, it hasn't got support for the filename Spec_Item.txt (yet), so you must rename the file to propItem.txt. It also works fine with the icon-image version (item preview), I've tested it with a v17 Spec_Item.txt and the file structure is still readable by the program, not much has changed.

    Quote Originally Posted by ShadowDragon42 View Post
    I disagree. It's not just useful for editing the file, but for easily setting the percentages of each item in a more human readable format.
    What ShadowDragon wrote, is one of the reasons I have created this little editor. Ofcourse, it's a nice programming exercise, but it could be a handy program for a lot of people. Some people prefer editing the collecting-field items manually (which is absolutely fine), some prefer using a more user-friendly way, using an editor. It's all about personal preference, one will use it, another won't. Even for experts at resource file editing, it may be nice to quickly make edits. But in the end it's all personal preference.
    Last edited by Maples; 10-07-12 at 09:52 AM.

  5. #5
    Member Maples is offline
    MemberRank
    Jul 2008 Join Date
    86Posts

    Re: Collecting Area Item Editor

    Nice to see so many people interested. 60 Downloads so far!

  6. #6
    Sorcerer Supreme Langstra is offline
    Member +Rank
    Feb 2011 Join Date
    Among heroesLocation
    479Posts

    Re: Collecting Area Item Editor

    Still, 60 downloads and only 4 likes, I think the community could be a little bit more grateful. It is not that hard to hit the like button, is it now? Anyway, thank you for the program.

  7. #7
    Member Lomo is offline
    MemberRank
    Mar 2012 Join Date
    36Posts

    Re: Collecting Area Item Editor

    Dont work for me.
    When i push Load it gives this error.
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
    at Collector_Area_Item_Editor.PropItem2Object.PROPITEM_TXT_TXT_FILE.Items()
    at Collector_Area_Item_Editor.PropItem2Object.RetrieveFlyffItems()
    at Collector_Area_Item_Editor.PropItem2Object.RetrieveChanceItems()
    at Collector_Area_Item_Editor.Main.btnLoadFile_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    Collector Area Item Editor
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Daniel/Desktop/Source%20Test/V15_FIles/Resource15to19/Collector%20Area%20Item%20Editor.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.


  8. #8
    Member Maples is offline
    MemberRank
    Jul 2008 Join Date
    86Posts

    Re: Collecting Area Item Editor

    Quote Originally Posted by Lomo View Post
    Dont work for me.
    When i push Load it gives this error.

    ..error..
    This looks like one of the files you provided has incorrect formatting, or a logic mistake from my side. Could you upload the three files propItem.txt, propItem.txt.txt and s.txt (all in a zip/rar) to a file hosting site, or here as an attachment?

    Edit; I think I've found the problem, I'm performing a small edit and uploading a fixed version. But please upload those three files if possible, so I can rule out any other problems that might occur.

  9. #9
    Member Lomo is offline
    MemberRank
    Mar 2012 Join Date
    36Posts

    Re: Collecting Area Item Editor

    Quote Originally Posted by Maples View Post
    This looks like one of the files you provided has incorrect formatting, or a logic mistake from my side. Could you upload the three files propItem.txt, propItem.txt.txt and s.txt (all in a zip/rar) to a file hosting site, or here as an attachment?

    Edit; I think I've found the problem, I'm performing a small edit and uploading a fixed version. But please upload those three files if possible, so I can rule out any other problems that might occur.
    i have was trying with clean v15 resource and also with edited v19 korean resource (deleted v19 parameters).
    But both did not work. So I do not think that it is therefore

  10. #10
    Member Maples is offline
    MemberRank
    Jul 2008 Join Date
    86Posts

    Re: Collecting Area Item Editor

    Quote Originally Posted by Lomo View Post
    i have was trying with clean v15 resource and also with edited v19 korean resource (deleted v19 parameters).
    But both did not work. So I do not think that it is therefore
    That sounds unusual to me. The partial stacktrace points to Collector_Area_Item_Editor.PropItem2Object.PROPITEM_TXT_TXT_FILE.Items() which is a method/function I wrote to parse the propItem.txt.txt file.

    As promised, a fix version. Let's hope this one works for you. I've included the files I used when developing this application, if you wish you could do some testing with those.

    Download: Lomo fix version.rar
    Download from MF: Lomo fix version.rar

  11. #11
    Member Lomo is offline
    MemberRank
    Mar 2012 Join Date
    36Posts

    Re: Collecting Area Item Editor

    with your resources, it works, weird. I'll look at the difference later. thanks.



Advertisement