345 Posted Topics
Have another problem with an OBJ model format converter I'm making. As a test, I want to read in data from an OBJ file, and write it out in a different format, and then the other way around. The problem I currently have is that I want it to be … | |
Re: I don't think you can do that with the console. You would need to use a GUI or graphics lib. | |
Re: Ingedients: 1. Effort 2. Ability 3. Willingness 4. Sense of hard work 5. More effort Recipe: 1. Using your effort and your ability, make sure you are willing to make use of a good sense of hard work to code a program, or come up with an idea for one. … | |
Re: How about using the dos command rename? Consider this pseudocode (yes, I love pseudocode): [CODE] main function{ print("enter old path") input>>old_path print("enter new path") input>>new_path system("pause") system("rename ", old_path, new_path) print("complete") } [/CODE] I would give you a proper code, but I'm working back into console based C++, after spending … | |
Re: Just some input: -Using a struct is the best idea. However, watch out if you make a function that returns with a type of said struct. -In the struct, you may want to use "string tellNum" (don't forget to include the string header!) instead, as some people (like me) put … | |
Re: Checking out Kieran's code: works fine. Just a couple of points. When it asks for your body weight, is that kilograms or what? Good job guys :) | |
Hi just a simple n00b question. I need to split a string (from a .obj 3D model format) into a list of three doubles (the vertices). example string: v 0.200006 -0.093641 0.584690 I want to make it into an array of (for example): {0.200006, -0.093641, 0.584690} I can get rid … | |
Re: [url]http://vsxu.com/index.php?option=com_content&view=article&id=19&Itemid=22[/url] | |
Re: Start by making a function that allows you to read and write the data from/into text files. | |
On msn, some of my contacts do not appear online, even when I know they are, and they cant see me either. Others cant recieve my messages, but they appear to send ok. And no, we havent blocked eachother, were not choosing to appear offline or anything else, so dont … | |
Re: I'd say it was 50-50. iPhone has a bigger/better market, but it is expensive to develop for (if you want full functionality available by using the iPhone SDK with Objective-C). Alternatively, you can use Dragonfire SDK (C++), which has limited capabilities, but you can still make great apps with it. … | |
Hi all. Before I say any more, I am a compete noob at JavaScript. I have been attempting to learn some though. I want to make some Windows 7/Vista sidebar gadgets, so, as a practise, I am making a very simple calender. It uses a CSS to draw up a … | |
Re: I think I heard that you have to sign up to the Apple Developer network to be able to distribute your apps. A good place to start is [url]http://www.dragonfiresdk.com/index.htm[/url] This is a windows C++ library. Two things you already have! | |
Hi all. When I try to run games on my computer, the window is in fullscreen mode, but the view doesn't cover the whole screen; as to say there are black bars on the left and right. I changed the ingame settings, but I can't get it back to where … | |
Re: [url]http://msdn.microsoft.com/en-us/library/dd370990(VS.85).aspx[/url] Take a look at this MSDN page. If you scroll down a little bit it has all the details that you need. Example and source code, programming guide, getting started. API referece etc. I took me literally 30 seconds to find this. | |
Re: Windows, because it used by more people, with better support. | |
Re: I'm not really sure. I think C# would be a good language to use in the long run if you plan to become a paid games programmer, but then Flash is great for publicity as you said. I am trying to learn Actionscript 3 right now, but I'm having trouble … | |
I want to make an array (using the built-in array module), to create an array made up of classes. All the objects in the array will be the same class, but I want to be able to append new classes on the end and read the values. Thanks in advance. | |
As I write this to you, I am feeling relieved, as I have just managed to come out on top of a heavy virus situation. I downloaded a file, and, unkown to McAfee (I now have, Avast, McAfee and SUPERantispyware, it contained a virus. This installed a few more viruses … | |
Re: look. go post in the correct forum. This is general game dev, not a programming language. looks like C++ to me, so post in the C++ forum. Also, code snippets are for completed, working snippets that other can use. This is the sort of thing you put in code tags … | |
Re: You what now? If you want serial codes to upgrade trial versions, look yourself. It's kinda illegal as well. | |
Re: use google. if you are using dev-c++ then use the package manager/update downloader. | |
Re: What in particular do you not know about games in C++? Graphics ------------- [URL="http://www.cppgameprogramming.com/cgi/nav.cgi?page=allegbasics"]Allegro (simple)[/URL] [URL="http://www.cprogramming.com/tutorial/opengl_introduction.html"]OpenGL (medium)[/URL] [URL="http://www.drunkenhyena.com/cgi-bin/dx9.pl"]DirectX (hard)[/URL] GUI ------------- [URL="http://www.winprog.org/tutorial/"]Win32 API[/URL] Game Engines ------------- [URL="http://www.thegamecreators.com/?m=view_product&id=2128"]DarkGDK[/URL] [URL="http://irrlicht.sourceforge.net/"]Irrlicht[/URL] Ideas ------------- [URL="http://gpwiki.org/index.php/Game_Ideas"]Game programming ideas wiki[/URL] May I warn you that you may find a difficult point in the middle of game … | |
Re: wow! That's a huge project. Build it up in stages. Start with one drum, which is operated using the mouse. Then build it up with more drums (using classes) until you have the amount you want. Make a new program, again with just one drum, but copy all the draw … | |
Re: try using: [CODE] import pygame #and from pygame.locals import *[/CODE] Also use the [CODE]pygame.mixer.get_init()[/CODE] function to see if the mixer is working | |
Re: Why don't you make like a text-based shopping checkout program? You can have a main class filled with all the main functions, like a welcome, ouput priter etc. Then you can have an object class. It can have variables like name, price, quantity, etc. Then you can make new objects … | |
Re: It really depends on what you are doing. Is this game 2D? If so, you will want to use either of the following: Python with the pyGame library (recommended!) C++ with the allegro graphics library I recommend python because the syntax is a lot easier. Also, pygame is a lot … | |
Re: Have you looked in your site packages folder? (python/Lib/site-packages...). Are there any variations on how you can import it? (eg. import Tk/import Tkinter) | |
Re: I could be pretty much any language. Most likely this is just a list of strings. And no, you can't run a program from this. Seriously. Take more time to look at the code you want help with. Put in some effort. There is no way you can run this … | |
Re: look...you need to provide more detail. What language are you using? What does the match events file look like? By link do you mean read? | |
Re: What problems are you having? What information do you need to find? | |
Re: Here's a brilliant site. I was confused when I started out, but this frankly BRILLIANT site helped me through. [url]http://lmgtfy.com/?q=python+documentation[/url] ^_^ | |
Re: I take it that you are using something like notepad to write the script and then you are just runnning the script through the python console straight off. There are several ways that I have been able to see errors. Print-screen can help sometimes, but not when the console is … | |
Say I have a file structure that looks like this [CODE]root folder/ main.py -folder a -script.py -folder b -img.png[/CODE] How could I load the img.png file from script.py? Should I just have a function in main.py that gets the path of the root folder, and then tac the 'folder a' … | |
Re: Unfortunately, PyGame is now being made for JavaScript. While you can still learn it now, there will be no support for major updates to Python in the future. While some versions of PyGame [U]may[/U] work with updates to Python, there will not be full support. But hey, its awesome so … | |
Re: Are you using arrays to make data that you can be turned into a map by your program? | |
Re: Here is an example. Remember that after reading from a text-file, (if you read the whole line) you may get newline characters ("\n"). Also, you need to remove the spaces. [CODE] n = '$ 235.0 M' #Example string n = n.strip('$M ') #Cut off the chars - including spaces! n … | |
Hi. I am trying to get texturing to work in PyOpenGL in 2D. I have the following code so far for textures: [CODE]def tex(path): img = pygame.image.load(path) img.convert_alpha() try: ix, iy, image = img.get_width(), img.get_height(), pygame.image.tostring(img, 'RGBA') except SystemError: ix, iy, image = imgs.get_width(), img.get_height(), pygame.image.tostring(img, 'RGBA') ID = glGenTextures(1) … | |
Re: Windows has "stuff" for running programs using OpenGL. It does not have anything on it for creating software with OpenGL. I tried out codeblocks but I didnt like it, so I switched to using dev-c++. You should do this to. This is because it has a package manager, where you … | |
Re: It's very hard to read an excel file, but you could try reading an Excel XML file. | |
Re: there are a few cheap flash alternatives...unfortunately, in this case, they are free for a reason. Swish Max is probably the best alternative I have seen, but I'm not sure whether you can make games on it or if it's just animations...hey i've just found flashdevelop.org...im gonna check it out | |
I have recently purchased ToCA Race Driver 3 for my PC. I used systemrequirementslab.com to check that it would work, and the only issue that came up was that Windows 7 was not released at the time and it was not officialy compatible. I found this website and I followed … | |
Re: What programming language are you intending to use? decide then post in the forum for that programming language. | |
Hi. I'm just trying to make a simple analogue clock as I learn to use TKinter with python. I need to know the maths behind calculating the x, y values for drawing the end of the hands. I don't need to post the whole program, all you need to see … | |
Re: is this just distribution of an .exe or source code? or is it meant to be buit in to a web-page? what language is it written in? |
The End.