Okay, last time. I promise. Hopefully. Maybe. Possibly.
Well, I just installed Windows 7 (horray!) and now there are error messages popping up half of the time. A couple of things that I don't see why Batari is complaining about.
if player1x !== player0x && player1y> 5 then player1y = player1y - 1 <-- This line is fine.
if player1x > player0x && player1y = 5 then player1x = player1x - 1 <-- VbB complains here.
if player1x < player0x && player1y = 5 then player1x = player1x + 1
Another problem which asks me to ignore or quit the program immediately.
Quote
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at VisualbB.mainIDE.colorThisLine(RichTextBox rtc1, Int32 myLineStart, Int32 myLineEnd, Int32 LocLine, Boolean isColored)
at VisualbB.mainIDE.Compile(String filePath, String filename, String sourceDirectory)
at VisualbB.mainIDE.CompileToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.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.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
VisualbB
Assembly Version: 1.0.0.554
Win32 Version: 1.0.0.554
CodeBase: file:///C:/Batari/VisualbB.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.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:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
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.
And here a message from DASM, I think.
Quote
2600 Basic compilation failed!
LINE -->Microsoft Windows [Version 6.1.7600]
Copyright © 2009 Microsoft Corporation. All rights reserved.
C:\Batari\projects\crazycrane>preprocess <default.bas >34cef53b-d114-4785-9ca4-2b0cc7611ac3.tmp
C:\Batari\projects\crazycrane>2600basic -i <34cef53b-d114-4785-9ca4-2b0cc7611ac3.tmp %bB%
game
.L00 ; set tv pal : set romsize 2k
.menu
; menu
.playfield:
; playfield:
.XXX.XXX.XXX.XXX.X.X.......X.....
; XXX.XXX.XXX.XXX.X.X.......X.....
.X...X.X.X.X...X.X.X.......X.....
; X...X.X.X.X...X.X.X.......X.....
.X...XX..XXX..X...X........X.....
; X...XX..XXX..X...X........X.....
.X...X.X.X.X.X....X........X.....
; X...X.X.X.X.X....X........X.....
.XXX.X.X.X.X.XXX..X........X.....
; XXX.X.X.X.X.XXX..X........X.....
..........................XXX....
; .........................XXX....
.XXX.XXX.XXX.XX..XXX.....XX.XX...
; XXX.XXX.XXX.XX..XXX.....XX.XX...
.X...X.X.X.X.X.X.X......XX...XX..
; X...X.X.X.X.X.X.X......XX...XX..
.X...XX..XXX.X.X.XXX...XX.....XX.
; X...XX..XXX.X.X.XXX...XX.....XX.
.X...X.X.X.X.X.X.X......XX...XX..
; X...X.X.X.X.X.X.X......XX...XX..
.XXX.X.X.X.X.X.X.XXX.....XX.XX...
; XXX.X.X.X.X.X.X.XXX.....XX.XX...
.L01 ; COLUPF = 14
LDA #14
STA COLUPF
.L02 ; COLUBK = 0
LDA #0
STA COLUBK
.L03 ; if joy0fire then goto gamestart
bit INPT4
BMI .skipL03
.condpart0
jmp .gamestart
.skipL03
.L04 ; drawscreen
jsr drawscreen
.L05 ; goto menu
jmp .menu
.gamestart
; gamestart
.L06 ; player0x = 80
LDA #80
STA player0x
.L07 ; player0y = 40
LDA #40
STA player0y
.L08 ; player0color = 32
LDA #32
STA player0color
.L09 ; player1x = 5
LDA #5
STA player1x
.L010 ; player1y = 5
LDA #5
STA player1y
.L011 ; player1color = 12
LDA #12
STA player1color
.game
; game
.L012 ; player1:
LDA #<playerL012_1
STA player1pointerlo
LDA #>playerL012_1
STA player1pointerhi
LDA #7
STA player1height
.L013 ; if player1x = = player0x then player1y = player1y + 2
LDA player1x
CMP =
BNE .skipL013
.condpart1
C:\Batari\projects\crazycrane>@exit
Does anyone have any idea what's going wrong? I really want to use this program and it seems just recently it's dying a horrible death on my PC.
EDIT: Another error message that stops me from using the Music Editor as soon as I try to open it:
Quote
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at VisualbB.SoundLib.vbBSoundLib..ctor()
at VisualbB.DialogMusic..ctor()
at VisualbB.mainIDE.MusicEditorToolStripMenuItem_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.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
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.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
VisualbB
Assembly Version: 1.0.0.554
Win32 Version: 1.0.0.554
CodeBase: file:///C:/Batari/VisualbB.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
VisualbB.SoundLib
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.1
CodeBase: file:///C:/Batari/VisualbB.SoundLib.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:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
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.
Edited by SuperNESFreak, Sat Feb 26, 2011 9:52 AM.