Jump to content
xisto Community

Feelay

Members
  • Content Count

    275
  • Joined

  • Last visited

Everything posted by Feelay

  1. Feelay

    3d And Php

    sorry but i didn't understand that much =/my friend is designing in maya, and I have no idea if it is possible to make a flash movie out of maya scenes. and how can I open an iframe? what is an iframe ?and I guess the window that will open, have nothing to do with the actual server scripts. I don't know. I'm kinda newbie.I mean the hp and stuff. will they reload from the database after every attack, and be visible in the window?
  2. when you read the message? maybe because you just copy pasted everything :mellow:I don't say you did. I just said you MAYBE did :Din read_message.php and new_message.php try to change the $userfinal=$_SESSION['session_name'];to the name of the session you are using..BTW sorry for the late answer (A)
  3. Feelay

    3d And Php

    Hey!I wanted to know if I could mix 3D and PHP.Because I want to do the following thing:I want to make a text based game. Butthis time, I wanted to do it special.I was wondering if there is a way to make a 3D scene execute when I press a form button?and if yes, is it possible to do it, without updating the whole page?example:I press the fight button. Then a scene, with two characters appear, in 3D. then, outside of that window, there is a html coded attack form button. I press that button, and then the PHP script make another scene appear, without updating the page, where my character attack the other character, and then again it return to the first scene. I am not sure if this can be done in PHP. but I think it is possible. If not, can anyone please tell me what language I need to use?And OFC can anyone please tell me how to do it (A)
  4. Feelay

    Why Asp

    not my topic but.. :Dis ASP good for making a textbased game?
  5. why not just download daemon tools or magic ISO. I am not really sure if magic ISO is free, but I know that daemon tools is free. here is the Download link: Daemon Tools Edit: BTW. magic Iso can be used both as an unzip tool, and as a virtual drive. but after some research, I found out that it isn't free. Regards //Feelay
  6. try wamp. here is the link for download Wamp 2 Download Edit: Warning! You must delete apache and all other servers before installing!! PS. I think this is the wrong place for this thread
  7. server not found means that something is wrong with the server. make sure you write the right adress. also .
  8. well did you make sure the php file is a php file?first rename the file, then open it in notepad, then save as, and name is whatever you want.. but make sure it ends with .php.. something like this:My_File.phpthen try. also make sure you didn't forget the <?php tag in the beginning and the?> tag in the end :mellow:one of those may be the problem. if Not, Ill try to figure out something else
  9. Before I can help, I have a question. Is it a Text-Based web-browser game??(I guess it is, because that's where the topic is placed )if yes, then you should learn PHP and MySQL. (I can help you learn the basics if you want ).If it is text based, then Xisto can host it. But if it is more like runescape, then I don't know.
  10. Hey! I've started to learn windows API programming. And I've been using OpenGL. I am following a tutorial, But I didn't understand every comment. So I rewrote the code some times to learn it, and made my own comments. Some of the rows have the comment "What do this row do??". I would be happy, if you could explain those rows to me =), please. And BTW: I am only on the first tutorial. When I start with the others, I am sure I will have more questions. And if someone else have a questions about OpenGl, feel free to ask them here, instead of starting a new topic . PS! The codes I will write here is not mine! (they come from tutorials from a site named swiftless), and I don't know if I should put them in quote tags or code tags. But If they should be in qoute tags, I am sorry. #include <GL/gl.h>//include the gl header file#include <GL/glut.h>//Include the glut header filevoid display (void){ glClearColor(0.0,0.5,0.9,0.8);//BG Color glClear (GL_COLOR_BUFFER_BIT);//What do this row do?? glLoadIdentity();//What do this row do?? gluLookAt(0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0);//Camera Position glFlush();//What do this row do?? } int main (int argc, char **argv){ glutInit (&argc, argv);//What do this row do?? glutInitDisplayMode (GLUT_SINGLE);//What do this row do?? glutInitWindowSize(900,900);//Window Size glutInitWindowPosition(0,0);//Window Position glutCreateWindow ("Feelay's Fifth;)");//Window Title glutDisplayFunc (display); //What do this row do?? glutMainLoop();//What do this row do?? return 0; //xD What do this row do :P??}
  11. thank you =) But my problem was that I couldn't install glut. But I solved it. The solution was the following. I tryed to follow this tutorial: Installing Glut To Dev C++, A tutorial to install GLUT on Dev C++ I thought I had the version needed. But when I was on the step where I needed to go to an update button, I couldn't find it. But after some research, I recognized that I had an older version of Dev-C++. So I downloaded the newest beta release, and followed the tutorial again. Now it is working =)
  12. Hi! I am trying to learn how to use OpenGL. I am Ăşsing a compiler named dev-c++. I was following a very simple tutorial that would teach me how to make a simple window in OpenGL. But I got a strange error. So I tryed to find a tutorial that would teach me how to install GLUT, because the tutorial I was following, that teached me how to make a window, used GLUT. Anyways, I did whatthe tutorial told me to do, and that didn't work. So can anyone please tell me how I can install GLUT, and how to link everything etc, when working with OpenGL. I hope you understand what I want and BTW.. here is what the linker executed: Thanks //Feelay
  13. About the session: I found this code on a page: <?php #################### # The following code is part of a file included in every viewable page. #################### // Start session off session_start(); // Encrypt a finger print: $setword = "SomethingAboutThisSite"; // Include: IP, Browser, Username, // Setword - Make sure this finger print is unique to this site. // User Active - incase a user is deactivated during their session by a higher user. $setfinger = md5($_SERVER['HTTP_USER_AGENT'].$_SERVER['REMOTE_ADDR'].$setword.$_SESSION['user'].$_SESSION['user_active']); #################### # The following takes place after sucessfull completion of username and password # in a login script. #################### $_SESSION['user_finger'] = md5($_SERVER['HTTP_USER_AGENT'].$_SERVER['REMOTE_ADDR'].$setword.$username.$user_active); // Username, as entered. User_active is taken from the DB. #################### # Each page has multiple purposes, guests, users and higher users, this is how its checked: #################### // Check if the user is authenticated: if (($_SESSION['user_finger'] == $setfinger) & ((time() - $_SESSION['login_time']) < 3600 )) { if ($_SESSION['user_level'] == "higher") { // Whatever a higher powered user can do on this page. } else { // Whater a normal user can do on this page. } else { // What ever a guest can do on this page. } #################### # Each page has a footer which tidies up some script and formatting of the page #################### // Included is some code to extend the log in time, so as long as they are // active they stay logged in. // There is also some code which adds details to a database to show when the user // was last active and what page they were viewing. // This is so higher users can see who is currently logged in and what they are // doing. // Any entry past the sessions expiry time is removed from the database. // A log is also made against the users details of their last activity time, which // remains till their next login. ?> Is that a safe way to store a session? About the database: I still need to know more about that =/
  14. haha ^.^ Thanks for the comment So.. changed them. Thanks for the comment //Feelay
  15. Thanks. Long time I opened this thread. But now I know for sure exactly the things I need, I think I need very basic information on how I can protect sessions. I need to know what is safest to use? sessions, or cookies, or is it possible to use both (maybe "melt them"?), and if yes, then how? I need to know about the most common session/database hacks, and how I can defend myself, and the users viewing my pages, against them. I think that defending my sessions/cookies/database are the most important things, but if there is more I should think about, I would like to know. I have been searching for some days now.. I've found some things, but I do need a tutorial, or something like it, that explains it a little more basic. OFC I need the best protection, but if possible, like I said, explained in a way, that even a 10 year old could understand. I also want to know about this: some people use this: $this->query (or $db->query)instead of this: mysql_query whats the difference? how do I use "$this->" and is it safer than mysql_query? I also want to know about this: some people use this: mysql_query("SELECT username FROM table WHERE username = ?") instead of this: mysql_query("SELECT username FROM table WHERE username = $username") lets say I want to check the username that was submitted by a user in a login script. Why do they use "?" instead of the variable name? is it safer? if yes, how do I use it? when do I use it? I've also been reading some things about storing sessions without cookies. What's the difference? I've always been doing it this way: $_SESSION['user']=$_POST['username'];is that storing it with, or without cookies? if with, is it safer to store it without, and if yes, how to I store it without cookies? more questions may come. Thank you //Feelay
  16. like wutske said: if you change the OR die ('Cant connect to the database'); to OR die (mysql_error()); you will get more information about what's wrong with your code.
  17. Hi!I was just wondering if it is possible to make username unable to view the page source.. I know that you can disable right click, but still, they can go to the page source from the navigation menu on the top of the browser.. if possible, I would really like a code that works on all browsers. Or if you know different codes that works on different browsers..Thanks //Feelay
  18. I don't think you are done with this script or :S?Because the only thing you have here is the MySQL table, and the database-connection file..
  19. Thanks ^.^lol I forgot that "/" was in the variable :PAnyways.. it is working now =) Thank you //Feelay
  20. Haha really old thread a text based game can be any kind of game.. but it is text based. based on text. No animations. most text based games are based on making your own character, or building your own village. When they say text based game, they mean, when you attack, you write in the name of the user in a text box, and then press an "attack" button (just an example). Or when you want to buy something in a shop, you press on a link that will take you to the shop, and then press "buy potion".
  21. sorry, but what do you mean by if (getch() == 13)13 = the number for the enter key? if yes, can you please tell me where I can get the number for all keys, and if no, can you then please tell me what that is
  22. I know this thread is old, but I thougt it might come to help someone else..I've helped my dad with these things a "few" times before (maybe more than 200)..anyways. you should see some files in your C:\ drive.. they should be named inbox.dbx, sentitems.dbx (I think it ended with .dbx)(these are the files you should backup always), and so on.. Now open Microsoft Outlook, and then press on file->import->messages. Now choose the version of Microsoft Outlook you have (normally "Microsoft Outlook Express 6") if you are using windows XP (maybe lower too, but thats the one I am using), and press the "Next" button.Make sure that the "import email from an OE6-catalog" is checked (that what it is named in swedish. but it is the lower "radio box") and press ok.Select the C:\ drive in the window that pops up, and press ok. now make sure that "import all" is checked and press ok. Just wait for the program to import them to your account, and you are done. it isn't much harder Hope it helped ya :PRegards //Feelay
  23. Hi again. I am trying to make a new Register script. But now, there is only one thing that is not working.. I can't make the following query work. mysql_query("INSERT INTO members(username, password, email, register_date) VALUES ('$user','$pass','$email', '$reg_date')") or die("Failed to register.<br> Error:".mysql_error()); this is the current date variable, that is causing the error. (if I remove it from the query, it works just fine) $reg_date=date("Y/m/d"); this is the error I am getting: in the database I gave it the data type int, because the date is only made out of numbers. Thanks for your help //Feelay
  24. Sorry, I meant "text based game" xD Here you go. Here is a link for mc-codes. MC-Codes Here is link for the downloads. MC-Codes Downloads. The first one is the light version. It is free, but I don't think it is so advanced. The ones that you can buy, are very expensive, but I guess they are more advanced. But as I said.. I would recommend you to learn php/mysql and create your very own text-based game.. That is the best thing to do. because then, you can really take all the credits and so on.. But it is your choice. Regards //Feelay
  25. I think that you mean "Test Based Game".Have you tried mc codes? (I think thats what they're named )or you can create your own, like I did :)or do you mean an offline textebased game, written in C/C++ or that kind of language?
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.