Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
Acmlm's Board - I2 Archive - - Posts by spiroth10
Pages: 1 2
User Post
spiroth10

Octorok
Level: 9

Posts: 1/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 04-09-04 05:38 AM, in Need help after installing PHP Link
I dont know if I posted this in the right place but...

ok, im not using a script, and i've already installed it with a web server and mysql. my main purpose (for now) is to use it to test scripts before getting them hosted (I have dial-up and one phone line, it'd get annoying for me AND my visitors) one problem (please keep in mind, im a newb at installing this stuff myself) none of the variables that are usually pre-set when you get hosting are defined. Im pretty sure that I have to define them myself, but how? any help/support is appreciated!
spiroth10

Octorok
Level: 9

Posts: 2/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 04-09-04 09:28 PM, in Need help after installing PHP Link
im using abyss web server (much like apache, but has a better control panel...) abyss has controls for almost everyhing, but im pretty sure its the PHP installation... MySQL works fine... My OS Is Windows ME (it sucks)
spiroth10

Octorok
Level: 9

Posts: 3/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 04-10-04 10:28 PM, in Need help after installing PHP Link
heres a sample I got from tuvai's bulletin board (I was trying to test it) Notice: Use of undefined constant user - assumed 'user' in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 3

Notice: Use of undefined constant pass - assumed 'pass' in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 5

Notice: Use of undefined constant host - assumed 'host' in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 7

Notice: Use of undefined constant name - assumed 'name' in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 9

Notice: Undefined variable: PHP_SELF in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 11

Notice: Undefined variable: PHP_SELF in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 11

Notice: Undefined variable: id in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 13

Notice: Use of undefined constant host - assumed 'host' in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 14

Notice: Use of undefined constant user - assumed 'user' in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 14

Notice: Use of undefined constant pass - assumed 'pass' in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 14

Notice: Use of undefined constant name - assumed 'name' in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\config.php on line 15

Notice: Undefined variable: do in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\install.php on line 4

Notice: Undefined variable: do in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\install.php on line 7




Notice: Undefined variable: step in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\install.php on line 290

Notice: Undefined variable: PHP_SELF in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\install.php on line 290
To start installing your Tuvai Bulletin Board, follow the instructions given in the next few steps. Note, that BEFORE running this installation, you must have configured your config.php file, as stated in the README.txt file!

Go to Step 1
Notice: Undefined variable: step in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\install.php on line 291

Notice: Undefined variable: step in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\install.php on line 301

Notice: Undefined variable: step in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\forum\install.php on line 302

and remember, its on MY COMPUTER so I dont need to get any files hosted, because Im using MY OWN server. just wanted to get that cleared... It might be MySQL to, Im not sure.
spiroth10

Octorok
Level: 9

Posts: 4/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 05-30-04 02:15 AM, in C help needed (minor) Link
ok, Ive finally gone back to learning C, and im serious about it this time. I realize that c isnt really that complicated when I look at it now. But, alas, I still am not a guru, I am a newbie. to get to my problem, I was programming a calculator (just for fun) and I have the whole thing perfectly coded -- except after I ask whether the user wants to add, multiply, divide, or subtract, the program instantly ends. I have a gets(dowhat); (dowhat is a variable for the action taken add, subtract, etc) and then some if statements telling what to do for each possible answer a user might give. however, right after the program gets input, it ends. If it helps Im using a DJGPP compiler (it uses GCC and some other GNU tools...) the code is pretty short (for a C program... long if you use basic/pascal?) I split it up into two functions, int main() (duh) and math(). please help a C n00b if you can. thnx.

edit:
I cant get the code to display right, but it is layed out correctly...
the code is


#include <stdio.h>


int firstnum;
char dowhat[30];
int secondnum;
int result;

int main()
{
printf("Welcome to calculator.c! to multiply, type the word.\n");
printf("same to subtract, divide, and add, too!\n");
gets(dowhat);
math();
}
math()
if(dowhat == "multiply")
{
printf("Input the first number\n");
scanf("%s",&firstnum);
printf("Input the second number\n");
scanf("%s",&secondnum);
result=firstnum * secondnum;
printf("%s", result);
}
if(dowhat == "divide")
{
printf("Input first number (the number divided by)\n");
scanf("%s",&firstnum);
printf("Input second number (the divisor)\n");
scanf("%s",&secondnum);
result=firstnum / secondnum;
printf("%s", result);
}
if(dowhat == "subtract")
{
printf("Input the first (the number 'losing' value) number\n");
scanf("%s",&firstnum);
printf("Input the second number (the number 'taking' value)\n");
scanf("%s",&secondnum);
result=firstnum - secondnum;
printf("%s", result);
}
if(dowhat == "add")
{
printf("Input the first number\n");
scanf("%s",&firstnum);
printf("Input the second number \n");
scanf("%s",&secondnum);
result=firstnum + secondnum;
printf("%s", result);
}
}




(edited by spiroth10 on 05-29-04 05:18 PM)
(edited by spiroth10 on 05-29-04 05:19 PM)
(edited by Weasel on 05-29-04 08:59 PM)
spiroth10

Octorok
Level: 9

Posts: 5/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 05-30-04 02:30 AM, in C++ -- hard or not-- Link
Im learning c\c++ too... Id say programming things is the easiest, and really the only, way to drill it into your head. Id also reccomend starting with c, because C++ is basically a modified (and upgraded) version of C... Your C++ program probably supports c, I havent seen one yet that doesnt. C#... hmmm... I must find out more about c#... Ive seen it around, but have jno idea what it is (other than a programming language, I know that part) well, anyway, start off at the bottom and climb up, not in the middle or top, you'll just fall off the ladder (lol) if you get a tutorial/book/teacher, they tell you to learn C first anyway... as for something to teach you, I like the dummies books. however, they dont teach you much just by reading, you have to try doing things they dont tell you how to to learn from them (i.e. try to combine things you learn) the language itself isnt hard. no programming language is "hard", not even ASM or binary code, you just need the patience and consistant pursuit of knowledge for that language to learn it. I reccomend that you not just stop with C after your done learning it (well, most of it) Im not stopping 'til I learn ASM for a few platforms... good luck and happy learning!
spiroth10

Octorok
Level: 9

Posts: 6/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 05-31-04 01:01 AM, in C help needed (minor) Link
ok... I did something totally different. I recoded it compleatly, and came up with new code that works almost perfectly... almost...(but i still think its ok, because its only my first "real" C program... my others just call you a moron or stupid stuff like that... I only started to learn C yesterday... )

though it wont give you a correct answer...
it says 2+2=100 roflol

I have no idea why this happens, i've tried redeclaring the variable that holds the value to a different type, but it still messes up...

heres my new code... if anyone has an idea on why it really screws up stuff, please, do tell me.
(again, the fromation is messed up a bit...)
___________________________________________________________


#include <stdio.h>
#include <conio.h>
#include <ctype.h>

int firstnum;
int secondnum;
int result;

main()
{
char c;
result=0;
printf("Welcome to calculator c! to multiply, type A.\n");
printf("to subtract B, divide C, and add D\n");
printf("\n");
printf("Input the first number\n");
scanf("%s",&firstnum);
printf("Input the second number\n");
scanf("%s",&secondnum);
printf("Input what function you want\n");
c=toupper(getch());
switch(c)
{
case 'A':
result=firstnum*secondnum;
break;
case 'C':
result=firstnum/secondnum;
break;
case 'B':
result=firstnum-secondnum;
break;
case 'D':
result=firstnum+secondnum-96;
break;
default:
printf("that is not a function\n");
}
printf("%i", result);
}




(edited by Weasel on 05-30-04 04:43 PM)
spiroth10

Octorok
Level: 9

Posts: 7/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 05-31-04 08:40 AM, in C help needed (minor) Link
thanx! The book I was reading on C did not specify that you were supposed to change file types with scanf... I guess the Dummies books aren't actually first class. hmm... ascii... I didnt know there was an ascii number system... thought it was just text... lol. as for the program almost working but being compleatly wrong, try compiling the source from the first program... it was TOTALLY off. it couldn't even handle input/output. compared to that, and the minor error I have here, this code is near perfect. BTW, weasel, the commands printf and scanf work like this, if you ever encounter them (they can be used in C++ too...)
printf("string here %s %i",string variable name, integer variable name);
scanf("%s",stringname);
change %s to the type of variable, in this case a string... thats it, other than formatting stuff. probably very similar to the C++ commands. thanks for the help!


(edited by spiroth10 on 05-30-04 11:40 PM)
spiroth10

Octorok
Level: 9

Posts: 8/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 06-12-04 09:01 PM, in what OS(s) are you running? Link
I was just curious as to what OS was the most popular around here.
post your OS(s) if you feel like it... anyway, Im running Windows ME (I know.. it sucks) and feather linux (a very tiny linux distro based off debian and knoppix... wuns fast in less than 100 megs, although I gave it gig...) Im always testing out new, small linux distros.
what are you running?
spiroth10

Octorok
Level: 9

Posts: 9/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 03-27-05 11:12 AM, in php/mysql help needed Link
Update: hmm... another browsing through the php.net manual revealed that all I needed was to add in the word and...
I'll post the code, because no on seemed to know what to do anyway (no replies):

new code([ instead of < again...):
$db="spiroth_fakedb";
$link = mysql_connect('localhost', 'fakename', 'fakepass');
if (! $link)
die("Couldn't connect to MySQL");
mysql_select_db($db , $link)
or die("Couldn't open $db: ".mysql_error());
$result = mysql_query( "SELECT gname FROM ginfo" )
or die("SELECT Error: ".mysql_error());
$link2 = mysql_query( "SELECT glink FROM ginfo" )
or dies("SELECT Error: ".mysql_error());
print "[table width=200 border=1][h3 align=left][div id=head2]Game Info: [/h3][/div][br]\n";
while ($get_info = mysql_fetch_row($result) and $get_link = mysql_fetch_row($link2)){
print "[tr]\n";
$num_rows = mysql_num_rows($result);
$num_rows2 = mysql_num_rows($link2);
foreach ($get_link as $field2);
foreach ($get_info as $field);
print "\t[td][font face=arial size=3/][li][a href=$field2]$field[/a][/li][/a][/font][/td]\n";
print "[/tr]\n";
}

all I did differently here (other than the and operator) was rearrange the code a beat to clean it up, add a URL to $field, and give it a cool bullet... hope this will help someone...


(edited by spiroth10 on 03-27-05 01:12 AM)
(edited by spiroth10 on 03-27-05 01:13 AM)
(edited by spiroth10 on 03-27-05 01:15 AM)
(edited by spiroth10 on 03-27-05 04:42 PM)
(edited by spiroth10 on 03-27-05 04:43 PM)
(edited by spiroth10 on 03-27-05 04:44 PM)
spiroth10

Octorok
Level: 9

Posts: 10/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 04-02-05 05:10 AM, in going to try and start genesis programming in C Link
Ive known C for awhile now, and I figured I could either learn some more on (boring) PC development, or go and try to make games for a console.

I chose genesis/mega drive as it's my favorite system, and I dont like 3D coding (heck, I havent even learned too much 2D coding yet)

I plan on attempting to make sequels to official gems that sega made, and releasing the roms as PD... though I doubt I will ever actually be able to act on this plan (I am not a great C programmer, but I enjoy doing it) Hopefully I'll learn enough as I go on...

anyway, what are your comments on this? Think I even have a chance at it?
(restricted)
spiroth10

Octorok
Level: 9

Posts: 12/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 04-02-05 07:24 AM, in going to try and start genesis programming in C Link
lol... I forgot to mention...
someone made a cross compiler for the genesis...
lol... I'd be psycho if I tried to write ASM... Im not nearly that good...
Im sure zophar.net has some info on it... that or just search google...
there's not much info for it, but I found one... as well as a TON of technical docs and other goodies...

Im going to reboot soon (Im using my linux paritition now, and the compiler is for windows, surprisingly enough...) to test it out... hopefully it works... otherwise I'll work on some other system...
spiroth10

Octorok
Level: 9

Posts: 13/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 04-02-05 07:13 PM, in going to try and start genesis programming in C Link
I already got a whole devkit for PC... and surprisingly, it works nicely with the demo programs it came with...

it has all the libraries I need built in (controllers and graphics too), it seems to be simple to code, and the only minor defect is that you have to declare blank variables in each function
before you try to change their values...

All I need to do now is study the demos... I think it uses the sozokoban C compiler (hcc). Hopefully I can crank out some nice stuff with this!


(edited by spiroth10 on 04-02-05 09:13 AM)
spiroth10

Octorok
Level: 9

Posts: 14/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 04-02-05 07:20 PM, in Ubuntu Link
first of all, dont listen to ssj there...
second, s'up! Been awhile, hasnt it?

anyway, Im a main linux user now, and my choice is slackware...
if you cant download the whole image, download zipslack and move it to its own partition...
its fairly simple...
or you can go Here and buy a cd set of just about any linux distro for a few bucks shipped (I got my 2cd set for about $2.00 there!!!).

You really should look up info on bash, and get used to typing... a lot...
also, once you get your system, DONT stay logged on as root... thats just asking for trouble...

good luck, and if you need any help, contact me.
spiroth10

Octorok
Level: 9

Posts: 15/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 05-02-05 01:59 AM, in need help deleting MM&Bass data(GBA) Link
This may seem wiered to you, but I want my Mega Man and Bass (GBA ver.) data to be totally gone. erased. forgotten. destroyed.

at one point I used a codebreaker (yes, I had a working enable code, but the graphics were screwed, as you probably know), and greedy little me HAD to have all the CDs... But now I actually want to try and get them fair & square, but I can't get rid of my data... I can start a new game, but it includes all the CDs I cheated to get...

I dont care if I have to remove the battery (the one it saves with...) to do it. I want it deleted. period...

can someone help me on this? If I have to remove the battery... could someone tell me how to safely take it out and put it back in? thanks!

edit: sorry... I found the info on gamefaqs...


(edited by spiroth10 on 05-01-05 09:00 AM)
(edited by spiroth10 on 05-01-05 01:51 PM)
spiroth10

Octorok
Level: 9

Posts: 16/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 05-07-05 06:48 AM, in How many languages do you know ? Link
I know English, and (some) spanish... I used to know a little japanese (VEERRY little...) still know some too... though not enough to say anything other than stupid cat

English is my native language, and Im learning Spanish in school...
spiroth10

Octorok
Level: 9

Posts: 17/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 06-30-05 01:25 AM, in is it tough to program games with allegro? Link
I recently made an allegro (a game programming library) demo in c... (yes, after all these years I was able to use graphics -- took me long enough)

anyway, before I commit myself to actually making a game, I'd like to know froma fellow coder -- is it going to get rough?

The only game I ever wrote was a text adventure. there was no free exploration in it, and it never got released, as I didnt finish the storyline... (still have a finished engine though...)

Also, where should I start? I know an RPG is out of the question without more experiance... I was thinking of a space shooter - those seem the simplest.

Thanks in advance.

P.S. I know I barely post here anymore -- but I lurk without signing in more than you'd think... lol.
spiroth10

Octorok
Level: 9

Posts: 18/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 06-30-05 04:43 AM, in dunno why... but Im scared of death... Link
This is really screwed -- especially since Im only 15.
but just now, I began to think about death -- what will it be like after I die? seeing as Im an athiest, I don't believe in god (that includes heaven/hell/etc.)

this may seem selfish, but Im more worried that whatever death is like will be eternal boredom than missing my friends, family, etc.

All I can think it would be like was blackness without sound. And no ability to think/do anything.

Hopefully I'll get over it -- but its starting to bug me quite a bit...
spiroth10

Octorok
Level: 9

Posts: 19/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 07-01-05 05:47 AM, in What do big game companies use? Link
Ok, I know this is a bit old, but I know a TON about this stuff... Im involved with teh homebrew communities, so I know (never made anything for a game console, though)...

ok, so what do they use? simple. as said above it's C/C++ and ASM. As for how this works, GCC and GPP (GNU C/C++ compilers) are built to specifically cross compile from a PC to the archetecture of the processor on the game system in it's own dialect... I built a GBA and a DC compiler on my slackware box.
there are compilers for:
PSX, Xbox, Genesis (although its just as complex to use C as it is ASM... so dont bother...), PS2, DC, GBC, GBA, and PLENTY of other systems, if you look hard enough...

as for scripting languages, the dreamcast is the only one to have a bunch of interpreters ported to it... so no, games usually are NOT written in scripting languages... This would utterly slow down the process of game creation, make the game 100x bigger, and slow it down. However, PCs are powerful enough to handle scripts better, so they are handled differently.

anyway, as for how the compilers work (in simpler words...)
basically you write the code on a PC as you would regular software. However, there are usually a specific set of libraries dedicated to that systems functions (i.e. the control pad). If not, your stuck using ASM only. These compilers are NOT the official SDKs, and are totally free. they then compile the code into the other systems ASM code (object code), as Dcahrakos said, and assemble them into a native binary to run on that specific system.

So now you have an extremely long, complex, description of how games are built, what builds them, and why most games do NOT use scripting languages. I couold drag this on forever to try and simplify it, but it can be broken down any more...
spiroth10

Octorok
Level: 9

Posts: 20/21
EXP: 2302
For next: 860

Since: 04-09-04

Since last post: 43 days
Last activity: 36 days
Posted on 09-20-05 04:22 AM, in need to find out why NY State mandates earth science Link
its part of a report... Ive been googling for hours and Ive found nothing...
can someone point me in the right direction? thanks!

edit:
darn it changed me to a female... thats what you get for not logging in for a long time...
well... I'll go change that... not that it affects the topic of this post any...


(edited by spiroth10 on 09-19-05 07:25 PM)
Pages: 1 2
Acmlm's Board - I2 Archive - - Posts by spiroth10


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.013 seconds.