mam91 / neat-genetic-mario

Update of Seth Bling's MarI/O
182 stars 62 forks source link

output error. Followed read me #12

Open threalboss opened 5 years ago

threalboss commented 5 years ago

Here is may error. This happened in the output sections of the lua console. I was confused about step 4. So maybe I did something wrong. I added a zip of my mario folder neat-mario.zip

NLua.Exceptions.LuaScriptException: error loading module 'config' from file '.\config.lua': .\config.lua:7: '' expected near '\'

also got this

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at BizHawk.Client.Common.LuaFile.Stop() at BizHawk.Client.EmuHawk.LuaConsole.RunLuaScripts() at BizHawk.Client.EmuHawk.LuaConsole.LoadLuaFile(String path) at BizHawk.Client.EmuHawk.LuaConsole.OpenScriptMenuItem_Click(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.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.7.3362.0 built by: NET472REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

EmuHawk Assembly Version: 2.3.1.1 Win32 Version: 2.3.1.1 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/EmuHawk.exe

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System Assembly Version: 4.0.0.0 Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

BizHawk.Bizware.BizwareGL Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Bizware.BizwareGL.dll

OpenTK Assembly Version: 3.0.1.0 Win32 Version: 3.0.1 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/OpenTK.dll

BizHawk.Common Assembly Version: 2.3.1.1 Win32 Version: 2.3.1.1 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Common.dll

BizHawk.Client.Common Assembly Version: 2.3.1.1 Win32 Version: 2.3.1.1 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Client.Common.dll

BizHawk.Emulation.Common Assembly Version: 2.3.1.1 Win32 Version: 2.3.1.1 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Emulation.Common.dll

BizHawk.Bizware.BizwareGL.OpenTK Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Bizware.BizwareGL.OpenTK.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

BizHawk.Bizware.BizwareGL.SlimDX Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Bizware.BizwareGL.SlimDX.dll

BizHawk.Bizware.BizwareGL.GdiPlus Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Bizware.BizwareGL.GdiPlus.dll

BizHawk.Emulation.Cores Assembly Version: 2.3.1.1 Win32 Version: 2.3.1.1 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/Bizhawk.Emulation.Cores.dll

Newtonsoft.Json Assembly Version: 6.0.0.0 Win32 Version: 6.0.3.17312 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/Newtonsoft.Json.dll

System.Numerics Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.ComponentModel.DataAnnotations Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Runtime.Serialization Assembly Version: 4.0.0.0 Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

SlimDX Assembly Version: 4.0.13.43 Win32 Version: CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/SlimDX.dll

Microsoft.VisualBasic Assembly Version: 10.0.0.0 Win32 Version: 14.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

Anonymously Hosted DynamicMethods Assembly Assembly Version: 0.0.0.0 Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll

BizHawk.Client.ApiHawk Assembly Version: 1.1.0.0 Win32 Version: 1.1.0.0 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Client.ApiHawk.dll

BizHawk.Emulation.DiscSystem Assembly Version: 2.3.1.1 Win32 Version: 2.3.1.1 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Emulation.DiscSystem.dll

BizExvokeProxyAssembly Assembly Version: 0.0.0.0 Win32 Version: 2.3.1.1 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Common.dll

PeNet Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/PeNet.dll

BizInvokeProxyAssembly Assembly Version: 0.0.0.0 Win32 Version: 2.3.1.1 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/BizHawk.Common.dll

Microsoft.CSharp Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll

PresentationFramework Assembly Version: 4.0.0.0 Win32 Version: 4.7.3362.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll

WindowsBase Assembly Version: 4.0.0.0 Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll

PresentationCore Assembly Version: 4.0.0.0 Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll

System.Xaml Assembly Version: 4.0.0.0 Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll

System.Dynamic Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll

ICSharpCode.SharpZipLib Assembly Version: 1.0.6324.40785 Win32 Version: 1.0 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/ICSharpCode.SharpZipLib.dll

System.Net.Http Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

NLua Assembly Version: 1.3.2.0 Win32 Version: 1.3.2 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/nlua/NLua.dll

KopiLua Assembly Version: 1.3.6417.42962 Win32 Version: 1.3.2.0 CodeBase: file:///C:/Users/Bob/Documents/BizHawk-2.3.1-1/dll/nlua/KopiLua.dll

** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

ghost commented 5 years ago

Hey, If this is still an issue please follow the steps below, I just rewrote the install instructions a little bit to make it easier for me so I don't know if it will fix your issue but give it a shot!

  1. download the prerequisites and BizHawk(2.2.2) and theSuper Mario world rom
  2. download the neat-mario zip and extract it, open the new Neat-Genetic-Mario-master folder, click on the Neat-Genetic-Mario-master folder again, then copy whole "neat-mario" folder
  3. open up the BizHawk folder, click on the LUA folder and then the SNES folder and paste what you copied into that folder
  4. Click on the new folder you pasted(neat-mario)
  5. you will see a file named "config" right click and open it with notepad
  6. there are two line in this file you have to change --_M.BizhawkDir = "C:/Users/mmill/Downloads/BizHawk-2.2/" _M.BizhawkDir = "X:/B2_BizHawkLab/BizHawk-2.2.2/"

I had an issue where I was copying the file location, pasting it here but it would not run because I forgot windows uses backslash while the code calls for forward slash since its Lua. so whatever your file path is remember to use forward slashes.

Once you edited the code please save the file and close it

  1. Open BizHawk (EmuHawk.exe) 8.Click File > Open ROM (Ctrl + O) and find Super Mario World (USA).sfc file. 9.Once loaded, click Tools > Lua Console 10.In the new window, click Script > Open Script (Ctrl + O) and select mario-neat.lua in your \BizHawk-2.2\Lua\SNES\neat-mario folder. The NEAT control window will display and you can then click Start to begin training.