[Release]Basic Itemtype Editor

06/04/2012 18:07 funhacker#1
Hey guys sorry for such a late release, I've been very busy with ACME/Farm/TAFE but my TAFE work allowed for me to actually work on this, as I need to mentor someone in a work-based skill and decided to mentor someone to make this application (he has already been chosen so please don't ask).

So here it is, please not it's extremely basic, no limitations, not even obsufucated, so you can use .net reflector on it. Also note that there is a bit of a help file included. Click "About -> Help" and choose the topic you wish to get help on.

If you're interested in making your own and have some programming knowledge you can check out my ItemCore.DLL which I will be documenting a little more intently soon, but it's bed time for me :)

[Only registered and activated users can see links. Click Here To Register...]


Lattest update:
Can choose what "groups" of stats are visible, so you can hide stats like "Magical Stats" when you're working on just warrior gear for example.

Can now click&drag your Itemtype.dat straight onto the exe for instant loading. You can also drag multiple itemtype.dats and it will launch multiple ITemtypeEditors for each one :)

Can now decide to multi select in the items list box. This will only work with the delete button for now, basically you can select hundreds of items at once and then click the delete button, this will remove each item for you :)
Quite a time saver =]
06/04/2012 23:21 SoulNecturn#2
thanks :) really nice ... simple and nice one ;)
If I only had this 1,5 year ago lol :) I would use it to delete items .... but well maybe someday will need to delete more ;)

again thanks - realy simple and nice ;)
06/05/2012 11:26 Soul[PM]#3
Always you have The best Program very nice work and i wait for more from your program
06/09/2012 20:08 SoulNecturn#4
Ok I tried to use this by first time :)
While trying to save file got this:

Code:
Detailed information on invoking the debug mode JIT (just in time)
instead of this dialog box at the end of this message.

************** exception Text **************
System.ArgumentException: The length of the source array is insufficient. Check the item srcIndex,length of the array and the lower limit of the array.
   w System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   w System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
   w ItemCore.ItemData.get_NameAsCharArray()
   w ItemCore.FileWriter.Write(ItemData itemData)
   w ItemCore.FileWriter.Write(Itemtype itemtype)
   w BasicItemtypeEditor.MainForm.sfdItemtype_FileOk(Object sender, CancelEventArgs e)
   w System.Windows.Forms.FileDialog.OnFileOk(CancelEventArgs e)
   w System.Windows.Forms.FileDialog.HandleVistaFileOk(IFileDialog dialog)


************** loaded **************
mscorlib
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.269 (RTMGDR.030319-2600)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
BasicItemtypeEditor
    Package Version: 1.0.0.0
    Version Win32: 1.0.0.0
    CodeBase: file:///XXXXX/BasicItemtypeEditor.exe
----------------------------------------
System.Windows.Forms
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.269 built by: RTMGDR
    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
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.276 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.269 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
ItemCore
    Package Version: 1.0.0.0
    Version Win32: 1.0.0.0
    CodeBase: file:///XXX/ItemCore.DLL
----------------------------------------
System.Core
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
mscorlib.resources
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.235 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

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

For example:

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

When JIT debugging is enabled, any unhandled exception
are sent to the JIT debugger registered on the computer
and are not handled by this dialog box.

and to be more clear. I just edited for test field "sex" under one item then tried to save it. (from 1 to 0 was the edit = so should be all proper)...

anyway I will be looking into this in free time (as I believe solution is under itemcore - so other thread is about it heh) but just already giving heads up if anyone have similar issue ;)

cheers
06/10/2012 15:32 funhacker#5
Quote:
Originally Posted by SoulNecturn View Post
Ok I tried to use this by first time :)
While trying to save file got this:

Code:
Detailed information on invoking the debug mode JIT (just in time)
instead of this dialog box at the end of this message.

************** exception Text **************
System.ArgumentException: The length of the source array is insufficient. Check the item srcIndex,length of the array and the lower limit of the array.
   w System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   w System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
   w ItemCore.ItemData.get_NameAsCharArray()
   w ItemCore.FileWriter.Write(ItemData itemData)
   w ItemCore.FileWriter.Write(Itemtype itemtype)
   w BasicItemtypeEditor.MainForm.sfdItemtype_FileOk(Object sender, CancelEventArgs e)
   w System.Windows.Forms.FileDialog.OnFileOk(CancelEventArgs e)
   w System.Windows.Forms.FileDialog.HandleVistaFileOk(IFileDialog dialog)


************** loaded **************
mscorlib
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.269 (RTMGDR.030319-2600)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
BasicItemtypeEditor
    Package Version: 1.0.0.0
    Version Win32: 1.0.0.0
    CodeBase: file:///XXXXX/BasicItemtypeEditor.exe
----------------------------------------
System.Windows.Forms
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.269 built by: RTMGDR
    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
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.276 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.269 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
ItemCore
    Package Version: 1.0.0.0
    Version Win32: 1.0.0.0
    CodeBase: file:///XXX/ItemCore.DLL
----------------------------------------
System.Core
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
mscorlib.resources
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.235 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Package Version: 4.0.0.0
    Version Win32: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_pl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

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

For example:

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

When JIT debugging is enabled, any unhandled exception
are sent to the JIT debugger registered on the computer
and are not handled by this dialog box.

and to be more clear. I just edited for test field "sex" under one item then tried to save it. (from 1 to 0 was the edit = so should be all proper)...

anyway I will be looking into this in free time (as I believe solution is under itemcore - so other thread is about it heh) but just already giving heads up if anyone have similar issue ;)

cheers
Yes sorry that is an error in the ItemCore.dll I fixed this once I realised I hadn't even tested saving lol, guess I forgot to update threads.
I will have to update this application aswell as ItemCore.dll has capability to load every type of itemtype file now :)
06/11/2012 19:47 zukoo#6
Now I can not open the basicitemtype.exe

Thanks for always helping this. ;)
06/11/2012 21:24 no_1#7
Quote:
Originally Posted by zukoo View Post
Now I can not open the basicitemtype.exe

Thanks for always helping this. ;)
same problem here :)
06/12/2012 06:34 funhacker#8
Sorry guys :/
it wasn't generating the Settings file which will save preferences for group box display

itemtype editor has been re-uploaded
06/12/2012 12:41 SoulNecturn#9
ok another thing:

When I open my itemtype.dat and just saved as new itemtype.dat tile (new file not overwriting) I see that file is messed ...
let me explain:
I have in my itemtypedat loads of items in first place and in the end that after saving with this software I cannot see inside the new created itemtype.dat...
its like they were cut by this action...
06/12/2012 15:08 funhacker#10
Quote:
Originally Posted by SoulNecturn View Post
ok another thing:

When I open my itemtype.dat and just saved as new itemtype.dat tile (new file not overwriting) I see that file is messed ...
let me explain:
I have in my itemtypedat loads of items in first place and in the end that after saving with this software I cannot see inside the new created itemtype.dat...
its like they were cut by this action...
This is weird because it's working perfect for me, I tried

Modifying/Deleting/Adding items and then saving new files each test and it still worked..

Have you given it time to write the file? Even after the save dialog is closed

If you get this in the next 20-60mins feel free to add me on msn: [Only registered and activated users can see links. Click Here To Register...]
so I can work this out
06/13/2012 14:54 TheFlames#11
Hi, i have problem like SoulNectur say. The problem after i save and load back the itemtype.dat to check, some file is messed. I tried try another itemtype.dat but still have the same problem. This a screenshot after load back the itemtype.dat


[Only registered and activated users can see links. Click Here To Register...]
06/13/2012 15:13 funhacker#12
Quote:
Originally Posted by TheFlames View Post
Hi, i have problem like SoulNectur say. The problem after i save and load back the itemtype.dat to check, some file is messed. I tried try another itemtype.dat but still have the same problem. This a screenshot after load back the itemtype.dat


[Only registered and activated users can see links. Click Here To Register...]
Sorry about this, but I've not had time to fully implement the fix for this, although I did make a fix with soul helping me pin-point the problem. It was due to a change on how I load/save the itemtype file. But I never changed the Add/Delete/Edit methods to match this new way.
I will post here again once the update is implemented, it will come with more features too :D

#bump

Update:
Fixed error with how it was editing/adding items
Added MultiSelect function (read more on first post)
A list of duplicate items will be viewable if your itemtype contains items with duplicate ids, however these items WILL NOT be saved so keep a backup!
06/13/2012 17:47 TheFlames#13
wow! Thanks for the new update. Now its work perfectly. I can added and delete item with no any problem. One more things, it's more better if you can add amount of item like the old itemtype editor. So can know how much item have on itemtype.dat :) Btw, thanks for your hard work ;)
06/17/2012 12:12 fixways#14
Thanks for releasing it FunHacker.

Can im make some request from you ? :)
Can you make monster.dat editor ? The function is like this :
* Add monster in monster.dat
* Change size for monster

Hope you can make it soon :)
06/17/2012 13:04 DuaSelipar#15
and 1 more thing can u put function search? cuz i need to find item to delete :P...