Jump to content



0

PFCOLORS with Superchip?


24 replies to this topic

#1 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Wed Oct 15, 2008 7:01 AM

Does PFCOLORS work with SET ROMSIZE 8KSC and PFRES?

On the bB page it states:

"pfcolors
Specifies colors of each playfield row. Must specify 11 values, one to a line, followed by end. You can specify this as many times as you want."

I need to specify more than 11. How do I go about this?

I have included a file skulltitle.bas. I didn't put any comments in there because it's very simple.

It sets options, then displays frames of a title screen. The skeleton opens his mouth to spell the word SKULL. The
background should be black, the skeleton should be white, and the word SKULL should be in red. After it opens up,
it then closes. It keeps repeating.

Attached Files


Edited by yuppicide, Wed Oct 15, 2008 7:01 AM.


#2 jwierer OFFLINE  

jwierer

    Dragonstomper

  • 746 posts
  • Location:Seattle,WA

Posted Wed Oct 15, 2008 8:52 AM

View Postyuppicide, on Wed Oct 15, 2008 8:01 AM, said:

Does PFCOLORS work with SET ROMSIZE 8KSC and PFRES?

On the bB page it states:

"pfcolors
Specifies colors of each playfield row. Must specify 11 values, one to a line, followed by end. You can specify this as many times as you want."

I need to specify more than 11. How do I go about this?

I have included a file skulltitle.bas. I didn't put any comments in there because it's very simple.

It sets options, then displays frames of a title screen. The skeleton opens his mouth to spell the word SKULL. The
background should be black, the skeleton should be white, and the word SKULL should be in red. After it opens up,
it then closes. It keeps repeating.
It appears to work, though if you want your colors as described then

COLUBK = $00 and the pfcolors should be $0E.

Also the way the logic currently stands the mouth never fully closes. You could change too

loop1
frame = frame + 1
if frame > 11 then frame = 0
on frame goto skull1 skull1 skull2 skull3 skull4 skull5 skull6 skull5 skull4 skull3 skull2 skull1

-Jeff

#3 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Wed Oct 15, 2008 10:03 AM

Nah, I didn't want the mouth closed. I had it one space in between always.

Good call on the frame thing, but your thing is wrong.

you goto skull1 twice in a row, then at the end you have skull1 again, so that would stay 3 times in a row.

I'll try the colors like you say and see if that works. After that I'm going to make the skull open and close to say "Island". Maybe insert a background flash and a lightning noise.

View Postjwierer, on Wed Oct 15, 2008 10:52 AM, said:

COLUBK = $00 and the pfcolors should be $0E.

Also the way the logic currently stands the mouth never fully closes. You could change too

loop1
frame = frame + 1
if frame > 11 then frame = 0
on frame goto skull1 skull1 skull2 skull3 skull4 skull5 skull6 skull5 skull4 skull3 skull2 skull1

-Jeff

Edited by yuppicide, Wed Oct 15, 2008 10:12 AM.


#4 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Wed Oct 15, 2008 10:18 AM

Tried making some changes with no luck. The colors do not come out right. Some frames have a rainbow color for some reason.

#5 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Wed Oct 15, 2008 11:50 AM

I changed the colors to match your description: "The background should be black, the skeleton should be white, and the word SKULL should be in red."

Is this looking the way you want it?

Attached File  skulltitle_2008y_10m_15d_1341t.bin   8K   38 downloads

Attached File  skulltitle_2008y_10m_15d_1341t.bas   7.58K   34 downloads

If you want to get the 'icing off the cake', you'll have to adjust it so there is a black line above and below the word SKULL.

#6 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Wed Oct 15, 2008 12:30 PM

I understand what you mean about "icing".

But, maybe it's just my computer? I've tried this on two computers. The skeleton comes out rainbow colored. Same as when I tried to make it myself.

For part of the animation it is rainbow colored, for part of it the skeleton is missing.

I am attaching two screenshots taken with Stella.

Attached Thumbnails

  • skulltitle_2008y_10m_15d_1341t.bas.bin.png
  • skulltitle_2008y_10m_15d_1341t.bas.bin_3.png


#7 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Wed Oct 15, 2008 12:33 PM

Are you sure you have all of the updated files:

http://www.atariage....s...t&p=1517363

#8 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Wed Oct 15, 2008 12:45 PM

I thought so.. I just redownloaded 3 files. No luck.

Someone should just make one file with the fixes in it, rather than jumping through posts. Maybe put it on the bB website.

Eitherway just got those three files and no luck.

Edited by yuppicide, Wed Oct 15, 2008 12:45 PM.


#9 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Wed Oct 15, 2008 12:54 PM

What happens when you run the .bin file I posted? Does it still look screwed up? If so, maybe something is wrong with your emulator.

#10 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Wed Oct 15, 2008 1:07 PM

Same error. Just downloaded Stella again. Same thing. I have 2.6.1 for Win32. Same at home.

View PostRandom Terrain, on Wed Oct 15, 2008 2:54 PM, said:

What happens when you run the .bin file I posted? Does it still look screwed up? If so, maybe something is wrong with your emulator.


#11 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Wed Oct 15, 2008 1:30 PM

View Postyuppicide, on Wed Oct 15, 2008 3:07 PM, said:

Same error. Just downloaded Stella again. Same thing. I have 2.6.1 for Win32. Same at home.
That is freakin' weird. Even when a person doesn't have the correct files to run a .bas file, the .bin file usually works fine.

The only thing I can think of would be for you to make sure the Type setting under Game Properties is set to Auto-detect. That's how mine is set and the .bin file works fine. If that doesn't help, maybe somebody with a huge brain will pop in and figure this out.

#12 jwierer OFFLINE  

jwierer

    Dragonstomper

  • 746 posts
  • Location:Seattle,WA

Posted Wed Oct 15, 2008 1:47 PM

View PostRandom Terrain, on Wed Oct 15, 2008 3:30 PM, said:

View Postyuppicide, on Wed Oct 15, 2008 3:07 PM, said:

Same error. Just downloaded Stella again. Same thing. I have 2.6.1 for Win32. Same at home.
That is freakin' weird. Even when a person doesn't have the correct files to run a .bas file, the .bin file usually works fine.

The only thing I can think of would be for you to make sure the Type setting under Game Properties is set to Auto-detect. That's how mine is set and the .bin file works fine. If that doesn't help, maybe somebody with a huge brain will pop in and figure this out.

It works fine for me?

-Jeff

#13 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Wed Oct 15, 2008 1:56 PM

Before I had just installed over the old copy.. just now tried uninstalling and reinstalling with no luck. I'd really hate to move Z26, but maybe I'll test that out for the
first time. I've never used it before.

#14 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Wed Oct 15, 2008 1:58 PM

View Postyuppicide, on Wed Oct 15, 2008 3:56 PM, said:

Before I had just installed over the old copy.. just now tried uninstalling and reinstalling with no luck. I'd really hate to move Z26, but maybe I'll test that out for the
first time. I've never used it before.
So was it set to Auto-detect?

#15 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Wed Oct 15, 2008 1:59 PM

When I get home later I'll try uninstalling Stella and reinstalling to a completely different directory.

Actually, before I do that I need to test your .bin at home. You say that usually should work.

#16 jrok OFFLINE  

jrok

    Stargunner

  • 1,108 posts

Posted Wed Oct 15, 2008 4:08 PM

View PostRandom Terrain, on Wed Oct 15, 2008 1:54 PM, said:

What happens when you run the .bin file I posted? Does it still look screwed up? If so, maybe something is wrong with your emulator.

I have no trouble with your BIN. The colors look correct. But, when I recompile your BAS file with DASM, I get the same error as yuppicide (rainbow effect).

#17 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Wed Oct 15, 2008 4:33 PM

View Postjrok, on Wed Oct 15, 2008 6:08 PM, said:

View PostRandom Terrain, on Wed Oct 15, 2008 1:54 PM, said:

What happens when you run the .bin file I posted? Does it still look screwed up? If so, maybe something is wrong with your emulator.
I have no trouble with your BIN. The colors look correct. But, when I recompile your BAS file with DASM, I get the same error as yuppicide (rainbow effect).
Whenever I had a similar problem, it was because I didn't have all of the updated files that are strewn throughout this forum. SeaGtGruff collected most of them:

http://www.atariage....s...t&p=1517363

Certain files are newer than others, so if you don't add them in order, you'll be using an older version and it still won't work.

It seems batari gets so busy that he forgets to add each updated file to his official download as each file is created.

Edited by Random Terrain, Wed Oct 15, 2008 5:43 PM.


#18 jrok OFFLINE  

jrok

    Stargunner

  • 1,108 posts

Posted Wed Oct 15, 2008 5:11 PM

View PostRandom Terrain, on Wed Oct 15, 2008 5:33 PM, said:

View Postjrok, on Wed Oct 15, 2008 6:08 PM, said:

View PostRandom Terrain, on Wed Oct 15, 2008 1:54 PM, said:

What happens when you run the .bin file I posted? Does it still look screwed up? If so, maybe something is wrong with your emulator.
I have no trouble with your BIN. The colors look correct. But, when I recompile your BAS file with DASM, I get the same error as yuppicide (rainbow effect).
Whenever I had a similar problem, it was because I didn't have all of the updated files that are strewn throughout this forum. SeaGtGruff collected most of them:

http://www.atariage....s...t&p=1517363

Certain files ones are newer than others, so if you don't add them in order, you'll be using an older version and it still won't work.

It seems batari gets so busy that he forgets to add each updated file to his official download as each file is created.

Aha! Thanks for that. I found it and it compiles just fine now. Mighty fine lookin' skull.

Yuppicide - here is the exact link to the updated includes you need:
http://www.atariage....=0#entry1490744

#19 stephena ONLINE  

stephena

    Stargunner

  • 1,966 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Thu Oct 16, 2008 7:50 AM

View Postyuppicide, on Wed Oct 15, 2008 4:29 PM, said:

When I get home later I'll try uninstalling Stella and reinstalling to a completely different directory.

Actually, before I do that I need to test your .bin at home. You say that usually should work.
Problems like this are never the result of an incorrect installation of Stella (although sometimes it might be because you need a newer version for some missing feature). Installing different versions of Stella in different directories will not fix problems in user-generated data. All the files specific to a user (in Windows) are stored in 'My Documents\Stella'. Blowing away that directory will give you a 'fresh' install.

Now, that directory could be in different places depending on which version of Windows you're using, as follows:

Win98: C:\My Documents\...
WinXP: C:\Documents and Settings\USERNAME\My Documents\...
Vista: C:\Users\USERNAME\Documents\...

#20 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Thu Oct 16, 2008 9:02 AM

I got it to work. What had happened was what someone said. I downloaded the fixes, but overwrote them with older stuff.. so all I needed was the one file,
which probably had all the fixes in one.

Why didn't the .bin you posted work? Probably because I had opened the .bas file first and then compiled it before trying your bin. Stupid me.

Thanks for the help. I'll remove the "icing" when I get home.

I am guessing I made the same mistake at home too.

Edited by yuppicide, Thu Oct 16, 2008 11:40 AM.


#21 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Fri Oct 17, 2008 7:15 AM

Here's the current version of my "Skull Island" title screen. I have a problem and I don't know if it's a bB problem or an error on my part.

I have it set to PFRES=30 right now (29 lines high playfield). Everything looks fine, but it does not LOOP. It's supposed to loop and play forever.

If I remove the last line of PFCOLORS from each frame and the last line of playfield, it will loop, but then I get ICING on the bottom of the last line of playfield.

Can someone help?

What do you think of the lightning sound? Maybe you can do a better job than me?

Attached File  skulltitle4.bas   14.89K   33 downloads

Edited by yuppicide, Fri Oct 17, 2008 8:56 AM.


#22 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Fri Oct 17, 2008 8:55 AM

View Postyuppicide, on Fri Oct 17, 2008 9:15 AM, said:

Here's the current version of my "Skull Island" title screen.
I don't see the file or files.

#23 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Fri Oct 17, 2008 8:57 AM

Fixed. It didn't put the attachment in message, although it was there.

#24 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Fri Oct 17, 2008 10:14 AM

View Postyuppicide, on Fri Oct 17, 2008 10:57 AM, said:

Fixed. It didn't put the attachment in message, although it was there.
Thanks. I couldn't see it before.

Without spending a lot of time following the code to see what each section did, I just quickly moved this to the end of your program and it seems to work now:

  rem * on the 6th frame and 11th frame this routine is called to make lightning noise
lightning
  AUDV0 = lningv: AUDC0 = 8: AUDF0 = d

lightning2
  lningv = rand
  if lningv > 15 then goto lightning2

  lning = lning + 1
  if lningt = 0 && lning = 16 then lning = 0: AUDV0 = 0: return
  if lningt = 1 && lning = 32 then lning = 0: AUDV0 = 0: return
  drawscreen
  goto lightning

Is this any better:

Attached File  skulltitle04_2008y_10m_17d_1207t.bin   8K   44 downloads
Attached File  skulltitle04_2008y_10m_17d_1207t.bas   14.89K   36 downloads

#25 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Fri Oct 17, 2008 11:33 AM

Yep, works perfect, thanks.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users