Jump to content
The Dark Mod Forums

pakmannen

Member
  • Posts

    1743
  • Joined

  • Last visited

Everything posted by pakmannen

  1. Hi guys, I have very few source files, and only my own. I remember some of my own loops having problems, but I never thought I actually uploaded those. If you could provide a list of the sounds in question I could dig around a bit.
  2. There are only 10 step_normal_grass as far as I can see. Correct?
  3. Yeah, about that Sitepoint forum, it's a like a new world opening up I had no idea existed.. Basically, what happened was I'm part of quite a complex project, and maintainance was getting out of hands. Whenever you did something you'd break something else etc. Things were, to say the least, a mess. That's why I began looking at design patterns and frameworks which eventually led me to this whole MVC debacle. Suffice to say, it's rather complicated. Even if I think I'm slowly getting the hang of it. Actually, I've got the MVC part covered. Now I'm wrestling with how to structure Domain Logic. Working on an Active Record implementation which is trickier than I thought. I can recommend Martin Fowler's Patterns of Enterprise Application Architecture if you want to get into this stuff.
  4. Did you even read what I said? I said one that can tilt 90 degrees into "portrait mode". That means you get way more lines than columns. More than on a regular 4:3 screen. Edit - Like this one: http://www.eizo.com/products/lcd/l997/index.asp
  5. Well, take a look at the link I posted above, if you dare.. I'm trying to learn more about object oriented programming, and how you apply it to websites. The MVC pattern seems to be what most people advocates. Even if apparently no one agrees on what it really means.. Just take a look at some of the replies I got.
  6. Well, I've been fiddling with it for a few days now. Read a lot of articles about it. (This is a php implementation we're talking about, and I know it differs slightly from, say, Java) It really doesn't help that people can't agree on how it should function, and that there are countless variations and a whole lot of unfamiliar terminology. (The deeper you dig..) I posted this rather long thread over at Sitepoint today. MVC Madness. Not sure if you guys would understand it without knowing php. I don't really know how similar it is to other languages. Basically it's a lot of information to digest; some things make perfect sense while I struggle to understand other parts. I think I'm just going to take a long walk or something.. Before I go completely nuts..
  7. You should get one of them widescreens that can tilt 90 degrees. That must be excellent for coding.
  8. Ha! Good thing I caught it then.. Sounds like you did quite a lot of stuff. Congrats!
  9. Wow, thanks for all the great answers! This is good stuff. So, you guys know anything about the MVC pattern... (Sub Effect! You're a php coder! Please tell me you're awsome and will help me understand all my php5 questions!)
  10. Dom, your Facebook states that you put together two maps *zensored* . I hope you were you allowed to say as much! Edited by sparhawk on behalf of Domarius.
  11. Thanks for the replies and examples guys, I think I more or less understand what static does. I've been learning about "accessor methods" or something like that today. Let's see if I got this straight. Objects should be self-contained and their variables preferably private or protected. This means that you have to write Get() and Set() functions/methods to retrieve and update variables from outside the class. In php this looks like: class MyClass { public function __get($var) { return $this->$var; } public function __set($var, $val) { $this->$var = $val; } } I've tried it and it works and such, but again I'm wondering why.. Why should objects be self-contained? Why can't their variables be public? Is it about security? Or is it just confusing with a lot of variables everywhere? Does it affect performance? (For the curious, the __ thing before the function name indicates that it's "magical". I think it's a php thing but I'm not sure. It means when you do $object->var=$val; it automatically runs the __set() function, if you've written one. You don't need to type $object->__set($var)=$val;)
  12. pakmannen

    Facebook

    Joined! (I'm the one without a picture.. Gonna fix that one of these days)
  13. I just came across static today actually, while installing php5 on my computer (which has better OO support, I'm told) I've played around a bit, and read some examples at php.net. Here's how I understand it: A function or a variable within a class can be static. This means you can use them without creating an object. In php it looks like this: class A { static function foo() { } function bar() { } } A::foo(); $obj = new A; $obj->bar(); And yeah, that obviously means you can't use $this-> in a static function, since no object exists. Your post made more sense when I sat down and tried some code. In the real world, when do you want to use a static something? It's always easier to understand things if you get a concrete example of its usage. Something php.net always manages to avoid.. Why put a function inside a class if you want it static? Oh, and what do you guys mean by "method"?
  14. After reading a bit on the python website, I think it seems a fine starting point, and also quite useful in that you can quickly whip up a program to do basic stuff like batch renaming files. I don't see anyone writing a java application for that sort of thing. It (python) does feel more like a scripting language though. I do have php experience, so I know about a lot of the basic concepts like arrays, loops, conditions, functions and classes. Of course, php isn't nearly as strict as C++ or Java. There are no datatypes per se, you just create a variable and it can take any sort of value. As for your example, here are some guesses: "public" = the function can be accessed from other classes, "static" = um, not dynamic? , "void" = function does not return anything, "main" = constructor? Ha! Yeah I looked it up and it's apparently developed by the US army and used in planes and helicopters and spaceships and stuff. I do have a course in ADA, so we'll see how that goes. Mmm, strictness.. Sure, you need logical thinking, and basic math knowledge, in order to get started. Same concept applies with php though. Since that's the sort of programming I'm going to do (physics simulations, computer graphics etc) I have, spread over five years, one and a half years of math ahead of me. Ahh.. True, most types of programming require very little mathematical skill, but a lot of creative logical thinking.
  15. I read somewhere that C# was a mix of C++ and Java but yeah, I shunned away from it as soon as I read Microsoft. It's not that I have much against them but as you say, why start with a proprietary language? Java seems to be the most sensible option, since I want to learn OO from the start. I'll take a look at Python as well, thanks for that one OrbWeaver. Oh, any of you have experience with Ada?
  16. Hm, a quick wiki search reveals that C# is part of Microsoft's .NET. C# (sharp)
  17. Now, I wasn't thinking primarily of the dark mod (I'm not promising ANYTHING) The programming I'm going to study focuses on visualisation, which is a fancy way of saying computer graphics. That could mean anything from VR to be used by surgeons to Hollywood film effects. (Or computer games for that matter) I don't really want to jump headlong into that though I guess most people go with Java or one of the C languages these days when they start out. What is the difference between C, C++ and C#? Oh, and yeah, I do realize the importance of having your own little project when you learn stuff like this. That's sort of why I asked what your first programs were. I don't think I should endanger DarkRadiant just yet..
  18. So, since I'm going to study a subject that includes programming I thought I'd try to learn a few of the basics in advance. I've never done any "proper" programming but I know php quite well. That means I know the basic syntax, functions, loops, conditions etc. Never had to deal with a compiler or any of that stuff. I know the theory behind object oriented programming, but since I've mostly concerned myself with php 4.x (which apparantly sucks at OO) I never bothered to study it carefully. I don't have any specific language in mind; I'd like to learn the stuff that applies to programming in general. What do I need to get going? What language would be a good starting point? (Just don't say Pascal..) Do you have any book reccomendations? How did you guys go about learning this stuff? What were your first programs? I want know everything!
  19. Doing fine, it's a lovely country. Particulary enjoyed hanging around the Blue Mountains for a while (google for cool pictures) and is looking forward to seeing the reef. In Brisbane atm, the last civilized place we're visiting (nothing but sandy beaches and paradise islands further north it seems) so I'll probably be out of touch for a while. I'm here for a week, so if there is anything, send me en email: jens.ljungblad@tjoff.com
  20. Hey guys. Glad to see things are moving along around here. Right, keep the work up while I, you know, cruise around Australia and everything.. Ahh I missed Dram in Sydney but will hopefully get to see Domarius in Brisbane, I'm counting on him filling me in on the latest office gossip.
  21. If you need louder grass sounds there are some really good ones in the file I uploaded here: http://forums.thedarkmod.com/index.php?showtopic=5701 Edit - Oh, I didn't realize you made louder ones already.
  22. Yeah, good call. A request thread would be nice.
  23. Had to look that up and now I'm scared @Schatten: I'll leave the laptop at home, but I'm sure there are plenty of Internet cafés. I'll check in on you every now and then. Promise!
  24. So, I'm leaving for Australia in a few days, which some of you already know. I would suggest putting Schatten in charge of sounds, seeing how he's already taking care of a brand new reorganization. I have uploaded a rar (11.7 mb) containing four folders: indep (unedited sfx files we are allowed to modify/use freely) indep2 (more of the above, including some good footsteps) pak (there are some looping problems, otherwise they're ready to go) theo (the original footsteps, I think some are better than our current ones) You can download the file here: sounds.rar As I said, there are a bunch of unedited stuff, but feel free to play around with them. There are good free programs out there: Goldwave, Audacity etc. We should be able to pull a few metal doors, hits, creaks, footsteps and explotions from them. I'll be leaving in a week but I'll have limited time, so I thought I'd just take care of this and upload the files as soon as possible. Send me a PM if there are any problems.
  25. What happened to the old ladder sounds? They had lots of great creaking n' stuff. Now that I listen to our current footsteps, there are some sounds that are of worse quality than what we had before. I'm thinking of gravel & snow in particular.
×
×
  • Create New...