Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Halifax on October 24, 2007, 11:18:00 am

Title: MapEd
Post by: Halifax on October 24, 2007, 11:18:00 am
Well, low and behold, I have returned to BASIC! :psychedelic:happy0075.gif

Very bored in class today, I started on what is now MapEd. Currently, I am trying to get TI-Connect installed, so there are no screenshots currently.

My first question is, a nub question  <_<dry.gif , how do I optimize:

c1-->
CODE
ec1
If sum(K={92,82,72,93,83,73,94,84,74
c2
ec2

I remember there being a way, but I just can't remember it.
Title: MapEd
Post by: Liazon on October 24, 2007, 11:22:00 am
cool.  and i duno the optimization ^^
Title: MapEd
Post by: vuurrobin on October 24, 2007, 11:53:00 am
for what kind of calc is this?

and max( is faster that sum(  ;)wink.gif
Title: MapEd
Post by: Halifax on October 24, 2007, 12:07:00 pm
Alright, here is a screenshot:

user posted image

Basically this shows off the current features:

* Switching between characters with F1 and F5
* Scrolling vertically by 1
* Scrolling vertically by paging
* UI

That 0 there is just a debugging variable currently.

Also I need to implement my quick buttons where you can associate a character for buttons -9, and choose them much quicker than scrolling through them.

I need to implement the character picking menu also for those who like to actually see the characters

I need to implement horizontal scrolling and paging, and map displaying, etc.

I have one question though. How do you suggest I show the numbers for when you are scrolling horizontally? I would like it to be like the vertical scrolling numbers, but I don't know how to do it.

Any ideas?

@vuurobin: Could you tell me how to use it? As I said, I am just getting back into BASIC, and I forget how to optimize it. Also, to answer your question, this is for the 83(+)(SE), and 84+(SE).
Title: MapEd
Post by: tifreak on October 24, 2007, 01:42:00 pm
If max(K={92,82,72,93,83,73,94,84,74


:Ptongue.gif
Title: MapEd
Post by: DJ Omnimaga on October 24, 2007, 03:12:00 pm
How many map editors there is now? O_Oshocked2.gif Regardless cool stuff, I think this should be a good excercise to get back into BASIC programming and you could finally release that starcraft game you promised for months :Dbiggrin.gif


jk about starcraft -.-blah.gif

I will try it when it comes out  :)smile.gif
Title: MapEd
Post by: Halifax on October 24, 2007, 03:36:00 pm
Yeah actually this is just the start of the toolset that I am making for RPGSK 2. After that, I will begin on my own BASIC RPG with RPGSK 2, and my tools.
Title: MapEd
Post by: DJ Omnimaga on October 24, 2007, 04:15:00 pm
ooh i see, an add on for RPG SK ^^ coolness
Title: MapEd
Post by: vuurrobin on October 25, 2007, 02:32:00 am
yea, it seems that RPGSK 2 is spawning a lot of ascii editors.
Title: MapEd
Post by: DJ Omnimaga on October 25, 2007, 03:56:00 am
reminds me of Zerglings in Starcraft %)rolleyes2.gif
Title: MapEd
Post by: Halifax on October 25, 2007, 01:51:00 pm
Why how many ASCII editors are there? As of now, I only know of 1 other ASCII editor.

Anyways I would like this to be a fully featured, and fast ASCII editor. Any features that anyone can think of? I will be posting a new screenshot of this later on.
Title: MapEd
Post by: simplethinker on October 25, 2007, 04:02:00 pm
There actually aren't that many ASCII editors.  I was thinking the same thing.  It seems like there are a lot of threads about them, but the only ones I could actually find were Vurrobin's, RPGSKII and this one (and you could count my poor attempt if you wanted to).  Weird how we both thought there were a bunch... :???:confus.gif
Title: MapEd
Post by: DJ Omnimaga on October 25, 2007, 05:15:00 pm
i didnt meant this to offend halifax, i was just pointing out. iirc there is vuurobin, tifreak's and this one, but i am saying because they almost all started at once and I wasn't sure about which others were in the works :Ptongue.gif I prbly thought there was more because I saw at least 10 threads about map editors, but maybe it was threads started by the same person either to get help or because he was making another version) I didn't meant to bash any of them, plus it's cool that Omnimaga has its own :Dbiggrin.gif . I think as feature you should add multiple size map support, built in ascii character selection, if you add dual layer support then allow user to save combination of the chars so its easiter to retrieve them afterward
Title: MapEd
Post by: Halifax on October 26, 2007, 04:50:00 am
QuoteBegin-DJ Omnimaga+25 Oct, 2007, 23:15-->
QUOTE (DJ Omnimaga @ 25 Oct, 2007, 23:15)
i didnt meant this to offend halifax, i was just pointing out. iirc there is vuurobin, tifreak's and this one, but i am saying because they almost all started at once and I wasn't sure about which others were in the works :Ptongue.gif I prbly thought there was more because I saw at least 10 threads about map editors, but maybe it was threads started by the same person either to get help or because he was making another version) I didn't meant to bash any of them, plus it's cool that Omnimaga has its own :Dbiggrin.gif . I think as feature you should add multiple size map support, built in ascii character selection, if you add dual layer support then allow user to save combination of the chars so its easiter to retrieve them afterward  

 Noo, it didn't offend me. I was just asking.  :)smile.gif

But yes, today I finally implemented hotkeys! I just need to transfer it over to my computer, and take some screenshots.

ListCompress: 100%

I, also, started, and finished my list compressor and decompressor today! I figured it would be good to compress RPG save data that is held in lists. So now you can hold even more.

Currently it has limitations due to the way it compresses. All numbers in the lists are required to be non-negative integers that do not exceed 999.

Benchmark: List with 999 elements with numbers 1-999
* Compress: ~9 seconds
* Decompress: ~11 seconds
* Starting size: 9003 bytes
* Ending size: 3009 bytes

So basically in only 9 seconds you can get a 67% compression ratio! :w00t:woot.gif

I will be uploading this also, after I take the screenshots.
Title: MapEd
Post by: Halifax on October 26, 2007, 05:27:00 am
Well DJ_Omnimaga I implemented one of the features you requested. Unlimited map sizes:

This screenshot also shows hotkey usage.

user posted image

In this screenshot it shows the byte size, and timings of the compression and decompression

user posted image
Title: MapEd
Post by: DJ Omnimaga on October 26, 2007, 11:54:00 am
ooh nice work! Glad you added multisize maps, and the compressing seems quite good, I assume it is faster with smaller lists, right?
Title: MapEd
Post by: Halifax on October 26, 2007, 12:18:00 pm
Of course. ;)wink.gif

On only about 100 elements it only takes ~1 second.
Title: MapEd
Post by: vuurrobin on October 26, 2007, 12:45:00 pm
IIRC, there are/were 5 editors:

tifreak was creating one to help him with pp, dunno if he got it working or ended up using an other editor.

simplethinker created one, which you can get http://www.unitedti.org/index.php?showtopic=7050&view=findpost&p=113940 (it works, so I am counting it)

http://tifreakware.ath.cx/index.php?showtopic=1050

http://omnimaga.org/index.php?showtopic=1748&st=0

and yours :)smile.gif


it may have something to do with tifreak asking for an editor ;)wink.gif



the list compressor looks great
Title: MapEd
Post by: DJ Omnimaga on October 26, 2007, 12:53:00 pm
well the good thing is that more chances are that everyone's need/preferences will be suited/met because there are different editors
Title: MapEd
Post by: Halifax on October 29, 2007, 02:14:00 pm
Hmm well I tried looking at the RPGSK2 documentation, and tried plugging in my own maps, but I don't get how to setup the variables for the place to put the character when he is coming from the right, left, top, and down.

In the examples there are some crazy numbers for coming from the right like 1025 or something. Can someone explain how to setup the map list to me better? (tifreak)
Title: MapEd
Post by: tifreak on October 29, 2007, 05:02:00 pm
umm, sure.

If you put the map on graphpaper (recommended), it is a matter of counting how many rows, one row above the spot you want it to show up. Take that number, times the number of columns you have. Then add on the line where you want the character to show up and add that to the number. If the character can move to the map segment either up or down, then you have to add 3 additional rows to your number. Any of this making sense?
Title: MapEd
Post by: Halifax on October 30, 2007, 02:30:00 pm
Ah, yeah that makes it a bit clearer. I will try some graph paper.