[Release]Shop.dat Editor

10/17/2009 15:24 funhacker#1
Yet another app bought to you by ACME EO. I just coded this one suprisingly it only took approximately an hour and a half to do. This shop.dat editor has no limitations/adverts in this one :)

Functions
Load Itemtype.dat (Pre-Devine Path, After Mannequin)
Load Shop.dat
Save Shop.dat
Add Item (To a Shop)
Remove Item (From a Shop)
Add Shop
File Menu

Requirements
Computer
Itemtype.dat (found in the ini folder of EO)
Shop.dat (found in the ini folder of EO)
Shop.dat Editor (Download link below)
.Net Framework 3.5 (Possibly works with other Frameworks)

How to use

Adding an Item
  • Load Itemtype.dat
  • Load Shop.dat
  • Choose ShopID that you wish to add item to
  • Choose Item you wish to add from ItemList (fill out fields if you are adding for shopping Mall)
  • Click Add Item button
You may select an existing item to get similiar values

Notes
None

Limitations
None

Coded
64Bit VS 2008 .net 3.5
By funhacker (me)

Bugs Fixed
None yet


__________________________________________________ _____
Just curious if anyone has a nicely sized banner they know of with lattest EPvP logo I would like to add it to my apps with a link to their respective threads.
__________________________________________________ _____


Future Functions
Change Shop Stats
Change Item Stats (For Mall Items)
Delete Shop


@Necron33
No I will not release source code :)
10/17/2009 17:00 snailtrail#2
I get this error.. and yes im swedish so if theres anything you cant understand in here just tell me what and i'll tell ya what it means. It's the same error i got on the itemtype editor at first.
this error however comes up when im trying to add to the shop..

************** Undantagstext **************
System.IndexOutOfRangeException: Indexet låg utanför gränserna för matrisen.
vid .(Object , EventArgs )
vid System.Windows.Forms.Control.OnClick(EventArgs e)
vid System.Windows.Forms.Button.OnClick(EventArgs e)
vid System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
vid System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
vid System.Windows.Forms.Control.WndProc(Message& m)
vid System.Windows.Forms.ButtonBase.WndProc(Message& m)
vid System.Windows.Forms.Button.WndProc(Message& m)
vid System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
vid System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
vid System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
10/17/2009 17:47 funhacker#3
That is because you do not have an Item Selected in the Item List as stated by the instructions
10/17/2009 18:15 AFamousFish#4
I'm loving this funhacker :mofo: Should add a feature to change the order of the items soo we can move stuff up in the shopping mall.

Also when I want to make something show new and I type new in the 2nd desc box it doesn't save even if I save the shop.dat after i type it.

Apart from that GOOD RELEASE <33

Regards,
AFamousFish
10/17/2009 23:02 snailtrail#5
aww damnit. now i feel like such a blonde *slaps forehead* duuur i thought i followed the instructions but i missed that part. sorry
10/18/2009 02:31 hio77#6
Quote:
Originally Posted by funhacker View Post
__________________________________________________ _____
Just curious if anyone has a nicely sized banner they know of with lattest EPvP logo I would like to add it to my apps with a link to their respective threads.
__________________________________________________ _____
i can have a look at finding/making one for you :rolleyes::rolleyes:

Quote:
Originally Posted by funhacker View Post
@Necron33
No I will not release source code :)
:D love that part :P


-hio77
10/18/2009 06:57 funhacker#7
Quote:
Originally Posted by hio77 View Post
i can have a look at finding/making one for you :rolleyes::rolleyes:



:D love that part :P


-hio77
nvm Deadpool made me one :) still would love one that has current logo though :D
10/18/2009 07:41 hio77#8
Quote:
Originally Posted by funhacker View Post
nvm Deadpool made me one :) still would love one that has current logo though :D
with the current logo sure ^_^ i just had to get home first :D any particular sizes?
10/18/2009 10:48 KiiDxLaggy#9
how do you delete items?
10/18/2009 13:46 AFamousFish#10
Quote:
Originally Posted by funhacker View Post
nvm Deadpool made me one :) still would love one that has current logo though :D
[Only registered and activated users can see links. Click Here To Register...]

There you go.. If you want changes or think it looks shit just tell me cause im up for bad points :) helps me improve my work.

Regards
10/18/2009 15:45 Necron33#11
:D love that part :P


-hio77[/QUOTE]

you love it, i hate it :P.
10/19/2009 03:47 hio77#12
Quote:
Originally Posted by Necron33 View Post
:D love that part :P


-hio77
you love it, i hate it :P.[/QUOTE]

i would like to see how he dose it but thats all..
10/19/2009 09:15 funhacker#13
Here is a snipet of the program loading a Shop data structure.

Code:
for (int i = 0; i < ShopCount; i++) 
            {
                Shop[i].ID = br.ReadInt32();
                br.BaseStream.Position += 16;
                Shop[i].Type = br.ReadInt32();
                int ItemAmount = br.ReadInt32();
                Shop[i].Items = new ShopItemData[ItemAmount];
                if (Shop[i].ID != 1207)
                {
                    for (int j = 0; j < ItemAmount; j++)
                    {
                        Shop[i].Items[j].ID = br.ReadInt32();
                    }
                }
                else
                {
                    for (int j = 0; j < ItemAmount; j++)
                    {
                        Shop[i].Items[j].ID = br.ReadInt32();
                        Shop[i].Items[j].ItemType = br.ReadBytes(64);
                        Shop[i].Items[j].ItemDes01 = br.ReadBytes(64);
                        Shop[i].Items[j].ItemDes02 = br.ReadBytes(64);
                        Shop[i].Items[j].ItemDes03 = br.ReadBytes(256);
                    }

                }
                lb_shopid.Items.Add(Shop[i].ID);
            }
10/19/2009 10:28 hio77#14
Quote:
Originally Posted by funhacker View Post
Here is a snipet of the program loading a Shop data structure.

Code:
for (int i = 0; i < ShopCount; i++) 
            {
                Shop[i].ID = br.ReadInt32();
                br.BaseStream.Position += 16;
                Shop[i].Type = br.ReadInt32();
                int ItemAmount = br.ReadInt32();
                Shop[i].Items = new ShopItemData[ItemAmount];
                if (Shop[i].ID != 1207)
                {
                    for (int j = 0; j < ItemAmount; j++)
                    {
                        Shop[i].Items[j].ID = br.ReadInt32();
                    }
                }
                else
                {
                    for (int j = 0; j < ItemAmount; j++)
                    {
                        Shop[i].Items[j].ID = br.ReadInt32();
                        Shop[i].Items[j].ItemType = br.ReadBytes(64);
                        Shop[i].Items[j].ItemDes01 = br.ReadBytes(64);
                        Shop[i].Items[j].ItemDes02 = br.ReadBytes(64);
                        Shop[i].Items[j].ItemDes03 = br.ReadBytes(256);
                    }

                }
                lb_shopid.Items.Add(Shop[i].ID);
            }
sadly im one of the ones who needs the whole code to understand how to do it lmfao or well at lest for that anyway ...
10/21/2009 06:49 Necron33#15
Quote:
Originally Posted by hio77 View Post
sadly im one of the ones who needs the whole code to understand how to do it lmfao or well at lest for that anyway ...
thank god he gave us a snippet :P.