Search found 28 matches

by modsyn
Mon Feb 13, 2006 9:16 am
Forum: PSP Lua Player Development
Topic: lua with php
Replies: 1
Views: 1708

well, first you'd need to get the data you're sending somehow in your lua application. varname1 = "data1" varname2 = "data2" then, you'd need to format that (or url-encode it) to send with your socket test = socket:send("POST /test.php?var1="..varname1.....
by modsyn
Fri Feb 10, 2006 1:57 am
Forum: PSP Lua Player Development
Topic: File opening bug...?
Replies: 3
Views: 2676

didn't see any USB code in there, and i don't think a web server needs to use it, so i doubt that is the problem at all. i wish i could help, but sadly i can just suggest this: have you tried: for line = io.lines(fname) do instead of file = io.input(fname, "rb"&...
by modsyn
Sun Feb 05, 2006 3:08 pm
Forum: PSP Lua Player Development
Topic: loaded font and setPixelSizes tied together?
Replies: 3
Views: 2987

i don't think it's a bug. saying mediumFont = myFont is really just saying that mediumFont and myFont both point to the same thing. so, if you have 3 or 4 variables all pointing at the same Font object then using any of them will affect the same thing. someone correct me if i'm wrong, but i think th...
by modsyn
Wed Jan 25, 2006 12:59 am
Forum: PSP Lua Player Development
Topic: LuaLinker v0.2 preview
Replies: 0
Views: 1171

LuaLinker v0.2 preview

hi fellow Lua-ers. i just finished an update to my LUA internet program called LuaLinker. it's a neat idea especially for mp3blog visitors. LuaLinker v0.2 - Remote file grabber for the PSP by modsyn This program allows you to grab files from the internet from a list of websites you save on your memo...
by modsyn
Tue Jan 24, 2006 2:45 am
Forum: PSP Lua Player Development
Topic: Psprint lua edition (with trainer wip)
Replies: 15
Views: 12885

i know, i found it while looking for a way to do bit shifting. it was on
wikipedia, the great source: http://en.wikipedia.org/wiki/Lua_for_PSP
by modsyn
Tue Jan 24, 2006 2:44 am
Forum: PSP Lua Player Development
Topic: Request - add bit shifting
Replies: 5
Views: 2561

Request - add bit shifting

i recently found out that lua doesn't support shifting bits (ie, <</>>/>>>) and i found this page with a suggested way of adding the feature: http://lua-users.org/lists/lua-l/1999-02/msg00024.html >From: erik@hougaard.com (Erik Hougaard) >This might be a stupid function, but is Lua missing a << >> b...
by modsyn
Mon Jan 23, 2006 3:27 pm
Forum: PSP Lua Player Development
Topic: my Huffman data compression
Replies: 1
Views: 2082

my Huffman data compression

ok, so i got your attention. but it's not a fake topic. i wrote a basic data compression script that uses Huffman's algorithm in LUA. it's not super-speedy or super-great compression, but it works for large text files and bitmaps especially. also, wav files can be compressed quite a bit, so if you h...
by modsyn
Mon Jan 23, 2006 3:26 pm
Forum: PSP Lua Player Development
Topic: Psprint lua edition (with trainer wip)
Replies: 15
Views: 12885

bitwise operations came into luaplayer at version 10 and they are
and: &
or: |
xor: #

good luck learning, lua's quite fun
by modsyn
Sun Jan 22, 2006 2:25 am
Forum: PSP Lua Player Development
Topic: TTLDE V2.1 - Text editor written by LUA
Replies: 43
Views: 25609

For your purpose, my "TwinTail lesson" is helpful. The most important part is line 67~88 at 'ttlesson.lua'. TwinTail:Update() returns only inputted characters, so the application has to interpret '\b' and other control characters. Thanks, ema thank you so much, that's exactly what i was l...
by modsyn
Sat Jan 21, 2006 11:08 am
Forum: PSP Lua Player Development
Topic: WLan disconnects
Replies: 9
Views: 4579

i had problems with the wifi stopping too until i put in the power tick
command during my download loop. after that it didn't happen anymore.
by modsyn
Sat Jan 21, 2006 11:04 am
Forum: PSP Lua Player Development
Topic: attempt to index field `?' (a nil value)...not true...help!!
Replies: 8
Views: 4777

LUA table indexes start with 1, not 0 like (almost) every other language
by modsyn
Fri Jan 20, 2006 2:27 pm
Forum: PSP Lua Player Development
Topic: Windows luaplayer
Replies: 12
Views: 5612

i write most of my lua code on the psp itself. have you tried out ema's TTLDE program? it has a very fast and (relatively) easy to use text input system, copy/past support, multiple document (like netscape/firefox tabs), and the ability to execute the current open file as a LUA script. it's by far o...
by modsyn
Fri Jan 20, 2006 5:35 am
Forum: PSP Lua Player Development
Topic: TTLDE V2.1 - Text editor written by LUA
Replies: 43
Views: 25609

ema, i'm interested in using your keyboard input system in a project of mine. it would be just for getting a single line (or value) of text at a time, something like TTLDE's 'search' or 'save as' input box. is there any way for me to easily use your functions? something like: in_text = ttlde&#58...
by modsyn
Wed Jan 18, 2006 3:59 pm
Forum: PSP Development
Topic: MPH Firmware Launcher v1.0
Replies: 24
Views: 16653

i'll also mention my flash0 builder program: download
by modsyn
Wed Jan 18, 2006 9:46 am
Forum: PSP Lua Player Development
Topic: LUA Utils ( net/string )
Replies: 1
Views: 1888

LUA Utils ( net/string )

hello all, i've put together a small collection of functions that are quite
handy (string functions and wlan functions especially). feel free to use
and/or modify these if you find them useful. included with the package is
an example script showing some of its usage

lua-lib-v0.1
by modsyn
Tue Jan 17, 2006 8:07 am
Forum: PSP Lua Player Development
Topic: Lua Table to XML (and Back)
Replies: 6
Views: 3795

i would love an XML/html to table function.
or at least the ability to drop in plugins. :)
by modsyn
Tue Jan 10, 2006 2:13 pm
Forum: PSP Lua Player Development
Topic: Wlan.useConnectionConfig(1)
Replies: 10
Views: 4194

i had a similar issue with 0.16 and it seems that the function Wlan.useConnectionConfig() behaves differently for the 2 versions. it's mentioned in the changes. i just added one to the index value i wanted to use and it worked fine after that. like so: function chooseNetwork&#40;&#41; Wlan.i...
by modsyn
Thu Jan 05, 2006 5:20 am
Forum: PSP Lua Player Development
Topic: (Code of the day) Key Up/KeyDown Triggered Events.
Replies: 2
Views: 2178

nice! very helpful stuff. i hate writing controls code. this might make it simpler.
by modsyn
Thu Jan 05, 2006 5:16 am
Forum: PSP Lua Player Development
Topic: NOOB forum?
Replies: 7
Views: 3322

from http://www.lua.org/manual/5.0/manual.html#predefined collectgarbage ([limit]) Sets the garbage-collection threshold to the given limit (in Kbytes) and checks it against the byte counter. If the new threshold is smaller than the byte counter, then Lua immediately runs the garbage collector (see ...
by modsyn
Thu Jan 05, 2006 5:12 am
Forum: PSP Lua Player Development
Topic: Easily choose WLAN config
Replies: 2
Views: 2019

cool, that's one of the reasons i wrote it. i dropped it in so i could have some
variation without needing to use the config file.
by modsyn
Wed Jan 04, 2006 4:27 pm
Forum: PSP Lua Player Development
Topic: Easily choose WLAN config
Replies: 2
Views: 2019

Easily choose WLAN config

hi, i made a lua script that will let you easily select which network connection you'd like to use (because all of the examples just used the first available). feel free to use it in your projects if you'd like. also, i have included a link to an example script showing how to use it. wlanconfig exam...
by modsyn
Mon Oct 10, 2005 12:13 pm
Forum: PSP Development
Topic: FTP Client .99b
Replies: 1
Views: 1591

very nice job.
by modsyn
Tue Oct 04, 2005 12:07 pm
Forum: PSP Lua Player Development
Topic: thanks forum
Replies: 7
Views: 7816

cool. your site has the most lua games that i've seen.
by modsyn
Tue Oct 04, 2005 6:09 am
Forum: PSP Lua Player Development
Topic: thanks forum
Replies: 7
Views: 7816

Zenurb wrote:I played it and found it extremely difficult
yes? it used to be too easy, so i made it harder. i can get up to 300 or so
now, and before i could keep going pretty much indefinitely.

maybe i'll have to slide it back down some.
by modsyn
Tue Oct 04, 2005 6:07 am
Forum: PSP Lua Player Development
Topic: thanks forum
Replies: 7
Views: 7816

sure. here goes:
Image

and

Image

it looks pretty simple, but it's a blast.
by modsyn
Tue Oct 04, 2005 3:38 am
Forum: PSP Lua Player Development
Topic: thanks forum
Replies: 7
Views: 7816

thanks forum

i have written my first game ever in LUA for the PSP. i've been programming for a while, but never tried to tackle my own game. but i tossed that and here is what i came up with: http://cs.ulm.edu/~jself/jmenc/circles.rar it's an addictive little shooter-type game. maybe i'm partial, but it's my new...
by modsyn
Tue Sep 27, 2005 7:14 am
Forum: PSP Lua Player Development
Topic: Reading a byte value
Replies: 2
Views: 3016

it was the first code. i had many debug prints, but i left them out for ease
of reading. i finally got it fixed, as i edited the original post to say.

i finally found a decent source of general lua documentation. from
lua.org (ha, go figure).
by modsyn
Tue Sep 27, 2005 6:26 am
Forum: PSP Lua Player Development
Topic: Reading a byte value
Replies: 2
Views: 3016

Reading a byte value

Hi, I'm trying to read a value from a file and treat that value as the number of characters to read next. I'm probably overlooking something so simple, but I can't seem to figure out what it is. Here is my code sfile = io.open&#40;infile,"r"&#41; numchar = sfile&#58;read&#4...