ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Error when deleting exit from location - HELP PLEASE!

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Error when deleting exit from location - HELP PLEASE!

Postby Lazzah » Mon Jul 27, 2020 8:32 am

Hi all, can somebody please tell me what is going wrong?

In my current WIP, in some locations when I try to change a previously defined exit to {No Location Selected] I get this error popup:

Error Popup.JPG
Error Popup.JPG (28.7 KiB) Viewed 281 times


The details are as follows:

************** Exception Text **************
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at ADRIFT.clsMap.UpdateMap(clsLocation loc)
at ADRIFT.frmLocation.ApplyLocation()
at ADRIFT.frmLocation.btnOK_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at Infragistics.Win.Misc.UltraButtonBase.OnClick(EventArgs e)
at Infragistics.Win.Misc.UltraButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.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.8.4180.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
dev500

This driving me nuts and stops me from altering my game.

Many thanks in anticipation.
The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust, The Lost Children, Run, Bronwynn, Run, The Call of the Shaman, The Lost Labyrinth of Lazaitch, Magnetic Moon, Starship Quest, Revenge of the Space Pirates
User avatar
Lazzah
Moderator
 
Posts: 2393
Joined: Thu Mar 31, 2011 4:54 am
Location: Clacton-on-Sea, Essex
Points: 65

Re: Error when deleting exit from location - HELP PLEASE!

Postby Denk » Mon Jul 27, 2020 2:28 pm

I am not sure if this will work so please make a backup of your game before trying this.

As far as I remember, I have tried something similar once, and I think the following might work:

If you go to Settings, there is an area on the General pane called "Prompts":
Prompts.png
Prompts.png (23.97 KiB) Viewed 272 times


I don't know which situation the problems occurs in, but as far as I remember, it helped to set all three prompts to Never, just temporarily, before changing some location exits.
Well, "Replace Character Names" probably doesn't matter but the two first prompts is related to changing exits.

Once you are done, you can hopefully change them back without problems.
Hope this helps.
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
User avatar
Denk
 
Posts: 541
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 251

Re: Error when deleting exit from location - HELP PLEASE!

Postby Lazzah » Mon Jul 27, 2020 3:31 pm

Thanks for the reply, Denk, my Prompts settings are already set to those options.

Strangely, even though those popups appeared the [No Location Selected] options were selected, so maybe there is a bug in ADRIFT?
The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust, The Lost Children, Run, Bronwynn, Run, The Call of the Shaman, The Lost Labyrinth of Lazaitch, Magnetic Moon, Starship Quest, Revenge of the Space Pirates
User avatar
Lazzah
Moderator
 
Posts: 2393
Joined: Thu Mar 31, 2011 4:54 am
Location: Clacton-on-Sea, Essex
Points: 65

Re: Error when deleting exit from location - HELP PLEASE!

Postby Campbell » Fri Sep 11, 2020 8:16 am

Is it reproducible? Are you able to give me an example to look at?
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4699
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: Error when deleting exit from location - HELP PLEASE!

Postby P/o Prune » Sat Sep 12, 2020 7:13 am

It looks like the same issue I had some time ago.
It's been a while, so this is typed from memory.
I think I had a restriction along with the direction. And what I did, was deleting the restriction first, then click apply (or ok)
Then i deleted the direction and it worked.
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 138Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4638
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 93

Re: Error when deleting exit from location - HELP PLEASE!

Postby Campbell » Sat Sep 12, 2020 11:04 am

I can't get it to error.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4699
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: Error when deleting exit from location - HELP PLEASE!

Postby Lazzah » Sat Sep 12, 2020 11:48 am

Campbell wrote:I can't get it to error.

Next time it happens in one of my games I will send the .taf file to you and explain how to trigger the error.
The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust, The Lost Children, Run, Bronwynn, Run, The Call of the Shaman, The Lost Labyrinth of Lazaitch, Magnetic Moon, Starship Quest, Revenge of the Space Pirates
User avatar
Lazzah
Moderator
 
Posts: 2393
Joined: Thu Mar 31, 2011 4:54 am
Location: Clacton-on-Sea, Essex
Points: 65

Re: Error when deleting exit from location - HELP PLEASE!

Postby Campbell » Sun Sep 13, 2020 7:57 am

Thanks. :)
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4699
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 6 guests