Jump to content



0

Problem using variables and DIM


6 replies to this topic

#1 esplonky OFFLINE  

esplonky

    Moonsweeper

  • 292 posts
  • Kinetic, Not synthetic.
  • Location:Canyon Lake, TX

Posted Sun Jul 17, 2011 9:56 AM

every time i use one of RT's tutorials i always get this when i put his code into mine, and it's usually because of dim.

this is the error:

[root@Esplonky pong]# make
2600basic.sh default.bas -O
Starting build of default.bas
2600 Basic compilation complete.
DASM V2.20.09, Macro Assembler ©1988-2003
bytes of ROM space left
2302 bytes of ROM space left
2302 bytes of ROM space left
--- Unresolved Symbol List
pfcenter 0000 ???? (R )
ball0x 0000 ???? (R )
ball0y 0000 ???? (R )
kernelmacrodef 0000 ???? (R )
then 0000 ???? (R )
pfhalfwidth 0000 ???? (R )

Fatal assembly error: Source is not resolvable.
Build complete.
\n >:( >:( >:( Compile of default.bas FAILED! >:( >:( >:(\n
[root@Esplonky pong]#


here is my source code: Attached File  pong_Esplonky_july_17_2011_error.bas   2.29K   23 downloads

Edited by esplonky, Sun Jul 17, 2011 10:01 AM.


#2 RevEng OFFLINE  

RevEng

    River Patroller

  • 2,010 posts
  • bit shoveler
  • Location:Canada

Posted Sun Jul 17, 2011 10:10 AM

There's no "ball0x" or "ball0y" defined in bB. I think you mean "ballx" and "bally".

Also, you have a line...

ifjoy0fire then

...you need a space after the "if" and some actual code needs to follow the "then"

#3 esplonky OFFLINE  

esplonky

    Moonsweeper

  • 292 posts
  • Kinetic, Not synthetic.
  • Location:Canyon Lake, TX

Posted Sun Jul 17, 2011 11:15 AM

i accidentally forgot to delete the ifjoy0fire then, because i didn't need it

#4 esplonky OFFLINE  

esplonky

    Moonsweeper

  • 292 posts
  • Kinetic, Not synthetic.
  • Location:Canyon Lake, TX

Posted Sun Jul 17, 2011 11:18 AM

i fixed those two errors and now i get this error when i try to compile:



[root@Esplonky pong]# make
2600basic.sh default.bas -O
Starting build of default.bas
2600 Basic compilation complete.
DASM V2.20.09, Macro Assembler ©1988-2003
bytes of ROM space left
2476 bytes of ROM space left
2476 bytes of ROM space left
--- Unresolved Symbol List
pfcenter 0000 ???? (R )
0.knock_player_back 0000 ???? (R )
ball0y 0000 ???? (R )
kernelmacrodef 0000 ???? (R )
pfhalfwidth 0000 ???? (R )

Fatal assembly error: Source is not resolvable.
Build complete.
\n >:( >:( >:( Compile of default.bas FAILED! >:( >:( >:(\n

#5 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,923 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sun Jul 17, 2011 11:32 AM

Instead of pulling bits and pieces out of an example program and creating a mangled mess, you might want to start with the example program and make little changes here and there. When one little change works, you can make another little change and so on until you have what you want.

#6 ScumSoft OFFLINE  

ScumSoft

    Moonsweeper

  • 331 posts
  • Location:Polysorbate 60

Posted Sun Jul 17, 2011 11:51 AM

Also I think it doesn't like double underscores in labels

#7 RevEng OFFLINE  

RevEng

    River Patroller

  • 2,010 posts
  • bit shoveler
  • Location:Canada

Posted Sun Jul 17, 2011 12:20 PM

View Postesplonky, on Sun Jul 17, 2011 11:18 AM, said:

i fixed those two errors and now i get this error when i try to compile:
...

--- Unresolved Symbol List
pfcenter 0000 ???? (R )
0.knock_player_back 0000 ???? (R )
ball0y 0000 ???? (R )
...
You still have a ball0y in there somewhere.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users