Gargouille

Member
Gargouille submitted a new resource:

[ULTIMA LIVE] DeepMining - Diging tunnels to find random ore spots

This is a new mix between my two previous releases, Tunneling & Dynamic Mining.

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

INSTALL and USE:

- Praxiis 's ULTIMA LIVE is required.

- Add the three blackmap files into your server's client files directory.
(you can place several...

Read more about this resource...
 
I really like this. One idea I had was this could be an alternative to the boring mining that players do when they whack at the same rocks over and over. They have to dig around and down to find pockets/veins of ores and gems. Running the risk of hitting a pocket of dangerous monsters. Perhaps even a cave in trapping the player in their man made tunnel. Add in the ability to lay down minecart tracks, bringing in timbers in to reenforce the tunnel. And as Talow mentioned players could even uncover lost ruins or unearth caverns and other deep natural made tunnels.
With Ultima Lives ability to use multiple maps I would send my players to a new extra large map starting them at the highest z level and allow them to dig down to the lowest z level perhaps with lava at the bottom.
This is a really cool idea please continue on its development you have my praise! I will be testing this and playing with it this coming week for certain.
 
Help me! I use DEEPGO...

Code:
System.Reflection.TargetInvocationException: target of an invocation of the exception. ---> System.Collections.Generic.KeyNotFoundException: given keyword is not in the dictionary.
    In System.Collections.Generic.Dictionary`2.get_Item (TKey key)
    (Mobile from) position in e Server.DeepMine.DeepGoGump.CallBack_Levels: \ immortal_Runuo \ UltimaOnlineServer \ Scripts \ UltimaLive_0_97 \ DeepMining \ DeepMining \ Gumps \ DeepGoGump.cs: line 174
    --- End of inner exception stack trace ---
    In System.RuntimeMethodHandle.InvokeMethod (Object target, Object [] arguments, Signature sig, Boolean constructor)
    In System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal (Object obj, Object [] parameters, Object [] arguments)
    In System.Reflection.RuntimeMethodInfo.Invoke (Object obj, BindingFlags invokeAttr, Binder binder, Object [] parameters, CultureInfo culture)
    In System.RuntimeType.InvokeMember (String name, BindingFlags bindingFlags, Binder binder, Object target, Object [] providedArgs, ParameterModifier [] modifiers, CultureInfo culture, String [] namedParams)
    In System.Type.InvokeMember (String name, BindingFlags invokeAttr, Binder binder, Object target, Object [] args)
    In DynamicGumps.DynamicGump.OnResponse (NetState sender, RelayInfo info) position e: \ immortal_Runuo \ UltimaOnlineServer \ Scripts \ UltimaLive_0_97 \ DeepMining \ DynamicGumps \ DynamicGump.cs: line 382
    In Server.Network.PacketHandlers.DisplayGumpResponse (NetState state, PacketReader pvSrc) position e: \ immortal_Runuo \ UltimaOnlineServer \ tyoHouse_Server \ Server \ Network \ PacketHandlers.cs: line number 1339
    In Server.Network.MessagePump.HandleReceive (NetState ns) position e: \ immortal_Runuo \ UltimaOnlineServer \ tyoHouse_Server \ Server \ Network \ MessagePump.cs: line 127
    In Server.Network.MessagePump.Slice () position e: \ immortal_Runuo \ UltimaOnlineServer \ tyoHouse_Server \ Server \ Network \ MessagePump.cs: line 112
    In Server.Core.Main (String [] args) position e: \ immortal_Runuo \ UltimaOnlineServer \ tyoHouse_Server \ Server \ Main.cs: line number 524
 
Make sure you define your black map in UltimaLive, MapRegistry & MineMapRegistry...

And then change the DeepGoGump.CallBack_Levels method by that one, just to see where stands the index error :

Code:
public void CallBack_Levels(Mobile from)
		{
			if(DeepMineInfos.MapDefs.ContainsKey(CurrentMap))
			{
				if(DeepMineInfos.MapDefs[CurrentMap].MineDefs.ContainsKey(CurrentMine-1))
				{
					if(DeepMineInfos.MapDefs[CurrentMap].MineDefs[CurrentMine-1].LevelDefs.ContainsKey(Levels-1))
					{
						DeepMineRegion region = DeepMineInfos.MapDefs[CurrentMap].MineDefs[CurrentMine-1].LevelDefs[Levels-1].Region;
						
						region.Bring(from);
					}
					else
						from.SendMessage("Level index error");
				}
				else
					from.SendMessage("Mine index error");
			}
			else
				from.SendMessage("map index error");
			
			from.SendGump( new DynamicGump(from, this));
		}
 
i have problems with this. When i try using map 34, or anyone up of 0, the server crash. when i do [deepgo for anyelse mine.

But if i do in map 0 i can go to the mines, but i cant mine :S

I follow all the steps.

my crash log:

Code:
Server Crash Report
===================

RunUO Version 0.5, Build 5752.24497
Operating System: Unix 2.6.32.42
.NET Framework: 4.0.30319.17020
Time: 03/29/2016 11:22:50
Mobiles: 39230
Items: 127032
Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.Int32,Server.DeepMine.DeepMineInfo].get_Item (Int32 key) [0x00000] in <filename unknown>:0
  at Server.DeepMine.DeepGoGump.CallBack_Levels (Server.Mobile from) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.MonoType.InvokeMember (System.String name, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParameters) [0x00000] in <filename unknown>:0
  at System.Type.InvokeMember (System.String name, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args) [0x00000] in <filename unknown>:0
  at DynamicGumps.DynamicGump.OnResponse (Server.Network.NetState sender, Server.Gumps.RelayInfo info) [0x00000] in <filename unknown>:0
  at Server.Network.PacketHandlers.DisplayGumpResponse (Server.Network.NetState state, Server.Network.PacketReader pvSrc) [0x00000] in <filename unknown>:0
  at Server.Network.MessagePump.HandleReceive (Server.Network.NetState ns) [0x00000] in <filename unknown>:0
  at Server.Network.MessagePump.Slice () [0x00000] in <filename unknown>:0
  at Server.Core.Main (System.String[] args) [0x00000] in <filename unknown>:0

Clients:
- Count: 1
 
Hi,

its a long time since I put fingers in that one, please help me to get closer to the bug, could you run the test I propose to ft2085267 one post above ?

You got to insert it in place of existing code in DeepGoGump.cs/CallBack_Levels method, line 172
 
Having same problem. made changes listed in your post #13 above and getting the following (pls ignore the warnings). Am I missing a script?
Code:
Using username "uo".

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Aug 25 08:01:14 2016 from 50.110.65.166
uo@brains:~$ cd server
uo@brains:~/server$ make
`pwd`/ServUO.sh
--------------------------------------------------------------------------------
ServUO - [http://www.servuo.com] Version 0.5, Build 6081.8799
Publish
Core: Optimizing for 16 64-bit processors
Core: Unix environment detected
RandomImpl: SimpleRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Failed with: 1 errors, 8 warnings
Warnings:
+ Services/Stargate System v3/Addons/SGLocationAddon1East.cs:
    CS0105: Line 2: The using directive for `System' appeared previously in this namespace
+ Services/Stargate System v3/Addons/SGLocationAddon1South.cs:
    CS0105: Line 2: The using directive for `System' appeared previously in this namespace
+ Services/Stargate System v3/Addons/SGLocationAddon2East.cs:
    CS0105: Line 2: The using directive for `System' appeared previously in this namespace
+ Services/Stargate System v3/Addons/SGLocationAddon2South.cs:
    CS0105: Line 2: The using directive for `System' appeared previously in this namespace
+ Services/Stargate System v3/Addons/SGLocationAddon3East.cs:
    CS0105: Line 2: The using directive for `System' appeared previously in this namespace
+ Services/Stargate System v3/Addons/SGLocationAddon3South.cs:
    CS0105: Line 2: The using directive for `System' appeared previously in this namespace
+ Misc/Email.cs:
    CS0618: Line 28: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
    CS0618: Line 40: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
+ VitaNex/Core/Network/EmailOptions.cs:
    CS0618: Line 146: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
    CS0618: Line 164: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
    CS0618: Line 148: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
    CS0618: Line 166: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
Errors:
+ Services/GraphicBasedHarvestSystems/DeepMiningSystem/DeepMining/Core/Mining/DeepMineHarvestInfo.cs:
    CS0246: Line 23: The type or namespace name `MineraiBase' could not be found. Are you missing an assembly reference?
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

CS0246: Line 23: The type or namespace name `MineraiBase' could not be found. Are you missing an assembly reference?


edit- I commented out the line and uncommented the one above and it compiles and runs. Still crashes when using the map...

Code:
Using username "uo".

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Aug 25 08:08:44 2016 from 50.110.65.166
uo@brains:~$ cd servedr
-bash: cd: servedr: No such file or directory
uo@brains:~$ cd server
uo@brains:~/server$ make
`pwd`/ServUO.sh
--------------------------------------------------------------------------------
ServUO - [http://www.servuo.com] Version 0.5, Build 6081.8799
Publish
Core: Optimizing for 16 64-bit processors
Core: Unix environment detected
RandomImpl: SimpleRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Finished with: 0 errors, 3 warnings
Warnings:
 + Misc/Email.cs:
    CS0618: Line 28: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
    CS0618: Line 40: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
 + VitaNex/Core/Network/EmailOptions.cs:
    CS0618: Line 146: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
    CS0618: Line 164: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
    CS0618: Line 148: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
    CS0618: Line 166: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
 + Services/High Seas/Multis/ShipTracking.cs:
    CS0649: Line 112: Field `Server.Multis.BoatTrackingArrow.m_Boat' is never assigned to, and will always have its default value `null'
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...
Stacktrace:


Native stacktrace:

        mono() [0x4a77ca]
        mono() [0x4fc0ae]
        mono() [0x4266a7]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0) [0x7f62fef5d8d0]
        mono() [0x526af0]
        mono() [0x51ebab]
        mono() [0x51f725]
        mono() [0x542785]
        mono() [0x542c31]
        [0x404f4a13]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted
Makefile:13: recipe for target 'run' failed
make: *** [run] Error 134
uo@brains:~/server$ make
`pwd`/ServUO.sh
--------------------------------------------------------------------------------
ServUO - [http://www.servuo.com] Version 0.5, Build 6081.8799
Publish
Core: Optimizing for 16 64-bit processors
Core: Unix environment detected
RandomImpl: SimpleRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...
Finished (4748 items, 1152 mobiles, 5 customs) (0.87 seconds)

                                                                                                                                                                                        **** VITA-NEX: CORE 3.0.0.0 ****                                                                                                           Root Directory:     /home/uo/server/Scripts/VitaNex/Core                        Working Directory:  /home/uo/server/VitaNexCore/                                Build Directory:    /home/uo/server/VitaNexCore/Build/                          Data Directory:     /home/uo/server/VitaNexCore/Data/                           Cache Directory:    /home/uo/server/VitaNexCore/Cache/                          Services Directory: /home/uo/server/VitaNexCore/Services/                       Modules Directory:  /home/uo/server/VitaNexCore/Modules/                        Backup Directory:   /home/uo/server/VitaNexCore/Backups/                        Saves Directory:    /home/uo/server/VitaNexCore/Saves/                          Logs Directory:     /home/uo/server/VitaNexCore/Logs/                                                                                                                                    http://core.vita-nex.com                                                                                                            
[VitaNexCore]:
[VitaNexCore]: Compile action started...
[VitaNexCore]: Compiling Services...
[VitaNexCore]: Compiling Modules...
[VitaNexCore]: Compile action completed in 0.00 seconds
[VitaNexCore]:
[VitaNexCore]: Configure action started...
[VitaNexCore]: Configuring Services...
[VitaNexCore]: Configuring Modules...
[VitaNexCore]: Configure action completed in 0.95 seconds
Regions: Loading...done
World: Loading...
Loading Ultima Live map changes
...done (114096 items, 3809 mobiles, 2 customs) (2.88 seconds)
Stargate System : Checking...
Stargate System : Startup Running...
Stargate System : Removing Previous Components...
Stargate System : Delete Command Issued
Stargate System : Deletion done, Reloading From Existing File...
Stargate System : Building 92 Stargates...
Stargate System : Loading Compleated Successfully... (92 Entries, 0.4 seconds)
Parsing map MapNoire for mines...
Done...
15:21:08 Joeku's Staff Runebook: Loading...
15:21:08   Account: cmileto... done.
15:21:08 VitaNexCore]:
15:21:08 VitaNexCore]: Load action started...
15:21:08 VitaNexCore]: Loading Services...
15:21:08 VitaNexCore]: Loading Modules...
15:21:08 VitaNexCore]: Load action completed in 0.09 seconds
15:21:08 VitaNexCore]:
15:21:08 VitaNexCore]: Invoke action started...
15:21:08 VitaNexCore]: Invoking Services...
15:21:08 VitaNexCore]: Invoking Modules...
15:21:09 VitaNexCore]: Invoke action completed in 0.14 seconds
15:21:09 Listening: 127.0.0.1:2593
15:21:09 Listening: 104.192.169.250:2593
15:21:09 ----------------------------------------------------------------------
15:21:09 Web API]: Access denied
15:21:09 Web API]: Operation is not valid due to the current state of the object.
15:22:02 Client: 50.110.65.166: Connected. [1 Online]
15:22:02 Login: 50.110.65.166: Invalid password for 'cmileto'
15:22:02 Client: 50.110.65.166: Disconnected. [0 Online]
15:22:24 Client: 50.110.65.166: Connected. [1 Online]
15:22:24 Login: 50.110.65.166: Valid credentials for 'cmileto'
15:22:26 Client: 50.110.65.166: Connected. [2 Online]
15:22:26 Client: 50.110.65.166: Disconnected. [1 Online] [cmileto]
15:22:26 Login: 50.110.65.166: Account 'cmileto' at character list
15:22:28 Received UltimaLive version packet: 0.97 from Clayton
15:23:25 Error:
15:23:25 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (System.Collections.Generic.TKey key) <0x407e9b00 + 0x0005b> in <filename unknown>:0
  at Server.DeepMine.DeepGoGump.CallBack_SetMine (Server.Mobile from) <0x407e99b0 + 0x00067> in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7f2574f592f0 + 0x000a1> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7f2574f592f0 + 0x000ef> in <filename unknown>:0
  at System.RuntimeType.InvokeMember (System.String name, BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) <0x7f2574d9a400 + 0x0106a> in <filename unknown>:0
  at System.Type.InvokeMember (System.String name, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args) <0x7f2574e72a50 + 0x0005e> in <filename unknown>:0
  at DynamicGumps.DynamicGump.OnResponse (Server.Network.NetState sender, Server.Gumps.RelayInfo info) <0x407e9470 + 0x00263> in <filename unknown>:0
  at Server.Network.PacketHandlers.DisplayGumpResponse (Server.Network.NetState state, Server.Network.PacketReader pvSrc) <0x407e8970 + 0x0064b> in <filename unknown>:0
  at Server.Network.MessagePump.HandleReceive (Server.Network.NetState ns) <0x40774510 + 0x00451> in <filename unknown>:0
  at Server.Network.MessagePump.Slice () <0x40719ed0 + 0x001a7> in <filename unknown>:0
  at Server.Core.Main (System.String[] args) <0x4032bd90 + 0x013bb> in <filename unknown>:0
15:23:25 Crash: Generating report...done
15:23:25 Crash: Backing up...done
15:23:25 Crash: Restarting...done
15:23:25 VitaNexCore]:
15:23:25 VitaNexCore]: Dispose action started...
15:23:25 VitaNexCore]: Disposing Services...
15:23:25 VitaNexCore]: Disposing Modules...
15:23:25 VitaNexCore]: Dispose action completed in 0.00 seconds
15:23:25 Exiting...done
Killed
Makefile:13: recipe for target 'run' failed
make: *** [run] Error 137
uo@brains:~/server$
ServUO - [http://www.servuo.com] Version 0.5, Build 6081.8799
Publish
Core: Optimizing for 16 64-bit processors
Core: Unix environment detected
RandomImpl: SimpleRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...
Finished (4748 items, 1152 mobiles, 5 customs) (0.86 seconds)

                Error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: count
  at System.String.CreateString (Char c, Int32 count) <0x7f657fe08570 + 0x000af> in <filename unknown>:0
  at (wrapper managed-to-managed) System.String:.ctor (char,int)
  at VitaNex.VitaNexCore.DrawLine (System.String text, Int32 align) <0x412a14c0 + 0x00512> in <filename unknown>:0
  at VitaNex.VitaNexCore.DisplayRetroBoot () <0x412a0dc0 + 0x001a3> in <filename unknown>:0
  at VitaNex.VitaNexCore.Configure () <0x412a0420 + 0x0004f> in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7f657ff592f0 + 0x000a1> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7f657ff592f0 + 0x000ef> in <filename unknown>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x7f657fd85550 + 0x0002a> in <filename unknown>:0
  at Server.ScriptCompiler.Invoke (System.String method) <0x411f4eb0 + 0x0019d> in <filename unknown>:0
  at Server.Core.Main (System.String[] args) <0x411e3d90 + 0x011c3> in <filename unknown>:0
This exception is fatal, press return to exit
exception inside UnhandledException handler: Invalid handle to path "/home/uo/server/[Unknown]"

[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: count
  at System.String.CreateString (Char c, Int32 count) <0x7f657fe08570 + 0x000af> in <filename unknown>:0
  at (wrapper managed-to-managed) System.String:.ctor (char,int)
  at VitaNex.VitaNexCore.DrawLine (System.String text, Int32 align) <0x412a14c0 + 0x00512> in <filename unknown>:0
  at VitaNex.VitaNexCore.DisplayRetroBoot () <0x412a0dc0 + 0x001a3> in <filename unknown>:0
  at VitaNex.VitaNexCore.Configure () <0x412a0420 + 0x0004f> in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7f657ff592f0 + 0x000a1> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7f657ff592f0 + 0x000ef> in <filename unknown>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x7f657fd85550 + 0x0002a> in <filename unknown>:0
  at Server.ScriptCompiler.Invoke (System.String method) <0x411f4eb0 + 0x0019d> in <filename unknown>:0
  at Server.Core.Main (System.String[] args) <0x411e3d90 + 0x011c3> in <filename unknown>:0
 
Last edited:
did anyone stressed it enough? do the mines and holes appear always in the same spot? what happens when players dig the whole blackmap? ;P

it has some issues with the gumps and the number of mines/levels
Post automatically merged:

I added then i get index error and if i click to go to that mine server crash
C#:
public void CallBack_Levels(Mobile from)
        {
            if(DeepMineInfos.MapDefs.ContainsKey(CurrentMap))
            {
                if(DeepMineInfos.MapDefs[CurrentMap].MineDefs.ContainsKey(CurrentMine-1))
                {
                    if(DeepMineInfos.MapDefs[CurrentMap].MineDefs[CurrentMine-1].LevelDefs.ContainsKey(Levels-1))
                    {
                        DeepMineRegion region = DeepMineInfos.MapDefs[CurrentMap].MineDefs[CurrentMine-1].LevelDefs[Levels-1].Region;
                        
                        region.Bring(from);
                    }
                    else
                        from.SendMessage("Level index error");
                }
                else
                    from.SendMessage("Mine index error");
            }
            else
                from.SendMessage("map index error");
            
            from.SendGump( new DynamicGump(from, this));
        }
Post automatically merged:

C#:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Server.DeepMine.DeepGoGump.CallBack_Levels_Up(Mobile from) in c:\Users\sah\DeepMiningSystem\DeepMining\Gumps\DeepGoGump.cs:line 160
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
   at DynamicGumps.DynamicGump.OnResponse(NetState sender, RelayInfo info) in c:\Users\sah\ULTIMALIVE\DeepMiningSystem\DynamicGumps\DynamicGump.cs:line 382
   at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)
 
Last edited:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back