Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Yeong on January 04, 2012, 06:24:41 pm

Title: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 04, 2012, 06:24:41 pm
Well, this is my 2012's goal, and I'll try to finish it before 12/31 (or 12/21 O.O)
I think I can make this public now. :D
So, yes. I'm porting it.

Right now, I made a installer/uninstaller with Celtic 3 so I have a easy time to scrap it every time I screw up with xlib-fying. (This is a first phase of my porting so I have a easier/faster time beating it over and over again.)
As I (kinda) discussed with DJ, I'm planning to add the optional dungeon that he had in mind along with my own stuff.

Well, here's my progress on everything so far:

-Porting: Done with tilemapping and finishing off menu engine with bug fixing. Started battle engine.

-Playthrough: Save File Crashed D:

Sorry, no screenshot available.
Title: Re: [Grammer] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 04, 2012, 06:41:47 pm
Once you made the xLIB version you should actually post it in the dl section too, in case people wanted to play it early with faster speed. It would be pretty nice.

As for the optional dungeon I did not think about it when I made the game, just when you talked to me about adding new maps. The other side quest I talked about (early final boss fight) was something I planned, though, but it never made it into the final product.

Anyway it would be great to see this, since the original game was really slow and I lost motivation on the Omnicalc port back in 2004. D:
Title: Re: [Grammer] The Reign of Legends 3 Port
Post by: Yeong on January 04, 2012, 06:43:31 pm
I should. :D
The reason that I decided to port it to xlib (or celtic 3, kinda) is that the tilemapping routine was still slow even though I optimized it to around 2/3 of the size X.x
Title: Re: [Grammer] The Reign of Legends 3 Port
Post by: Yeong on January 04, 2012, 06:52:45 pm
You know what? I think I'll post that installer/deleter right now. :D

Step 1: Download ROL3 and put the groups into your calc. link here: http://www.omnimaga.org/index.php?action=downloads;sa=downfile&id=208
Step 2: Download grpROL3H and prgmA and prgmAAAA.
Step 3: extract grpROL3H and archive all the pictures.
Step 4: Run prgmA for auto install!(Need DCS7 or Celtic 3)
Step 5: If you want to delete ROL3, run prgmAAAA(Also need DCS7 or Celtic 3)
Step 6: unarchive prgmR
Title: Re: [Grammer] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 04, 2012, 06:54:27 pm
Wait how did you make the codex routine much smaller? O.O

Anyway gonna try the installer. :P
Title: Re: [Grammer] The Reign of Legends 3 Port
Post by: Yeong on January 04, 2012, 06:55:34 pm
It's not codex routine. It's celtic 3 stuffs. XD
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 04, 2012, 07:18:20 pm
Oh ok, that explains it then. :P

EDIT Yeong suggestion: If possible, could you change the controls so we can use 2nd to confirm and alpha to cancel instead of the others or allow both? It would be nice because back then I did not think that the standard for calc gaming was 2nd and ALPHA.
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: TIfanx1999 on January 04, 2012, 08:56:29 pm
Nice to see this getting an update. I hope the conversion goes smoothly for ya Yeong. =)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 04, 2012, 09:12:28 pm
Wow, that would be amazing if you could finish this this year! If you need any help, I do a lot of Celtic 3 and Grammer coding and I have at least partially made an RPG in Celtic3 (there were no goals, just monster fighting, leveling up, and whatnot). I hope this works out and I know you are a great programmer so I am sure you can do this!
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 04, 2012, 09:13:16 pm
Btw does grammer have any limitation for program size?
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 04, 2012, 09:31:26 pm
As long as it can fit in RAM, it is fine :)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 04, 2012, 09:38:31 pm
What about archive, though? Can't grammer copy archived files to RAM or delete them? If not, then Yeong's project is pretty much screwed :( (ROL3 is about 120 KB large)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 04, 2012, 09:41:38 pm
Yes, it can copy programs and such from archive to RAM and it can delete, archive, unarchive and other such handling as well. In fact, yeong requested a modification to the CopyProg command that I managed to add. That should be very helpful for him and it should let him store a lot of data to vars (such as any sprite and tilemaps).
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 04, 2012, 10:31:33 pm
Oh ok phew I was worried. X.x Glad this was implemented.
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 05, 2012, 07:09:05 am
OK. now the tilemap routine works compeletely, and I'm working on the "sidebar" right now. I'm glad that I haven't made any sprite routine yet because I was waiting for xeda's update(which it came out earlier than I expected XD)
I think I can post the  screenshot soon. O.O

What about archive, though? Can't grammer copy archived files to RAM or delete them? If not, then Yeong's project is pretty much screwed :( (ROL3 is about 120 KB large)

If Grammer couldn't do this, I would never thought of porting this to Grammer O.O
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: TIfanx1999 on January 05, 2012, 08:02:06 am
Hooray for progress! \o/ Looking forward to seeing screenies Yeong. =)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 05, 2012, 10:38:59 am
Awesome, Yeong! And are you waiting for the smooth scrolling tilemap engine, too? I think I will try to attack that today, as well !
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 05, 2012, 11:16:28 am
Awesome, Yeong! And are you waiting for the smooth scrolling tilemap engine, too? I think I will try to attack that today, as well !
:D
But I don't think I'll use that for ROL3 port though. D: (it gets complicated)
But that's definitely something worth messing with. XD

Also, I got the Lekens moving around XD
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 05, 2012, 01:12:21 pm
The way ROL3 is done, smooth scrolling would be possible, but you would need to make sure that you change how maps are stored to make sure we don't see maps from other dungeons while walking around on the side of others.

I can't wait for a screenshot. I wonder how much faster than the original will it run...
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 05, 2012, 05:32:46 pm
Screenshot as I promised.

It's Grammer! XD
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 05, 2012, 06:21:49 pm
Aw, you didn't use a bigger map? The tilemap routine will easily handle things like 64x64 tiles. If you want, I can easily port it to the tilemap and walking routine and everything that I have for Samocal. It even has a built in handler for talking to objects, saving the map location, scrolling, and other things. Also, I can try to make a tilemap routine that draws a map of a given size on the screen (so you can have an HUD). Otherwise, I came up with a technique for making a beautiful looking options menu. It will pop up from the bottom, smoothly :)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 05, 2012, 06:25:41 pm
That's the demo map. That was just to test the sprite thingy working. I haven't made the bigger map yet. Also, I kinda want to keep it as original as possible. XD
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 05, 2012, 07:43:58 pm
I'm posting the code here just in case (for backup, I guess XD)
If anyone's interested, go ahead and see. :)

http://pastebin.com/6aaDNQdA - prgmATEST
http://pastebin.com/iqbrkVTU - prgmRR01
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: TIfanx1999 on January 05, 2012, 09:24:20 pm
Looks really nice Yeong! =)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 06, 2012, 12:57:49 am
Looks very fast Yeong. By the way if you no longer use pxl-test for dungeon collision detection, you can get rid of the minimap area because it will be useless, but if you decide to keep it, you should make the world map and villages consistent by showing one for them too.
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 06, 2012, 09:31:47 am
Hey yeong, I just thought of something... a custom font for ROL3? How does that sound? I can try to put together an editor for the 4x6, but that would be a pain since I use nibbles to cut the font size in half...
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Nick on January 06, 2012, 09:35:37 am
looks very good, but maybe you could change the sprites a little, because the screen looks quite full of black when looking at it, maybe some more simple sprites?
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: TIfanx1999 on January 06, 2012, 09:51:44 am
@Nick: I don't know if he has any intention of creating his own sprites, but these are the ones DJ used in the original game. =)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 06, 2012, 07:27:25 pm
Now I'm about half way of putting all the map into appvar.
I think I'll finish this by Sunday and resume coding. :D
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 06, 2012, 09:50:06 pm
Wow, awesome. If you can manage that, that would be amazing! The screenies would be lovely, too o.o How soon do you think the whole program will be finished? (weeks, months, years?) It seems like you are going pretty strong right now.
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 06, 2012, 10:17:40 pm
If this progresses like now, (a lot! XD)
Maybe before March. :D (or early February)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: TIfanx1999 on January 07, 2012, 09:39:56 am
Now I'm about half way of putting all the map into appvar.
I think I'll finish this by Sunday and resume coding. :D
O.O Wow, you're working fast!
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 07, 2012, 09:47:56 am
o.o I find it quite believable... yeong is developing a reputation for being able to code quickly and with quality.
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Sorunome on January 07, 2012, 09:50:21 am
I just picked this up after my skiing holiday, and it's unbelievable! Great job!
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 07, 2012, 11:01:45 pm
Now I'm about half way of putting all the map into appvar.
I think I'll finish this by Sunday and resume coding. :D
O.O Wow, you're working fast!
Hehe. I am working on this until 3 AM O.O
Now I got almost all dungeons done (except for 2 long-maps), and I'm working on the town now. :D

o.o I find it quite believable... yeong is developing a reputation for being able to code quickly and with quality.
Do I? :D

I just picked this up after my skiing holiday, and it's unbelievable! Great job!
Of course. It's Grammer XD

Also, after I'm done, I think I'll design the optional dungeon (This will be huge, taking an entire appvar O.O) and start coding.
When I get the battle engine done, I think I can release closed beta (for people who already beat the original game.)

Also, question for people:

For the scrolling purpose, I have 2 options for certain map: split to 2 scrollable maps, or add about 200 bytes more on map and make it scrollable as whole. Which one should I do?
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 08, 2012, 12:00:13 am
If it looks good enough, you can probably do 2 scrollable maps to save memory. I think it will still look good. It will just look like you are transferring to a new section, right?
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: TIfanx1999 on January 08, 2012, 07:58:05 am
Either is fine, but i think it would be nicer if it were scrollable.
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Sorunome on January 08, 2012, 09:11:36 am
200 bytes isn't that much, so i'd say go for a full scrollable map! :)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 08, 2012, 01:41:55 pm
Update so far: Xeda's upgrade made this so much easier :D
So I got the scrolling tilemap work. Now I have to put Lekens in the map... >:D
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 08, 2012, 07:45:15 pm
Is there anything specific I should work on now that will help your port?
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 09, 2012, 06:01:40 pm
Screenie. This means that I got the scrolling map working. :D
Also, it's 6mhz mode :D
(http://img.removedfromgame.com/imgs/mapscroll_test.gif)

Next in list: menu engine.

Is there anything specific I should work on now that will help your port?
Actually, I have a questions.
First, when it copies the portion of the appvar, does it copy entire appvars into RAM, copy portion, and deletes it?
Also, is there a way to save front buffer to back buffer? It will be nice. :D
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 09, 2012, 07:42:30 pm
I thought it was coming out yesterday??? O.O

J/k looks great, but at this speed I think you could almost make it so it scrolls by 4 pixel chunks (unless grammer only draws aligned maps?) or slow it down a bit. :P Also one of the wall seemed broken at the beginning of the screenshot.

Also maybe get rid of the right HUD since you got scrolling? Just fill blank spaces with more trees or walls if there are narrow maps
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 09, 2012, 08:43:51 pm
I thought it was coming out yesterday??? O.O

W00t? O.O

J/k looks great, but at this speed I think you could almost make it so it scrolls by 4 pixel chunks (unless grammer only draws aligned maps?) or slow it down a bit. :P Also one of the wall seemed broken at the beginning of the screenshot.

Grammer only draws aligned maps so far.

Also maybe get rid of the right HUD since you got scrolling? Just fill blank spaces with more trees or walls if there are narrow maps

I put it there so I could keep it close to original. Also, I already got the map done with 10x8 format XP
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 09, 2012, 09:39:51 pm
Ah ok I see. I thought the minimap might be useless now though x.x
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: ztrumpet on January 09, 2012, 10:01:43 pm
That looks great, Yeong.  This is going to be a cool game/port.
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 09, 2012, 11:51:24 pm
Holy, wow that is great! o.o
First, when it copies the portion of the appvar, does it copy entire appvars into RAM, copy portion, and deletes it?
When you copy a portion, it only copies that portion. It doesn't copy the whole thing and delete portions.
Also, is there a way to save front buffer to back buffer? It will be nice. :D
You will specifically want Fill(8,b. You can either create your own 768-byte buffer (in an appvar) or you can use 9872h if you aren't going to use the default particle buffer. Also, using those Fill( commands, you can use logic to combine two buffers on the screen. For example, you can use OR logic as well as AND logic.

Also, Yeong, I think I am going to work on the next tilemap option as one to draw to a portion of the screen. This way, an HUD is more easily done(you won't have to redraw it every time you move).
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: TIfanx1999 on January 10, 2012, 06:55:46 am
Screenie. This means that I got the scrolling map working. :D
Also, it's 6mhz mode :D
(http://img.removedfromgame.com/imgs/mapscroll_test.gif)

Next in list: menu engine.

Is there anything specific I should work on now that will help your port?
Actually, I have a questions.
First, when it copies the portion of the appvar, does it copy entire appvars into RAM, copy portion, and deletes it?
Also, is there a way to save front buffer to back buffer? It will be nice. :D

This looks fantastic Yeong! I really love the speed too! :D
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Sorunome on January 10, 2012, 11:38:45 am
That is just....totally awesome! O.O
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 10, 2012, 12:47:38 pm
And I would also point out that the HUD is almost certainly being redrawn every time the character moves o.o I am working on a routine that will draw tilemaps to a section of the screen, so if he uses that, he won't have to redraw every time. However, that will only speed it up more. I think yeong may need something in to add a delay...
Xeda112358 has an idea...
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 10, 2012, 06:34:36 pm
And I would also point out that the HUD is almost certainly being redrawn every time the character moves o.o I am working on a routine that will draw tilemaps to a section of the screen, so if he uses that, he won't have to redraw every time. However, that will only speed it up more. I think yeong may need something in to add a delay...
Xeda112358 has an idea...
And the idea is? :D/me can't wait
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 10, 2012, 06:38:37 pm
Well, I am talking to Runer about it right now... Grayscale? I posted an example of a grayscale tilemapper before and it works quickly. Also, I think I might have made the tilemapper faster >.>
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 12, 2012, 05:40:24 pm
Progress so far:
Nothing much, actually. D:
Currently, I'm messing with Fill( method and Disp method.
If I get what I want to work, the menu will be done soon. :D
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 12, 2012, 06:12:28 pm
Well good luck with whatever you are trying to do. I hope you don't have too much troubles coding this thing. X.x
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 12, 2012, 06:27:21 pm
If it is something I can help with feel free to PM me or something.
/me wonders if yeong has looked at the new grayscale tilemap commands yet >.> :D
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 12, 2012, 06:28:22 pm
If it is something I can help with feel free to PM me or something.
/me wonders if yeong has looked at the new grayscale tilemap commands yet >.> :D
I don't have a linking cable with me right now D:
I'll try that soon, but not in this game because I think I have to rewrite my tilemap/walking routine if I switch to greyscale map D:
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 12, 2012, 06:31:26 pm
Yeah, probably XD/me has decided not to change conj(', by the way, but conj( I will probably change

EDIT:
*cough*
:P
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 16, 2012, 08:10:07 pm
To DJ_O: Can you tell me these things?

-How does attack formulated?
-Orb Damage?
-Defence?
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 17, 2012, 09:33:21 pm
Progress so far: got the menu load from game screen, but weird glitch when go back to game screen D: Better fix it XP
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 17, 2012, 09:43:56 pm
Hopefully you can connect your computer to your calc soon, that way we can take a look at what's buggy.
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 17, 2012, 10:01:34 pm
To DJ_O: Can you tell me these things?

-How does attack formulated?
-Orb Damage?
-Defence?
That would be too much work considering I haven't looked at the code for 8 years :/

You will need to open SourceCoder and check prgmRA for the formulas. Note that enemy versions of formulas are different if I remember, so for them you need to check prgmRE. Maybe they are stored inside magic animation programs, but I could be wrong.
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 17, 2012, 10:09:30 pm
To DJ_O: Can you tell me these things?

-How does attack formulated?
-Orb Damage?
-Defence?
That would be too much work considering I haven't looked at the code for 8 years :/

You will need to open SourceCoder and check prgmRA for the formulas. Note that enemy versions of formulas are different if I remember, so for them you need to check prgmRE. Maybe they are stored inside magic animation programs, but I could be wrong.
No need for sourcecoder because the program automatically gets "unlocked" when I use my installing program >:D
I'll look into it. ;)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: DJ Omnimaga on January 17, 2012, 10:48:22 pm
Oh I meant due to the fact it's rather hard to find the formulas via the prgm editor it seems x.x (I tried)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 18, 2012, 06:06:44 pm
Please do not download these files.
EDIT: Feel free to download. You can only walk or bring up menu(which doesn't work yet)
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 18, 2012, 06:08:16 pm
okay .__. What are they?
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 18, 2012, 06:16:58 pm
Actually, xeda, you can. These are the program that has that "glitch" in them .__.
you can try it.
Archive everything except ROL3Data, and run prgmAT.
2nd is to interact and ALPHA is bringing up menu (just a screen for now)
i fixed it so it works in the first map, but it doesn't work on forest map D:
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 18, 2012, 06:28:53 pm
Hmm, well the menu was working for me... I got to the forest and I pressed Alpha, the menu came up, then I put it away and kept walking around. Also, nice job! The maps are working nicely and it moving isn't too fast.

EDIT: Maybe I just uploaded a bad version of Grammer :/
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 18, 2012, 06:29:52 pm
wait. it worked fine for you? O.o/me wonder what the heck is wrong with his calc
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 18, 2012, 06:31:05 pm
Maybe I uploaded a bad version of Grammer? I have had similar issues and I fix them and forget to mention them or that I fixed them :/
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Yeong on January 18, 2012, 06:31:53 pm
Hmm...
I'll upgrade to new version when I get home XD
Also, optimization tip? :D
Title: Re: [Grammer(xlib first)] The Reign of Legends 3 Port
Post by: Xeda112358 on January 18, 2012, 06:47:05 pm
There isn't much that I can see at a glance except for a few end parentheses :) Nice job!
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 22, 2012, 01:53:42 pm
Progress so far: still not much :P (ndless is a great distraction.)
But I do have a menu almost done. :D
Also for xeda: does if statement needs "End" ?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 22, 2012, 03:57:08 pm
Only If...Then...End. A regular If statement does not require an End.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 22, 2012, 08:56:08 pm
Hmm strange...
There are some code that somehow needs extra End D:
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 22, 2012, 10:27:19 pm
Hmm, odd. Might I see the code in question?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 22, 2012, 11:59:08 pm
Weird, is it like in TASM where you had to add an extra linebreak at the end of the program code?

Also I think I'll try the files above O.O
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 23, 2012, 06:08:05 pm
This is the new version of prgmAR02. it contains the status screen and incomplete orbs stuff.

The code in question is also in here, too. D:

EDIT: Somebody make the screenshot for me? :D
Also,  you need the files before(AR01, etc)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 23, 2012, 07:23:40 pm
Ok here's the menu screenshot :D

However a few suggestions:

-Cancelling key is inconsistent: If you use ALPHA to cancel, you should never have to switch back and forth between CLEAR and ALPHA afterward, or vice-versa.
-Looping through characters in the Status menu (going back from char 3 to 1 or vice-versa)
-It would be nice if the ORBs menu remained like it used to be with the list of orbs, because I always found it easier to see what magic I needed to buy or could use for each character, unlike when I can only see one single orb at a time.

Also the levels HP values aren't the same ???, it should be like this IIRC:

Lekens
LV1: 297 HP
LV2: 396 HP
LV3: 495 HP

Zanik
LV1: 199 HP
LV2: 299 HP
LV3: 399 HP

Nomesi
LV1: 101 HP
LV2: 202 HP
LV3: 303 HP

And so on.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 23, 2012, 07:30:59 pm
Ok here's the menu screenshot :D

However a few suggestions:

-Cancelling key is inconsistent: If you use ALPHA to cancel, you should never have to switch back and forth between CLEAR and ALPHA afterward, or vice-versa.
-Looping through characters in the Status menu (going back from char 3 to 1 or vice-versa)
-It would be nice if the ORBs menu remained like it used to be with the list of orbs, because I always found it easier to see what magic I needed to buy or could use for each character, unlike when I can only see one single orb at a time.
1. I'll be doing that after menu engine is complete. Right now, I'm more focused on getting things done.
2. That too. (not looping easier to code, so I'll get the engine done and change stuff.)
3. I was going to include people who can use it (implemented), description of the orb, and able to use (going to be implemented) if it's healing orb.

Also, the shop will be remained same as it is. I'll give you the program later with the finished orb menu as I planned and you can tell me what you think about it. :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 23, 2012, 07:35:08 pm
Ah ok, I just kinda prefer seeing a list of orbs we have (and that we can use for the character), so I know if I need to buy something or not.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 23, 2012, 07:52:28 pm
Ah ok, I just kinda prefer seeing a list of orbs we have (and that we can use for the character), so I know if I need to buy something or not.
Maybe I can make the toggle switch that toggles detail view/list view? :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 23, 2012, 09:19:32 pm
All I can say so far is o.o
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 23, 2012, 09:24:19 pm
Ah ok, I just kinda prefer seeing a list of orbs we have (and that we can use for the character), so I know if I need to buy something or not.
Maybe I can make the toggle switch that toggles detail view/list view? :D
Yeah and make it show a list by default (changeable in options menu?)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 23, 2012, 09:24:54 pm
Ah ok, I just kinda prefer seeing a list of orbs we have (and that we can use for the character), so I know if I need to buy something or not.
Maybe I can make the toggle switch that toggles detail view/list view? :D
Yeah and make it show a list by default (changeable in options menu?)
I think I'll make MODE switch the view. :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 23, 2012, 09:26:52 pm
Ah ok, but make sure it displays how to switch through that place :P
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 23, 2012, 09:27:22 pm
of course. :P

BTW, that "genesys" is not misspelled. XD
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 23, 2012, 09:33:20 pm
I do agree with DJ that keys should be consistent. A quit button should be a universal quit button and a select button should generally be a select button. It makes it a lot easier for the gamer :) Because keys are tested so fast in Grammer/Axe, I typically add code to prevent registering twice. Pretty much, if you have something like Z' available and the last key press is kept in one variable, you can do something like this:
Code: [Select]
Repeat A*!A=Z'      ;change the = to not equals and remove the !
A→Z'
getKey→A
End
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 23, 2012, 09:34:07 pm
I tried not to use up variable for getKey, but I guess I have no other better choice :)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 23, 2012, 09:35:08 pm
Ah, well I am sure their are other tricks available if you can think them up :/ You do have 57 vars to use, though :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 23, 2012, 09:43:41 pm
of course. :P

BTW, that "genesys" is not misspelled. XD
Genesys ????
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 23, 2012, 09:48:15 pm
yes.
It kinda looked cool XD
And I was pretty sure there was a magic called Genesis somewhere out here, so I tweaked the name a bit.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 23, 2012, 10:02:11 pm
Oh ok in the game there wasn't actually. At least not in my version <.< >.>
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 23, 2012, 10:03:55 pm
well, those 2 magics (ultima and genesys) are the magics that we previously discussed. :D
Don't worry. You won't be able to get them until 2nd play. >:D
Also, I'm planning to tweak a storyline a bit for New Game+. Is that OK for you?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 23, 2012, 10:04:55 pm
Don't add Ultima though. The goal of ROL series was to avoid using Final Fantasy proprietary ultimate magic names :(. Maybe "Omnimaga" or something?

As for storyline tweaking I guess it's fine though. Maybe add bonus stuff?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 23, 2012, 10:06:43 pm
I never knew that Ultima existed in FF O.o
Omnimaga, it is then. :D

Also for New Game+, I could do Lekens going back in time. Maybe I could add a extra storyline related to that dark moon stuff that you never mentioned through whole game until very later? (I think)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 23, 2012, 10:12:20 pm
Actually the Dark Moon was supposed to be the sequel to ROL3 which never happened. It was supposed to be called The Reign of Legends 3-II: Theola Shire. I still have some early planning stages papers about it but not much was done. Maybe later we could try teaming up so I can design the story and stuff a bit (maybe in the same way Zera designed E:SoR).  As for going back in time do you mean 2200 AD after reaching 2235 AD?

Or maybe a mode where you go in 2201 AD instead of 2235 AD and you lose 1 HP every step anywhere? O.O
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 23, 2012, 10:13:22 pm
lol for the -1 HP :P

Also, deving the storyline will be a good idea. :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 23, 2012, 10:20:02 pm
Well after the apocalypse scene, there are radiations due to the explosion. But yeah what I think is that in New Game +, the deleted scenes/quests should be brought back and there should be a way to return in 2200 AD or something after the apocalypse, but it would be some sort of slightly modified 2200 AD.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 26, 2012, 06:22:35 pm
OK. Here's the good news and bad news

Good news: Menu is 99% done :D
Bad news: new bug is introduced. D: I think there is something wrong with saving stuff. I'll post the code tomorrow so Xeda can look at it.  :) (possibly)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 26, 2012, 06:32:43 pm
Okay :) I might be busy, but I will try to get a look at it :)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 26, 2012, 07:38:47 pm
Glad to hear the menu is 99% done. By the way are you still implementing custom window borders? I remember I think you were talking about doing it.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 26, 2012, 07:41:17 pm
Glad to hear the menu is 99% done. By the way are you still implementing custom window borders? I remember I think you were talking about doing it.
Well, I kinda decided not to because that one was wiped out D: maybe I'll add that later if battle engine doesn't get too big XD
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 26, 2012, 07:49:09 pm
Ah ok. In The Reign of Legends 4ever (the 2004 attempt with both ASCII and sprite graphics) you could swap between 12 kind of borders/window color combination and it basically used CODEX rectangle functions to generate them. I don't remember what were the borders, though, but I remember you could choose between 1 pixel thick borders, 2 pixels, two borders, rounded borders, etc. It didn't take much space since it only involved rectangle commands and a few if/then blocks.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 27, 2012, 07:31:33 pm
If anyone is interseted at looking at the source code, click "My Pastebin" in my signature. :D
EDIT: And I finally found the error in forest that was bugging me XD It was just a faulty line of code. Deleting it solve teh problem. However, I still haven't fix the save screen bug yet. D:
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 27, 2012, 07:41:21 pm
The save screen bug is the code you gave me to look at?
EDIT: I think it is a Grammer problem, now. I have isolated the problem to using solve(0,
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 27, 2012, 07:56:20 pm
If the bug is in Grammer itself, I can wait for new release. :D
So, I think I can finally start to code battle engine. XD
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 27, 2012, 07:59:00 pm
Haha, you don't have to wait. I found the issue... I wrote my own var searching routine and I forgot to add about 4 bytes of code. Here is how to fix it:
Delete the realvar R
pretty much, when you search for Rol3Sav1, or Rol3Sav2, it just sees the R and finds the realvar named R. Delete that and see if it works :) I will make sure to have this fixed in the next update, though!
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 27, 2012, 08:00:49 pm
If it's only 4 bytes difference, is there a way to fix it with calcsys? :D
And what do you mean by deleting realvar R? I don't think I used it.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 27, 2012, 09:31:05 pm
No, you cannot fix it with Calcsys (it is int he App and the data needs to be inserted). If you want to give this app a try, you can let me know if it works !

EDIT: I tested it and it worked for me, but there might be something else going on
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 27, 2012, 09:42:59 pm
(Btw I think it would be a good idea to add Grammer 2 to the downloads section if Grammer is already there)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 27, 2012, 09:44:21 pm
Oh, good idea o.o
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 28, 2012, 03:05:33 pm
Oh, also, I found the problem...kind of.
The problem wasn't in solve(0, (I think), but rather in Archive "UROL3Sav1
It archives, but it hangs and gives me ERR:MEMORY
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 28, 2012, 03:23:15 pm
Double posting. :)

Here's the updated version of prgmAR01, prgmAR02, and prgmAT.
@Xeda: Here's the kinda fixed file. Now saving does work since I took out "Archive" stuff, but now somehow saving over saving file crashes calc and forest stuff doesn't work D:
can you look it up and see what's wrong?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 28, 2012, 05:56:13 pm
It looks like you are either overwriting a variable (pointing to map or tile data) and not restoring it, or you are creating new data and not restoring pointers. I would make sure to unarchive stuff at the very beginning of the code and then archive when the person is exiting if you want to archive. Also, creating any programs or appvars (other types are okay) should be done in the beginning. The reason is if you decide to search for a label and store it to P, then you create or delete a var or do something like that, P will be pointing to the wrong place (RAM gets shifted, depending). I don't know if that helps?

EDIT: Also keep in mind that though the flash chip will last for years, the more you archive, the shorter its life span will be before the flash chip won't work.

EDIT2: I haven't looked much at the code, but it definitely seems like you are modifying pointers that you need to either keep or restore.

EDIT3: Also, solve(0, returns a pointer to the newly created var, so you don't need to follow it with Get(
EDIT4: Jumping to labels in other programs is not supported yet at all o.o
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 28, 2012, 06:12:49 pm
Ans for EDIT3: but solve(0,something,something→pointer never worked in my life D:
Ans for EDIT4: but I've been using it for whole time and it worked O.o
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 29, 2012, 12:07:22 am
What was added in AR01 and AR02 over the last version btw? I only tried the previous ones but I wondered if any change occured graphically before I download?

Also in the dungeon map there's a missing wall tile at the entrance.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 29, 2012, 08:13:42 am
eh?
seriously?
Anyway, New AR02 contain some fixes, but really, there's not much difference. D:
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 29, 2012, 08:54:56 am
As discussed on IRC, there was a brief period of time when I added the new optional arguments to solve(0 that it stopped working properly, but I fixed it a few hours later :/

As for calling labels in other programs, it may have worked through shear luck, but it will not work all the time under normal circumstances. I will try to add an optional argument to Lbl to specify the variable, though.

So what appears to be going wrong, still, to me is that you aren't updating variables properly or you are changing them and appears to only be a problem when saving.

I am going through and trying to figure out exactly what is wrong, but my guess is inconsistent saving :/
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 29, 2012, 08:57:02 am
yeah, I guess...
The way I detect if the file is new or not is the theta', which is used to get the file size. If the size of program is not 100 bytes, it count as a new game.
But what I wonder is when I save, I just copy ROL3Data to ROL3Sav1, but I don't know what's wrong of doing it so.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 29, 2012, 11:40:13 am
Okay, I found the problem as I already said in chat  :]
Pretty much, all the creating of new vars and whatnot destroyed pointers to key data, specifically the Map and sprite info. So all you need to do to fix it is to add this at the very end of routine .M19:
Code: [Select]
Get("VM→M
Get("VS→S
Get("VT→T
:D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 29, 2012, 01:31:37 pm
eh?
seriously?
Anyway, New AR02 contain some fixes, but really, there's not much difference. D:
Yeah if you look carefully at the entrance
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on January 29, 2012, 01:40:19 pm
I think it is an extra tile if it is supposed to have symmetry
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 29, 2012, 01:45:51 pm
Yeah I'm unsure anymore. All I know is that a brick wall tile is supposed to be located there.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 31, 2012, 03:55:30 pm
Btw in the last downloadable files is it normal that two orbs are missing from the list (Aura and Cure, specifically)? O.O
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 31, 2012, 05:25:55 pm
really? O.O
I'll include them.../me never saw Cure before D:
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 31, 2012, 05:34:44 pm
You get it early in the game around the mansion ???
It basically heals about 80% of your HP
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 31, 2012, 05:45:36 pm
Oh. D:
Personally, I never bothered to buy any other orbs except for vital, saint, and psycho XD
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 31, 2012, 05:47:26 pm
Yeah I think Cure could use some price decrease, because I myself rarely bothered to buy it, becuase in battles I rarely needed to heal only one character this much and mostly used Saint, while outside battles I mostly used Vital. Saint did the job pretty well too because I usually used two chars to heal while Zanik attacked.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 31, 2012, 07:10:16 pm
I think it is an extra tile if it is supposed to have symmetry
I checked the map again. It was indeed the missing tile. XP

Yeah I think Cure could use some price decrease, because I myself rarely bothered to buy it, becuase in battles I rarely needed to heal only one character this much and mostly used Saint, while outside battles I mostly used Vital. Saint did the job pretty well too because I usually used two chars to heal while Zanik attacked.
Just wondering, but can you buy Return later in the game?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 31, 2012, 07:17:18 pm
Yes, in World of Fantasy. Omega too, but only after you beat Gaia.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 31, 2012, 07:18:36 pm
/me remembers when he went to World of Fantasy, but for his misfortune, found the "right" house that teleported Lekens to where he's supposed to be before he could even try the arcade D:
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 31, 2012, 07:19:30 pm
That reminds me, I hope the arcade doesn't cause memory problems. Basically, there you have to code two ASCII tunnel clones and some other games O.O
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 31, 2012, 07:21:01 pm
I was thinking of replacing all those with slot machines, like pokemon
I guess I'll have to give ROL3 another go. :D (hopefully this time, without save fails)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 31, 2012, 07:56:09 pm
You should probably try to disable the error messages about corrupted saves and possibly even get rid of the compression/decompression routines during saving/loading, because 100x exp/gold messes the game up it seems. :P

Also for the game arcade, here are the 5 games below. Two are artificially slowed down racing games (to be playable on 15 MHz calcs) and the last one is a game where you catch the dot but the wind tries to push you away from the screen (and the direction changes constantly). You can change the games if you want though.

(Also on calc they runs much faster. In this WabbitEmu savestate I played the game until the end without ever exiting so it got quite slow)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on January 31, 2012, 08:18:03 pm
can you explain what the 4th one is?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on January 31, 2012, 08:19:39 pm
It's another racing clone, but in skiiing form. You must avoid trees while going downhill and at one point it goes twice faster and there are more trees.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 02, 2012, 05:43:15 pm
Ok. I was messing with sine and cosine because I wanted to implement them in Omnima magic.
and this is the result XD

2nd/ALPHA = change rotation speed
F1/F2 = spread/closer
arrow key= move circles

source:
Code: [Select]
:.0:
://CIRCLE TEST
:.MAG15
:0→A→B→C
:1→F
:9→G
:Repeat getKey(15
:ClrDraw
:A→Z
:prgmLbl "CIRCO
:Circle(C,B,5,1
:Circle(C,B,3,1
:A+128→Z
:prgmLbl "CIRCO
:Circle(C,B,5,1
:Circle(C,B,3,1
:A+64→Z
:prgmLbl "CIRCO
:Circle(C,B,5,1
:Circle(C,B,3,1
:A+64+128→Z
:prgmLbl "CIRCO
:Circle(C,B,5,1
:Circle(C,B,3,1
:DispGraph
:A+F→A
:G+getKey(53
:-getKey(52
:→G
:F+getKey(54
:-getKey(48
:→F
:D+getKey(3
:-getKey(2
:→D
:E+getKey(1
:-getKey(4
:→E
:End
:.CIRCO
:128+cos(Z
:10+D+Ans/G→B
:128+sin(Z
:10+E+Ans/G→C
:End
:Stop
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on February 02, 2012, 06:13:29 pm
Holy crap, that is really cool! Like, wow O.O
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 02, 2012, 06:14:50 pm
That looks great! I wonder if there will be some flashing backgrounds or stuff with it? It would make it look more OP. :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on February 02, 2012, 07:35:44 pm
Oh my word O.O Three more things I want to note:
1) I found some optimisations to make it faster
2) That is 6MHz ?!!? Wow!
3) I just made a version that also lets you add more to the ring and it is smaller and faster. I also think I have a bug in one specific part of my code to compute sine and cosine, so hopefully I can have that fixed x.x

Code: [Select]
3→N
256/N→I
0→A →B →C      ;need spaces here!
1→F
9→G
Repeat getKey(15
ClrDraw
A→Z
For(H,1,N
128+cos(Z
10+D+Ans/G→B
128+sin(Z
10+E+Ans/G→C
Circle(C,B,3,1
Circle(C,B,5,1
Z+I→Z
End
DispGraph
A+F→A
G+getKey(53
-getKey(52→G
F+getKey(54
-getKey(48→F
D+getkey(3
-getKey(2→D
E+getkey(1
-getKey(4→E
getKey(10
-getKey(11
If +N
+N→N 256/N→I
End
Stop
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 02, 2012, 11:05:20 pm
Pretty nice Xeda :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 04, 2012, 06:09:25 pm
Omnima testing part 2.

Code: [Select]
:.0:
://CIRCLE TEST
:.MAG15
:0→A →D →E
:1→F →N
:9→G →H
:Repeat getKey(15
:ClrDraw
:256/N→M
:For(O,1,N
:O-1
:*M
:+A→Z
:prgmLbl "CIRCO
:Circle(C,B,5,1
:Circle(C,B,3,1
:End
:If A^2
:Fill(1
:DispGraph
:A+F→A
:G+getKey(53
:-getKey(52
:→G
:F+getKey(54
:-getKey(48
:→F
:D+getKey(3
:-getKey(2
:→D
:E+getKey(1
:-getKey(4
:→E
:N+getKey(51
:-getKey(50
:If ! 
:N
:→N
:H+getKey(47
:-getKey(46
:→H
:End
:.CIRCO
:128+cos(Z
:10+D+Ans/G→B
:128+sin(Z
:10+E+Ans/H→C
:End
:Stop
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on February 04, 2012, 06:28:05 pm
O.O I almost said some inappropriate, non-PG things O.O That is freaking awesome! Do you mind if I play with that to see if I can do some 3D stuff?

EDIT: Also, instead of doing prgmLbl "CIRCO, I would do something like Lbl "CIRCO→K before the mainloop when you are initialising variables and then use prgmK
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 04, 2012, 06:29:42 pm
sure. :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: saintrunner on February 04, 2012, 06:30:25 pm
*saint just past out
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on February 04, 2012, 06:35:01 pm
There are folks that want a flight simulator and they think Grammer can do it after seeing this O.O They are serious about this, by the way o.o
:thumbsup: for you
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 04, 2012, 06:38:15 pm
There are folks that want a flight simulator and they think Grammer can do it after seeing this O.O They are serious about this, by the way o.o
;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif) for you
O.O
/me can't see how Omnima will turn out.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: TIfanx1999 on February 05, 2012, 09:45:19 am
Really cool looking graphic work there Yeong and Xeda! :D

*Edit* Xeda was reffering to when I had 2520 posts. Only Xeda would know such things. ;D  :thumbsup:
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on February 05, 2012, 09:51:47 am
All I did was modify yeongs code, I had no clue how to go about this on my own o.o Also, side note, the number of posts you have made is now divisible by integers 1 through 10 (and is the smallest such integer with this property)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 05, 2012, 02:29:49 pm
Looks nice, but I seriously hope there is some background animation or something to go with it, like in one of Darl181's former avatar, for example, otherwise I think this looks too much like a Cure spell or something and not a powerful attack spell.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 05, 2012, 02:31:08 pm
I'm just messing with circles and trigs right now. The finished Omnima will have everything like flicker, damage, and giant Yamato Cannon laz0r beam.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 05, 2012, 02:32:36 pm
Ok that's good to hear. I was worried the animation above was all you planned to do for Omnima (which is cool, but alone it wouldn't fit for such OP spell :P)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 05, 2012, 06:48:59 pm
Ok that's good to hear. I was worried the animation above was all you planned to do for Omnima (which is cool, but alone it wouldn't fit for such OP spell :P)
Trust me, finished Omnima animation will blow your mind to oblivion! :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on February 05, 2012, 08:30:15 pm
/me thinks yeong already has much of it finished
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 06, 2012, 08:11:31 pm
I really hope one part of the two new magic includes something from Darl's old avatar. Maybe for the bolt part? :P
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 06, 2012, 10:39:18 pm
how does it look like?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 06, 2012, 10:54:27 pm
I can't really explain, I wish he still had it available somewhere though. You could probably PM him tomorrow if I can't find it. It was a bit like in animes with background animations made of lines to create a speed effect.

EDIT: There was another cool looking animation he used for another avatar too:

(http://www.omnimaga.org/index.php?action=dlattach;topic=4788.0;attach=4430;image)

Not sure how slow this would be in Grammer, though...
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on February 06, 2012, 11:02:44 pm
I have made similar effects like that in xLIB code by XORing parts of the screen. I am sure Grammer could do that pretty quickly if I could figure out the source...
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 06, 2012, 11:03:19 pm
Cool to hear, I guess you could maybe ask Darl181 for the source, assuming he still has it.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 09, 2012, 11:00:07 pm
Progress so far: not really. D:
I've been busy with calc test and etc, so I won't be able to work on this for about 1 more week.
However, expect Omnima in about 10 days.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 10, 2012, 03:16:09 am
Ok, good luck! Hopefully you can find some more time afterward.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 22, 2012, 09:35:53 pm
I got some people asking me if this project is dead, since the thread is kinda inactive.

My answer is, it's still being worked.
I just want to post the screenshot once I get around 6 magics done. :)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 22, 2012, 09:39:52 pm
You got my hopes up. I thought the screenshots were actually posted :'(

J/k, nice to see it's still active. :D

Also Yeong, you really gotta put this as background for Omnima, during the Blitz/thunder portion of the magic spell:

(http://darl181.webuda.com/avatarScriptThing/lazarTheGame.gif)

Maybe get rid of the bolt and just have the circles spinning for two seconds in the middle, then charging at enemies.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 22, 2012, 10:01:12 pm
so I have to put hidden "THE GAME" ? D:
jk. but that kinda looks harsh to LCD XD
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on February 22, 2012, 10:22:15 pm
I got excited, too :D I want to see if I can recreate any of those animations D:
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 22, 2012, 10:23:08 pm
it seems like Darl's stuff can be simulated by random inverse lines appearing. :3
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 22, 2012, 11:02:29 pm
so I have to put hidden "THE GAME" ? D:
jk. but that kinda looks harsh to LCD XD
I would reduce the framerate a bit maybe if that's the case. Something like 6 FPS during that animation so it doesn't blur too much.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 24, 2012, 06:22:13 pm
Ok. I'm working on Blitz (Not the Omnima version).
I have few ideas floating around, but I can't seem to make a choice.
So I need y'all's help. (LOL 2 's)
Should I keep it original(Thunder from sky) or should I do something else(I really don't have any for now)?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on February 24, 2012, 07:38:14 pm
I like thunder from the sky (well, lightning, unless you are simulating the noise, too >.> )
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 26, 2012, 11:53:14 pm
I personally liked the old animation for Blitz. It was kinda old skool since it's the same as in Secret of Mana for the SNES.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 27, 2012, 06:39:07 pm
ok. then. I'll go with old animation. :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 28, 2012, 06:49:51 pm
not much progresses still since I love to mess around with Grammer to seek for some cool stuff.
But what I've complished so far is: implemented the string-modifying stuff for optimized label calling! XD

Also, I'm kinda having a hard time with Blitz D: (Coordinates and whatnot)
After Blitz, I think I'll make freeze (old graphic, which will be easy), quasar (I'll just gonna go with plain earthquake attack.), psycho (I might change a graphic a bit even though I loved the original graphic) and post the screenshot. XD

After that, I'll work on the actual battle engine to test some magics and add another 7. And another screenshot.

That's my plan.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on February 28, 2012, 09:17:25 pm
O.O Good luck! I wish I could work out better animations D:
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 28, 2012, 10:58:19 pm
Are lines that hard to use in Grammer? O.O Blitz is just lines and stuff ???

Anyway good luck, I can't wait to see the animations :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Darl181 on February 28, 2012, 11:01:01 pm
it seems like Darl's stuff can be simulated by random inverse lines appearing. :3
Yeah, that's pretty much all it is :P
It just goes down each loop, inverting rows at random as it goes.

[code linked in irc]
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on February 28, 2012, 11:01:44 pm
then may I see the code? :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on February 29, 2012, 11:41:48 pm
Also suggestion: Sandstorm animation when you move around 2235 AD, with random flashes. Could possibly be used for some magic animations too I guess.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on March 01, 2012, 06:42:30 pm
random flash? Is that for damage taken? O.O
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Darl181 on March 01, 2012, 10:17:29 pm
Maybe for lightning or something, for some post-apocalyptic effect?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on March 01, 2012, 10:19:57 pm
random flash? Is that for damage taken? O.O
Lightning. It's a dark apocalyptic world anyway :P

Basically something like Chrono Trigger's 2300 AD with the sandstorm ish effect but with flashes

Of course if you decide to add a way to warp directly in 2201 AD instead of 2235 AD then you could make the char lose HP every step, though, from radiations.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on March 21, 2012, 06:52:59 pm
since everyone think this is dead again, I'll post it here.
For the sake of progress, I can say that it actually went "BACK" because I'm re-coding the battle engine from the scratch so it can be smaller and more efficient. Also, my motivation took some blow from some "series of unfortunate events." Well, I'm still in the stage of recovering (thank god for me managing to finish tic-tac-toe before deadline) and along with the senior project and stuffs.The only motivation I have for now is that I don't have to do the sprite work. :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on March 21, 2012, 09:31:21 pm
Ah, sorry to hear D: Good luck on your school projects!
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on March 24, 2012, 11:25:36 pm
Sorry to hear about the lack of motivation. What happened by the way? Was it due to the game development or more real life issues?

I'm glad this is still alive, though.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on March 24, 2012, 11:26:38 pm
it's my real life issues. Yeah, this is still progressing a bit by bit.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on March 24, 2012, 11:56:24 pm
Ah ok sorry to hear. Hopefully nothing bad I hope x.x (such as what happened to JustCause with his parents and computer access x.x)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on May 09, 2012, 10:12:58 pm
Woo. Still no progress so far. D:

However, I'm planning to replay ROL3 on-calc again after AP Stat exam next week and this time, I'm writing down everything so that I don't have to play it again.
After another playthrough, the progress might speed up. :)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on May 09, 2012, 11:09:43 pm
Writing stuff down would definitvely be a good idea. :P Of course also maybe make enemies give 100x more exp and gold or modify code to skip random battles so it doesn't take you too long to play through. :P Also look at some code sometimes in case you miss a side quest.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: BalancedFury on May 15, 2012, 07:17:38 pm
Question for DJ: Do you happen to know how you crypted your enemy data in program? All I see is bunch of 0s and 1s. D:
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on May 15, 2012, 07:18:52 pm
OK. I don't know what happened, but when I posted as me, omni suddenly changed user to BalancedFury O.o
So, that's me in the previous post. :D
(Semi-Legal double-posting?)
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on May 15, 2012, 08:48:28 pm
I guess it's OK, but if it happens again you should maybe contact netham45. Also I don't know about the 0 and 1's, but some enemy data is kinda flags IIRC.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: BalancedFury on May 15, 2012, 08:50:24 pm
Yea.. he might be able to fix another thing :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Juju on May 15, 2012, 08:52:01 pm
Hm, that's kinda odd. Prolly how SMF handles login/logouts. That's you again Yeong right?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on May 17, 2012, 04:45:33 pm
All right. I started on playthrough. :D
So far, I've reached Nomesi and have to go to Gaia Volcano. (Lv 4,4,1)
And I'm trying to figure out the atk/def of enemies from DJ's cryptic enemy data list. D: I could only get HP, Gold, and EXP(I go
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on May 19, 2012, 09:53:54 am
I just realized that stat balanced have to be fixed anyway (because of the improved speed) so I don't need to figure out the atk/def anymore! XD
I feel like an idiot. :P
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on May 19, 2012, 02:23:21 pm
All right. I started on playthrough. :D
So far, I've reached Nomesi and have to go to Gaia Volcano. (Lv 4,4,1)
And I'm trying to figure out the atk/def of enemies from DJ's cryptic enemy data list. D: I could only get HP, Gold, and EXP(I go
I sadly don't remember, but about 5 of those stats are the magics used by the enemy (or regular attack). Each ID represents a move. There is also an ID for the orb you can steal from enemies and another for items that enemies drop after battle, if I remember (assuming they could even drop items/magic)

And yeah the leveling up rate might have to be halved due to the improved speed lol.
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on May 20, 2012, 06:56:40 am
Ohh I totally forgot about enemies using magics. That probably explains the bunch of 0s and 1s. :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on May 21, 2012, 06:36:08 pm
Progress: I finished storing about 50% of the whole maps in an appvar. (16000 bytes O.o) It includes all the dungeon except for secret passage (b/c idk the correct way  until I play it lol) and mythril cavern (totally forgot about it)
So, if I do the towns/worldmap and missing dungeon, I'm completely done with maps and I could start coding some events bit by bit. :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: TIfanx1999 on May 21, 2012, 09:22:01 pm
Wow, very nice progress there Yeong!
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: DJ Omnimaga on May 21, 2012, 11:23:23 pm
Progress: I finished storing about 50% of the whole maps in an appvar. (16000 bytes O.o) It includes all the dungeon except for secret passage (b/c idk the correct way  until I play it lol) and mythril cavern (totally forgot about it)
So, if I do the towns/worldmap and missing dungeon, I'm completely done with maps and I could start coding some events bit by bit. :D
I had this problem in certain games I made before. For secret paths, I usually used a temporary different tile for where you can walk, then I updated the sprite sheet once I was done. But of course in ROL3 case that would not work due to the way maps are stored lol. Anyway nice progress indeed lol and glad the maps aren't too big so far. I worried about the size due to the large amount of maps to create. How did you make the 4 elemental dungeon maps, by the way? Did you create 4 copies or did you make them dynamic?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: TIfanx1999 on May 21, 2012, 11:44:18 pm
Weren't they all the same layout in the original?
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Xeda112358 on May 22, 2012, 02:15:53 pm
O.O Cool, Yeong! I cannot wait to see what you manage :D
Title: Re: The Reign of Legends 3 Port [Grammer]
Post by: Yeong on May 22, 2012, 05:00:46 pm
Did you create 4 copies or did you make them dynamic?
Of course dynamic. :D
Same map, different tileset.