Author Topic: YAMGT  (Read 99138 times)

0 Members and 2 Guests are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: "Maxwell's Demon" Port (Axe)
« Reply #60 on: December 01, 2010, 06:43:51 pm »
The second screenshot waits until the person press any key, and if it's not 2, 3 or 4, it quits.
The menu is planned, I just did the thing in the second one to clarify which mode went with which type.

It looks like I'll have to change the code so it redraws everything every frame, unless there's a way to do two extra buffers or store a greyscale background externally...;)
Or i can have it xor the balls back into nothing, I'm trying to think of a fast way to do it so what happened to TWHG (3-4 giant loops per frame) won't happen to this.

Update: I just need to fix the display issue ↑, involve an appvar and put the game in the menu.
The bar on top is done with, it slowed it down too much (now with greyscale and such) and it interfered with the design of the 3-type/4-type fields.>:(  It looks a lot cleaner without it.
(One would hope the person would know when they're close to winning, anyway :P)

That looks close. Putting the game in the menu doesn't look hard, the Appvar not too.

EDIT: grayscale was not really needed, I think
« Last Edit: December 01, 2010, 06:44:09 pm by ScoutDavid »

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: "Maxwell's Demon" Port (Axe)
« Reply #61 on: December 01, 2010, 06:49:33 pm »
Greyscale is needed to allow for more than two types unless different sprites were used, then it would be hard to tell what type is what because they're moving.

"was not"...it is now
« Last Edit: December 01, 2010, 08:44:34 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: "Maxwell's Demon" Port (Axe)
« Reply #62 on: December 01, 2010, 07:23:58 pm »
As for having a space for two more buffers, you can just create a temporary appvar at the beginning of your game: GetCalc("appvTemp",1536)->P To copy to these 3rd and 4th buffers, you could do Copy(L6,P,768):Copy(L3,P+768,768) to save the both the buffer and backbuffer to these buffers. you can also use the pt-on/off/change/mask commands to these buffers with Pt-On(Y,X,Pic)->P for normal and Pt-On(Y,X,Pic)->P+768 for grayscale

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: "Maxwell's Demon" Port (Axe)
« Reply #63 on: December 01, 2010, 08:01:40 pm »
How would I recall it, without it overwriting what's currently there?
Would it be something like this...
Code: [Select]
GetCalc("TempBuff",1536)→P
For(A,0,767
!If {P+A}
{P+A}→{L6+A}
.or
.{P+A+768}→{L3+A}
End
End
DispGraph
.or with r or rr modifiers
...?
« Last Edit: December 01, 2010, 08:04:43 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: "Maxwell's Demon" Port (Axe)
« Reply #64 on: December 01, 2010, 08:37:23 pm »
So you would want to do something similar to TI-BASIC RecallPic, where it writes whats on the 3rd/4th buffer to what's on the screen?
Code: [Select]
.# represents the 16-bit or operation
L₆→A
While -768-L₆
{A}ʳ#{A+P-L₆}ʳ→{A}ʳ+1→A
End

and repeat subbing in L3 for L6 and P+768 for P for the backbuffer

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: "Maxwell's Demon" Port (Axe)
« Reply #65 on: December 01, 2010, 08:43:10 pm »
Umm...what?
Might you be able to explain how that works, please?
« Last Edit: December 01, 2010, 08:43:20 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: "Maxwell's Demon" Port (Axe)
« Reply #66 on: December 01, 2010, 08:50:51 pm »
lol, sorry if I wasn't too clear.

The code is some crazy optimized thing that Quigibo came up with so I'm not too sure why it works either :x. But what it will do is take the buffer located at P and 'or' it over what's on the screen (in L6), just like how in BASIC you can do 'recallpic 1' and it will draw Pic 1 over what's already on the screen (which is what I think you're trying to do, right?)

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: "Maxwell's Demon" Port (Axe)
« Reply #67 on: December 01, 2010, 09:35:30 pm »
I thought it kind of looked familiar... :P

Would the code I came up with earlier work?
Or is there something wrong with it?
Vy'o'us pleorsdti thl'e gjaemue

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: "Maxwell's Demon" Port (Axe)
« Reply #68 on: December 01, 2010, 11:38:39 pm »
The second screenshot waits until the person press any key, and if it's not 2, 3 or 4, it quits.
The menu is planned, I just did the thing in the second one to clarify which mode went with which type.  In the menu, it's determined by the option "Types of balls".

It looks like I'll have to change the code so it redraws everything every frame, unless there's a way to do two extra buffers or store a greyscale background externally...;)
Or i can have it xor the balls back into nothing, I'm trying to think of a fast way to do it so what happened to TWHG (3-4 giant loops per frame) won't happen to this.

Update: I just need to fix the display issue ↑, involve an appvar and put the game in the menu.
The bar on top is done with, it slowed it down too much (now with greyscale and such) and it interfered with the design of the 3-type/4-type fields.>:(  It looks a lot cleaner without it.
(One would hope the person would know when they're close to winning, anyway :P)
I see, good luck. For extra buffers you can add a buffer at the end of your game, but that means the game would be 768 bytes larger for each additional screen buffers.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: "Maxwell's Demon" Port (Axe)
« Reply #69 on: December 02, 2010, 06:33:21 pm »
Unexpected setback.
For some reason, Calcutil's screwed up big-time and pretty much every ASM program or archived program (read: source) run from the homescreen throws "ERR: UNDEFINED".  At this point, I've pretty much given up on trying to figure out wtf is going on, just get everything off of it and re-send the OS.  The programs aren't lost, they just don't run from outside of a shell (I've been trying all day, so yeah :P)... :mad:

On an unrelated note, the alt text for this smiley :hyper: from the Post Reply window contains quite the bold statement.  And I lost.
Vy'o'us pleorsdti thl'e gjaemue

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: "Maxwell's Demon" Port (Axe)
« Reply #70 on: December 03, 2010, 01:57:38 am »
Can they be recovered with something like CalcSys? ??? I hope you don't lose any progress due to corruption or something. Either way don't give up on this project. Do you have any backups on a computer or something?

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: "Maxwell's Demon" Port (Axe)
« Reply #71 on: December 03, 2010, 02:05:54 am »
The programs aren't corrupted, they just don't run.
The OS is corrupted.  What I need to be is get everything off the calc (backup), re-send the OS, restore the stuff, and get back on my feet with this stuff.

Which brings me to my next question.  84PBE.  Extra RAM pages.  Need to backup to re-send OS.  TiLP's built-in backup feature doesn't work (idk why).

...Need backup utility.
Are there any good for the purpose?
« Last Edit: December 03, 2010, 02:06:08 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: "Maxwell's Demon" Port (Axe)
« Reply #72 on: December 03, 2010, 02:16:51 am »
Oh do you mean Asm(prgmNAME) just says Done? I had this happen before and I had to clear the entire mem :(

As for backup utilities I'm not too sure. Do you mean you may not be able to send the files to your comp? :(

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: "Maxwell's Demon" Port (Axe)
« Reply #73 on: December 03, 2010, 02:22:10 am »
It doesn't say done, it says ERR:UNDEFINED.
Another thing.  Every time it does that, about 2K of RAM disappears.

OS is definitely corrupted.  Just tried graphing Y=2 and it just showed the run indicator on top.  For minutes on end.


I'll probably be able to send stuff (MSD8X works) I'm just trying to think of a simple and practical way to do it.
« Last Edit: December 03, 2010, 02:22:58 am by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: "Maxwell's Demon" Port (Axe)
« Reply #74 on: December 03, 2010, 03:08:55 am »
Wow, that seems really bad. I would avoid running anything at all costs. You will have to re-install the OS, hoping you're not facing any linking issues like ASHBAD_ALVIN did...