Jump to content
  • Advertisement

nprz

Member
  • Content Count

    1818
  • Joined

  • Last visited

Community Reputation

692 Good

About nprz

  • Rank
    Contributor
  1. Quote:Original post by cache_hit I come from a windows background. I've used linux some, but I still feel crippled in general. I know most of the very basic tools and commands (grep, ps, ls, cat, etc), I can do really simple stuff in vi, I know how forks, pthreads, etc work. Does anyone know of a tutorial or book that is specifically designed for programmers to get up to speed on linux quickly? Sure, I can just play around and do what I've been doing, but I know there's got to be something out there like this. I've googled, and most tutorials are aimed at things like system administration, setting up networks and firewalls, configuring hard drives, etc. That's great, but not that interesting at the moment. If anyone has some recommendations I'd appreciate it. I'm a fan of commands like: find, xargs, grep, less, more, diff, df, du, hexdump, rdesktop, sort, wc, wget, which, pushd, popd. There are a few dozen more for sysadmin that I use, but if you aren't doing that, then it isn't very important. Then, just using |, > and < appropriately make life much easier. If any of that becomes unwieldy, then I break out perl and script up something easier. But I do understand you feeling. I switched from Windows to OSX at home a few years ago and I still feel crippled. The only thing that saves me is having the terminal around. I don't know of books or tutorials for this. When I really started using linux, I just got dropped into it head first when I started working in a linux oriented place. Do you have examples of things you do on linux that seem to take longer than windows or seem overly complicated?
  2. nprz

    monitor, cable, or video card dying out?

    I've had my monitor do a similar thing. It would turn off and then turn back on periodically, but progressively got worse the longer the monitor was on. Turned out the DVI cable wasn't high enough grade, so when the end of the cable got too hot, the connection would die out until it cooled off. In the end I downgraded to VGA (almost burned my finger touching the end of the DVI cable). When I had a video card go out, I can't really say what was going on. I was in Japan and doing remote desktop for a couple months. Then all of the sudden I couldn't connect. I guess the computer crashed and wouldn't turn back on until I replaced the card. And when your laptop bulges up off the table, it is because your battery expanded and the laptop is no longer portable (damn MBP).
  3. nprz

    what is the best game develop company?

    Quote:Original post by ukdeveloper Quote:Original post by Moe If you really want to be making money, the game development industry isn't the place to be. Get out of software development entirely and do something that a) pays reasonably well and b) doesn't suck your soul dry. Fixed. Which would be? Most jobs that pay reasonably well, start to suck your soul dry. I'm doing fine at a software company, but I stay away from development as, it seems the developers have much less free time and a lot more stress. To the OP, yeah, a game developer can probably feed his families. He probably won't be eating with them. Regarding better life, read up on the EA wives.
  4. I am also trying to make a platform game, moving away from the MMORPG, to something that would take less time to complete. If your levels are not too large, then a 2D array might be fine. But keep in mind that you would be allocating a square of tiles and likely won't use the whole square, so you'll have a lot of empty spaces taking up memory. I am going to try using a map of x,y pair, but I haven't checked to see if it scales and is fast enough. As far as collision detection is concerned. I guess it depends on how many objects you plan to have on a level to compare against. If there are going to be lots, then maybe storing a list of objects in the tile would be better. Then you could just compare against objects in the nearby tiles (depending on how large your objects will be). In the tetris game I wrote, I used the can_move_left/right/down() strategy to test collision detection. That worked well.
  5. nprz

    Server Programming?

    I was just going to suggest that you didn't need a server and that when a user requests to "get" data, the php code would do an update of the "logic" for the number of seconds since the last update. But my server (fitpc) is on my bookshelf, so I don't have to worry about someone killing my daemon processes.
  6. I stop screwing around with a piece of code once it works without bugs and does what I intended it to do. I also spend about half of my time designing it before typing any of it in. I try to avoid throwing things in at a later time unless it was to fix a bug or design issue that I missed. I usually have a chance to look back at code I wrote 6 months, 1 year, 5 years ago and see how much I've changed over that time. I could rewrite it all and probably make it more readable and perform better. But if I weigh the value added doing that versus whatever is critical at the time, then I usually pick the task at hand. (I have redesigned a lot of code though, because the old code couldn't be bug-free do to design issues and adding hacks and debugging was wasting too much time)
  7. nprz

    Advice: For vs. While

    Quote:Original post by cryo2010 Hello gamedev. I'm a student who's been programming in C++ for going on 8 years, stuck in a college C++ data structures class. The other day, I received two letter grade deductions for using 'for' loops to iterate through all items in a list. When I asked why I lost these points, given my code would never fail, the instructor responded: "I prefer.. no, I require that you use a 'while' loop for instances where you are not incrementing a variable." Realizing that he will be grading my future code projects based on his opinions of style in the future, I kept silent. In your opinion, is there sound reasoning for his decision or is this nothing more than a power play? Do you have any suggestions on how to best approach this situation without making it worse for myself? Any advice is appreciated, and thanks in advance. Cryo I'd throw in another vote for doing it his way and passing the class. Wherever you go, there will be people who style their code differently and usually if it isn't a new project, the biggest rule is to follow the existing style. It is unfortunate that you probably didn't know what style to follow for your assignment/test. I'd only argue if they were naming variables like: int c; int c2; int c3; to act as counters to go through 3 different while loops (not nested, although I'd even complain about clarity if they were nested). But also, your for-loop did not look as clear as the while loop (with assigning iter = temp). If you were just iterating and not deleting a list like: for (Node n = list.first(); n != list.end(); n = n->next) { print n->data; } then I'd prefer that over a while loop.
  8. Quote:Original post by andreib Hi Everybody, I hope everyone is doing well... I just bought a new HP Pavilion 1155se laptop with the AMD ZM-82 2MB L2. It came with Vista Home but I installed Windows XP Pro 64. My Question is: Is there a program somewhere that can "scan" or "probe" all the hardware on my laptop and get the name, version, model number of the device? I've tried driver-detail programs that give you details of installed drivers on your computer, but that is not what I want. I want to get details of the hardware devices on my computer. I know in linux this shouldn't be too hard but in windows I can not find the right tool. Thanks There is devcon http://support.microsoft.com/kb/311272 You can run 'devcon drivernodes *' which may give you some of what you want. winmsd may give you some more hardware info. If you had linux, it would be much easier. Maybe you can use a liveCD and get all the hardware info from that [smile]
  9. nprz

    You know you're a crappy programmer when...

    Quote:Original post by phresnel It happened once that I accidentally pulled a colleague's computer off wire. Then he screamed something like "DUDE!!1" and "WTF!!!?" and "ALL MY CODE IS G O N E !" and stuff like that. I responded in a polite manner by saying "When was your last time you saved?", he responded "This morning!" (i.e. 5 hrs ago). It took me some seconds to try not too laugh (though I had a bit of sympathy with him). Then I responded "Then I am not sorry and it is your own fault, take this as an advice: Get comfortable with <ctrl>+s and co.". (Even though he's doing quick-save now frequently, that was the day we got some small USV's for the dev's computers. Just in case.) That does suck for him. I ssh and do programming that way. Although my favorite editor autosaves frequently, I still have a habit of hitting <esc>:w very often because when my network connection gets temporarily interrupted *blasphemies to Comcast*, I can't stand the thought of losing my work. But a semi-related crappy thing that happened to me. I let me boss use my laptop so he could check his email. I had an external USB attached to it. He didn't seem to notice that he pulled that off the desk when he adjusted my laptop to apparently get more privacy. Now I have a large paperweight in my office to remind me never to let people borrow my laptop.
  10. nprz

    New to programming

    Quote:Original post by BCullis Quote:Original post by Shakedown If you do take CIS courses in college, they will most likely be taught using Java. That's actually an interesting point: My core CS courses (i.e. Comp Sci 1 and Comp Sci 2) at the college I'm currently at are taught in C++, but when I transfer to the larger school, their Comp Sci 3 course is being taught in Java. That is interesting. Back when I went to college, all the normal courses were in C++. Then there were the assembly classes, and programming languages, which was in Scheme. I never had to take a java course. When I started work, they paid for me to take a couple Java courses, yet I never need it for me job. Instead I use perl, python, php, and any other flavor of the week. The language is never a big deal, but adjusting to everyone elses writing styles (formatting, naming conventions, how they loop and their choice of algorithms) takes more work. jacko629: It isn't unrealistic to start college with no programming experience with a future goal of becoming a game programmer. On the other hand, you should pick up a language (please not php, it is awful) and give it a try. Once you get past the syntax and learning the keywords and all the basics and can write a few basic applications, then maybe you will know whether it is enjoyable enough to make a career out of it. Personally I won't make a career of game programming because I'd have to specialize in one part of the game and once I do that, it just isn't fun for me. [smile] It is a great hobby though.
  11. nprz

    Play tester

    Quote:Original post by Stowelly ... quality assurance, ... are usually the entry point for people with no qualifications / currently possessing any development related skills to offer a company...... Sorry to butcher your quote or if I'm taking it out of context by removing a few words. But QA isn't really an entry level position to a company. It is usually a position that may not require the same skills that a Developer position may and some people may consider it as a way to get a foot in the door. Maybe Game testers don't need development related skills, but at my company, no QA will get hired unless they have a least one language that is used, such as Java, Python or Perl. Manually testing the same thing 20x is a waste of time in my opinion and is better served by automating it so you can test something else and find new bugs. And for CodyClay, do read Tom Sloper's page. It is well written and is also quite true for general QA position.
  12. nprz

    MMORPG Data Storage

    Quote:Original post by drakostar I'll throw this into the mix. From Wikipedia, here's how the old UO dupe bug worked: Quote:It was accomplished by placing items on the ground (most often gold and reagents), teleporting far away, and shutting down the client before arriving at the destination. The virtual world had many computers (servers) controlling the different regions, and by moving a long distance, the character would be transferred between two computers, but by shutting down the client, the character would be lost in the transfer. When the player logged back in, the server would use its last backup of the character, which included the now-duplicated items. http://en.wikipedia.org/wiki/Criticism_of_Ultima_Online#Duping So to be an annoying pedant, I'd say it's all item movement that needs to be atomic. Maybe for the sake of optimization you can very carefully exclude certain one-way transfers that aren't exploitable, like taking loot from a monster. Then stamp every generated item with its own unique ID for good measure. It looks like the main bug is that they didn't save the character before sending him off to another server. Before giving up control, one should make sure that if they can't give up control that the state can be restored properly. This is why when you move a file from one disk to another (or one server to another), it copies the file and removes the original upon success. This provides some assurance that if the move fails for any reason, the everything isn't lost. There may be a chance of item duplication (or lost items) if the server crashes, but the server crashing should not be a common thing (especially if the product is released).
  13. nprz

    Education vs Experience

    I, along with some friends of mine, would have taken the scholarship in Japan. I don't care if it opened up more job opportunities. Job experience or Education don't mean much when looking for a job. Having too much of either would having knowledge in what you did will hurt you a lot. I interview people with 10+ years of experience or Master/PhD that fill out their resume with very nice acronyms but don't half of what each one is. So, if you have something you really want to learn in depth and passionate about it, then go for the higher degree. If you just want to be called "Doctor", then you are probably just wasting time and will be hurting your future. You can also find a job in something you are passionate about, but then you will have to deal with work politics. I haven't recently checked out requirements for game developers, but I don't think they mentioned PhD (MS could help). At my work, Masters from Stanford/MIT/CMU are almost given. I'm sure they are compensated more than my 3rd-rate college BS.
  14. Quote:Original post by phalaris Some general questions: (1) What are the essential classes/objects that any game would employ? (2) Should the background be a separate class? What are the best background techniques? (3) Should I use tiles or scrolling backgrounds? Are tiles efficient in the long run? (4) Is it worth my while making a huge map that is otherwise not visible on screen and having a little "camera" which moves over it? Or should I use some other means of dynamically extending the gamespace at runtime? (5) Should I have a generic class for all objects (like player, enemy, projectile) and derive everything from this? Should I make this an ABC? Or should I have separate base classes for player, enemy, etc? (6) Should my entities (player, enemies, etc) be separate classes from their sprites (player sprite, enemy sprite, etc)? Or should the entity classes absolve the sprites also? (7) Should I implement animation into a separate generic class? Or should I implement it separately as part of the entity sprites? Some general answers: (1) Anything that is an object: Sprite -> Player / Monster, Background, Tile, Bullet... (2) Keep it separate, if you use tiles, the background class contains tiles. (3) I use scrolling tiles (don't move tile by tile). I like tiles, but also like placing tile objects in other non-tiled places (like a moon, or planet for a space game). Making a tile work well takes a lot of skill, otherwise it looks obviously tiled. (4) Whichever you prefer. Writing a good program for dynamically extending the gamespace could take more time than the whole game. (5) Start by determining what object you will/should need and what functions, variables each object will need. If there are duplicate for two or more objects, then they could have a base object to derive from. Enemies and Players usually have a lot in common. (6) I forget the rules for when to use a base and when to have a class contain something. Anything drawn could derive from a sprite. (7) I would implement it as part of the entity sprites only because I don't think I could integrate a generic animation class with sprites.
  15. nprz

    Your programming snack foods

    Quote:Original post by Talroth Chocolate Covered Coffee Beans. CCCBs are all you really need, and the huge amount of sugar and caffeine in them means you don't really have to have a lot of them. Which is a good thing, cause they're damned expensive! I thought they were great when I first started eating them. But now the chocolate just taste too bitter and makes me sick. Now I just drink coffee and eat snickers. All my programming food is provided by my work, so I do vary what I pick, but coffee and snickers are great.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!