Author Topic: Tale of the Lost Map  (Read 78939 times)

0 Members and 1 Guest are viewing this topic.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: the Tale of Lost Map
« Reply #75 on: November 10, 2009, 08:37:09 pm »
Looks very nice so far.
It dosn't look like a ton of work to the normal user, but I know how long it took to write that.  Very well done!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: the Tale of Lost Map
« Reply #76 on: November 10, 2009, 09:34:08 pm »
yeah many people tend to judge the book by its cover. There are also the people who label a game as horrible, bad and not worth the download if it's large in size, even if it should be the opposite for many games

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: the Tale of Lost Map
« Reply #77 on: November 10, 2009, 11:16:41 pm »
Yeah, it is the unfortunate side effect of programing on a calculator, installation makes the gameplay x.x

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: the Tale of Lost Map
« Reply #78 on: November 11, 2009, 11:58:15 am »
yeah many people tend to judge the book by its cover. There are also the people who label a game as horrible, bad and not worth the download if it's large in size, even if it should be the opposite for many games
yeah especially for RPG, you can't expect to get really good game if the game size is less than 10k. Especially if they claim it to be graphic, which will probably be because it's graphic opening screen and text game play. Well, I at least try to optimize the code as much as possible, so that I wouldn't need to make the game 50 subprograms and 1 main program. After I'm done with the main engines, like walking and recognizing events, battle engine, and some other quest-related things, it would be fairly easy to finish, just entering some data, like map, weapons, etc...

BTW, the battle system will be totally different from what I was thinking before ^^


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: the Tale of Lost Map
« Reply #79 on: November 11, 2009, 01:07:24 pm »
True, usually if I use sub programs it's to minimize code repetition as much as possible, that way the game fits in RAM (or each chapters does if the game is pure BASIC).

What will be the new battle system like?

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: the Tale of Lost Map
« Reply #80 on: November 11, 2009, 04:33:52 pm »
Well, I at least try to optimize the code as much as possible, so that I wouldn't need to make the game 50 subprograms and 1 main program.
Sub Programs are evil!
Not really, but I try not to use them.
However, I don't care about everyone else.  I will play almost anything, and I have games with sub programs on my calc that I use often.  If people woln't play games with subprograms or if thier huge, it's thier loss.

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: the Tale of Lost Map
« Reply #81 on: November 11, 2009, 05:32:11 pm »
What will be the new battle system like?
I want the battle to be real-time, and since I will incorporate crafting the weapon (by user) to be in game, each weapon will have the timer, and if you use the timer, you can't do anything (move, use other weapon, etc...)


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: the Tale of Lost Map
« Reply #82 on: November 11, 2009, 06:01:29 pm »
There's a way to have subroutines inside the main program instead of subprgms in large games. You can use Lbl/Gotos for that or even just set a variable just for the routine to execute. Like, for example, when game starts, variable is set to 1, then it enters the main loop, which loops until that var = 0. If var = 1, it runs the title screen then main menu routine, then selecting an option changes the variable value to something else, causing the menu selection loop to be exited, and other things like walking engine and battles are entered and exited through a similar way. If a routine is used many times, like a big menu routine, just set to which value each options changes the variable into a list, and the menu choices into a string, then have that subroutine be ran.

However, by doing this, you limit yourself to 24 KB of RAM. For larger games, you have to either divide your game into chapters or use an ASM lib. Celtic can work, but it's harder to work with, since you always need to know at whcih line of code number the code you need to copy to another temporary program starts and make sure to remember when its location change (for example, if you updated the huge program).

Illusiat doesn't use Celtic III because first, when Celtic, Omnicalc, Symbolic or xLIB are installed, TI-BASIC runs slower in overall, especially For( loops, and I try to get as much speed as I can from the game (altough I'm sure Builderboy could maybe improve that). Another reason for not using Celtic is that the game was planned to fit very tight into a regular 83+ archive. The 83+ archive would not be enough to fit a full version of Illusiat 13 and Celtic III at once. Celtic II could have been an option, but it takes a lot of RAM, so it would have felt more restrictive in overall, not to mention I couldn,t really get used to its syntax and how it works.

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: the Tale of Lost Map
« Reply #83 on: November 11, 2009, 06:12:00 pm »
What I like to do is put the subprograms in a loop, and so they go back. I usually don't use Lbl or Goto at all, or very few, because I hate getting caught up in memory error. I might use something where you recall the main prgm, and the beginning of prgm has subroutines in them.
You know what I mean??? like put X=1.3214 and write code, return. X=34.35234 write code, return.
and when you need to call the subroutine, 1.3214->X:prgmMAIN
something like that... And I plan to use small ASM program that copies the archived program into temporary program.


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: the Tale of Lost Map
« Reply #84 on: November 11, 2009, 06:34:23 pm »
Hmmm a simple and effective way in speed and readability that I personally use is:

in a separated program:
PRGM:ROT
:Ans->R
:If R=1
:Then
://subroutine one
:End
:If R=2
:Then
://subroutine one
:End

Say you have 20 subroutines. Split them in two parts to extra speed:

:If R<20
:Then
://all the subroutines before 20
:Else
://all the subroutines after 19
:End

Now from the main program to call a subroutine just:
:2
:prgmROT

TI-BASIC Developer has other ways. Some really mess with the TI-BASIC interpreter in tricky ways that even I am scared to use them.
http://tibasicdev.wikidot.com/subprograms
Oh, I discover on there that While is better than If:Then... Time to change stuff.

And others pages, if I remember right. In UnitedTI and stuff. I have to found them again...
(http://tibasicdev.wikidot.com/recursion)
Hobbing in calculator projects.

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: the Tale of Lost Map
« Reply #85 on: November 11, 2009, 06:42:34 pm »
lol I have all of these printed out. I pretty much have all the printouts from tibasicdev. haha
Right now, I'm just making many subprograms, because it's easier to see where the error lies. When I'm finished with the game, I'll organize them into whatever subprogram usage I want them to be. :)


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: the Tale of Lost Map
« Reply #86 on: November 11, 2009, 07:56:39 pm »
I use the...

:Goto S
:Lbl A
sub routien stuff here
:End
stuff here
:Lbl S
stuff here
:If something
:Then
:For(I,0,1)
:If not(I
:Goto A
:End
:End
rest of code here

...approach. It works very well, but it isn't as fast as external subprograms.

If I want my 84+se to run faster than an 83+, I have to uninstall like 7 Apps (Including Celtic III and Calc Util). lol

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: the Tale of Lost Map
« Reply #87 on: November 11, 2009, 08:19:34 pm »
What i don't like about Goto, even when there are no memory leaks, is that if the program is absolutely massive, it takes a long while to load when a label is at the complete bottom of a program

Offline megajake03

  • LV3 Member (Next: 100)
  • ***
  • Posts: 81
  • Rating: +1/-1
  • Luigi Rules!!
    • View Profile
Re: the Tale of Lost Map
« Reply #88 on: November 11, 2009, 08:25:51 pm »
Hmmm a simple and effective way in speed and readability that I personally use is:

in a separated program:
PRGM:ROT
:Ans->R
:If R=1
:Then
://subroutine one
:End
:If R=2
:Then
://subroutine one
:End

Say you have 20 subroutines. Split them in two parts to extra speed:

:If R<20
:Then
://all the subroutines before 20
:Else
://all the subroutines after 19
:End

Now from the main program to call a subroutine just:
:2
:prgmROT

i agree with this way i think it would be the eisiest(i know i spelt that wrong)
What is crazy?..............................Me!
And Luigi rules!!!

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: the Tale of Lost Map
« Reply #89 on: November 11, 2009, 08:49:52 pm »
In the above quote, the second to last line needs to be
:2->R

What i don't like about Goto, even when there are no memory leaks, is that if the program is absolutely massive, it takes a long while to load when a label is at the complete bottom of a program
I agree. It takes forever when the labels are farther down, so for that code the subroutiens are at the begining.