Jump to content

ResidentevilLeonfan

Members
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by ResidentevilLeonfan


  1. You

    Do you see anything wrong with this:

     

    drawscreen_loop
    
    drawscreen
    
    goto draw_loop
    

     

    Take a second to look at it. I'll wait . . .

     

     

     

     

     

     

     

    Do you see the problem? There are actually two problems. Your goto isn't pointing to a label that exists. The second problem is that you don't want to start a label or variable name with a keyword. A great way to avoid that is to use an underscore. I start labels with two underscores and variable aliases with one underscore. Example:

     

    __Main_Loop
    
    drawscreen
    
    goto __Main_Loop
    

     

     

     

    Check out this thread to learn more about posting code:

     

    http://www.atariage....les-and-images/

    You sir...are a lifesaver! It works perfectly! I don't know how to thank you!

  2. Everything works fine and compiling works like a charm. However, when i run my game and Stella opens up, i get a blank screen as opposed to viewing my sprites. Did i do anything wrong?

     

    rem Generated 1/17/2013 9:42:28 PM by Visual bB Version 1.0.0.548

    rem **********************************

    rem *<filename> *

    rem *<description> *

    rem *<author> *

    rem *<contact info> *

    rem *<license> *

    rem **********************************

     

     

    playfield:

    XX..............................

    XX..............................

    X..XXXXXXXXX....................

    XXXXXXXXXX.XXXXXXXX.............

    XXX.X.XX.XXXXXXXXXX.............

    XX..............................

    XXXXXXXXXXXXXXXXXXXXXXXXX.......

    XXXXXXXXXXXXXXXXXXXXXXXXX.......

    XXXXXXXXXXXXXXXXXXXXXXXXX.......

    XXXXXXXXXXXXXXXXXXXXXXXXX.......

    XXXXXXXXXXXXXXXXXXXXXXXXX.......

    end

    COLUBK=$38

    COLUPF=212

    hero

    player0x=50:player0y=50

    player1x=20:player1y=20

    player0:

    %00000000

    %00000000

    %00000000

    %00000000

    %00000000

    %00000000

    %00000000

    %00000000

    end

    villian

    player0:

    %00000000

    %00000000

    %00000000

    %00000000

    %00000000

    %00000000

    %00000000

    %00000000

    end

     

    drawscreen_loop

    drawscreen

    goto draw_loop


  3. Hello everyone!. Whenever i try to compile in BatariBasic, It always gives me an error message. "Unhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue." Then when i click the details tab, this is what i receive:

     

    "See the end of this message for details on invoking

    just-in-time (JIT) debugging instead of this dialog box.

     

    ************** Exception Text **************

    System.ArgumentNullException: Argument cannot be Nothing.

    Parameter name: file

    at Microsoft.VisualBasic.FileIO.FileSystem.CheckFilePathTrailingSeparator(String path, String paramName)

    at Microsoft.VisualBasic.FileIO.FileSystem.GetFileInfo(String file)

    at Microsoft.VisualBasic.MyServices.FileSystemProxy.GetFileInfo(String file)

    at VisualbB.mainIDE.preCompile(String BASfile)

    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.4216 (VistaSP2GDR.050727-4200)

    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

    ----------------------------------------

    VisualbB

    Assembly Version: 1.0.0.548

    Win32 Version: 1.0.0.549

    CodeBase: file:///C:/Atari2600/VisualbB.exe

    ----------------------------------------

    Microsoft.VisualBasic

    Assembly Version: 8.0.0.0

    Win32 Version: 8.0.50727.4016 (NetFxQFE.050727-4000)

    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.4215 (VistaSP2GDR.050727-4200)

    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.4214 (VistaSP2GDR.050727-4200)

    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.4016 (NetFxQFE.050727-4000)

    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.4016 (NetFxQFE.050727-4000)

    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.4016 (NetFxQFE.050727-4000)

    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.4016 (NetFxQFE.050727-4000)

    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."

     

    How do i fix this error?. It's making me want to pull my hair out.

×
×
  • Create New...