Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 May, 2013, 10:14:43 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Input - How do you input names for highscores?  (Read 328 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
dinosteven
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: Yesterday at 07:13:20
Date Registered: 20 July, 2012, 02:00:22
Location: Within this text.
Posts: 158


Topic starter
Total Post Ratings: +7

View Profile
« on: 26 July, 2012, 00:05:56 »
0

I tried looking at the source of a bunch of Axe games, but all I got was a bunch of stuff like :" YTOJEB"
Huh? It made no sense!
I've tried using the input command, but I couldn't get that to work, either.

So, how?
Logged
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 10:13:09
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50202


Total Post Ratings: +2611

View Profile WWW
« Reply #1 on: 26 July, 2012, 02:49:22 »
0

I'm not sure, but if I recall correctly, the Input command was kinda buggy in Axe and it was never fixed, due to OS limitations. You had to create your own name input routine.

Not sure what's YTOJEB though.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 23:40:53
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1420


Total Post Ratings: +80

View Profile WWW
« Reply #2 on: 26 July, 2012, 03:00:44 »
+1

I always just used ztrumpet's routine for text input. Smiley
« Last Edit: 26 July, 2012, 05:51:42 by parserp » Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
dinosteven
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: Yesterday at 07:13:20
Date Registered: 20 July, 2012, 02:00:22
Location: Within this text.
Posts: 158


Topic starter
Total Post Ratings: +7

View Profile
« Reply #3 on: 26 July, 2012, 03:02:01 »
0

I got it from ztrumpet's Jump! source. Here's the code that he used to input a name:
Spoiler for Hidden:
:Disp "Type Your Name:"
:Output(0,5)
:"WRMH"→GDB5
:det(3)
:"VQLG"
:det(3)
:"ZUPKFC"
:det(1)
:" YTOJEB"
:det(2)
:"XSNIDA"
:"                "→GDB9
:
:Repeat B=54 and (A≠0
:getKey→B
:If B=56 and (A≠0
:A-1→A
:Output(A,5,' '►Frac)
:Output(A,5)
:End
:If B=15
:0→A
:Output(0,5,GDB9)
:Output(0,5)
:End
:If A<16
:If B>10 and (B<48)
:If {B+GDB5-11}→C
:Disp C►Frac
:C→{A+L1}
:A+1→A
:End
:End
:End
:End
:While A<19
:0→{A+L1}
:A+1→A
:End

It starts with the setting of some strings, then somehow uses those strings as a 'getKey # to letter' algorithm. Now that I think about it and look at my calc's keys, they look like the letters in each column of keys... I still don't fully understand how it works, though.

EDIT:  Get Ninja'd, and thanks!
« Last Edit: 26 July, 2012, 03:13:28 by dinosteven » Logged
shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 04:23:34
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1839


Total Post Ratings: +227

View Profile
« Reply #4 on: 26 July, 2012, 03:40:20 »
+1

this routine first checks if the key pressed is within the range of values 10 and 48, meaning it's one of the keys in the alphanumeric section. then it subtracts 11 from that, so key 11 would point to entry 0 in GDB5, 12 to 1, and so on. z has the GDB stored so that every value points to its proper letter, with keys in that region that don't have a letter pointing to the value 0 instead.
Logged



We're not human, are we?
dinosteven
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: Yesterday at 07:13:20
Date Registered: 20 July, 2012, 02:00:22
Location: Within this text.
Posts: 158


Topic starter
Total Post Ratings: +7

View Profile
« Reply #5 on: 26 July, 2012, 05:23:04 »
0

Thanks, makes sense.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.526 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.