Author Topic: [PP] Progress '11  (Read 74611 times)

0 Members and 1 Guest are viewing this topic.

Offline tifreak

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: [PP] Progress '11
« Reply #180 on: September 03, 2011, 08:31:31 am »
I've been writing everything over the last couple months using Tokens and then dropping it into Wabbitemu. Tokens also builds appvars, which is what I am doing with all this item code. Each item corresponds to the item name stored in an appvar line by line. Then it's just a matter of copying just that code into a temp program and running that instead of needing a high overhead of RAM.
« Last Edit: September 03, 2011, 08:33:19 am by tifreak »
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [PP] Progress '11
« Reply #181 on: September 03, 2011, 08:43:23 am »
O.O so, in other words, you have code in appvar and call it inside a temporary prog when you need !

:thumbsup: 'Nuff said ;)

For my prog, I put all the data (except text) in archived appvars and only the executable program is in Ram.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline tifreak

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: [PP] Progress '11
« Reply #182 on: September 03, 2011, 08:57:45 am »
That's essentially what I'm doing as well. I have certain programs in RAM. Others are in ROM and Resource is used to call those in to temp programs to run and deleted right afterwards. I'm also using progressive archiving, so when you start the game, it will archive prgmPOKEMON. Then when you go into a battle, it will archive the walking engine prgmZGA. If you go to switch pokemon, it will archive the battle engine. And of course, it unarchives as it goes back to those other programs.
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [PP] Progress '11
« Reply #183 on: September 03, 2011, 10:27:00 am »
So there is a time we see the "Garbage Collect" message ? :'(
In mine, only the saved game needs to be unarchived when I write in. But yeah, it has less details than yours.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline tifreak

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: [PP] Progress '11
« Reply #184 on: September 03, 2011, 10:49:16 am »
Maybe, eventually. This is for the SE calcs though, so it won't be seen for a good long time.

And there isn't THAT many archives and unarchives being done.
« Last Edit: September 03, 2011, 10:51:17 am by tifreak »
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline tifreak

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: [PP] Progress '11
« Reply #185 on: September 05, 2011, 09:34:02 pm »
So, working on code to use Ether. Right now, dealing with the battling Pokemon. This code is really giving me a headache. For the battling Pokemon, it redisplays the battle screen, then clears out the section of the text box and expands that to show the attacks. From there, you select which attack gets the Ether. I also have to re-clear a part of that, enough to redisplay the border/box so I can display the text.

If the item is not successful, I can thankfully clear the screen to return to the item screen.

If the item is successful, I have to clear out that entire mess and recall pic1.

And if you think this is bad.. The party Pokemon's code has to be written on the fly. Meaning it isn't like the battling Pokemon where it uses list L1. This code has to be compiled and dropped into a temp program to run, based off the |LP# for the list it is calling upon, on top of all the stuff I mentioned above.
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

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: [PP] Progress '11
« Reply #186 on: September 05, 2011, 10:58:31 pm »
Sorry to hear about the battle coding issues. Glad to see new updates, though.

Offline tifreak

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: [PP] Progress '11
« Reply #187 on: September 06, 2011, 05:07:31 am »
Eh, it's fine. Just going to be a challenge :p And I mostly like challenges. lol
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline tifreak

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: [PP] Progress '11
« Reply #188 on: September 08, 2011, 07:51:40 am »
Code: [Select]
If Tmin>0 and Z=1:Then:For(F,4,14:Line(4,F,90,F,0:End:For(F,15,30:Line(0,F,94,F,0:End:"0ZBD":prgmZRS:{94,0,3,27:prgmTEMP:prgmZC1:"rowSwap(ZAN"->Str0:0->theta:0->Tmax:If 0<L1(3:Then:L1(3:prgmZCE:35->Tmax:Text(35,9,Str9:Text(35,70+4(1-int(log(L1(19)))),L1(19:Text(35,78,"/",L1(23:End:If 0<L1(4:Then:L1(4:prgmZCE:41->Tmax:Text(41,9,Str9:Text(41,70+4(1-int(log(L1(20)))),L1(20:Text(41,78,"/",L1(24:End:If 0<L1(5:Then:L1(5:prgmZCE:47->Tmax:Text(47,9,Str9:Text(47,70+4(1-int(log(L1(21)))),L1(21:Text(47,78,"/",L1(25:End:If 0<L1(6:Then:L1(6:prgmZCE:53->Tmax:Text(53,9,Str9:Text(53,70+4(1-int(log(L1(22)))),L1(22:Text(53,78,"/",L1(26:End:5->W:While W=5:Text(A,5,">":getKey->K:If K:Text(A,5,"   ":A-6((K=34 and A<Tmax)-(K=25 and A>35->A:If K=31:Then:ClrDraw:1->W:End:If K=21:Then:For(F,4,14:Line(4,F,90,F,0:End:For(F,15,30:Line(0,F,94,F,0:End:RecallPic Pic1:If A=35:Then:If L1(19)>=L1(23:Then:Text(47,4,"ETHER INEFFECTIVE":prgmZWT:1->W:End:If L1(19)<L1(23:Then:Text(47,4,"USED ETHER!":10+L1(19->L1(19:If L1(19)>L1(23:L1(23->L1(19:prgmZWT:1.5->W:End:For(F,4,14:Line(4,F,90,F,0:End:End:If A=41:Then:If L1(20)>=L1(24:Then:Text(47,4,"ETHER INEFFECTIVE!":prgmZWT:1->W:End:If L1(20)<L1(24:Then:Text(47,4,"USED ETHER!":prgmZWT:10+L1(20->L1(20:If L1(20)>L1(24:L1(24->L1(20:1.5->W:End:For(F,4,14:Line(4,F,90,F,0:End:End:If A=47:Then:If L1(21)>=L1(25:Then:Text(47,4,"ETHER INEFFECTIVE!":prgmZWT:1->W:End:If L1(21)<L1(25:Then:Text(47,4,"USED ETHER!":10+L1(21->L1(21:If L1(21)>L1(25:L1(25->L1(21:prgmZWT:1.5->W:End:For(F,4,14:Line(4,F,90,F,0:End:End:If A=53:Then:If L1(22)>=L1(26:Then:Text(47,4,"ETHER INEFFECTIVE!":prgmZWT:1->W:End:If L1(22)<L1(26:Then:Text(47,4,"USED ETHER!":10+L1(22->L1(22:If L1(22)>L1(26:L1(26->L1(22:prgmZWT:1.5->W:End:For(F,4,14:Line(4,F,90,F,0:End:End:End:End:End:If iPart(W)=1:Return
This is the code I've come up with (read: untested as of yet) to deal with using the item Ether. This code -only- deals with the battling Pokemon. The code for the party Pokemon is going to be many levels higher in complexity.

This would also be a good time to note that this is now the longest piece of code in the appvar ZITU. And it's nowhere near complete.
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: [PP] Progress '11
« Reply #189 on: September 08, 2011, 08:51:00 am »
...Wow. That's one hell of a line. Hope it works!

The code for the party Pokemon is going to be many levels higher in complexity.
AND IT GETS WORSE? D:
See you, space cowboy...

Offline tifreak

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: [PP] Progress '11
« Reply #190 on: September 08, 2011, 09:52:30 am »
Yes. Because of the way I have the party system set up. There is a 6 element list, numbers 1-6, that keep track of which |LP# (there are 6, they are the stat lists for the pokemon) are in what order so you can move the pokemon around in your party. Since they are ever changing, I have to make the code for using items on the party pokemon quite dynamic. So it has to create the code, dump it off into another temp program, and then run it. :)
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline tifreak

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: [PP] Progress '11
« Reply #191 on: September 09, 2011, 08:35:39 am »


Just shows that the ether works successfully. The first time ;)

Now to write the code to use Ether on the party pokemon.
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline imo_inx

  • Manman, SaviourOfTheMultiverse!
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 473
  • Rating: +27/-8
  • imo_inx
    • View Profile
Re: [PP] Progress '11
« Reply #192 on: September 09, 2011, 08:38:18 am »
You need to add Rotom. :D Did you asign the power points for each move to variables?


Offline tifreak

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Re: [PP] Progress '11
« Reply #193 on: September 09, 2011, 08:49:49 am »
Rotom?

And the stats for each pokemon are stored in lists. 56 element lists.
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: [PP] Progress '11
« Reply #194 on: September 09, 2011, 09:22:17 am »