Forums | Hello Guest, Login or Register | > > L4Y Files: No longer here! < <
  Levels-4-You : Lounge : Irrlicht Engine roxorz! [Forum Rules]  
Page 3
Multiple Page Topic : 1 2 4 
Back to Forum Thread List

sobe    Posted 8th Jan 2006 5:19am
Post 1151 / 3194
Yes, except I just played the "great" demos it had available to show off the engine.... The gun fires with no flare, etc., etc.

It's just not that great looking. The Irrlicht engine looks incredible!

And yea, I am trying to run it via Windows Visual C++ Pro.
"Apparently, Plaintiff believes that he could sue an egg company for fraud for labeling a carton of 12 eggs a dozen, because some bakers would view a dozen as including 13 items." - Western Digital 2006    
Predalienator_   Posted 8th Jan 2006 6:00am
L4Y Member
Post 772 / 1532

I think i,ll try the Retribution its far more easier although it is not the best but maybe best for a beginner noobie like me
Cheat,s,hacks,tips and trainers for all games
My Flickr
How to crack Borderlands  
 
sobe    Posted 8th Jan 2006 6:37am
Post 1154 / 3194
I found that the Reality Engine is the BEST!

Reality Engine

The images of it and vids are just plain amazing. I applied for a developers edition of it, dunno if I will get it or not...
"Apparently, Plaintiff believes that he could sue an egg company for fraud for labeling a carton of 12 eggs a dozen, because some bakers would view a dozen as including 13 items." - Western Digital 2006    
Predalienator_   Posted 8th Jan 2006 6:54am
L4Y Member
Post 776 / 1532

Its beutiful.
Cheat,s,hacks,tips and trainers for all games
My Flickr
How to crack Borderlands  
 
Vidi44   Posted 8th Jan 2006 8:42am
L4Y Member
Post 522 / 668

I was reading Reality's comparison's chart. It does seem impressive, if these folks can be taken at their word.

However, a lot of their "features" are just optomizations they made. This means that while it might support today's latest standards (and consequentially last for years), it won't support older computers. However, I found nothing in their chart that says you wouldn't be able to run a program from Reality on a Win 95 (just that it might run like Censored because it wouldn't have the latest and greatest).

What I do enjoy greatly is how you can script in Python! Python's a language I know to be easy (read source, I don't code in it as you tend to lose all credibility when you say "I know Python!"). This, followed with its support of C (another easy language) makes it a great thing for noobs who want power. Sure, you'd have to learn at least two languages (C++ for graphics and advanced features, and one of the scripting languages for the physics of the game), however it will make things simple as pie (your preference of pie, just so long as it isn't 3.14 (I've seen more than enough of that for my lifetime)).

The greatest thing is that it has a GUI editor (like Pred said Retribuition has), which will make all our tasks that much easier. Also, with some deeper reading (maybe I should read the entire site before commenting on it), you do virtually all your GUI editing in Max (which many of us at L4Y know or use (I don't, I don't have the money to get Max and even so, I'd have to buy an older version so it'd work with RF; which means that Reality might not support it (if they use the latest and greatest tech, why would they support an old verison of Max?))! Also, you can use VB or C to code in Reality and it has pre-built AI (meaning you just customize it, not write the thing from scratch).

I just can't say anymore. I got to the last section of their site and was owned by how much it can do. The greatest topper is that I had my mommy look at it (who knows absolutely nothing about game graphics, except that some of them look like a two-year old could have drawn them better) and she thought she was looking at a bloody picture, when I was actually showing her a picture made using the Reality engine. Just shows how great this thing can be when you get some genius behind it. I don't think Irrlicht was that good on graphics (although it is spiffy for a lot of other great stuff).

Too bad they don't list how much it costs, because I'd buy this as soon as I could scrape the money together. From what I read, they vary the pricing according to your uses, although it sounds as though they'd rather not deal with individuals :'(. If you can't get a copy Sobe, we'll "suffer" through Irrlicht (well, after seeing Reality's abilities, the quotes aren't much of a joke. This thing is spiffy).

EDIT: I found this great site and as I can't double post, I put it here. Here's a link [/url].

EDIT 2: Holy Canadian Bacon! I found Java, for free from Sun!!!!!! It's available
here , you just have to sign up to be an SDN (Sun Developer Network) member, which is free. Sure, there's plenty of free Java developers, but this is from Sun (which means the latest libraries and fully compliant with the Java specification), and its free (who doesn't like free stuff?). I'm not going to download it tonight (late right now, need sleep), so could someone tell me how big the file is?

Edit 3! Found a hilarious article, don't know if its true. Here it is . It really makes you think.

Edit 4 (I really need a life): Found a great [url=devsearcher.com] place [/url] to go to for some source and some great external links. Consequentially, I found [url=gamebasic.com/portal/index.php] GameBasic , what looks promising. It seems to use VB-style syntax but screenshots show C++ style performance. The website says that he's created "Object-Oriented Basic" (or OO Basic for short), and it seems spiffy. I'm now downloading a pong clone, and we'll see how it is in about 30 seconds (~100 seconds later). Well, the pong clone won't work, I don't have the proper DLL. I'll mail the guy and ask.
"Don't go there. It's ugly, and it never stops being ugly."
"Naps are good" - Visual C++.NET for Dummies, page 1  
 Modified Jan 8th, 09:33am by Vidi44
cyrus5   Posted 15th Jan 2006 11:06am
[CP] Director
L4Y Member
Post 42 / 241

Looks alright, to be honest all FPS's are starting to look the same to me. Reality Engines screen shots do look good, but the problem is that games only look that good if you can get the art! It might be the case that reality engine is a CENSORED to work with but they have a good dev rel department with some skilled content creators. The comment about the muzzle flash, well, depending on where the 'game engine' is aimed, it wont do anything unless you tell it to! alot are just general purpose rendering engines, not rapid game development systems. If you want muzzle flash you have to tell the engine what one is and how it draws it first!

My biggest pet hate is that it is rare that a game isnt solely focused on its graphical appearance, lots dont back up their goods with solid game play [farcry was pretty, and was good, doom 3 was really just pretty], I blame the publishers if I am honest, but I suppose they are interested in shipping units, and they are bought by people who pick up the box and say, ohh must be a good game, look I can see every one of the hairs on david beckhams legs, and, wow would you look at that it says it uses superparalaxistrophic mapping to render the grit under his fingernails or wow, that computer character has great CENSORED

I might have to have a play with one of these game engines, I enjoy games programming, but I spend alot of my time playing with the software architecture side of things, thus I never end up completing a game, I just try things out, I end up spending my time making an efficient asset manager, or creating a renderer that minimises the number of graphics state changes, nothing ever gets to the point of being particularly pretty, other than my final year project which was a 3d glider sim, all from scratch, earnt me some good interviews that did, even got one with Lionhead, didnt get the job sadly, but was still a priviledge to be considered (as a new graduate too)! Anyway, back on the point, It might be nice to ignore having to write a graphics engine and just deal directly with the game logic.

I'm currently learning some artificial intellegence, want to see what goes into making 'the game', lots of donkey work though, and havent got anything to slot the AI into yet, have to program the rest of the game to go with it. I do enjoy every minute of it though, perhaps too much, I end up sitting at work doing this instead of what i am supposed to. Bit me back this week, left work at 8:30pm on friday, had to write a demo for monday, left it till last minute due to me spending a little more than my lunch break game coding, dont tell TI and Nokia that though !

C++ is a good language to learn, I came across a good article dealing with some of the different aspects of the language, particularly the latter stuff added to the c++ standard, I'll dig it out when I'm at work on monday if you're interested.

After learning the syntax of the language, I highly recommend reading up some stuff on design patterns as well, things like singletons, class registration. C++ is the tool, programming software is the art!

If you want some nice game source code to look at, I find lithtech's code for No one lives forever to be quite a good read, its quite nicely organised if I remember, and good quality code too. They havent relesased the lithtech engine code to my knowledge, but the actual game code that sits on top is all there. HL2 was good too, but very heavy going!

Good luck with the programming!
Only the dead have seen the end of war - Plato
I think it would be a good idea. - Mahatma Gandhi, when asked what he thought of Western civilisation.
cyrus5.co.uk!  
 



Predalienator_   Posted 15th Jan 2006 7:20pm
L4Y Member
Post 810 / 1532

I dont no what use these source codes are to me but maybe you guys no how to use them or put them into use.

Free,Legal,Source Codes
Cheat,s,hacks,tips and trainers for all games
My Flickr
How to crack Borderlands  
 
cyrus5   Posted 15th Jan 2006 7:56pm
[CP] Director
L4Y Member
Post 45 / 241

Ahh excelent, I'll have to take a look at that. Aside from the obvious geek factor of saying this, I quite enjoy looking at the code so I can see what tricks they have used and how they organise their games. Very useful!
Only the dead have seen the end of war - Plato
I think it would be a good idea. - Mahatma Gandhi, when asked what he thought of Western civilisation.
cyrus5.co.uk!  
 
Vidi44   Posted 16th Jan 2006 2:11am
L4Y Member
Post 525 / 668

Quoting cyrus5
Ahh excelent, I'll have to take a look at that. Aside from the obvious geek factor of saying this, I quite enjoy looking at the code so I can see what tricks they have used and how they organise their games. Very useful!


Don't worry, you're among friends here. After the initial rush to this thread (where all those naysayers insulted us), only those actually interested in learning this stuff remain (especially myself, who sort of has to learn the basics of C++ before going to college (wouldn't look right walking in to find that when you're still learning encapsulation and basic class work, your classmates are through that and starting work on graphics and advanced game scripts (that's what I get for going to a programming-centered college. Of course, I don't actually have to know C++, but have a good idea of how to work with it)).

Be sure to post all your random links you find. If you ever get bored and have Mozilla Firefox loaded, download the "StumbleUpon" extension. StumbleUpon loads lists of like-minded users who uploaded their bookmarks to the StumbleUpon site (well, with the new extension, you just click a button to load the page as one of your favorites). After picking out your interests, you can simply click the "Stumble" button on the toolbar and you'll get a random page about a topic. It is extremely useful for finding new sites and where I've found a good deal about programming in general (especially that hilarious article Bjorn supposedly dictated about C++ being designed for the sole purpose of placing programmers back on a mystical pedestal where they'd earn 80,000 usd salaries).

Back on topic, I think we're all just looking to learn the syntax of C++ first and how to modify Irrlict and Retribution. Of course, these engines are mostly for graphics, however I think Irrlicht has capabilities for scripting (I definately know that with Irrlua, a plug-in for Irrlicht that lets you script in Lua language, it is possible). Mostly we're interested in how to make graphics and basic game scripts. We don't plan to actually write a game for a good long while.

Sure, it may be counter-intuitive to learn advanced graphics design before scripting, however graphics programming is a very good field to get into, and many programmers do nothing but it (which is why there's an actual position called "graphics designer" (that was more for the others' benefit than yours, as a professional such as yourself would know this all already)).

Further, we aren't just looking to use this engine to program games. Predalienator found a program called GameMaker (which I downloaded about a year ago and shelved it because the early version that I downloaded wasn't worth its weight in Canadian bacon) to write simple games, and I've been working with Visual Basic and Dev-C++ to write games (I'm using VB to write PC:CE and Dev-C++ to develop my C++ skills and get used to the cough*horrible*cough language I'll be writing in for years to come (unless C finds favor with programmers. For some reason almost all programmers I know don't consider C a language and hate it. I enjoy C greatly and am deeply frustrated when called a "noob" programmer because I'd rather write in C than C++ (aside from the fact that it is generally easier, C has automated garbage collection, a cleaner syntax, and is generally a better language IMHO))).

To Pred:

I'm now downloading a source from that site. Basically, you load the files into your IDE and study them. After learning all you can, you try to modify it to improve it for your own personal use. Obviously this would take a good deal of knowledge with C++ (or whatever language the game was written in) and probably wouldn't be something noob programmers like us could readily use. In about 2 mins I'll know more.

<~2 minutes later>

Yep, it is the source to the game. Some of these projects can't be opened with Dev-C++ in their entirety (ie the solution file of it is either missing or nonexistant. I'm spoiled that way, I like my programs all with a solution file so it is only one file to open the entire project), so I had to open them manually. After a good few minuttes of opening every file individually, I decided to stop for the day as my mouse would implode from the sheer amount of opening. Further, it would take a long time to relocate the header files so that I could actually run the program (well, not really, I just didn't feel like doing it).

It would be useful once I knew the complete syntax of C++ and what all those functions did. Until then, I can really only look at it and let my eyes bleed at the amount of code that I (admitantly) don't understand (well, considering I know virtually no C++, this isn't something someone should expect anyway). It will obviously be a good few months (at least) before I'll be able to even think about reading some of this stuff. Until then, I'll bookmark the page and download some of it, for future reference.
"Don't go there. It's ugly, and it never stops being ugly."
"Naps are good" - Visual C++.NET for Dummies, page 1  
 
sobe    Posted 16th Jan 2006 3:05am
Post 1184 / 3194
Same for me. I am mainly looking into the Doom 1/2, Duke Nuken 3D, and Quake sources. But more to choose from
"Apparently, Plaintiff believes that he could sue an egg company for fraud for labeling a carton of 12 eggs a dozen, because some bakers would view a dozen as including 13 items." - Western Digital 2006    
Vidi44   Posted 16th Jan 2006 4:29am
L4Y Member
Post 526 / 668

Found a nice site that has a lot of libraries and other stuff. Intriguing and I post it because no one else did, although you've probably seen the site before.
"Don't go there. It's ugly, and it never stops being ugly."
"Naps are good" - Visual C++.NET for Dummies, page 1  
 
Predalienator_   Posted 16th Jan 2006 9:17am
L4Y Member
Post 813 / 1532

Hmm maybe the AvP source code can be turned into a HvZ[Human vs Zombie] game?


More stuff

A list

Dont no what this is

Stuff ?
Cheat,s,hacks,tips and trainers for all games
My Flickr
How to crack Borderlands  
 Modified Jan 16th, 09:19am by Predalienator_
cyrus5   Posted 16th Jan 2006 3:28pm
[CP] Director
L4Y Member
Post 46 / 241

The consensus I get from people who use C++ but have tried C say that its pretty good, their wish list is something along the lines of:

1. make it truely cross platform,
2. make garbage collection optional,

Java took C/C++ and overengineered it, C takes the lessons learnt from C++ and Java and is actually a pretty sensible and usable language.

There is apparently a new standard for c++ in the pipeline [google 'C++0x', the x is because they havent decided what year they are releasing it, not for a while yet i expect] thay are actually following some of the progress c made and increasing the standard libraries to include alot of stuff that can be found in a set of libraries called boost (its a free, consists of the things c++ should have included, not used it much but its held in very high regard).

Cant really call anyone a newb because of the language they use, programming is much more than the language itself.

My first programs were in basic, then pascal, delphi, vb, I only learnt c++ after I got my A-Level results just before starting uni! I was going to do architecture and changed my mind at the last minute, had a bit of a panic, thinking i was going to be behind my peers since I wasnt intending to do programming, ended up that I knew more than most the class, my first year was stuff I had already done at a-level. What amazed me was that some people on the course hadn't used a computer, and many of them passed with good grades, though I still maintain my friend michelle was far too cute to be a computer geek! I would have had her down as a hairdresser or a beautician if i had met her in the street! [typical male, stereotyping people..]
Only the dead have seen the end of war - Plato
I think it would be a good idea. - Mahatma Gandhi, when asked what he thought of Western civilisation.
cyrus5.co.uk!  
 
Vidi44   Posted 18th Jan 2006 4:20am
L4Y Member
Post 527 / 668

As I said in many a post, C is quite possibly the best C varient I've used (I've dabbled in them all. Basically up to "Hello World" and extremely basic variable useage (ie:

Code


include <iostream>

using namespace std;

void main()
{
int num1 = 1;
int num2 = 2;
int total;

total == (num1 + num2);

cout<<total<<endl;
}
)

A rather humerous anecdote: while testing this program out (for some reason, I was curious about it), I found out it doesn't work! No wonder I'm a C++ noob... I did fix it for on here (amazes me how it compiled properly in Sally, but Dev didn't like it. There is a difference in compilers)

As I said, C is better, because its syntax is twice as easy (as evidenced here:

Code


using System;

namespace Simple_Var
{

class ApplicationClass
{

[STAThread]
static void Main(string[] args)
{
int num1, num2, total;

total = num1 + num2;

System.Console.WriteLline(total);
}
}
}
)

As you can see, C's code may be more detailed, however you could read it fairly clearly compared to C++'s (if you didn't know that cout means "console out", you'd have no idea that it is how you display the total. However, in C, "System.Console.Writeline(total)" might be more typing, but you can very easily understand that it writes the variable total on a line and performs a line return (like my C++'s endl function). Also, because System holds all the standard input/output and mathmatic functions, you don't need to call 5 header files to do something (sure, in my example I only called iostream, but I know of a good many languages where separate headers are used for input, output, and mathmatic funcitons (so, not a good many, and I can't remember its name off-hand. I think it's Ruby, but I'm not sure. Feel free to call me an idiot for claiming something I'm not 100% on).

Further, I agree that C isn't cross-platform (in fact, I don't think it is at all, because I don't think the form C uses can't be used on different platforms like Mac and Linux. Again, not sure because I only use Windows because I don't have an old comp to put Linux on (although I'm always looking for one )).

I really can't see the reason you'd want garbage collection optional. Can't you remove an address manually (I've never tried to and don't know the functions to even think about trying it)? Even if you can't, the garbage collects at the end of the program (well, as far as I understand MS's ways of collecting garbage), so unless you had a memory-intensive program (in which case you'd want to default to C++ anyway, as its more compact, doesn't require the massive SDK (which kicks install files easily into the MB range), and you have 100% control over the program), it should work well.

Coincidentally enough, I heard of C++ 0x just the other day (Sunday). I was going to write about it, but realized that I didn't understand a Canadian thing about it (other than it will be optimized more and try to conform more to C's standards (which is fairly weak, because C++ is its own language anymore, so break free of it Bjarne!), and do the things you've said it will do (more libraries standard, I think remove pointers (or at least reduce their usage by offering a better solution that is immediately obvious), and make it easier to teach and use (don't know how, as the basic syntax is cryptic. So without an update that would break all the old programs (ie can't read the old source because cout doesn't exist anymore), this is difficult to try). Anyway, no matter what happens, we'll all have to re-learn C++ in another 3 years (0x plans to be released in 09), lol.

Also, as far as calling people a noob because of the language they use, its a fairly common practice among elitist programmers. I've actually been told to "go home" from a programming forum because I wanted to talk about some BASIC stuff and they were mostly C++'ers (although they did have a place for BASIC and I did post there). I then found a nice forum for BASIC stuff, although it is farily inactive. The point is that when people feel they are special, they like to exclude others. I see programming languages as a collective set, with none superior over the other. Theoretically you can write anything with anything . If I wanted to make a game in BASIC, I could (so long as I didn't care about graphics or speed). If I wanted to write a calculator, I could use C++ to over-power it, or use something like BASIC or Python to write it (VB if I wanted a GUI really easily).

As far as what programming languages I know, I've got QBasic under me already (still program in it, just not as much), a lot of Visual Basic (6.0 and .NET), and some C et al (more C than anything else, although I still can't write much more than two-year old stuff and lack an IDE for it (friend I had who let me use his VS.NET went to college and took it with him, so with the SDK around 100 MB (the IDE is nothing to download, only 10MB or so), it'll be a while until I get an IDE for C (or any .NET language)). So, really you can only say I know BASIC and VB (yay, I are a noob, DIR!).

As far as your experiences in college, it is fairly common among beginners to have little computer experience when entering a computer field (which is odd). On a few campus trips I've heard of people complaining they didn't know how to bold something in Word, etc. I suppose I have the lucky "fortune" of having no life, so I have probably the equivalent of an Associate's Degree in Computer Science (I've actually shut down a sys admin who was going to fix my grandma's computer. Scared the Canada out of him when I told him that instead of reformatting, he could try checking the boot partion for errors using a floppy-based hard drive diagnostic program (forget its name, something really strange in another language)). So, aside from breezing through college (yay!), I wonder if I should just skip all that and go straight to graduate school (hehe, not that they'd allow it).

As far as your stereotyping of human forms (far easier to refer to all people as "human forms", as gender specification can lead to lawsuits (which has almost happened to me. Some hippie with hair down to his Censored got angry with me when I said "ma'am, could you excuse me, I need to get through". Fortunately, after a few minutes of arguing (the guy was clearly high, by the way) and being told I'd be sued for infringing on his "political statement" (because apparantly long hair is a statement), I decided to walk away, hoping the drugs he was on would make him forget my face (not that any court would honor his lawsuit)). Also, I know of many human forms who don't fall into any specification (and no, they aren't hermaphrodites, but human forms who don't act like the stereotypical gender affiliated with them). This, followed by the idea that in my little world, all humans are equal (although my little world's idea is presant in the Constitution and several laws, it seems like only in my world is that statement true), save for physical anatomy (ie mind is only thing that matters. I don't care if you can lift 50,000 lbs if you can't add 2 + 2. Further, what of people afflicted by an accident? Who are we to segragate them because little Timmy fell off his bike at the wrong time and got ran over by a train? Finally, there is no difference in male or female in as far as mental processes go. Sure, neuro-chemical differences equate to differing perceptions, however these are so extremely minute that you should be able to realize this and get over it. It isn't as though Ms (your human friend, or failing one, your mother) wants to hate you for forgetting to take the garbage out, and it isn't as though you consciously planned to forget to take the garbage out)).

As far as what Pred linked to, these are libraries you use to speed up doing tasks. Rather than hand-code a randomizing function (I'll use BASIC syntax to quickly show you what a randomizing function will look like:

Code

Randomize Timer
random = int((1-10) * rnd + 1)
REM random will be a random integer between 1 and 10
print random
end


Instead of writing all that, a library would kick out a value for you (you'd just put in some keyword to access the header and use the function (ex: random(). Of course, if a library set contains a function named the same, you have to specify which one (ex: std::random, or something like that). During this case, you'd want to know this in advance so you don't use both headers simultaneously (ie instead of saying "using namespace lib1; using namespace lib2;", you'd have to (painstakingly) type in the library's name (ex: lib1::random) before you accessed the function. A lot of pain to do this, but necessary).

For what you plan to do (or what you can do, I don't know how far you've studied C++, however I assume it can't be into the complicated stuff like accessing non-standard libraries yet), this won't be necessary for a while (actually, I don't really know how to use these, as I've never found a reason to use a non-standard library on purpose (does using Allegro, OpenGL, and a few others count as using a non-standard library?)). It is better (although boring) to learn the language well (ie the basics first) before you try to access a large array of libraries to make a game. Of course, many people who program games and screensavers don't know the full language, however they still need to use the basics (I/O, decision statements, variables, functions, subroutines, classes, loops, etc). Basically, this stuff is located in those simple links I put up a while back (or just run to the bookstore and find any book that says something like "Beginner's Guide to C++"). Naturally, even I want to skip through all this and get right into making a game. However, unless you want your game to simply display an image (ie not do much of anything fun), you need to know the basics. Of course, the Gamemaker program you found is good for making games without knowing a language, so if you want to make games immediately, that'd be the way to go. Elsewise, you'll have to commit yourself to spending a good many years learning C++ first. However, by the time you're graduated from high school, you should have enough knowledge about C++ to create a great game. From this, you can very easily learn another programming language. After learning C++, Java, C, and maybe Visual Basic, you should have absolutely no problem becomming a programmer (unless they want a degree, in which case you'll have to spend some time sleeping through college reviewing all that you've taught yourself (which you might want to do anyway so you can validate yourself in front of companies, as most want a degree before anything else)).

I apologize for my extremely lengthy essay. Basically, I've used many varients of C in my life (nothing more than basic stuff, "Hello World" and variable usage), like C, hate elitist programmers who call you "noob" because you don't use only C++, think that you can program in any language to accomplish any goal so long as the language supports it, have a great knowledge of computing systems and have "shut down" (gaming term = "owned") a sys admin many times (not just one, I've shut down about 5 total. 3 at one place and 2 in my school), will probably breeze through my Associates, told you that suprisingly many CS students have rarely touched a computer before going for that degree, and that all humans are created equal and that your friend (human friend?) is no exception (ie don't judge people just because of what you see. When you see someone "insane", I see someone who just has difficulty expressing themselves after witnessing something horrible. When you see someone doing drugs in the street, I see someone who needs help but doesn't have the willpower to put the needle down and admit they need help). For what Pred was speaking of, I really don't know how to use non-standard libraries, so perhaps Mr. cyrus could explain this further? All I know is that while it may be exciting to learn how to program quickly (believe me, I've been there thinking of all the great things I'd do with a language I'd just heard of. You quickly learn that most likely your plans are too complicated for a non-professional to even attempt), you still have to learn the basics and that this can take a while. Of course, once you know the basics, you can do pretty much anything you want (although learning more and more complex stuff might make it easier. I learned this when submitting some of my (IMHO good) work to a professional to review (he'd put the program on his site if it was good enough). Although I made the "cut", he told me that instead of a massive block of selection statements and loops, there was actually a handful of simple functions that would could do it in more than half the time and save me a good hour or two of coding). Have patience Pred. Aside from cyrus (who I assume knows far more about C++ than anyone else who's posted here combined), we're all learning this and are extremely eager to learn as quickly as we can so we can get to making some spiffy games. .
"Don't go there. It's ugly, and it never stops being ugly."
"Naps are good" - Visual C++.NET for Dummies, page 1  
 
cyrus5   Posted 20th Jan 2006 2:34pm
[CP] Director
L4Y Member
Post 49 / 241

Well my point about garbage collection is that, like exception handling, it adds a huge amount on to the size of a program. Alot more information about the code structure has to be put into the executable so that the code can be unrolled correctly and the right variables removed from the correct scopes, control passed to the correct exception handlers, it would be simple compiler flag to toggle them on and off.

One thing I did notice in my googling was that Microsoft did actually intend on .Net being multiplatform, [Article : C On Linux] which took me by suprise!

To answer your question about using non standard libraries, its actually rather easy, a precompiled distribution would give you a header file (wicked_lib.h) and a compiled lib (wicked_lib.lib, or libwicked.so in linux land). the safest bet is to place the header and libs into the directories your compiler uses for its standard libraries. To use your lib you write a program, include the header, if its in the main path then you can write include <wicked_lib.h>if its in a local path to the project then "wicked_lib.h". The final step is when you compile your program, you would do something like this [writing from memory, this might not be exactly correct]:

for gcc:

[win] gcc mywickedprog.cpp -Lwicked_lib.lib -o mywicked.exe
[linux] gcc mywickedprog.cpp -Llibwicked -o mywicked

or for ms compiler:

cl mywickedprog.cpp /link wicked_lib.lib

that will compile your program, link the library and output your exe.

If you're using visual studio, its even easier, open the project properties, click on the libraries section, and there will be a box somewhere 'Additional Libraries' or something similar, just add wicked_lib.lib in there. There is a pragma command for linking as well, which can save you having to play with project settings, i think its written

pragma comment(lib, "mywicked.lib")

and that will inform the compiler to link in that library.

C++ had better not remove pointers, although they appear to be a confusing prospect at first glance to new programmers, you will eventually find out that they are priceless and completely indispensible!!

Oh btw, what I said about my mate michelle was not intended to be derogatory, I was just joking!
Only the dead have seen the end of war - Plato
I think it would be a good idea. - Mahatma Gandhi, when asked what he thought of Western civilisation.
cyrus5.co.uk!  
 
Page 3
Multiple Page Topic : 1 2 4 


Copyright © 2000-2025 Levels-4-You
Your request was handled in 0.26 seconds.