Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Spyro543

Pages: 1 ... 39 40 [41] 42 43 ... 81
601
TI Z80 / Re: Learning Axe! And made a program
« on: December 01, 2011, 03:23:34 pm »
I turned the velocity program into some fun bouncy program :D
Attached is a screenshot, SVELDRAW (source), and BOUNCE (executable). Press [CLEAR] to exit, [DEL] to reset the velocity, and arrow keys to move the ball.

That sucks. Oh well, teachers are hardly ever appreciating or even acknowledging calculator program.
Well, I showed this program to my science teacher, and he really liked it (both the program and that I'm interested in physics.)

602
Gaming Discussion / Re: Pokemon is evil
« on: November 30, 2011, 03:48:54 pm »
When you go in the grass in that spot, does it really show text like that :P

603
TI Z80 / Re: Learning Axe! And made a program
« on: November 23, 2011, 04:10:26 pm »
I had countless problems getting it work (especially if I moved up or left or stood still the circle changed into this huge X thing :O) but I finally got it working! (Took a few periods in school tho :P)

604
TI Z80 / Re: Learning Axe! And made a program
« on: November 23, 2011, 03:46:17 pm »
Added a cool feature!
The circle gets larger the faster it's going!
It's still a bit buggy, but here it is!

At the end, the circle stops instantly. Do this with [key][DEL][/key]. [key][CLEAR][/key] exits the program.
Attached : SVELDRAW is the source, and VELOCITY is the compiled program.
Source code:
Code: [Select]
:.VELOCITY
:0→A
:0→B
:1→X
:1→Y
:While 1
:Pause 180
:If getKey(4)
:B-1→B
:End
:If getKey(1)
:B+1→B
:End
:If getKey(2)
:A-1→A
:End
:If getKey(3)
:A+1→A
:End
:If getKey(56)
:0→A
:0→B
:End
:If getKey(15)
:Return
:End
:Y+B→Y
:X+A→X
:If X>>96
:1→X
:End
:If X<<1
:96→X
:End
:If Y>>64
:1→Y
:End
:If Y<<1
:64→Y
:End
:A+B→R
:If R<<1
:If R=0
:Circle(X,Y,1)
:Else
:Circle(X,Y,‾R)
:End
:Else
:Circle(X,Y,R)
:End
:DispGraphClrDraw
:End
Optimizations, suggestions, bug reports?

605
TI Z80 / Learning Axe! And made a program
« on: November 22, 2011, 08:00:40 pm »
Ok, I am learning Axe! Yay! <insert applause here>
My program lets you use the arrow keys to move a circle around the screen and change its velocity!!! :w00t:
Added a cool feature!
The circle gets larger the faster it's going!
It's still a bit buggy, but here it is!

At the end, the circle stops instantly. Do this with [DEL]. [CLEAR] exits the program.
Attached : SVELDRAW is the source, and VELOCITY is the compiled program.
Source code:
Code: [Select]
:.VELOCITY
:0→A
:0→B
:1→X
:1→Y
:While 1
:Pause 180
:If getKey(4)
:B-1→B
:End
:If getKey(1)
:B+1→B
:End
:If getKey(2)
:A-1→A
:End
:If getKey(3)
:A+1→A
:End
:If getKey(56)
:0→A
:0→B
:End
:If getKey(15)
:Return
:End
:Y+B→Y
:X+A→X
:If X>>96
:1→X
:End
:If X<<1
:96→X
:End
:If Y>>64
:1→Y
:End
:If Y<<1
:64→Y
:End
:A+B→R
:If R<<1
:If R=0
:Circle(X,Y,1)
:Else
:Circle(X,Y,‾R)
:End
:Else
:Circle(X,Y,R)
:End
:DispGraphClrDraw
:End
Optimizations, suggestions, bug reports?

606
TI Z80 / Re: Simul 2
« on: November 21, 2011, 07:02:09 pm »
December 1st is my birthday :D

607
TI Z80 / Re: Fade, game Idea
« on: November 21, 2011, 04:49:10 pm »
You said you had a game idea; what's your game idea?

608
TI Z80 / Re: Simul 2
« on: November 21, 2011, 04:35:46 pm »
* Spyro543 wants download link D:

609
Just added a zip file to first post that contains install batch file and source. Also I added 3 more commands. (This is a legal double post since you're allowed to post again after an hour if it's a project update.)

610
I'll add more commands, like one to disconnect, one to change nickname, one to check if there is any data...

611
Computer Projects and Ideas / ircbot: Library for Python for making bots
« on: November 19, 2011, 11:14:34 am »
I just made a library for Python 2.7 that allows you to easily create IRC bots.
Here is the source code:
Code: [Select]
import socket
import string
import time
s = socket.socket(AF_INET, SOCK_STREAM)

def connect(server, port=6667):
    s.connect((server, 6667))

def ready():
    x = s.recv(2048)
    if "376" in x:
        return True
    else:
        return False

def register(nick):
    s.send("NICK %s\r\n" % nick)
    s.send("USER  %s 8 *  : %s\r\n" % (nick, nick))

def join(channel):
    s.send("JOIN %s\r\n" % channel)

def send_msg(reciever, message):
    s.send("PRIVMSG %s :%s" % (reciever, message))

def send_raw(data):
    s.send(data)

def recieve():
    x = s.recv(2048)
    if x != "":
        return x

def username():
    x = s.recv(2048)
    return x.split("!")[0].strip(":")

def hostmask():
    return x.split("!")[1].split(" ")[0]

def message(message):
    x = s.recv(2048)
    msg = x.rpartition("PRIVMSG %s :" % (channel))
    return msg

def format_recv():
    return "<%s> %s" % (username(), message())

def timestamp():
    return "%s:%s:%s" % (time.localtime()[3], time.localtime()[4], time.localtime()[5])

def op(channel, reciever):
    s.send("MODE %s +o %s\r\n" % (channel, reciever))

def deop(channel, reciever):
    s.send("MODE %s -o %s\r\n" % (channel, reciever))

def voice(channel, reciever):
    s.send("MODE %s +v %s\r\n" % (channel, reciever))

def devoice(channel, reciever):
    s.send("MODE %s -v %s\r\n" % (channel, reciever))

def ban(channel, reciever):
    s.send("MODE %s +b %s!*@*\r\n" % (channel, reciever))

def kick(channel, nick, reason=None):
    s.send("KICK %s %s %s\r\n" % (channel, nick, reason))

def data_present(check):
    x = s.recv(2048)
    if check in x:
        return True
    else:
        return False

def nick(nick):
    s.send("NICK %s")

def disconnect(reason="Disconnected."):
    s.send("QUIT :%s" % reason)
    s.close()

if "PING" in s.recv(2048):
    ping = s.recv.rstrip()
    ping = split(ping)
    s.send("PONG %s" % ping[1])
Here's all the commands you can currently use:

connect(server) - Connects to the IRC server.
ready() - Returns true if the end of the MOTD is reached.
register(nick) - Registers with the nick.
join(channel) - Joins the channel.
send_msg(reciever, message) - Sends a message to reciever.
send_raw(data) - Sends raw IRC data to the server.
recieve() - Returns the IRC data recieved if it is not empty.
username() - Returns the username of the last message sent.
hostmask() - Returns the hostmask of the last message sent.
message() - Returns the last message sent.
format_recv() - Returns the last message sent like you would see it in an IRC client.
timestamp() - Returns the current time as a string.
op(channel, reciever) - Ops the reciever.
deop(channel, reciever) - Deops the reciever.
voice(channel, reciever) - Gives the reciever voice.
devoice(channel, reciever) - Removes voice from the reciever.
ban(channel, reciever) - Bans the reciever.
kick(channel, reciever[, reason]) Kicks the reciever.
disconnect([reason]) - Disconnects from IRC.
nick(new_nick) - Changes your bot's nick.
data_present(check) - Returns true if <check> is in the reciving IRC data.

It also includes a ping responder, so your bot should never time out.

Soon, I'll attach the .py file and an installer batch file.
Yay! Download the install.zip, unzip it, run install.bat, and yay!

Bug reports and suggestions welcome!

612
Miscellaneous / Re: Post your typing speed
« on: November 19, 2011, 10:03:33 am »

613
Hiya! I also own an Nspire (the Touchpad non-CX one)!

614
TI Z80 / Keypress programming for the TI-8x+ family
« on: November 16, 2011, 07:22:27 pm »
I've been experimenting around with emulators of keypress programmable calculators, some of which are the TI-95 and TI-59. For you people who don't know what keypress programming is, I made a nice article of what it is. http://anova.57o9.org/keypress/
Quote from: my website
Keypress Programming: What is it?

Keypress programming is the kind of programming used on old, vintage calculators like the TI-66 Galaxy.



Notice how there are some programming instructions - and they're all on seperate buttons (or using 2nd.)
The LRN button is for making a program. Each programming instruction is on a seperate "step". Every step has a number. Some calculators can only hold 112 or less steps. The reason it's called keypress programming is because to enter a command, all you had to do was press a key. Every key press is a step. For example, a program to multiply a number by 2 would be 3 steps long, meaning 3 keypresses long. You would press x to multiply, 2, and = to return the value. Now, the R/S and RST commands are crucial too. They stop/start the program, and reset the step counter to 0.

Hopefully that helped. Well, I'm making a keypress programmer in TI-Basic. So far, I have added buttons 0 through 8 (it takes a long time to add in the code to detect the button and do whatever it's supposed to do). Your programs are stored in L1, and can be up to 100 steps long (just like the old keypress programmable calcs). I'll try my best to simulate the keypress programming of the TI-59 calculator. I'll also add in a parser which will run the program stored in L1. Soon, I should have a good enough program for screenshots, source, and downloads.

Ideas and suggestions would be greatly appreciated ;D.

615
Other Calculators / Re: Where to buy TI-62 and TI-95?
« on: November 13, 2011, 03:41:49 pm »
I'm actually now looking at the TI-66 which is available on eBay with a "Buy it now" price.

Pages: 1 ... 39 40 [41] 42 43 ... 81