Jump to content
IGNORED

Question about Intro.bas (Random Function)


Descolado

Recommended Posts

Hi folks

 

Sorry my english

 

I'm trying create a game using the INTYBASIC (I don't have much free time). I'm having trouble with speed sprites (slow down one sprite without slow down others).

I'm trying run the INTRO.BAS in INTYBASIC 1.2.4, but there are 9 errors. Looking in INTRO.LST, I found errors in lines with RANDOM function (nine lines with this function). Can I change the RANDOM function to RAND function?

 

TelaError_1.jpg

 

TelaError_2.jpg

Link to comment
Share on other sites

The Random function was added in version 1.1

 

V1.1 Jul/14/2015 o New RANDOM() function

 

My guess is that your compiler files are, as GroovyBee states, not at least version 1.1 or you have a mixture of old files and new

 

The most current version 1.2.4 is here:

http://atariage.com/forums/topic/241446-intybasic-compiler-v12-the-good-things-are-now-better/

New permanent home is at:

http://atariage.com/forums/topic/248209-the-intybasic-compiler-official-thread/

 

It also appears you aren't using the SDK, it might be a better starting point.

Link to comment
Share on other sites

The Random function was added in version 1.1

 

V1.1 Jul/14/2015 o New RANDOM() function

 

My guess is that your compiler files are, as GroovyBee states, not at least version 1.1 or you have a mixture of old files and new

 

The most current version 1.2.4 is here:

http://atariage.com/forums/topic/241446-intybasic-compiler-v12-the-good-things-are-now-better/

New permanent home is at:

http://atariage.com/forums/topic/248209-the-intybasic-compiler-official-thread/

 

It also appears you aren't using the SDK, it might be a better starting point.

 

 

 

I downloaded the INTY SDK, I updated to Intybasic 1.2.4:

 

 

IntyBasicErro1.jpg

 

where I am going wrong?

Link to comment
Share on other sites

First, if you are using the SDK, start the command prompt with the icon called:

IntyBASIC SDK Command Console

 

Then I would type IntyNew IntroTest

or something to create a new Projects folder. Copy your Intro.bas into that folder.

 

IntyNew should have put you into the IntroTest folder.

If not then CD to it

 

Then type

IntyBuild Intro.bas

then type

IntyRun Intro

You'll probably get errors

 

I suspect you didn't update the Prologue and Epilogue ASM files.

 

In the IntyBASIC\lib folder

there are key files used by the compiler:

intybasic_epilogue.asm

intybasic_prologue.asm

and this file is used by Intro.bas

constants.bas

 

Copy the same files from the 1.2.4 IntyBasic1.2.4.zip and overwrite the ones in the lib folder.

 

Also, take any .exe from the 1.2.4 version and copy to the IntyBASIC\bin folder

 

Also update the manual.txt in the Documents folder

 

 

 

Now IntyBuild should work and the RANDOM error should go away.

If not make sure you are in the IntyBASIC SDK folder at the command prompt and type

 

dir /s >dirlist.txt

 

open the file in notepad and search and replace the personal info you whited out with something generic and post it

Link to comment
Share on other sites

The latest version of the file intybasic_epilogue.asm should have the following lines as the last few lines of its revision history (located near the top of the file) :-

        ; Revision: Nov/21/2014. Added Intellivoice support routines made
        ;                        by Joseph Zbiciak.


The latest version of intybasic_prologue.asm should have the following lines as the last few lines of its revision history (again, located near the top of the file) :-

    ; Revision: Aug/06/2015. Turns off ECS sound. Seed random generator using
    ;                        trash in 16-bit RAM. Solved bugs and optimized
    ;                        macro for constant multiplication.


If your files don't match then you'll need to update them.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...