Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Editor

Newbie Spellweaver
Joined
Jun 12, 2010
Messages
23
Reaction score
1
Do you have any known steps to reproduce the issue?
It seems like `document` might be zero, so, you have to check if there is any document to begin with. Also, how do you assign the `document` variable?
 
Experienced Elementalist
Joined
Jul 27, 2014
Messages
252
Reaction score
8
Do you have any known steps to reproduce the issue?
It seems like `document` might be zero, so, you have to check if there is any document to begin with. Also, how do you assign the `document` variable?

Open table event:
Code:
            XtraTabPage addedpage = new XtraTabPage();
            OpenFileDialog open = new OpenFileDialog();
            open.Title = "Select table";
            open.Filter = "Text files (tab delimited|*.txt";
            if (open.ShowDialog() == DialogResult.OK)
            {
                path = open.FileName;
                addedpage = Tabs.TabPages.Add(open.SafeFileName);
                Tabs.SelectedTabPage = addedpage;
                if (open.FilterIndex == 1)
                {
                    DevExpress.XtraSpreadsheet.SpreadsheetControl sheet = new DevExpress.XtraSpreadsheet.SpreadsheetControl();
                    sheet.Dock = DockStyle.Fill;
                    addedpage.Controls.Add(sheet);
                    IWorkbook document = sheet.Document;
                    using (FileStream stream = new FileStream(open.FileName, FileMode.Open))
                    {
                        document.LoadDocument(stream, DocumentFormat.Text);
                    }
                }
            }

Save table event:
Code:
        IWorkbook document;
        private void SaveTable_ItemClick(object sender, ItemClickEventArgs e)
        {
            var save = XtraMessageBox.Show("Are you sure you want to save this table?", "Save file", MessageBoxButtons.YesNo);
            try
            {
                if (save == System.Windows.Forms.DialogResult.Yes)
                {
                    document.SaveDocument(DocumentFormat.Text);
                    Status.Caption = "Table(s) saved.";
                }
            }
            catch(System.NullReferenceException ex)
            {
                Status.Caption = "Object reference not set to an instance of an object.";
            }
        }
 
Newbie Spellweaver
Joined
Jun 12, 2010
Messages
23
Reaction score
1
The easy way is to check at the start of the event if the document is null like
if(document == null) {
// messagebox?
return;
}

but that wont fix the real problem, unless the error occurs only if you have no open documents
 
Experienced Elementalist
Joined
Jul 27, 2014
Messages
252
Reaction score
8
Why does everyone create a SHN editor as their first project.
This isn't an SHN editor. It has support for SHN files, but it's not constricted to just this one type of file.
 
Experienced Elementalist
Joined
Jul 27, 2014
Messages
252
Reaction score
8
A tool for Fiesta to edit multiple file types?
 
Newbie Spellweaver
Joined
Jun 12, 2010
Messages
23
Reaction score
1
I think Cedric did some tool a while back that did both SHN as well as shine tables.
Also, I once did a tool for editing the merchants (it's open source, you may incorparate some parts: ; it might be outdated though)
 
Experienced Elementalist
Joined
Jan 30, 2009
Messages
268
Reaction score
130
I think Cedric did some tool a while back that did both SHN as well as shine tables.
Also, I once did a tool for editing the merchants (it's open source, you may incorparate some parts: ; it might be outdated though)

or you could simply open them in excel, I don't know why you guys like to over complicate things.
 
Newbie Spellweaver
Joined
Jun 12, 2010
Messages
23
Reaction score
1
Did you actually take a look at what I was refering to?
Anyways, Yes there were projects about multiple files, but none have replaced the SHN-Editor yet.
Also, you might want to add the tools for the quest and text info files into the tool your building, that'd be nice.
 
Experienced Elementalist
Joined
Jul 27, 2014
Messages
252
Reaction score
8
I'll try to incorporate these ideas. Thanks.
 
Experienced Elementalist
Joined
Jul 27, 2014
Messages
252
Reaction score
8
Still looking for assistance if anyone is able to help me.
 
Experienced Elementalist
Joined
Jul 27, 2014
Messages
252
Reaction score
8
Ok my post was deleted.
It's saving most files but the ones like ActiveSkill.shn and TextData
Maybe these files are in a different format or something?
 
Experienced Elementalist
Joined
Jul 27, 2014
Messages
252
Reaction score
8
Sorry for the lack of posts.
Thought I'm still working on this, I have a lot of other things that need to be done.
I'll continue to work on this and post updates again as soon as I can.
 
Newbie Spellweaver
Joined
Jan 5, 2015
Messages
58
Reaction score
36
Sorry for the lack of posts.
Thought I'm still working on this, I have a lot of other things that need to be done.
I'll continue to work on this and post updates again as soon as I can.

Good luck with this. I'd help but I'm more of a web developer. And I know a lot of Delphi. Haven't really read many books on Visual Studio's stuff yet. Getting there but slowly. Once I get there I can help you out.

Honestly most of the SHN Editors out now are good. But I always wanted more Lol. Always felt the SHN Editors were incomplete and buggy sometimes. Mr. Farbods being the one I use now. A lot better then some of that version 3 stuff. But hey who can complain its free.

</hippocrisy>

If you make one. You gotta make some new features.

First new feature: New Stuff based on old stuff. Like seriously. Why do i have to go to 3 different files and search and copy and paste, just to add a new item. Some of it is just plain stupid. Like MobSpecies.

Imagine a program. Where you give it your Shn Location of all your shns. Server and client side. And then You have a make Item dialogue. And you have two text boxes. One is labeled (itemInx to copy from). One is labeled (name of new iteminx).

So e.g. Copy from: ShortBow; New Item: ShotgunBow. {Create Item Button}.

Boom you click that button. It opens ItemInfo, ItemViewInfo, ItemInfoServer. Does copy and paste based on Row with Index name ShortBow. Reindexes it to a new index number (at bottom of shns). Then changes the index name to ShotgunBow. And Viola you just added a new item. And saves it.

Without having to do like 10+ clicks/ and other crap.

Automation is key.
 
Back
Top