-
Posts
1,661 -
Joined
-
Last visited
Content Type
Profiles
Events
Forums
Blogs
Downloads
Everything posted by someboddy
-
I have seen that there is a windows for xbox on xbins - windows ce.net. Should I get this one so I can use windows programs, or just install Linux? And one more thing. Do I need to install the Linux bios?
-
Sit around the fire, children, and hear the legend of the ancient Emul Forums...
-
With linux on the xbox:... 1. can I still play xbox game? 2. do I need a mouse and/or a keyboard? 3. will it slow down my games?
-
Welcome back, tapeworm.
-
How many hours a day do you get outside?
someboddy replied to Alpha's topic in Gossip Café [/offtopic]
Outside... I belive it's that thing with the sky&sun texture in the top, and people models walking around. There are few strange things about outside: 1) When you talk to someone more then once, he/she will have different answers. 2) There is no loading bar when you walk from one area to another. 3) You don't get attacked by monsters when you walk outside of a city... No that's not true. 4) When people hit you, you don't see any red numbers floating abouve you. I am still trying to figure out where you can enable it. -
Well, I want to play psx games on PCSXbox, and it can only play games in BIN+CUE format.
-
I need to convert files of over 600MB. Does anyone know a free program which does that?
-
Well, I| am corrently using evox M7, so I guess I will move to M8. How do I know what the version of my XBOX is? And how do I change my bios? For some strange reason, I can't FTP to my xbox even when my firewall is off, so I need to know how to do it from a cd. And final question, is there a chart or something that shows the properties of the different bioses?
-
Thanks
-
Is there any free program that can do it?
-
Witch bios do you recommand?
-
What's the bios does? Can I change my bios? If so, how do I do it? Is it possible that some bioses support multiregion while others don't? Thanks in advance.
-
Tutorial-the basics of C++ and game making
someboddy replied to someboddy's topic in Gossip Café [/offtopic]
The variables we declared untill now in the classes belong to the object. That means, that if we have variable 'a' in the class 'A', each object of the type 'A' have an 'a' variable of it's own. However, we can declare variables, and functions, which belong to the class. These are called 'static'. So if we have a static variable 'b' in the class 'A', every object of that class will have the same variable, so if 'c' and 'd' are objects of the class 'A', and we write "c.b=3", 'd.b' will allso be equal to 3. however, if we write "c.a=7", 'd.a' will not be equal to 7, unless it was 7 before. Static functions are functions belong to the class, not the object. Static functions can only access static variables, and call other static functions, unless ofcourse they get an objcet as an argument, use global object, or you declare an object inside the function. They cann't access the unstatic variables if call the unstatic functions of the object they belong to, because they belong to no object. Why would you want to declare a function with such limitations? You will see. So how do you do it? You put the keyword "static" before the type of the variable, or the return type of the function, like this: class A { private: static int count=0; //bla bla bla public: //bla bla bla A() { count++; //bla bla bla } ~A() { count--; //bla bla bla } static int howMuch() { return count; } //bla bla bla }; Do not initilize a static variable in the consturctor, because you don't want then to be initilized every time a new object is created. Instend, initilize them when you declare them. 'count' is set to 0 when the program begins. Every time a new 'A' object is created, the constructor is calles and 'count' is increased by one. Every time an 'A' object is destroyed, the destructor is called, and 'count' is decreased by one. Therefor, 'count' is the number of objects of the class 'A' currently exist. You can use static variables and functions like you use regular class functions and variable: A a,b; cout<<a.howMuch(); however, you don't always have a class of that type, and it's a waste of computing time and memory to create a new instance of that class just to call the function, and in our case, substruct 1 from the result, because we don't want to count the class we just created. Then what can we do? We can use the syntex "classname::variablename" for variables, or "classname::functionname(argumentlist)" for functions, like this: cout<<A::howMuch(); Nice and simple. That will be all for today. Class dismissed. -
Tutorial-the basics of C++ and game making
someboddy replied to someboddy's topic in Gossip Café [/offtopic]
Regular functions or class functions? -
I want a castlevania game for the Xbox.
-
Tutorial-the basics of C++ and game making
someboddy replied to someboddy's topic in Gossip Café [/offtopic]
One important thing about constructors I forgot to tell: If you don't declare any constructor, C++ will declare a default constructor for you. The default ocnsructor has no argument's, and it does nothing. If you declare a consructor with arguments, C++ will not declare the default constructor, so unless you declare an argumentless consructor yourself, you will have to use arguments every time you create an object of that class. therefor, this is illegal: class A { public: A(int a) { /bla bla bla } }; void main() { A a; } However, you can do this: A *a; Because no object is created. Ofcourse you will have to insert the argument when you use the "new" command. -
What Programmin Language you're currently taking?
someboddy replied to ritzi's topic in Gossip Café [/offtopic]
This is true. Also, the older the language, the faster the programs will run, and the smaller the exe files will be. However, it will take you longer time to write your programs, and it will be harder to debug them. So the choice is yours. -
What Programmin Language you're currently taking?
someboddy replied to ritzi's topic in Gossip Café [/offtopic]
.NET is a gruop of languages - Visual Basic.NET, C# ect. What exacly do you learn/know? -
Tutorial-the basics of C++ and game making
someboddy replied to someboddy's topic in Gossip Café [/offtopic]
Might be. -
Tutorial-the basics of C++ and game making
someboddy replied to someboddy's topic in Gossip Café [/offtopic]
One of the main ideas of classes is that the user (the user is a programer him/herself, but I call him/her a user, because he/she is using the class we write) will not have to deal with the data of our class, only to call it's functions. However, when the user creates an object of our class, it can contain anything. We want a way to initilize this object, to contain usefull data. Lets say we have a Point(classes names start with capital letter by tradition. It makes the program easier to read) class, containing x and y. we want that when the user creates an object of the type point, both x and y will be set to 0. we do it like that: class Point { private: int x,y; public: Point() { x=0; y=0; } /*all the other functions of the class Point. you can put functions before the constractor, but I didn't wanted to say the same thing before the constractor*/ }; You are probebly asking yourself, "What's up with that Point function, containg no return type, not even void? Is someboddy crazy" This function is called constractor C-O-N-S-T-R-A-C-T-O-R. Or shortly c'tor. It is called when the object is created in the memory of the computer - when you declare it. It's name is the name of the class, and it has no return type - since it can't return anything. The constractor is also called when you use the "new" command. The constarctor can also have arguments, so the user can set the values of the object when it's created. You do it like that: class Point { private: int x,y; public: Point() { x=0; y=0; } Point(int nx,int ny) { x=nx; y=ny; } //all the other functions of the class Point. }; Hey, what's going on? How come two functions have the same name? Those who know JAVA can tell you that this is called function overloading. Many functions can share the same name, as long as they have different argument list, so the compiler will know which function you are calling. You can do it with every function, not just a constractor. This is a C++ feature, so it won't work on C. So, how do you use a constractor with arguments? It's very simple: Point p1;//p1.x is 0,p1.y is 0 Point p2(3,5);//p2.x is 3,p2.y is 5 Point *p3=new Point(4,2)//p3->x is 4,p3->y is 2 You can also use a constractor with arguments to create imidiate values of you class. Just look at the example: Point p1; p1=Point(7,6); "Point(7,6)" creates a point on the run and call the constractor, which sets it's x to 7 and it's y to 6. Then that point is copied to p1, and the temporary point is destroyed. C++ let you chose what to do when an object of you class is destroyed in the end of a function that the object is part of, when the program ends, when you use the "delete" command, or when you use it as an imidiate value, like in the latest example. You do it by declaring a destractor: class Point { private: int x,y; public: Point() { x=0; y=0; } Point(int nx,int ny) { x=nx; y=ny; } ~Point() { cout<<"Bye Bye"; } //all the other functions of the class Point. }; As you can see, the destractor is declared just like a constractor, only it has '~' before the class name. You can't declare a destractor with arguments, and ofcourse you can't declare more then one destractor for the same class. The destractor for the class Point is pointless. However, destractors are important for classes containing pointers (Like a string class), which need to clear the memory from the data they used. It is also important for other classes like a class that goes to graphics mode on the constractor - you have to exit the graphics mode, aren't you - or a window class in windows - you need to close the window. That will be all for today. Class dismissed(calling the destractor ) -
How do I make emulators?
someboddy replied to Sybarite Paladin AxL's topic in Gossip Café [/offtopic]
If you post the lines here, maby I can help you. -
How do I make emulators?
someboddy replied to Sybarite Paladin AxL's topic in Gossip Café [/offtopic]
Switch is way easier the if, if you have a lot of options. I belive it's faster too. You just need to remember to put "break;" in the end of each case. -
What Programmin Language you're currently taking?
someboddy replied to ritzi's topic in Gossip Café [/offtopic]
Well, for me it's just: C/C++ Java JavaScript Visual basic Pascal ASP/VBScript I am learning Visual C++ and Assembler And by the way, SQL is not a programing language, neither HTML. SQL is a quary language, and HTML is a format. -
How do I make emulators?
someboddy replied to Sybarite Paladin AxL's topic in Gossip Café [/offtopic]
And don't think that everything else is just adding a few pieces of code to this program. You will need to write a lot for every thing you do. However, you can have your graphics now if you will use Turbo C++. You can download the program from my tutorial. There are graphics functions in "graphics.h", and you can get keyboard input with kbhit() and getch(). Press F1 or the right mouse button for the great help provided with this compilers. The functions in "graphics.h", kbhit and getch are not very good, but I am working on an header of my own. I will send it evryone who want it when I'm done. -
How do I make emulators?
someboddy replied to Sybarite Paladin AxL's topic in Gossip Café [/offtopic]
Win32 programing with C++ is H A R D. I tried to learn it, but it's way to complex. You need to remember T O N S of code. here is the code for a simple empty window: #include <windows.h> const char g_szClassName[] = "myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASSEX wc; HWND hwnd; MSG Msg; wc.cbSize = sizeof(WNDCLASSEX); wc.style = 0; wc.lpfnWndProc = WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wc.lpszMenuName = NULL; wc.lpszClassName = g_szClassName; wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION); if(!RegisterClassEx(&wc)) { MessageBox(NULL, "Window Registration Failed!", "Error!", MB_ICONEXCLAMATION | MB_OK); return 0; } hwnd = CreateWindowEx( WS_EX_CLIENTEDGE, g_szClassName, "The title of my window", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 240, 120, NULL, NULL, hInstance, NULL); if(hwnd == NULL) { MessageBox(NULL, "Window Creation Failed!", "Error!", MB_ICONEXCLAMATION | MB_OK); return 0; } ShowWindow(hwnd, nCmdShow); UpdateWindow(hwnd); while(GetMessage(&Msg, NULL, 0, 0) > 0) { TranslateMessage(&Msg); DispatchMessage(&Msg); } return Msg.wParam; }