Jump to content
  • Advertisement

CTar

Member
  • Content count

    1945
  • Joined

  • Last visited

Community Reputation

1134 Excellent

About CTar

  • Rank
    Contributor
  1. Quote:Original post by Washu Any guesses as to what this does, and how it works? To those of you whome I've already told...you cannot speak less yee die! Abuses the compiler? Don't scroll down if want to solve it yourself It multiplies an unsigned number x with the first n bits of another unsigned number y. It works by breaking down y into it's power-of-2 terms and multiplying them individually with x. So for 5 and 7 it works by using 5*7 == 5*(1+2+4) == 5*1+5*2+5*4. Of course it doesn't actually multiply anywhere, but instead it uses the fact that a*2^n == a << n Note: ^ is the power operator while << is the shift left operator and == is the equality operator. Now, how and why do you come up with these things?
  2. CTar

    Bug alert

    I discovered this a while ago, just with posts. If you have a post, reply to it, and delete the reply you will still be listed as the last poster and the reply will be bumped to the top. So if you was the last poster anyway you could make an invisble bump. I don't think I have seen anyone actually take advantage of this, though, and I don't hope anyone will (remember it can easily be seen by anyone who can see deleted posts, or those who notice the difference in the last post time and the actual last post's time).
  3. CTar

    XNA

    Smalltalk > * => Smalltalk > PillowTalk PillowTalk > Smalltalk > PillowTalk A > B > A => Universe is broken Very interresting replies indeed.
  4. CTar

    Untitled

    Quote:Original post by Mushu Or, at least, it did for me because I starting taking part in the warefare (which doesn't yield EXP) instead of grinding levels so much. How did you do that? I keep hearing about wars in Den B and Bark, but looking at the SCO's site I can see that from Desert of Ardor (where I spent most of my time) to get to Den B I have to go through: Bark city Bark Undercity Den A Herremeze relic site Plain of doleful melody Crystal Cave And I get plenty of challenge in Desert of Ardor, when 5-10 Lucanoses chase me (I'm level 25).
  5. CTar

    Untitled

    Quote:Original post by Samsonite How long does it take to level to 20? Is it like WoW where it takes a day of playing or can I manage it on one day? You should be able to get there in one day, leveling is faster than in WoW. Also, cool screenshots, I haven't been in any of the wars yet, only duels[sad].
  6. CTar

    Yet Another Blog About Employee Satisfaction

    Quote:Original post by aidan_walsh Being the only person (at time of writing) to have commented on that entry Programmer16 posted 3 hours before you... I agree on what you say in the article. Apoch: Have you quit your job or something like that? First a post where you talk about the extra taxes and now this: Quote:Actually, it's just you sorry bastards in that terrible plight - I finally escaped and now work in utter paradise.
  7. CTar

    Just got home

    I just came home from my aunt, where we celebrated christmas (in Denmark we celebrate christmas and get presents in the evening of the 24th). I got the following presents: Raptor ATA HD, 36,7GB, 10000RPM King Kong, collectors edition (PS2) Star Wars Battlefront 2(PS2) The two last books in a triology. ~$65 gift token (right word? Looked it up in a dictonary) for a store which sells music, and computer stuff (at 3x the price on the Internet). ~$37 I knew I was getting the HD from my mother and father, I will install it tommorow. In one of the other journal posts I said I didn't like King Kong (for the PC), but thinking about it I actually think the reason was that it was designed for consoles, and the PC port was not well done because they had to release it before christmas, and at the same time as the movie. For example the controls where very simple and they could have used the keyboard much better, but on a console you don't have that many buttons so there it might be a good way to control it. I don't think Battlefront is anything special, tried it at a friend, but I weren't impressed. I also knew I was getting the books because my mother had to ask me if I wanted them, but it was hard without telling me why, she tried, but it was not hard to guess. Money and gift tokens where just from people who didn't know what to get me. I also got Starwars III, but I already have it, but I didn't mention it because I already have it and the people who gave it to me just bought it because they HAD to (since everyone else gave presents), I really don't see the reason that they even used those 5 minutes (and money) getting me a present. I actually got better presents than I had expected, also the "ceremony" (or whatever it's called) went very well, it was fun and we had some good food. Of the presents I gave I think the only one who really liked it, was my little sister, I got her some toy where you connect small magnets, there is also some iron balls, you can then make lots of stuff, kind of like Lego (well actually not, but it's the closest thing I know of), I don't know if anyone know what I'm talking about, they are called GeoMag here in Denmark. I also think my father liked his present, a special calendar with stuff about the nature (almost $40), my mother didn't seem to excited about her present though, but I didn't really knew what to give her either (of course she said thanks, and that she liked it). And none of the other family members seemed to care, since I generally give less than the adults.
  8. CTar

    Impressed with python

    I just learned Python because everyone says it is a good language, so I just wanted to see what it was and if it really was good. I plan to use it for tools for my game, if it proves easier than C++. My game itself will be in C++ and I might use python for scripting in my game, but I have to do some research, to see if faster alternatives is available, first.
  9. CTar

    Impressed with python

    I just started learning Python (knew the basics before, but forgot them), one thing I'm impressed with is the large values, I mean I just tried computing !20000 and it did without an error, you would need some custom data type in C++. Also it is so much easier to understand, one thing which annoys me though is the : after functions, if, elif, else, while and probably also the other loops and classes, but I haven't read about that yet. Anyway I just wanted to say it is very easy to code, and the code is clean, 2 months ago I tried LISP (well AutoLISP, but probably the same syntax) and it looked like brainfuck, it just replaced half of the instructions with a combination of parantheses and it allowed variables.
  10. CTar

    Newer games lacking quality?

    I have noticed that the last three games I played was filled with bugs and not very fun, I'm not that much of a gamer so I have to ask is this something happening to almost all new games or have I just been unlucky. I mean, I bought King Kong for PC and it was just as much a disappointment as I would imagine Big Rigs (for those who don't know about this game, see this review) would be. The first 11-12 (not sure and I don't want to count, the chapter after Canyon) chapters were very boring, it was mostly just a question of running around as Jack shooting worms and other small creatures, there was also one or two levels with Kong, the levels where played something like this (LMB = Left Mouse Button, FWD = Forward): x10 -> x10 repeat You where supposed to jump on the side of a mountain, this was very</Sarcasm> hard, especially since you couldn't fall down at ALL. Also when walking around with Jack it was almost impossible to fall down, I think you could when you walked on some wood over a large gap, but not in any other circumstances. The creators have chosen not to have a HUD, I guess they wanted to be innovative, but please don't use an idea just because it's new. The rules for controlling your health are like this: - Get hit by anything, could be a TRex or a worm, and then your screen turns red (not completely) for ~10 seconds, after that it turns back. - If you are hit while your screen is red you die This could just have been so much easier with a HUD, also you can't see how much ammo you have left, you have to "ask" (I) Jack and he will tell approximately how much is left, if you around 35 bullets he will just tell you that you have enough. In the chapter after the Canyon a bug made some fire stop and I needed this fire to continue in the game, of course there is no option to restart the chapter, the only thing I can do is to start over (from the very beginning). It seems that the artists in King Kong where very good, but the coders and designers must either have been very in-experienced or being forced to meet un-reasonable deadlines. A couple of weeks before that my little sister got a demo of Harry Potter and the Goblet of Fire. Since it was only a demo I can't give a review as long as the one on King Kong, but still it gave me an impression of the game. You start walking around in a camp getting hit by lots of weird particles from the sky; this doesn't do any damage at all even though they look like they could kill a group of 10 people. Then you get the ability to move rocks, just to test if the rock was just as harmless as the particles from the sky I tried dropping the rock (very big rock almost as big as a car) onto the others (you choose between Ron, Hermione and Harry and the other two follow you), but nothing happened then I tried dropping it on myself (Hermione in this case since my little sister started playing) this resulted in me going down under the ground and couldn't move, about 5 seconds later the program shut down. So have lots of problems. I also got BF2 almost immediately after it was released and as most can remember there where some serious bugs in it. Most was fixed with the patches, but it is not acceptable to release a game in a state like that. It just seems to me that all newer games are very bad. The last good games I bought were HL2 and B&W2 and all games I bought before that was also not filled with bugs, but it seemed that at some point companies just started releasing unfinished games and hope to release patches later. Also B&W2 wasn't bug-free it was impossible to accomplish a task in 2nd or 3rd (don't remember) world where you had to remove all trees.
  11. CTar

    My opinion on the new design.

    The new GDNet design has probably affected all here a lot, some might think it's a good thing while others would have preferred the old one. My opinion on the matter is: I prefer a white (well just some bright color, might be gray) text on black background, just like it sounds most other people here does. I'm starting to get used to the site since the brightness have been lowered a few times, both on the site and my monitor. So now I don't care that much, I just hope the admins will get a black theme ready in a couple of weeks (don't know how much it takes to make such a theme). Lots of things apart from the color scheme have of course changed, and I'm very impressed with most of them. The site still looks like it's in some early beta version, but if I'm not very mistaking (don't think there have been an "official" comment on this matter) this is some kind of big beta test with lots of testers. One thing I hope will be fixed soon is the dropdown menu, which I really hope they will get fixed soon. One of the big problems I had with the old GDNet was that the menu at the top was a mess, after a couple of weeks I knew where most stuff in the menu was, but it looks very bad to first time visitors. The dropdown menu made a very big improvement to the "ease of navigation". Another thing I really like is the new source code boxes, I don't know what it's, but they just look much better. It might be because the background aren't going from something like 0, 0, 0 to 255,255,255 (with 255 max, in RGB format), but more like 200, 200, 200 to 255, 255, 255. I also like the way if any new messages is in a forum is indicated (red ball / bright blue ball). It is much easier to spot the difference. So for a conclusion: I think the new design, with some time, will far surpass the old one, especially in usability and eye-candy (yes, admit it, it does matter.
  12. CTar

    const char* to bool, not std::string(bug)

    Quote: The alternative (which is useful for a different class of problems) is to store all string literals in a centralized area, like a string table resource or a header file. Then define a unified interface to accessing them, and use that instead of inlined hardcode strings. I started doing that mainly for localization purposes, but it proves handy in other areas as well. As you say yourself there is also problems with this, others though. You could make the class look up the string with a recieved char* or you could look up the string yourself and send the string to whatever class needs it. One problem with letting the class look up the string itself can be that the users of my library probably wont use a string table, and even if they do they probably wont use my approach. A problem with letting the user of the class look up the string itself could be that when they dont want to look up the string they can't just pass a string literal. So I would say the best solution would be too let the user pass a char* or a string and let the looking up strings be the user's resposibility, but your application might have other needs, but for a general purpose library I think this is the best approach (others I haven't heard of may exist).
  13. CTar

    Refactoring is evil

    <excuse> I know, but sometimes when you start to refactor your code you find out how many things needs to be done and sometimes (not that I recommend it) I change a lot of code without a compile, this will sometimes lead to having to change other parts of the code and suddenly you have 100 errors because of something stupid. </excuse> But, yes it was a bad approach.
  14. I found a very strange bug in some of my code the other day, I isolated the problem to this: #include #include void Print(bool P) { std::cout
  15. CTar

    Refactoring is evil

    Five days ago I chose to refactor my file system, since it was actually only a prototype, and it would be a PITA to make any changes to later. Now, five days after I started refactoring, I have finally gotten my code to compile once again. At one point I had 4000< errors for 3500> lines of code(not including comments, whitespace etc.), it was some recursive template stuff. I'm a little disappointed since before refactoring I had over 3500 LOC(lines of code), now I only have 2865 LOC[crying] which doesn't sound as good, I had hoped I would cross the 5000 LOC barrier sometime next week, but that isn't going to happen because I had to refactor even though I haven't gained any new functionality. I had actually planned to refactor my logging system too, but I think I will work on a memory manager first since I don't want to drop below 2500 LOC. Everything was much easier when I was just learning C++ and just added code to my main function without ever removing a single line. Also copy-pasting instead of creating general-purpose functions could helped a lot to "improve" the number of LOC. Well everything isn't bad, I have just gotten Introduction to algorithms, 2nd edition which I hope is a good book. It will probably give me even less time to work on my engine, but it will probably pay off later when I choose the right algorithms and don't have to spend weaks optimizing the wrong sort algorithm.
  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!