Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hayleia

Pages: 1 ... 104 105 [106] 107 108 ... 239
1576
TI Z80 / Re: Pokemon Topaze (Axe)
« on: March 17, 2013, 06:21:24 am »
And I thought about something that could work too, since usually, doors are coupled by pairs, one leading to another, so this would be possible, where 2n is the number of doors:
-having a list like that door(1)coordinates,door(2)coordinates,...door(n)coordinates,door(n+1)coordinates,door(n+2)coordinates,...door(2n)coordinates
-then, when you hit the door k, it teleports you to the door k+n or k-n (basically the door k+n modulo 2n I guess) :)

Yes it would work, but in my case I'll need to know the map ID too.
This is why I wanted to divide the map in equal squares so the "map ID" can be obtained directly with the coordinates of the player ;)

Plus I was thinking of placing teleporters to the same pokecenter (to win space) through the whole game, so it won't work whithout some more datas (where was the player before enter...). Currently you have as many pokecenters as towns, right ?
Lolnope, I only have one PokeCenter. See the map in this post, you can see the only PokeCenter in the bottom left corner :P

Erf, I've just found a bug in my compression program, which caused to misread hex numbers... Looks like the compressed map using horizontal RLE+7th bit trick+more than 127 tiles will finaly takes 4712 bytes (57%, and RLE only will take much more)  x.x

Though, that's not that bad :P

Spoiler For Compressed map using horizontal RLE+7th bit trick+more than 127 tiles:
<hey, what did you expect :P>
Yeah, that is still half the size it originally takes :)

Well, It will be slower for the "end" of the map but I think it will be still bearable for users to have a little map change sometimes, if that is not too often, that should not take more than 2 seconds :)
Else, there could be 2 decompression routines, one uncompressing "from left to right", the other one "from right to left', this way, it will be slower in the middle but still quite fast everywhere ;)

Yeah it would work, but you'll have to know when to use which one.
And I thought about it during this night (:P), I discovered that there will probably be problems for the right to left uncompression due to the 7th bit trick :(

I still think that using small maps instead of a big one can allow you to gain speed and space.
Yeah, And I thought about something, there is no need to be several appvars in fact, just several maps in one appvar. This can be done easily if you know how much space takes every compressed map. Well yeah, that can do it :D

I play pokemon like I breath. I'm good at it and I do it all the time. I played this game hardcore and within about 5 hours I had impressive stats. I was sad when the game maxed out!
Lol ok, then I think what you could do is a savegame-hacking program to get back to a level under the max I should have put :P
You'll see, my savegame is quite well organized at the beginnig so you won't be lost if you try :)
I should put that max in my todo list too -.-°

1577
TI Z80 / Re: Pokemon Topaze (Axe)
« on: March 16, 2013, 02:13:52 pm »
Yeah, teleporting carpets and doors for example, all have their own number.
You mean each one, right ? Cause I think you can easily guess which door (with the same tile for all, if that's not the case) the player have crossed by comparing its coordinates (x*y*map width) with a list like that : ".dw door_01_coordinate,pointer_to_teleporting_handler_01,etc...".

Don't know if you can do this in Axe, though.
Yeah, for now each one has a specific tile number.
And of course your method is doable in Axe, everything that is possible in ASM is possible in Axe, the differecne is just a matter of speed (like a raycaster might not run very fast in Axe but it would still run).
Also, you wrote x*y*map_width, but I assume that the first "*" is meant to be a "+" right ?
And I thought about something that could work too, since usually, doors are coupled by pairs, one leading to another, so this would be possible, where 2n is the number of doors:
-having a list like that door(1)coordinates,door(2)coordinates,...door(n)coordinates,door(n+1)coordinates,door(n+2)coordinates,...door(2n)coordinates
-then, when you hit the door k, it teleports you to the door k+n or k-n (basically the door k+n modulo 2n I guess) :)

What could be done for them would be a stupid thing like ".db 1,door". That would of course waste one byte since that won't use the 7th bit trick, but they are not so many. And carpets usually go by two so that would be ".db 2,carpet" which doesn't waste anything :)
And the 7th bit trick would be reserved to more usual tiles like trees and such, with numbers under 127 :)

Yeah but take care not to have the same tiles repeated horizontaly more than 127 times, else it will mess up the decompression (for example, you can't differenciate 143 tiles with the tile #15 alone, in both cases that'll give %10001111).
Yeah, in that case, if n is the number of tiles, I would just do ".db 127,tile,n-127,tile" ;)

I think that they would not be very complicated, like squares, all with the same dimension and all :P
A separation could be right in the middle of a town but I don't think uncompressing will be too slow since nothing happens during that process. I recall the true Pokemon Yellow having small latencies at the border of towns (where the color of the environnment changes) and I guess it is because they must use this kind of uncompression.

Uncompressing the beginning of the datas is fast, but not the end, that's why it would be more convinient to do it while teleporting the player.
Well, It will be slower for the "end" of the map but I think it will be still bearable for users to have a little map change sometimes, if that is not too often, that should not take more than 2 seconds :)
Else, there could be 2 decompression routines, one uncompressing "from left to right", the other one "from right to left', this way, it will be slower in the middle but still quite fast everywhere ;)

1578
TI Z80 / Re: Pokemon Topaze (Axe)
« on: March 16, 2013, 12:34:56 pm »
No, I have more than 77 tiles. I see a "r1<229" in the code, and even if there are some blanks somewhere, I think it is still over 127 :(
For the trainer, there are two kinds of them: the ones that you must beat (they are blocking the road) and that can beat only once, and the ones that you don't have to beat, but you can beat them as many times as you want. For the ones blocking the road, yeah, you have to beat them in order.

Why do you have so much tiles ? To handle events ("teleportations" etc...) ? This said, the datas I posted earlier may not be usable : I haven't check if the tile ID was under 127 before changing its 7th bit, but without doing it the map is still compressed to 80% (2220 bytes) :

Spoiler For compressed map only using horizontal RLE:
<snipped again :P>
Yeah, teleporting carpets and doors for example, all have their own number. What could be done for them would be a stupid thing like ".db 1,door". That would of course waste one byte since that won't use the 7th bit trick, but they are not so many. And carpets usually go by two so that would be ".db 2,carpet" which doesn't waste anything :)
And the 7th bit trick would be reserved to more usual tiles like trees and such, with numbers under 127 :)
(I should put that on my to do list as soon as I get on the right PC -.-°)

For the compression, wow, that is very compressed O.O
What could be possible, instead of having it divided in parts, would be to have it in one compressed part but uncompressing small parts, this way, there would only be one map file and not too much slowness (only when going from one part to another) :)

Yeah I guess you can do it before teleporting the player, you'll just have to define the small areas before.
I think that they would not be very complicated, like squares, all with the same dimension and all :P
A separation could be right in the middle of a town but I don't think uncompressing will be too slow since nothing happens during that process. I recall the true Pokemon Yellow having small latencies at the border of towns (where the color of the environnment changes) and I guess it is because they must use this kind of uncompression.

No, you don't walk on top of a trainer to battle them, you walk on the dots right in front of them :P
And yeah, my only variable (that I called TrainerNumber in this explanation but that is not called like that in the code :P) handles all the trainers for now.
But what I was worried about was that adding a table of coordinates would be stupid because it would be saving data by adding data, but now, seeing how Deeph compressed my map, I think that the table of coordinates won't be over 9000 so it would still save space, so it is a good idea :)

If you don't plan to complexify your current system there's no need to add tables, but to my part I think I'm going to handle trainers as events (every step the players does, I'll check if it's in the sight of some trainers, this way I could even handle moving trainers).
But how will you handle the fact that trainers can have different range of view ?

1579
OmnomIRC Development / Re: OmnmomIRC changelog and suggestions
« on: March 16, 2013, 03:27:41 am »
Ok now someone has to explain me this. I posted once in "Pokemon Topaze" and once in "Hello, from Earth" and Omnom said this:
       *|Omnom post by Hayleia in Pokemon Topaze (Axe) http://ourl.ca/9844/287666
       *|Freyaday has quit IRC (Leaving.)
DJ_O    |p.p
       *|Omnom post by Hayleia in Hello, from Earth! http://ourl.ca/15922/287667
       *|Omnom post by Hayleia in Pokemon Topaze (Axe) http://ourl.ca/9844/287666
       *|Omnom post by Hayleia in Hello, from Earth! http://ourl.ca/15922/287667
Hayleia |eh ?

What happened ? ???

1580
Introduce Yourself! / Re: Hello, from Earth!
« on: March 16, 2013, 03:23:25 am »
Hello, Welcome to Omnimaga, have some more of those peanuts :P
!peanuts

Hey, admins! Wanna help me with my username? It obviously has a problem: I've somehow switched up my username and email! OH NOES!
Now that you have more than 5 posts, I think that you can PM an admin so that your username is changed. Usually, people can't change their username easily but since you have a legit reason, they should access your request :)

1581
TI Z80 / Re: Pokemon Topaze (Axe)
« on: March 16, 2013, 03:13:27 am »
The game has no protection against continuing a game without having started one, which makes for an interesting way of exploring the RAM contents of the calculator :)
Yeah but why do you try to continue a non existing game ? :P

The game, after maxing out any stats past 255, will set them down very low.

So, if I have a Pidgeot at level, say, 75, it's health will be so high, it will be (something like, this is just a random guess) 287 and thus it rolls over to a number like 287 - 255 = 32. I don't like going into battles against level 50 pokemon and losing my best one in the first hit. :(
Well your health will only get to 255 when you get to level 85, and I didn't expect people to get this far :P
So yeah, I should add a protection to it.

To continue this discussion :

For now, every trainer has a tile number, let's say from 1 to 50 for example (in fact, I think it starts at 171 or some other ugly number :P). So when you walk on a number between 1 and 50, if the number saved in {TrainerNumber} (smart name isn't it ?) is lower than the tile number you walked in, well battle, and when you beat the trainer, {TrainerNumber} increases. And if {TrainerNumber} is greater than the tile, then you already beat the trainer and there is no more battle ;)
How many tiles you really have ? Cause if it's under 77 (which is pretty much sure), then you can stick with your system and use rle compression.

Elsewhere, you have to beat all the trainers in a certain order, right ? I don't remember if the progress through maps was kind of linear, but if so, then it's not a problem.

I've compressed your map using horizontal RLE+7th bit for "lonely" tiles and (if I'm correct)... it compressed up to 85% (from 10948 bytes to 1723) :o

Spoiler For compressed map:
<snipped :P>

But keep in mind that the speed to read it on the fly will really depend on the tiles you're trying to reach... That's why dividing it into smaller parts would help.
No, I have more than 77 tiles. I see a "r1<229" in the code, and even if there are some blanks somewhere, I think it is still over 127 :(
For the trainer, there are two kinds of them: the ones that you must beat (they are blocking the road) and that can beat only once, and the ones that you don't have to beat, but you can beat them as many times as you want. For the ones blocking the road, yeah, you have to beat them in order.

For the compression, wow, that is very compressed O.O
What could be possible, instead of having it divided in parts, would be to have it in one compressed part but uncompressing small parts, this way, there would only be one map file and not too much slowness (only when going from one part to another) :)

I'm not quite sure how your trainer system works. It sounds like you have to walk on top of a trainer to battle them? What is TrainerNumber? You use one variable for every single trainer? One way you could do it would be to use a single tile for every trainer, say tile 85. Then you could have a table listing the coordinates of each trainer and possibly a pointer to the trainer's sprite. Actually, you really don't even need a special tile, especially if you divided your maps into smaller pieces. With each map segment you would pass a pointer to a table that contains the coordinates of the trainers. When the trainer is on screen, just subtract the trainer coordinates from the map coordinates and draw them. You could use the same table for NPCs, and since in each little map section (each town/route) there won't be that many trainers/NPCs, you could load the table into RAM and change the coordinates as you please without worrying about modifying the data in your program. That way you could have NPCs that walk around, trainers looking in different directions, etc.
No, you don't walk on top of a trainer to battle them, you walk on the dots right in front of them :P
And yeah, my only variable (that I called TrainerNumber in this explanation but that is not called like that in the code :P) handles all the trainers for now.
But what I was worried about was that adding a table of coordinates would be stupid because it would be saving data by adding data, but now, seeing how Deeph compressed my map, I think that the table of coordinates won't be over 9000 so it would still save space, so it is a good idea :)

1582
Other Calculators / Re: TI-Concours - last days to subscribe !
« on: March 15, 2013, 02:41:58 pm »
But how will you check with coordinates ? because I guess that you won't have a "If X=... and Y=..." for every trainer, will you ?
Or maybe having with another data list with the form "x1,y1,x2,y2,...,xn,yn", and for every trainer, finding the k so that X=xk and Y=yk would be possible, but once again, wouldn't adding a data list be in opposition with the aim of saving space ?

How are you handling that right now ? When the player has beaten a trainer, you have to save it somewhere, right ? Not by modifying the map itself I guess.

That said, using a single tile for all trainer may not be the most optimised thing to do whereas using differents one per trainers and per maps might be better (and takes less than 127 different ones)...

I'll try to encode your map just to see how many bytes you can gain.
For now, every trainer has a tile number, let's say from 1 to 50 for example (in fact, I think it starts at 171 or some other ugly number :P). So when you walk on a number between 1 and 50, if the number saved in {TrainerNumber} (smart name isn't it ?) is lower than the tile number you walked in, well battle, and when you beat the trainer, {TrainerNumber} increases. And if {TrainerNumber} is greater than the tile, then you already beat the trainer and there is no more battle ;)

1583
Other Calculators / Re: NSpire, or Prizm?
« on: March 15, 2013, 02:37:27 pm »
Yeah, my post about the Nspire got ignored there, even though it was defending both the Prizm and the CX (CAS or not).

Well, I'd say that it depends on what you want to do with your calc :P
-If you want to play the best games, buy a CX (CAS or not) since it has a GBA emulator.
-If you want to use your calc for maths, buy a CX CAS for... well the CAS :P
-If you want to code on it, well here is the problem, because as you know, the Nspire is closed while the Prizm isn't. So it is your choice here, wether about openness or power :)

Also, welcome to the forums Dapianokid, you can introduce yourself here :)

1584
Other Calculators / Re: TI-Concours - last days to subscribe !
« on: March 15, 2013, 01:25:06 pm »
Yeah, I figured out that it would look like something like that, and it took me an entire week to code the tilemapper in ASM, hence why I said that I could not manage to code another piece of code with two "for loops" one in another :P
Or there might be a way to get it with only one "for loop" by putting x and y in one number (like a=y*256+x or something).
Or maybe you were not thinking about me making this in ASM but in Axe ? That would work :P
You can do it in both asm and axe, and if you need help to do it in asm, you can create a topic and post your current code.
Yeah, I always forgot about the possibility of asking for help in ASM because when I coded in ASM, I didn't know about Omnimaga. As soon as I discovered Omnimaga (because of a problem with TI-Boy :P), I learnt about Axe and switched to it. But yeah, I'll ask for help whenever I need it now :P

I don't know how you handle trainers right now, but for my part I think I'm just going make a list of them (within the players datas), and modify it when they are beaten. When the player will past by the trainer's tile (the same for all), I'll just check from the coordinates who it is.
But how will you check with coordinates ? because I guess that you won't have a "If X=... and Y=..." for every trainer, will you ?
Or maybe having with another data list with the form "x1,y1,x2,y2,...,xn,yn", and for every trainer, finding the k so that X=xk and Y=yk would be possible, but once again, wouldn't adding a data list be in opposition with the aim of saving space ?

That could work to optimize the map, but for all the methods, there is to choose between compressing the map and adding code to uncompress it, or saving code with an uncompressed map, and for this method, I feel like keeping track of all maps and get to know which one the player must go to would add more code than it saves space :D
Yeah in axe maybe, but in asm I'm sure you'll gain space even with some more code to handle different compressed maps. 10ko only for maps is kind of huge, and as far as I remember Pokémon Topaze maps weren't that vast, no ?
Depends on what you call "vast" :P
Its dimensions are 119x92 (which takes a bit more than 10000 bytes uncompressed as you see), counting all the filling "zeroes" which are in fact "19" in hex :P

Spoiler For The map:

[1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919]
[1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919]
[1919272727272764642727272727191919191920202020206666202020202019191919192020202020202020202020201919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919191919191919191919191919191919191919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919]
[191927000000000000000000002719191919192000000E000000000E00002019191919192000000000000000000000201919191919191919191919191919191919191919191919191919191927272727272727272727272727271919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919]
[191927000000000000000000002719191919192000000F000000000F00002019191919192000000000232400000000201919191919191919191919191919191919191919191919191919191927CACACACACACACACACACACACA271919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919]
[1919270027272814E228272700271919191919200000002814E42800000020191919191920000E000022251B000E00201919191919191919191919191919191919191919191919191919191927CACACACACACACACACACA74CA271919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919]
[191927000000280000280000002719191919192000000E280000280E000020191919191920000F001420201A000F00201919191919272727272727272727272727272727272727191919191927CACACACACACACACACACACACA271919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919]
[191927000027280000282700002719191919192000000F280000280F0000201919191919200000006900000000000020191919191927C9C9C9C9C914C9C9C9C9C9C9C9C9C9C927191919191927CACACA272727272727272727271919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919]
[191927000000280000280000002719191919192000000028000028000000201919191919200000000000000000000020191919191927C9C9C9C9C98DC9C9C9C9C9C9C9C9C9C927191919191927CACACA271919191919191919191919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919]
[191927272727272727272727272719191919192020202020202020202020201919191919202020202020202020202020191919191927C9C973C9C98DC9C9C9C9C9C9C9C9C9C927191919191927CACACA271919191919191919191919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919]
[191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191927C9C9C9C9C9C9C9C9C9C9C9C927C9C9C927191919191927CA75CA271919191919191919191919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919]
[191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191927C9C9C9C9C9C9C9C9C9C9C9C927C9C9C927191919191927272727271919191919191919191919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919]
[19191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919192727272727272727272727C9C927C9C9C927191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919]
[191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191927C9C9C9C9C9C9C918C9C9C9C927C9C9C927191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919]
[191920202020206363202020202019191919192020202020656520202020201919191919272727272727272727271919191919272727C9C9C9C9C9C9C990C9C9C9C927C9C9C927191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919]
[1919203C20000000000000203C20191919191920000000000000000000002019191919192700000014DD00000027191919191927C9C9C9C9C9C9C9C9C927C9C9C9C914C9C9C927191919191927272727272727272727272727272727272727272727191919191919192020202020202020202019191919]
[1919203C20200000000020203C201919191919200000200000000020000020191919191927272700000000272727191919191927128D8DC9C9C9C9C9C927C9C9C9C98DC9C9C927191919191927C9C9C9C9C9C9C9C9C914C9C9C9C9C9C9C9C918C927191919191919192000000000DE1421002019191919]
[1919203C3C202818E128203C3C201919191919200020002818E32800200020191919191927000000000000000027191919191927C9C9C9C9C9C9C9C9C927C9C9C9C98DC9C9C927191919191927C9C9C9C9C9C9C9C9C992C9C9C9C9C9C9C9C98DC927191919191919192000000000000000002019191919]
[1919203C3C2028000028203C3C20191919191920002000280000280020002019191919192700128D8D8D00000027191919191927C9C9C9C9C9C9C9C9C927C9C9C9C98DC9C9C927191919191927C9C9C9C9C9C9C9C9C992C9C9C9C9C9C9C9C98DC927191919191919192000000000000000002019191919]
[1919203C20202800002820203C20191919191920000020280000282000002019191919192700000E00000E00002719191919192727272727272727686827272727272727272727191919191927C9C9C9C927272727272727272727C98DC9C9C9C927191919191919202020202000002020202020191919]
[1919203C20002800002800203C20191919191920000000280000280000002019191919192700000F00000F100027191919191919191919191919191919191919191919191919191919191919275858272727C9C9C9C9C9C92727272711C9C9C9C92719191919191900000000000000008D8D8D13191919]
[19192020202020202020202020201919191919202020202020202020202020191919191927000000000000000027191919191919191919191919191919191919191919191919191919191919191919191927C976C9C9C9C9C927272727C9C9C9C927191919191919002100002100002100002100191919]
[19191919191919191919191919191919191919191919191919191919191919191919191927272727676727272727191919191919191919191919191919191919191919191919191919191919191919191927C9C9C9C9C9C9C9C9272727C9C9C9C927191919191919128D8D000000000000000000191919]
[191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919010101010101010101010101010101010101011919191919191919191919272727272727C9C9C9C991C9C9C9C9C927191919191919002100142100002100002100191919]
[191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919010304040404050000000000000000000000010119191902020202020202191919191927C9C9C9C991C9C9C9C9C9271919191919190000008D0E00000E00000000191919]
[1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919190106060606060600000000000000000000000001010102020C0B0B0B0B0B191919191927C9C9C9C911C9C9C9C9C9271919191919190000008D0F00000F10000000191919]
[1919191919191919191919191919626219191919191902565602020202020202020202020202020202021919191919010101010106064306060600000304050000000000000014000000000B0B0B0B0B0B19191919192727272727272727272727271919191919190000008D0000000000000000191919]
[1919191919191919191919191919000019191919191902000002000000000000000000000000000000021919191919010000000000000000000000000608060000000000000035000000000B0B4C0B0B0B1919191919191919191919191919191919191919191919000000000059590000000000191919]
[1919191919191919191919191919000019191919191902128F020000000000000000000000000000000219191919190100000000000000000000000006E6060000000000000035000000000000000000021919191919191919191919191919191919191919191919191919191919191919191919191919]
[19191C1C1C1C0000201B00000020000019191919191902B6B602000002020202020202020202020000021919191919010000000016000000000000000000000000000000000035000000000000000000021919191919191919191919191919191919191919191919191919191919191919191919191919]
[19191C1C1C1C001B201A20180020000019191919191902B6B602000002001400000002B6B6B6B6000002191919191901000000000000000000000000000000000000000101010101010202B8B8B8B8B80219191919190B0B0B0B0D02020202191919191919191919191919191919191919191919191919]
[191900000000001A2020201F2020000019191919191902B6B6B6B6B602008D00000002B6B6B6B6000002191919191901000000000000000000000000001400000000000119191919191902B8B8B8B8B80219191919190B0B0B0B0B00000002191919191927272727271919191919FFFFFFFFFFFF191919]
[19191C1C00000000000000000000000019191919191902B6B6B6B6B602020202B6B602128E0202020202191919191901000000030404050100000304050000000000000119191919191902B8B8B8B8B80219191919190B0B4D0B0B00000002191919191927CB78CB271919191919FFFFFFFFFFFF191919]
[19191C1C00000000000000000000000019191919191902020202020202020202B6B6020000020202020219191919190100000006090A0601000006070600000000000001191919191919020202020202021919191919020000000000000002191919191927CBCBCB271919191919FFFFFFFFFFFF191919]
[1919121F00000000000000000000000019191919191902B6B6B6B6000000000000000000B6B6B6B6B602191919191901000000063D3D0601000006E506000000000000011919191919191919191919191919191919190200000000B9B9B902191919191927CBCBCB27191919191919191919FFFF191919]
[1919002000000000000000000000000019191919191902128D8DB6000000000000000000B6B6B6B6B60219191919190100000000000000010000000000000000000000011919191919191919191919191919191919190200000000B9B9B902191919191927CBCBCB27191919191919191919FFFF191919]
[1919202000000000006161000000000019191919191902B6B6B6B6000000000000000000B6B6B6B6B602191919191901000000000000000100000000000000000000000119191919191919191919191919191919191902128D8D00B9B9B902191919191927CBCBCB27191919191919191919FFFF191919]
[19191919191919191919191919191919191919191919020202020202020255550202020202020202020219191919190101010101010101010101010000002D01010101011919191919191919191919020202020202020200000000B9B9B902191919191927CBCBCB27272727271919191919FFFF191919]
[1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191902020202020202000000000200000C0B0B0B0D1919191919191919023C3C3C3C3C010000000000B9B9B902191919191927CBCBCBCBCBCBCB271919191919FFFF191919]
[1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191902B7B7B7B7B700000000000200000B0B0B0B0B1919191919191919023C3C3C3C3C01000000000002020202191919191927CBCBCBCBCBCBCB2719191919191919191919]
[1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191902B7B7B7B7B700000000003600000B0B4F0B0B191919191919191902010101010101000000B9B90219191919191919192727272727CBCBCB2719191919191919191919]
[1919272727272727275F5F272727272727272727191919FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919191902B7B7B7B7B700000000000200000000000002191919191919191902128D00000000000000B9B90219191919191919192727272727CBCBCB2727191919191919191919]
[191927147ECD27CECECECECECECECE18CECECE27191919191919191919191919191919FFFFFFFFFFFFFFFFFFFFFFFF191919191902000000000000000000000200000000000002191919191919191902000000000000B9B9B9B9B90219191919191919191919191927CBCBCBCB27272727272727191919]
[1919278DCDCD27CECECECECECECECE8DCECECE27271919191919191919191919191919FFFFFFFFFFFFFFFFFFFFFFFF191919191902025757020202020202020202020202020202191919191919191902000000000000B9B9B9B9B90219191919191919191919191927CBCBCBCBCBCBCBCBCBCB27191919]
[191927CDCDCD27CECECECECECECECE8DCECECE27271919191919191919191919191919FFFFFFFFFFFFFFFFFFFFFFFF1919191919191919191919191919191919191919191919191919191919191919020000000002020202020202021919191919FFFF191919191927272727CBCBCBCBCBCB7727191919]
[191927128DCD272727272714CECECECECECECECE272727272727191919191919191919FFFFFFFFFFFFFFFFFFFFFFFF1919191919191919191919191919191919191919191919191919191919191919029393931302020202020202021919191919FFFF191919191919191927CBCBCBCBCBCBCB27191919]
[191927CDCDCD27CECECECE9CCECECECE27128DCE2727272727271919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919029494941702020202020202021919191919FFFF1919191919191919272727272727272727191919]
[191927CD7DCD27CE82CECE9CCECECECECECECECE272727272727272727271919191919FFFFFFFFFFFFFFFFFFFFFFFF191919191919191919191919191919191919191919190101010101010101010101000000002E010101010101191919191919FFFF1919191919191919191919191919191919191919]
[191927272727272727272727CECECECECECECECE2727272727CCCCCCCC27191919191919191919191919191919191919191919190254540101010101010101011919191919010003040500000304050000000000000000000000011919191919FF19191919191919191919191919191919191919191919]
[19191919191919191919192727272727272727272727272727158D8D8D271919191919060606060606021919191919191919191902000000000003040405000119191919190100060606000006070600000000000000001300000119191919191919191919191919191919191919191919191919191919]
[19191919191919191919191919191927272727272727272727CCCCCCCC271919191919060606060606020202020202020202020202000000000006090A0600011919191919010006E706000006E506000000180000000304050001191919191919190C0B0B0B0D19191919020202020202020202191919]
[191919191919191919191919191919272727272727272727272727CCCC2719191919190606060606060202020202020202020202021200000000064040060001191919191901000000000000000000000000000000000608060001191919191919190B0B0B0B0B1919191902BABABABABABABA02191919]
[191919060606060606061919191919272727272727272727272727CCCC27191919191906064141060602020202020202020202020200000000001437370000011919191919010000000000000000000000000000000006E6060001020202020202020B0B4E0B0B0202020202BABABABABABABA02191919]
[191919060606060606061919191919272727CCCCCCCCCC79CC2727CCCC271919191919020200000202020202020202020202020200000000000000000000000119191919190100001600000000000000000000000000000000000000000000000000000000000000000000000000000000BABA02191919]
[19191906060E420E06061919191919272727CCCCCCCCCCCCCC2727CCCC271919191919020000000000020200000000000000000000000000000000030405000119191919190100000000000000000000000000000000000000000000000000000000000000000000000000000000000000BABA02191919]
[19191902000F000F0002191919191927CCCCCC14CCCCCC272727CCCCCC271919191919020000000000020200000000000000000000000000000000060806000119191919190101010101010101000101010100000000001100000000000000000000000000000000000000000000000000000002191919]
[19191902000000000002191919191927CCCCCC8DCCCCCCCCCCCCCCCCCC2719191919190200000000000202B5B5B5B502020202021200000000002C06E60600011919191919010000030404050000013C3C010101010101010101010202020202020202020202020202020202BABABA0000000002191919]
[19191902000000000002191919191927CC27CC8DCCCCCCCCCCCCCCCCCC27191919191902B5B5B5B5B50202B5B5B5B502020202023C3C00150000000000000001191919191901000006090A060000013C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C011919191919191919191902BABABA0000000002191919]
[19191902000000000002191919191927CCCCCC2727272727272799991327191919191902B5B5B5B5B50202B5B5B5B502020202023C3C000000000000000000011919191919010000063E3E060000013C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C011919191919191919191902BABABA0000000002191919]
[19191902000000000002191919191927CCCCCC27CCCCCCCCCCCCCCCCCC27191919191902000000000000000000000002020202020100000000000304050000011919191919010000000000000000013C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C0119191919191919191919020202020000000002191919]
[19191902000000000002191919191927CC7ACC27CCCCCCCCCCCCCCCCCC27191919191902000000000000000000000002020202020100000000000607060000011919191919010000000000000000013C3C3C3C3CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1919191919191919020000000002191919]
[19191902020260020202191919191927272727275E5E27272727272727271919191919020202020202020202020202020202020201000000000006E5060000011919191919010101010101010101013C3C3C3C3CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1919191919191919020000000002191919]
[191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919190100000000000000000000011919191919013C3C3C3C3C3C3C3C3C3C3C3C3C3CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF1919191919191919029595951702191919]
[191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919190101010101010101010101011919191919013C3C3C3C3C3C3C3C3C3C3C3C3C3CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919191919191919020000000002191919]
[191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919013C3C3C3C3C3C3C3C3C3C3C3C3C3CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF191919191902020202020000000002191919]
[19191919191919191919191919272727272727272727272727272727272727272719191919190000005D5D00000019191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191902000014000000000002191919]
[191919191927272727272727272727CDCDCDCDCDCDCD2727CECECE18CECECECE27191919191900000000000000001919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919190202020200008D000000000002191919]
[191919191927CDCDCDCDCDCD272727CD7BCDCD8D8D172727CE7FCE9BCECE80CE2719191919190E000E00000E000E191919191919FFFFFFFFFFFF1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919190200000000008D000000000002191919]
[191919191927CD14CDCDCDCD272727CDCDCDCDCDCDCD2727CECECE9BCECECECE2719191919190F000F00000F000F191919191919FFFFFFFFFFFF19191919190202020202020202020219191919190202020202020202020202020202020202020202020219191902000000000000000000000002191919]
[191919191927CD8DCDCDCDCD27272727CDCDCDCDCDCDCD2727272727272727272719191919193838383838383838191919191919FFFFFFFFFFFF1919191919020002181818180200021919191919020304040404040500000003040500000304050000021919190200000000000000008D8D1702191919]
[191919191927CD8DCDCDCD2727272727272727CDCDCDCDCDCDCD2719191919191919191919190E000E00000E000E191919191919FFFFFFFFFFFF19191919190218028DDF8D8D02180219191919190206060808080606000000060606000006070600000219191902128D8D000000000000000002191919]
[19191919192727CDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCD2719191919191919191919190F000F00000F000F191919191919FFFFFFFFFFFF1919191919028D028D008D00028D0219191919190206060606060606002F0006E706000006E5060000020202020200000000000000BABABABA02191919]
[1919191919192727CDCDCDCDCDCD8D13CDCDCDCDCDCDCDCDCDCD2719191919191919191919190000000000000000191919191919FFFFFFFFFFFF1919191919028D028D000000028D0219191919190206060644060606000000000000000000000000000000000096000000000000BABABABABA02191919]
[19191919191927272727272727272727272727CDCDCDCDCDCDCD2719191919191919191919190000005C5C000000191919191919FFFFFFFFFFFF191919191902000202020000020002191919191902000000000000000000000000001300000000000000000000960000000000BABABABABA0202191919]
[19191919191927CC14CCCC27CDCDCDCDCDCDCD9ACDCDCDCDCDCD2719191919191919191919191919191919191919191919191919FFFFFFFFFFFF19191919190200000E00000E000002191919191902000000000000000000000000000000000000000000000000960000000000BABABABA020219191919]
[1919FF19191927CC8DCCCC27CD7CCDCDCDCDCD9ACDCD2727CDCD271919191919191919191919191919191919191919191919191919191919191919191919190200000F00000F100002191919191902000000000000000000000000000000000000000000000000110000000000BABABA02021919191919]
[1919FF19191927CC8D81CC2727CDCDCDCDCDCD11CDCDCDCDCDCD271919191919191919191919191919191919191919191919191919191919191919191919190200000000000000000219191919190200001600000000000304040501010304050202020202020202020202020202020202191919191919]
[1919FF191919272727272727272727272727272727272727272727191919191919191919191919191919191919191919191919191919191919191919191919020202025A5A0202020219191919190200000000000000000606060600000606060000000219191919191919191919191919191919191919]
[19191919191919191919191919191919191919191919191919191919191919191919192020202020202020202020202020202020202020191919191919191919191919191919191919191919191902000000000000000006E70606180006E7060000000219191919191919191919191919191919191919]
[191919191919191919191919191919191919191919191919191919191919191919191920001400000000200014E000000000002014002019191919191919191919191919191919191919191919190200000000000000000000000000000000000000000219191919191919191919191919191919191919]
[191919191919191919191919191919191919191919191919191919191919191919191920008D00000000200000000000000000208D002019191919191919191919191919191919191919191919190200000000000000000000000000000000000000000219191919191C1C00000000001B191919191919]
[19191919201B000000201B0000000019191919191900001C1C1C1C000019191919191920008D00200000202020202020000000208D002019191919191919191919191919191919191919191919190200000002020202020202020202020200000202020219191919191C1C000000000020191919191919]
[19191919201A201800201A200000001919191919191C1C1C1C1C1C1C1C19191919191920000000200000001400009800000000208D00201919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFF191919190202020202030404050000000000000000000000000219191919190000000000000000191919191919]
[191919192020201F2020202018201B191919191919000000000000000019191919191920000000200000009700001100000000200000201919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFF19191919020000000006090A060000000000000000000000000219191919190000262020260000191919191919]
[19191919000000000000000000001A1919191919191C1C00001C1C1C1C1919191919192000000020202020202020200E20200E000000201919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFF191919190200000000063F3F060000000000000000000000000219191919190000262020260000191919191919]
[1919191900000000000000000000001919191919191C1C00001C1C1C1C1919191919192000000000000000000000000F00000F100000201919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFF191919190200000000000000110000000202020202020202020219191919191E0000000000001E191919191919]
[191919191E1E000000001E1E00001E191919191919121F0000000000001919191919192000000000128D8D0000000000000000000000201919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFF191919190202000000000000000000000219191919191919191919191919191D0000E8E800001D191919191919]
[191919191D1D00E8E8001D1D00001D191919191919202000E8E8000000191919191919202020202020202020202020205B5B20202020201919191919FFFFFFFFFFFFFFFFFFFFFFFFFFFF191919190202020202020202020202020219191919191919191919191919191919191919191919191919191919]
[1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919]
[1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919]
[1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919]
[1919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919191919]


1585
Other Calculators / Re: TI-Concours - last days to subscribe !
« on: March 15, 2013, 11:23:45 am »
If you're planning to do it in asm, space won't be an issue I think.

Woah, I don't think I'll manage that :P

You just need to know 3 things : the uncompressed map width and x/y offsets. Then you can do something like this (can be a lot optimised, though) :

Code: [Select]
counter = 0
for x=0 to screen_width/tile_width
for y=0 to screen_height/tile_height
tile_number = offset_x+x+(offset_y+y)*map_width
while tile_number-compressed_map(counter) > 0 ; substract the current length of same tiles to our tile ID until zero or less
counter+2 ; to get the next length of tiles
end
counter+1 ; to get the tile number
draw_tile(x, y, counter)
end
end

However with chickendude's tip you'll have to check the sign flag first, and if it's on, only increase the counter to 1, unless that's the tile we want (if so, reset it).
Yeah, I figured out that it would look like something like that, and it took me an entire week to code the tilemapper in ASM, hence why I said that I could not manage to code another piece of code with two "for loops" one in another :P
Or there might be a way to get it with only one "for loop" by putting x and y in one number (like a=y*256+x or something).
Or maybe you were not thinking about me making this in ASM but in Axe ? That would work :P

There surely is, but I didn't find any way to do it without modifying the map
Why won't you want to modify it ? That's the only way to optimise it :P
But how do you start a new game ? You have to restore the map, and "the only way" to do that is to have a copy of an untouched map somewhere, so I thought that instead of having 2 different maps, one untouched, the other one being the map for the current game, I'd only deal with one map that never moves.

I think you can still use the same system (each trainer = a tile) if you divide the map into smaller ones, this way you can reuse some tiles for different trainers, and to check who it is just compare with the map ID (you'll have of course to save it with the list of beaten trainer, but it would just take one more byte and will allow you to use less than 127 different tiles).
That could work to optimize the map, but for all the methods, there is to choose between compressing the map and adding code to uncompress it, or saving code with an uncompressed map, and for this method, I feel like keeping track of all maps and get to know which one the player must go to would add more code than it saves space :P

1586
Other Calculators / Re: TI-Concours - last days to subscribe !
« on: March 15, 2013, 08:46:40 am »
You can still read it from the archive, while uncompressing it to ram, no ?
Well the problem is that al the RAM is taken by the executable :P
Except for free RAM areas, but those are used by the executable -.-°

Or even read the tiles to draw or check for events from the compressed archived map on the fly.
Woah, I don't think I'll manage that :P

And I'm sure you can use another method to handle trainers, one where you don't have to assign a specific tile to each trainer.
There surely is, but I didn't find any way to do it without modifying the map.

1587
Other Calculators / Re: TI-Concours - last days to subscribe !
« on: March 15, 2013, 05:42:57 am »
If your maps didn't use more than 127 tiles, then you could use bit 7 to mark that it's just one tile. Normally you would do something like .db 1,tileNumber, which actually adds a byte. I do: .db tileNumber+$80, which is the same as the uncompressed size. That way your RLE-compressed maps will never be larger than the uncompressed versions.
That's pretty clever ! Using the sign flag this way would definitely save a lot of bytes, thanks for the tip :)
Indeed, that is a very smart way of saving space O.O
However, that won't apply for my map since I use more than 127 tiles :-\
Or I could use a special treatment for tiles above 127 since those are quite rare.

Also, I just remember a reason that made me use no compression for my map: I can keep it always archived and still read it.

1588
TI-Nspire / Re: z80 emulator for Nspire
« on: March 15, 2013, 05:33:05 am »
However, I disagree with Hayleia: I don't think that the topic should be renamed (much less moved) until, at the very least, the emulator can run TI's OS and a number of third-party programs.
Yeah, it is true that it is still in early stages. Renaming (but I never mentionned moving the topic, only renaming) the topic could give more motivation to Jacobly but it is true that it could also give hopes to people for something that is not (yet) complete.
So, yeah, the developper chooses according to his need for motivation :P

1589
TI-Nspire / Re: z80 emulator for Nspire
« on: March 15, 2013, 03:12:07 am »
Yes using the 84+ keypad is possible.  I already have a 84+ key-mapping written, but I don't know how to detect the type of keypad if it changes while a program is running.

Downloads:
Clickpad
Touchpad
CX
Ah, you're finally posting in this thread, I can give you another +1 :P

However, I only clicked on this thread because I knew you were working on an emulator, but I guess some people think it is yet another discussion about "when will an emulator come ?", so I think it would be a good idea to change the title into something more appealing, like "Finally a z80 emulator for Nspire !" :P

1590
Other Calculators / Re: TI-Concours - last days to subscribe !
« on: March 14, 2013, 03:45:33 pm »
Yeah, the map is in one block. Why would dividing it in small parts take less space ? And how to use RLE on a map that takes values between 0 and 170 ? :P
Because I believe you've filled the space between maps with 0 just to make sure that when we scroll near the border of a map we don't see another one, no ? Also, you're really using 170 different tiles ? :o I don't remember seeing such a diversity on maps ???
Yeah, it is true that I have a lot of zeroes in fact. But since no part of the map is a perfect rectangle, there would still be some waste even with divisions. And in fact, I even have tiles using numbers up to 229 :P
Each trainer that you have to beat (those who block the road) have an associated number. This way, when you bet them, you don't have to beat them again. Maybe there is a better way to code it but for now, I have a lot of numbers :P

The real problem was that the routine I found (don't remember where) that handles the keyboard was a pain (used groups of keys or I don't know what) :(
That's direct input, which is fairly well explained in a lot of tutorials (for example : http://tift.tuxfamily.org/asmpourlesnuls.html ). It's not that hard to understand, the thing is that the keyboard is divided into parts, and you have to specify it to the keyboard port before reading a key state.
Yeah, it was well explained in the tuto I read, so I managed to get the movement with arrow keys. But my program only used arrow keys, which are all in the same group so it was not hard yet. But I knew that going further into programming would have brought some more difficulties, of course not unbeatable but still :)

Aww man, I just looked around in my ASM folder, reading some old code, and it brought back so many memories, when I was full of hope, thinking about coding Pokemon Topaze in ASM :)
And I just ran that scrolling-map program again, it really works well and all :D
I think I should try ASM again some day, I just need to find a proper routine to handle keys ;)
You still can, just to be able to play it on a TI 76.fr :P

Also, you should try to read other's code, it helps a lot (you can look at mine, but it sure isn't as commented as it should be). And don't hesitate to ask for help here or on french forums, it's always good to help people join the restrained circle of asm z80 programmers :)
Lol, why would I play on a 76.fr when I have a 83+ and a 84+SE ? :P
And I am not sure that reading other's codes would help a lot seeing how hard it already was to understand and debug mine when I made it :P
But yeah, if you know some overcommented code that I could read, that could be useful for me or others :)
And yeah, if I ever try again, I won't forget to ask for help whenever I need it ;D

Pages: 1 ... 104 105 [106] 107 108 ... 239