Crystal Space
Welcome, Guest. Please login or register.
October 26, 2014, 01:21:39 am

Login with username, password and session length
Search:     Advanced search
9011 Posts in 2044 Topics by 8828 Members
Latest Member: Saikjanna
* Home Help Search Login Register
  Show Posts
Pages: [1]
1  Crystal Space Development / Support / Re: A few A's to help me start on: September 15, 2006, 07:16:44 pm
thank you, helped a lot (to understand of course)
one more Q related to Python:
How can I make an .exe? I know that in C i have to link my prog to all the libs that are needed but here(in tutorial) is described just how make it with unix (how to make .exe script). Sorry if I got something wrong.
2  Crystal Space Development / Support / Re: A few A's to help me start on: September 15, 2006, 05:30:35 pm
Can you explain this to me:
Code:
>>> a=1
>>> if a:
print "What??"


What??
How does this "if" statment work if there's no condition?
3  Crystal Space Development / Support / Re: A few A's to help me start on: September 13, 2006, 05:27:35 pm
thank you very much!

please if you, or someone else knows Python explain this to me:
---questionmarks are spaces(when I paste it), I don't know why
Code:

## This program runs a test of knowledge

true = 1
false = 0

# First get the test questions
# Later this will be modified to use file io.
def get_questions():
? ? # notice how the data is stored as a list of lists
? ? return [["What color is the daytime sky on a clear day?","blue"],\
? ? ? ? ? ? ["What is the answer to life, the universe and everything?","42"],\
? ? ? ? ? ? ["What is a three letter word for mouse trap?","cat"]]

# This will test a single question
# it takes a single question in
# it returns true if the user typed the correct answer, otherwise false
def check_question(question_and_answer):
? ? #extract the question and the answer from the list
? ? question = question_and_answer[0]
? ? answer = question_and_answer[1]
? ? # give the question to the user
? ? given_answer = raw_input(question)
? ? # compare the user's answer to the testers answer
? ? if answer == given_answer:
? ? ? ? print "Correct"
? ? ? ? return true
? ? else:
? ? ? ? print "Incorrect, correct was:",answer
? ? ? ? return false

# This will run through all the questions
def run_test(questions):
? ? if len(questions) == 0:
? ? ? ? print "No questions were given."
? ? ? ? # the return exits the function
? ? ? ? return
? ? index = 0
? ? right = 0
? ? while index < len(questions):
? ? ? ? #Check the question
? ? ? ? if check_question(questions[index]):
? ? ? ? ? ? right = right + 1
? ? ? ? #go to the next question
? ? ? ? index = index + 1
? ? #notice the order of the computation, first multiply, then divide
? ? print "You got ",right*100/len(questions),"% right out of",len(questions)

#now lets run the questions
run_test(get_questions())


What is list of lists? How does it work? I don't understand it cause this is just an example in a tutorial that doesn't mention it at all.
And what is second function used for?
Where do we use those global variables from the beggining?
What means this:
Code:
def check_question(question_and_answer):
? ? #extract the question and the answer from the list
? ? question = question_and_answer[0]
? ? answer = question_and_answer[1]
?? i learned only that "[" and "]" are used with lists. I can't see lists there or any connection of "question_and_answer[0]" with "check_question(question_and_answer)"

Please help..
4  Crystal Space Development / Support / Re: A few A's to help me start on: September 12, 2006, 01:37:14 pm
from : http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro:
"If you are unfamiliar with torrents, the PDF version is mirrored for HTTP download here."
When it's loaded you just have to save it to the HDD(little disc on the upper left side, above the main window).

but I can't download it.. :/
5  Crystal Space Projects / Project Discussion / Re: So you want to make a game? on: September 11, 2006, 02:39:55 pm
So you don't belive in Santa??

You CAN make a game as great as Oblivion/HL/Doom3 but you'll need much more time. That's why development teams are so big.
6  Crystal Space Development / Support / Re: A few A's to help me start on: September 11, 2006, 02:25:39 pm
This http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro book book looks pretty good but I can't download it by torrent nor HTML. Would anyone be that kind to mail it to me?         baic17@net.hr

Thanks
7  Crystal Space Development / Support / Re: A few A's to help me start on: September 10, 2006, 05:43:47 pm
Thank you very much for your time, it helped a lot.

I decided that I'll first get into 3D modeling, so I got Blender but docs seem to be a bit out of date.
so Q1: Where in Blender is the "SubSurf" button?

and Q2: How can I access all articles? I see only the top and most recent ones.

thanks
8  Crystal Space Development / Support / A few A's to help me start on: September 10, 2006, 09:57:38 am
Hello everyone, I am someone who has low experience in programming and know
nothing about game development. But I had iron will
to learn it, so I tried to gather some info on that. It seemed just too complicated at
the moment. In fact, I could gather some friends to start working but noone was THAT
enthusiastic to put some money in it. So i quit. And then, few days ago, i stopped at your
website as my jaw fell off. You did some hard work just to help the community. It takes
a special kind of person who wouldn't love or just admire these people who had put so much effort in a project which is apsolutely free for public. I'm just glad you guys are not
alone out there. Thank you.
And so, I decided to start my hard work, no matter how hard it will be, to satisfy my undying
wish to learn. So I'll start with some fundamental questions, which may be funny but I
want to be sure I understand everything.

Q1: What exactly is an engine? I know that when i push a button engine says which action it's relayed to but, what is it exactly?
Q2: Why, when I start Blender, it says that application failed to because MSVCR71.dll was not found but then starts. I think It has something to do with Python since it first appers when compiling with it. It appers again just after "OK" but this time it's because "'import site'" failed. -?
Q3: Am I supposed to import characters in the engine? If yes, how can i remove them from there?
Q4: When I unpack blender2crystal all files are just - files. Even readme is not .txt. So what should I do with it?
Q5: How do I make a character move in game? I don't understand linking code and models. So if someone will explain..

That's all for now, thank you.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.26 seconds with 18 queries.