Home | Reviews | GUIpedia | Forum | Fun500
aguma | Annoying stupid error with SparkI've been trying to fix it the entire day!!! GRRR! lol
Anyway after you login, it's supposed to open the GUI (which, for now, just opens my test program). However, it only does that if you get the password right on the first try. I have NO idea whatsoever of why it does it. I've debugged just about every part of my program and I still can't figure out why the darn thing won't load!
Anyway, good luck trying to figure out what the heck is wrong with it! lol [file name=spark.zip size=153933]http://theguiblog.com/images/fbfiles/files/spark.zip[/file] | 2009-03-13 | 6:53 PM |
pharoah | Re:Annoying stupid error with SparkI'm finding your SPK code a bit hard to decipher, but have you thought about the possibility that, once the user gets the password wrong, the path to wrongpass.spk is on the stack? I don't know if running it in your language removes this string, but if not it might stay around and get evaluated as a wrong password. | 2009-03-13 | 7:33 PM |
aguma | Re:Annoying stupid error with SparkIt actually does remove it from the stack after it calls the runprog command. It even RUNS the window manager, but for some reason the window manager won't do anything except show me a blank screen. I still haven't found the solution to it! | 2009-03-13 | 7:40 PM |
pharoah | Re:Annoying stupid error with SparkI've been taking a look at the code for you scripting langauge (actually trying to make a program that translates it to something more readable), but it's bugging me that it seems you've made the task harder for yourself. For example instead of having:
CMP
CMPSTR
GOEQ:
GOLESS:
GOMORE:
GOTO:
GOZERO:
GONEG:
you could have only something like:
STREQ?
EQ?
GT?
LT?
The first few would push a 1 or 0 on the stack based on the result. Also:
IF:
GOTO:
Also you could add logic:
AND
OR
NOT
XOR
So you could combine the boolean results. For example to test if both 3 is equal to 4 AND if 4 is equal to 4:
PUSH3
PUSH4
EQ?
PUSH4
PUSH4
EQ?
AND
IF: xxx
Also you've got some commands that take their arguments from the script file instead of the stack it seems, and I think it would be easier (and much more flexible) if for example DIRS took its path from the stack. That way if the working path changed during runtime, the program could account for that. | 2009-03-13 | 8:17 PM |
aguma | Re:Annoying stupid error with SparkThanks, although I think I'm going to keep with the complicated GOTOs and CMPs because I feel like it. (And because I'm lazy) Also, I've switched the DIRS function to take inputs from the stack, although it seems the rest of the ones fit because the user wouldn't really input them anyway.
Any idea why it doesn't login though? | 2009-03-13 | 9:04 PM |
GUIs
2021 Brandon Cornell