sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Jan 14, 2006 3:08:04 GMT -5
I can see a potential problem, one is if the path to the windower gets too long. Example, the user stores the windower directory on their desktop. 255 chars should be long enough though. Another is if the file is moved into a subdirectory, the function still points to the default location. This may be for security reasons, if so, then it'll be a good idea to raise a Lua error: If the script defines an absolute path rather than relative to the script by definining either a drive, '/', or '\', it appends that to a static path in the C code. When Windows goes and tries to read it, Windows returns with invalid path when it comes across this in the middle. If allowed to define an absolute path, then check for these conditions and replace the entire path with the one that the script provides.
After reading this and making a few adjustments to this post to make sure I don't sound too harsh, I'm still accustomed to tapping [alt][f] right after I make a quick change, lol.
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Jan 14, 2006 5:14:07 GMT -5
Maybe one of you guys could help me update the docs in an easier to use format or something. I'm pretty good with PHP and MySQL. I was thinking about recreating something like what PHP has for its PHP Function List. Maybe without the comments part where people can just come in and post whatever they want. Probably include the standard Lua functions too so people would be able to use one documentation source instead of going through both Lua and Lunar docs.
|
|
|
Post by TinyTerror on Jan 14, 2006 11:42:57 GMT -5
Yeah, I would actually like something that supports comments. That way I can explain retardation as I find it. And as for the texture code, I know its shitty. YOu have to understand that it was one of around 100 lua wraper functions that I had to write by hand. Not some of my best code.
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Jan 14, 2006 20:01:44 GMT -5
You have to understand that it was one of around 100 lua wraper functions that I had to write by hand. Not some of my best code. Ya, and I can imagine the nightmare of debugging it all. All of us programmers know, error checking is the bane of us all, taking up 90% of almost all code.
|
|
|
Post by deathravin on Jan 17, 2006 15:25:08 GMT -5
<<Has a flash-back to his C++ days... "No Mr. Lombardo Don't hit me! I'll code, I swear. I'll code! I won't go ahead in the book... No more, I promice. I'll stay with the rest of the class... Fail me? Why are you going to fail me? ... For not staying with the class... But I just did the program you assigned for the Final exam last year in the 3rd week... You don't have to fail me, Please don't fail me. This is my only good class... ">>
Wow that was wierd, what happened...
<<Reminds himself he doesn't know C++... He failed C++ class in college, you can't know code from a class you failed... and if the code ever comes before his eyes again, to remain calm, and not to read it>>
|
|
|
Post by TinyTerror on Jan 17, 2006 15:32:51 GMT -5
Yeah, I went to class maybe ten times in the first year of C++ in college. I still did really well. It was just too easy
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Jan 18, 2006 8:24:38 GMT -5
Lol, all the instructors I had knew that I would pickup the languages they taught really quick. Within a few weeks, I was practically teaching the classes myself, lmao. ;D
|
|
|
Post by TinyTerror on Jan 18, 2006 8:34:19 GMT -5
That only works until you get out of the intro level programming classes. After that, the professors could kick your ass six ways til sunday in just about any programming language.
The fastest I ever had to learn a language was with Lisp. I went from zero exp to writing a functional neural network in lisp in the space of about 2 or 3 weeks. No a whole lot of fun, especially with a language as academic as Lisp.
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Jan 18, 2006 8:44:25 GMT -5
Actually, this happened with C and PHP. I learned them beforehand and thought I'd tie up some loose ends to see what I might've been missing. Government funding and free elective credits. ^.^ b
I didn't really know C to start with, but when I saw some sample code, I found a ton of similarities with Java and.. well.. had at it.
I exaggerated a bit when saying I was teaching the class, I pretty much did my work, then was allowed to roam around and debug other people's code if they needed help.
|
|