Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: vuurrobin on September 14, 2007, 12:27:00 pm

Title: ASCII editor
Post by: vuurrobin on September 14, 2007, 12:27:00 pm
I have been working on a ASCII editor that allows you to edit ASCII maps. with this, you can easly create single and dubble layered maps usable with your programs.

user posted image

user posted image

cedit will edit single layered maps and cedit2 will edit dubble layered maps. getchar allowes you to get a character of your choice and is needed for the map editors.

the controls are easy, when you start one of the editors you will be asked if you want to start a new map or not. entering 0 wil create a new map and anything else will use string1 as map if it is the right size.
you move with the arrows, [2nd] will place the selected character on the map (or select the character in getchar) and [alpha] will open getchar and flip trough the pages of getchar.
[clear] will close getchar without choosing a character or quit the map editor.
in cedit2, [Y=] will flip from layer 1 to layer 2 to both layers and then back to layer 1.

when quiting the map editor, the map will be stored to string1 and ans, and when quiting getchar, the character chosen will be in string2 and ans.


http://www.unitedti.org/index.php?act=Attach&type=post&id=1967


future opdates may include editing both layers at the same time and/or using celtic2/3 to create a file with multiple maps so you don't have to recall the string in you program over and over.
Title: ASCII editor
Post by: DJ Omnimaga on September 14, 2007, 12:36:00 pm
ooh nice! It reminds me Dragon__Lance map editor (on this site avaliable for download) but it didn't had dual layer ascii, I'm glad someone did it! It may be useful if I need to figure out which ascii would be the best if i ever remake one of my old games
Title: ASCII editor
Post by: trevmeister66 on September 14, 2007, 03:03:00 pm
wow, very nice. im going to use this for my next project :)smile.gif  Nice work!
Title: ASCII editor
Post by: kalan_vod on September 14, 2007, 03:22:00 pm
QuoteBegin-DJ Omnimaga+14 Sep, 2007, 18:36-->
QUOTE (DJ Omnimaga @ 14 Sep, 2007, 18:36)
ooh nice! It reminds me Dragon__Lance map editor (on this site avaliable for download) but it didn't had dual layer ascii, I'm glad someone did it! It may be useful if I need to figure out which ascii would be the best if i ever remake one of my old games  

 You could make a hybrid, as in some of it uses one layer and the other two...but you can get better results with mixing, as it adds a little more zaz :)smile.gif
Title: ASCII editor
Post by: DJ Omnimaga on September 14, 2007, 04:33:00 pm
true, radical pi managed to draw a knight with sword and shield using dual layer ascii
Title: ASCII editor
Post by: Harrierfalcon on September 15, 2007, 03:46:00 am
This may be useful for a project I'm working on...is it limited to 8*16 or can it be weird sizes too?  (8*12)
Title: ASCII editor
Post by: Radical Pi on September 15, 2007, 08:12:00 am
Looks good; I can't believe I didn't think to do something like that for WoM. Maybe I will now...

One suggestion though, could you include some kind of option for 'favorite character combo'? Scrolling through all the characters every time might get old.
Title: ASCII editor
Post by: vuurrobin on September 16, 2007, 10:55:00 pm
thanks for all the positive reactions  :Dbiggrin.gif

QuoteBegin-Harrierfalcon+15 Sep, 2007, 9:46-->
QUOTE (Harrierfalcon @ 15 Sep, 2007, 9:46)
This may be useful for a project I'm working on...is it limited to 8*16 or can it be weird sizes too?
Title: ASCII editor
Post by: tifreak on September 17, 2007, 03:05:00 am
Hehe, I hope the programs don't overly confuse ya. :Ptongue.gif

Great work on this, btw. I have contemplated making an ascii map editor to assist in this. I actually have some very good ideas on implementing what I want...
Title: ASCII editor
Post by: DJ Omnimaga on September 17, 2007, 03:55:00 am
wow nice RPGSK 2 is out! and I hope to see the ASCII map editor soon vuurobin :)smile.gif
Title: ASCII editor
Post by: dinhotheone on September 17, 2007, 01:56:00 pm
this may seem nub, and i think i asked this on another thread but i cant for the life of me find it but what is dual layer ascii graphics. do you like outout em both to the screen at the same time or real close after the other?
Title: ASCII editor
Post by: Xphoenix on September 17, 2007, 02:59:00 pm
It needs to be on the graph screen:
You store a picture of the first layer, draw the second layer, and recall the first.
Title: ASCII editor
Post by: DJ Omnimaga on September 18, 2007, 04:37:00 am
on top of that it is very fast. Metroid Pi draw the screen in one second on my SE
Title: ASCII editor
Post by: dinhotheone on September 18, 2007, 05:35:00 am
ah, that makes more sense, but it looks like this program is editing homescreen size maps to me.
Title: ASCII editor
Post by: DJ Omnimaga on September 18, 2007, 06:36:00 am
does it allow changing the size though?
Title: ASCII editor
Post by: Harrierfalcon on September 18, 2007, 10:44:00 am
QuoteBegin-dinhotheone+18 Sep, 2007, 11:35-->
QUOTE (dinhotheone @ 18 Sep, 2007, 11:35)
ah, that makes more sense, but it looks like this program is editing homescreen size maps to me.  

 It is, but it since Dual layer ASCII still requires two layers of ASCII/Homescreen graphics, this would work.
Title: ASCII editor
Post by: vuurrobin on October 10, 2007, 05:12:00 am
I have chanced the dual layer editor so you can create combo's of ascii tokens, save them in a string and use them to edit your map, without having to search for the tokens or flipping the pages.

user posted image

I will probably chance the list displayer so you can have more combo's and so it will load faster. after that I'll work on editing maps with a size other than 8*16

the controls are self explainatory (I hope), it only uses [2nd] [alpha] [y=] [clear] and the arrows.

http://www.unitedti.org/index.php?act=Attach&type=post&id=1967
Title: ASCII editor
Post by: DJ Omnimaga on October 10, 2007, 06:27:00 am
you spelled changes as chances x.x don't worry though I got what you mean ^^

Awesome job on this program vuurobin! Now I have too many projects ideas because of this program X_X I'm glad you added saving combinations though it will make things much easier. This sure be worth adding to Omnimaga Calculator RPGs and Programming Tools!
Title: ASCII editor
Post by: vuurrobin on October 23, 2007, 01:46:00 am
thanks  :)smile.gif


I have chansed the combolist so it loads faster and has more room for combo's (64 instead of 40). unfortunatly, you will have to convert the string with a program I created if you have a previeus combo string.

I have also chansed the editors so you can create maps other than 8*16. the single layer map can create maps from 1*1 to whatever memory allows, and the duall layer map allows sizes from 1*1 to 8*16.

the programs:

http://www.unitedti.org/index.php?act=Attach&type=post&id=1967


and the combostring convertor:

http://www.unitedti.org/index.php?act=Attach&type=post&id=1964


I will create a menu for it and put everything in 1 program so people don't have those subroutines. I think I will drop the "put multiple maps in program" function, since people uses different variables for choosing the right map and they may want to include some stuff like a list with the monsers that can be found there.
Title: ASCII editor
Post by: tifreak on October 23, 2007, 02:51:00 am
So, with the single layer, I can create 19x19 maps?  
Title: ASCII editor
Post by: vuurrobin on October 23, 2007, 02:55:00 am
yes, 19*19, 8*75, 100*100, it is all possible (although the last one will probably give you an error memory :Ptongue.gif )
Title: ASCII editor
Post by: tifreak on October 23, 2007, 02:59:00 am
I will check it out tonight. If it works, you are my hero :Dbiggrin.gif
Title: ASCII editor
Post by: DJ Omnimaga on October 23, 2007, 03:53:00 am
Phew I was getting worried you ditched this because there wasn't much progress anymore. Glad you finished it :)smile.gif

Hopefully it may help me if I decide to make a new ASCII RPG :)smile.gif

I will prbly add to Calculator RPG and programming tools under TI Programming Tools as soon  as I have time :)smile.gif
Title: ASCII editor
Post by: vuurrobin on October 23, 2007, 09:22:00 am
nah, I don't ditch projects that fast, I am just a slow coder and sometimes wait to long with responding.

and it isn't finished yet, I am currently making a menu, putting it all in 1 program, and then creating a readme. after that, you can upload it  :Dbiggrin.gif


and tifreak8x, if there are any problems, let me know, ok ;)wink.gif


Title: ASCII editor
Post by: tifreak on October 23, 2007, 02:20:00 pm
yeah, found one.

I started it up, put 19 and 19, then 1. It loaded a map that I had just worked on (creepy o.oblink.gif:Ptongue.gif ) and then I pressed Alpha. It tooke me to the chars. I pressed alpha to scroll through them all, and then when I was on the begining again, I pressed clear, got an error:data type.

AEDIT:
If K=31
Then
prgmZ1
Delvar KAns->Str2

The cursor stopped there, you might want to check into that.
Title: ASCII editor
Post by: vuurrobin on October 24, 2007, 01:53:00 am
hmm, seems I forgot to check if the user selected a char or not. easy to fix  :)smile.gif


just chance

prgmZ1
Delvar KAns->Str2

into

prgmZ1
if K=21
Ans->Str2
Delvar K


I'll fix it and then upload it.
Title: ASCII editor
Post by: tifreak on October 24, 2007, 02:41:00 am
All right, will see about updating my program with that. :)smile.gif Just thought you would like to know about it.
Title: ASCII editor
Post by: vuurrobin on October 24, 2007, 03:08:00 am
yea thanks, it's better that I fix any bugs now, instead of after I upload it to the archives :Ptongue.gif
Title: ASCII editor
Post by: DJ Omnimaga on October 24, 2007, 03:43:00 am
doN,t worry, it take so long for ticalc.org to add stuff to their archive that version 6.0 will be out before its even added :Ptongue.gif
Title: ASCII editor
Post by: vuurrobin on October 24, 2007, 04:10:00 am
 o.oblink.gif I do hope it doesn't go further than 1.0, AFAIK, there isn't anything to add.


anyway, i have uploaded the fixed version  :)smile.gif
I have also created a menu for it and put everything in one program, so all that is left is making a readme I guess.
Title: ASCII editor
Post by: DJ Omnimaga on October 24, 2007, 04:54:00 am
cool I'll check out asap and add to omnimaga (RPG) programming tools archives