• Content count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About Bagpuss

  • Rank
  1. Professional Source Code

    I dont work in the games industry, but jpetrie, whilst I agree with you, when it comes down to your bonus on any IT project, and your PM or teamleader says you have 3 days, and you know you can do it in 3 days if its 'down and dirty', then 9.5 times out of 10 thats how it happens on any commercial project. Producers, PM's and managers will push you to take the easy solution, and then if it doesnt work, will find a way of not taking the hit. Thats just life, dont forget, depsite all the best intentions, these places are businesses, and as such will take commmercial risks that a project will be fine and on time, over a 10% chance that a rewrite will make it late Its not right, it sucks, but its business, these game comapnies may say they are run by gamers, but the owners have multi million pound budgets and bankers to please before they can be aesthetic :-/ Bp
  2. thanks for the reply. Yes, all copies of the old files are still there, but renamed _oldFoo and _oldBar. Hmm, its a mystery Bp
  3. OK, I have somehow managed to break my program. I had a fully working program (Project A) with a number of classes I put in just as placeholders, so I wouldnt forget to add them later. (They were irrelevant for what I was working on) In another Project (Project B) I hve 2 classes that I would like to use in Project A to replace the placeholder classes. I have added these to the files section of Visual studio, and changed the location of the headers to point to my other project. (I dont want to copy them in to the project folder, as Im maintaining 2 versions of the same classes then) But when I go to compile, I get the error message "The Source Files d:\\Source\ProjectA\foo.cpp and D:\\Source\ProjectB\foo.cpp are both configured to produce the output d:\\Source\ProjectB\foo.obj. Project cannot be built" I have had a good louck amogst all the settings and cannot find out where to change this. I didnt link Project B into a, just referenced the 2 .h files. Before I give in and just copy the class files over to my new project and have to maintain 2 sets of code, can anyone tell me where / how to fix this. Thansk, Bp
  4. Pseudocode and Game Design

    The relevence of Pseudo code or not aside, you have been asked to do it. It is the final project for this course, and there will likely be an exam question requiring you to use it. This question is almost certainly already written, so showing your lecturer this thread *Might* alienate them from you, some people cannot stand being questioned. Whilst many developers might no longer write much pseudocode most still can use it as a technique to put their thoughts down if they have to. And when you are not at the computer, do you think OK, I need to create a loop, and inside the loop, increment this variable, calculate that algorithm and generate this output, or do you think ok, I need to go for (i=0;i<nTot;i++) { .. } As much as anything its a technique to get you used to thinking in general terms about what you need to do. I know that sometimes I get so bogged down in detail that I miss things, taking a step back and describing my process in another form (flow chart, UML or pseudo code increases my chances of not missing things at the conceptual level) Though to me it does look like your assignment is overkill, most code is so self explanatory it doesnt need that level of description. Bp
  5. CStrings and Vectors

    CString is the standard MS MFC String class, and += works elsewhere. If I hard code a second string, it works, its just the string from the vector that is the issue. Bp.
  6. I have (to me) a strange problem. I have a vector of CStrings I wish to remove the last String from the vector and add it to another string. //Retrieve the last good string CString &last = ptrVec->back(); //Add to the existing CString object myString += last; Simple enough I thought. If I run the code as above (and step through in debugger) then although last does contain a value, it does not add it to myString. I have had this issue before, and cant remember how I solved it, so rather than waste anymore time going mad, can anyone else out there hit me with a plank of the blindingly obvious and tell me whats wrong? Ta. Bp
  7. Even if its a phone interview, if you get turned down, show that you want to improve yourself, and ask for feedback that you can use to constructively improve your approach, manner and skills. And in future, whether its for an interview, or you are in a job. Try to take notes of work related conversations. Even if its just date, time, who with and subject. It'll jog your memory, and its a good habit to be in when a customer or your project leader calls you up to discuss something. It means you are less likely to lose the information on a postit note, if your records are good they can becoem part of the project documentation, and its a good piece of ass covering material if the project goes wrong. You can prove youve done what you said, and when u said it. Bp
  8. advice on finding job in london

    Try putting your CV on, I found it much better than monster, I was getting 20 - 30 leads a day when I was looking for a job. (Though it depends on your salary and location as to how many leads you will get.) Bp
  9. Ok, I have fixed this after a fashion, but Im sure theres a more elegant (and likely obvious way) strtok changes the address of buffer to point to the next data element between 2 %'s, so all I needed to do was to store the buffers start address, and reset buffer to that before calling delete[] is there a more elegant way of solving this? Bp
  10. I assume that this is my lack of understanding here,as I seldom use strtok. At the start of my function I have the following declaration char* data = new char[bytesToRead]; char* buffer = new char[bytesToRead]; The data is then read from a file into data, and it is a number of fields seperated by %, and is split up using code like below. buffer = strtok(data,"%"); However, when I call delete[] data; delete[] buffer; I get a memory leak the size of bytesToRead, and it is indicating that the offending char* is buffer. Why does this happen, and how do I stop it? Cheers Bp
  11. 2D RPG development

    Is this legal? I thought there were rules against this kind of practice. No, u can base a business model on loss leaders. Contract mobile phones are a case in point. Nokia dont sell their handsets to vodafone for £49.99, for vodafone to sell on at the same price. It costs the phone companies lots of money to subsidise handests. I dont know where your from, but I think that despite the in an ideal world situation, you are commercially naive (no offense meant) In a small business, cash is king. U take on a lawyer, even as part of a class action, and they need cash up front, or at regular intervals. Lawyers have to eat too, and so need their money now, not in 2,3 or 5 years. In an ideal world, with a justice, rather than a legal system, you are right. The fair trial should lead to the right winner. But These companies play within the limits of the legal system, and can spend $3million now, to save £20 million later. Life sometimes sucks as a small company. You have to just Deal with it.