Author Topic: Frustrating Editor Issues...  (Read 1161 times)

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2818
  • FRUA Lives!
    • Lands of Adventure
Re: Frustrating Editor Issues...
« Reply #15 on: October 09, 2015, 01:07:22 PM »
Here's something that will save you time, then:

Open each event.  Copy the text.  Paste them in a WordPad file.

When you start re-doing your level, create the event, copy event text from the WordPad file and paste it into the event.  This way, you're only rebuilding the event structure, but not all the text.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9368
Re: Frustrating Editor Issues...
« Reply #16 on: October 09, 2015, 02:16:33 PM »
So, holy cow!

When did this last not cause errors, Paul? I have working designs where I have done extensive copying and pasting without any errors (so presumably no dupes).

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2081
Re: Frustrating Editor Issues...
« Reply #17 on: October 09, 2015, 02:42:55 PM »
You cannot safely delete the events.
If you delete one copy, the other reference to a (now)
non-existent event remains.  and will point to a
non-existent event and trouble will brew.

Deleting the entire tree might work because it will try to
delete both references.  After deleting the first the editor
will attempt to delete the second and will either crash
or print an error message and proceed.  So, try deleting
the entire tree and see what happens.  (Backup the
design first, please)  If the editor does not crash and
the event tree has disappeared, all is well.

Otherwise I suggest the following:
Export the level.
Manually remove the event chains in error. (Edit Levelnnn.txt)
Import the level.

I can help you get this done with minimal loss.  The only reason
I did not suggest this initially is that the Export/Import of
levels has not been used very much and could, itself, have
problems.  I hate to have you jump from the frying pan into
the fire.  If you want to try this, and it is not obvious to you
how to edit the levelnnn.txt file, send it to me or post the
interesting parts here and ask for suggestions.  (Backup your
design, please, before making such changes)

Offline Draugr

  • Jr. Member
  • **
  • Posts: 99
Re: Frustrating Editor Issues...
« Reply #18 on: October 10, 2015, 12:15:46 AM »
OK.... Back to work. :)

I removed all the events related to the issues and have already gotten the important ones back by retyping them in. Once you get the hang of it all, its a lot faster to make an event. :)

Now... I do have one more question. I have noticed that the reference numbers are working with COPY/PASTE, but there is one thing I noticed. Let me explain...

Event 1 (100)
   Combat Chain (101)

Copy that event then paste and you get

Event 2 (102)
   Combat Chain (103)

Now if I delete either of those two events and then use COPY/PASTE on the other to get a new copy I get this.
Lets say I deleted the First event above with ref#s 100 and 101

The newly pasted Event shows

Event 3 (104)
   Combat Chain (105)

Even though ref numbers 100 and 101 are now freed up because that event was previously deleted, the newly pasted event does not go back and reuse those reference numbers. Same thing happens if you delete the second or last copied version of an event. Is this normal, or ok? I mean I guess it can't be too much of an issue, but it will cause reference numbers to climb rather quickly. Is there any potential problems like running out of valid reference numbers?

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2818
  • FRUA Lives!
    • Lands of Adventure
Re: Frustrating Editor Issues...
« Reply #19 on: October 10, 2015, 07:51:16 AM »
I think this is just how it works, whether intended or not. I recently deleted some events in a chain and inserted new ones. The numbers deleted were gone, and new events had higher numbers. It doesn't really seem to hurt anything, and being that you can have millions of events in a design, I doubt those missing numbers would really have an impact.

If it's a bug, it probably isn't a serious one.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline Draugr

  • Jr. Member
  • **
  • Posts: 99
Re: Frustrating Editor Issues...
« Reply #20 on: October 10, 2015, 08:20:42 AM »
If there are millions or even thousands of events that can be in a design, then yea, the ref number thing is no issue at all. :)

If someone makes a design with over a million events... Holy Krap! LOL

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2818
  • FRUA Lives!
    • Lands of Adventure
Re: Frustrating Editor Issues...
« Reply #21 on: October 10, 2015, 09:03:55 AM »
Here's info from the Dungeon Craft FAQ.    I was wrong.  You can have over 16 million events per level x 255 possible levels.  Total number of events per game is actually in the billions:  4,278,189,825.  So, I wouldn't sweat the loss of a couple here and there. Here's more info from the FAQ.

How many quests can I have in my design, and how many variables per quest?

The maximum number of quests is 268,435,455.
Each quest can have values of 0-65001. 1-64999, quest is in progress 65000, quest is completed (successful) 65001, quest is failed


How many levels can I have in my design? How many events?
Max levels 255, each level up to 100x100
Max events 16,777,215 per level
Max zones 16 per level
Max step events 8 per level


How many walls and backdrops can I use per level?
Max wall slots 96 per level
Max backdrop slots 96 per level


How many NPC's and monsters can I have in my design?
Max NPC’s 2,147,483,647
Max monsters 2,147,483,647


How many different spells can I put in my design?
Max spells 1,048,575


How much text can I have in my design?
Nearly unlimited text There is an actual limit on the text at 2 billion characters per text box. That is, each place where you can enter text into an event has the 2 billion character limit.

(This means that the amount of total text characters you can have in the game, based upon my calculator is 8.55637965e+18, whatever number that turns out to be)

« Last Edit: October 10, 2015, 09:07:27 AM by ProphetSword »
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2081
Re: Frustrating Editor Issues...
« Reply #22 on: October 10, 2015, 10:16:35 AM »
The event IDs are 32-bit numbers.  I'd be careful not
to use the top bit.  So the IDs can be as large as
2,100,000,000.  They are not kept in an array but
in a linear list.  So if you use, say, half a million on
a single level, we might have to rearrange them into
a more efficient structure; an array comes to mind.
If we did that then we would also have to learn how
to reuse deleted IDs.  But it works fine as it is for now.

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2818
  • FRUA Lives!
    • Lands of Adventure
Re: Frustrating Editor Issues...
« Reply #23 on: October 10, 2015, 11:05:37 AM »
Off-Topic, but interesting:

I doubt that it would ever be a problem that someone would use a half a million events on a single map.  I just worked out some math.  If a person could churn out 20 events an hour continuously, only stopping at the end of the day to take 8 hours of sleep and working on events the rest of the total time, it would take 5.7 years to reach 500,000 events.  I can't imagine how long it would take to actually play a game that long.

For reference: A game like Skyrim only has 244 known quests.  If we associated 100 events to each of those (and I doubt they have that many event steps), that will still only be 24,400 events, or 20 times less than the number of events you'd have to finish to reach 500,000.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9368
Re: Frustrating Editor Issues...
« Reply #24 on: October 10, 2015, 02:18:38 PM »
Here's info from the Dungeon Craft FAQ.    I was wrong.  You can have over 16 million events per level x 255 possible levels.  Total number of events per game is actually in the billions:  4,278,189,825.  So, I wouldn't sweat the loss of a couple here and there. Here's more info from the FAQ.

How many levels can I have in my design? How many events?
Max levels 255, each level up to 100x100
Max events 16,777,215 per level
Max zones 16 per level
Max step events 8 per level

It's now 16 step events per level.

Quote from: ProphetSword
How many walls and backdrops can I use per level?
Max wall slots 96 per level
Max backdrop slots 96 per level

The level is now 192 per level for each.

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2818
  • FRUA Lives!
    • Lands of Adventure
Re: Frustrating Editor Issues...
« Reply #25 on: October 10, 2015, 04:08:05 PM »
Here's info from the Dungeon Craft FAQ.    I was wrong.  You can have over 16 million events per level x 255 possible levels.  Total number of events per game is actually in the billions:  4,278,189,825.  So, I wouldn't sweat the loss of a couple here and there. Here's more info from the FAQ.

How many levels can I have in my design? How many events?
Max levels 255, each level up to 100x100
Max events 16,777,215 per level
Max zones 16 per level
Max step events 8 per level

It's now 16 step events per level.

Quote from: ProphetSword
How many walls and backdrops can I use per level?
Max wall slots 96 per level
Max backdrop slots 96 per level

The level is now 192 per level for each.

192 walls and backdrops?

You should probably update that FAQ.  It's in a sticky.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9368
Re: Frustrating Editor Issues...
« Reply #26 on: October 10, 2015, 05:15:48 PM »
Done. :)