New Train Simulator In the making!!

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace WindowsGame1
{
///<summary>
/// This is the main type for your game
///</summary>
publicclassGame1 : Microsoft.Xna.Framework.Game
{
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
public Game1()
{
graphics =
newGraphicsDeviceManager(this);
Content.RootDirectory =
"Content";
 




{
// Allows the game to exit
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
this.Exit();
// TODO: Add your update logic here
base.Update(gameTime);
}
///<summary>
/// This is called when the game should draw itself.
///</summary>
///<param name="gameTime">Provides a snapshot of timing values.</param>
protectedoverridevoid Draw(GameTime gameTime)
{
GraphicsDevice.Clear(
Color.CornflowerBlue);
// TODO: Add your drawing code here
base.Draw(gameTime);
}
}
}
 
think this fails the CoC test many times

2 breaches of 12 alone

Advertising and Pointless postings

12 Flooding the forums and chat with redundant messages, empty messages, advertisements, clearly irrelevant "+1 Post Count" messages, and/or nonsensical message
 

Wait, you think that 6 actual lines of C# code (which you earlier claimed was C++ - not a good sign of a master programmer) is proof that you know what you're doing???

A working train simulator is going to involve several million lines of code, not 6, and I'm not sure that XNA is really performant enough to write a train simulator in, it's certainly not performant enough to balance out the massive performance penalty of user-supplied geometry (which is why you see commercial games far outstrip Trainz, MSTS or Railworks on performance).

I've tried to avoid commenting on this thread too negatively, because I don't want to crush your spirits, but... I only saw content creation in your 'roles needed' post, which leads me to believe that you're 'doing all the programming' yourself, but that coupled with mistaking C# for C++, calling it 'script', thinking 6 lines of code is proof of anything - heck I wrote about 80 lines of C today, and I don't even program much anymore because of being unable to concentrate due to medical issues - and now I need to go outside and laugh myself silly for 20 minutes to counter the absurdness of making such an announcement at this stage.
 
Wait, you think that 6 actual lines of C# code (which you earlier claimed was C++ - not a good sign of a master programmer) is proof that you know what you're doing???

A working train simulator is going to involve several million lines of code, not 6, and I'm not sure that XNA is really performant enough to write a train simulator in, it's certainly not performant enough to balance out the massive performance penalty of user-supplied geometry (which is why you see commercial games far outstrip Trainz, MSTS or Railworks on performance).

I've tried to avoid commenting on this thread too negatively, because I don't want to crush your spirits, but... I only saw content creation in your 'roles needed' post, which leads me to believe that you're 'doing all the programming' yourself, but that coupled with mistaking C# for C++, calling it 'script', thinking 6 lines of code is proof of anything - heck I wrote about 80 lines of C today, and I don't even program much anymore because of being unable to concentrate due to medical issues - and now I need to go outside and laugh myself silly for 20 minutes to counter the absurdness of making such an announcement at this stage.


I said that it was only part of it didnt say that that was all see.
 
Guys, dear guys, ;)

Fourteen years old!!!!!!!!!!!!!!

Not intending patronizing but... a fourteen-year-old trainzer is around!

Be kind to him, please!

:hehe: Yes, we all know that reality bites but please, soften the painful bite with fatherly love and kind steady realism.

;)

The fatherly side of Alberte :hehe: (One grown-up and one of this age)
 
As a father of a twelve year old boy, I am impressed with your achievements and wish you the best of luck with your projects. You obviously are exceptional for your age, and seem to have a firm grasp of problem solving and a work ethic superior to most. It can be done, as you know, you have faced challenges before, and you have found they are only temporary obstacles to your success.

Keep up the good fight, turn a deaf ear to the naysayers, (I'm sure you're familiar with the "crabs in a bucket" example of human nature), and keep us informed as you approach success.

Edit: Alberte', my friend; it seems once again that mediocre minds think alike!
 
Last edited:
A working train simulator is going to involve several million lines of code, not 6, and I'm not sure that XNA is really performant enough to write a train simulator in, it's certainly not performant enough to balance out the massive performance penalty of user-supplied geometry (which is why you see commercial games far outstrip Trainz, MSTS or Railworks on performance).

I glad you picked up the use of XNA libraries and C# which only works on MS products currently. C++, hmm, lets see.

include "stdafx.h"
include <iostream>
include more stuff
using namespace std;

int varshere;
int functionshere(void);

int main () {

game code here.

functionshere(void);

return 0;
}
int functionshere(void) {
codehere;
}
All done from memory which isn't perfect.
Note the slight differences :)


Edit: Where are the UDK references as well?
 
Last edited:
Guys, dear guys, ;)

Fourteen years old!!!!!!!!!!!!!!

Not intending patronizing but... a fourteen-year-old trainzer is around!

Be kind to him, please!

:hehe: Yes, we all know that reality bites but please, soften the painful bite with fatherly love and kind steady realism.

;)

The fatherly side of Alberte :hehe: (One grown-up and one of this age)

As a father of a twelve year old boy, I am impressed with your achievements and wish you the best of luck with your projects. You obviously are exceptional for your age, and seem to have a firm grasp of problem solving and a work ethic superior to most. It can be done, as you know, you have faced challenges before, and you have found they are only temporary obstacles to your success.

Keep up the good fight, turn a deaf ear to the naysayers, (I'm sure you're familiar with the "crabs in a bucket" example of human nature), and keep us informed as you approach success.

Edit: Alberte', my friend; it seems once again that mediocre minds think alike!


Guys, I'm siding with a few people of the harsher reality and there are reasons to. The problem is, when learning something, the worst thing you can do is start with a poorly planned overcomplicated project, even worse, an overcomplex project that is beyond your abilities that you have absolutely no planning in and when you start with that, then sadly, your project is doomed to failure.

I'm studying a course at the time of writing known as "Computer Games Technologies" at a local univeristy, its a BSc course, which really does show how much work that is put into games and believe me, the design documentation that is often put in is quite immense. Aurananties would have a good idea of the documentation required just for trainz and its not just about what the result is, its about how the game functions, what mechinisms are used, how they are used, what hte player expects to see and experience and even some smaller stuff.

Programming requires plenty of documentation as well, I know, I even was mad enough to build a very small train simulator which I did dub as "WENs Weird Train Simulator" and to say it was weird was an understatement. I even in the time I had, started with a DXUT sample and modified it with the help of students and the lecture as there is that much to do, like understanding how arrays work, etc. That I can't remember the lines I wrote, but it was quite a bit and in the report and documentation, I documented what I ultimately wanted to do with the physics.

Now, if you look at my age, I did that a year ago and on the schedule, it was well, knackering, it really was, because as a newcommer to Direct X programming, its soo vast and not so understandable when you use C++. On the other hand, when you use XNA or the like, most programmers are shielded from the lower end of the workings, because the programming does it for you.

I do agree, if a 14 year old kid can program and be a good programmer, I see no harm with that, but annoucing a project prematurely and then fail later, is not the right way to go for my personal opinion and to be honest, even a simple program to my mind, requires a lot of thought than a 14 year old can adequately handle in the situation they are in, because of stuff like exams and their future is more important than whats going on now.

My £2.00 worth.
 
Thanks for the incuragement and modivation (ahh cant do spell check on DSI) Any way, I do have someone helping me with the game he is a trainzer and yahh. Today I was mostly working on the doppler affect script for a UDK plugin. Ido have support from the udk community and from other groups. I beleve this would be a nice addition to my IQ lol. but thanks so far guys and I hope by this summer or around christmas time to start posting previews.
 
Guys, I'm siding with a few people of the harsher reality and there are reasons to. The problem is, when learning something, the worst thing you can do is start with a poorly planned overcomplicated project, even worse, an overcomplex project that is beyond your abilities that you have absolutely no planning in and when you start with that, then sadly, your project is doomed to failure.

I'm studying a course at the time of writing known as "Computer Games Technologies" at a local univeristy, its a BSc course, which really does show how much work that is put into games and believe me, the design documentation that is often put in is quite immense. Aurananties would have a good idea of the documentation required just for trainz and its not just about what the result is, its about how the game functions, what mechinisms are used, how they are used, what hte player expects to see and experience and even some smaller stuff.

Programming requires plenty of documentation as well, I know, I even was mad enough to build a very small train simulator which I did dub as "WENs Weird Train Simulator" and to say it was weird was an understatement. I even in the time I had, started with a DXUT sample and modified it with the help of students and the lecture as there is that much to do, like understanding how arrays work, etc. That I can't remember the lines I wrote, but it was quite a bit and in the report and documentation, I documented what I ultimately wanted to do with the physics.

Now, if you look at my age, I did that a year ago and on the schedule, it was well, knackering, it really was, because as a newcommer to Direct X programming, its soo vast and not so understandable when you use C++. On the other hand, when you use XNA or the like, most programmers are shielded from the lower end of the workings, because the programming does it for you.

I do agree, if a 14 year old kid can program and be a good programmer, I see no harm with that, but annoucing a project prematurely and then fail later, is not the right way to go for my personal opinion and to be honest, even a simple program to my mind, requires a lot of thought than a 14 year old can adequately handle in the situation they are in, because of stuff like exams and their future is more important than whats going on now.

My £2.00 worth.

I think this is realistic, building a Trainz sim is complex, I think Auran/N3V started off life with some sort of government grant of $2,000,000 to build the basic game engine and that was some years ago.

You really need introverted nerds to build this stuff. They sit in corners and dream and they tend to avoid risky things like flying planes.

Mind you I'd love to be proved wrong.

Cheerio John
 
A very sensible and kind approach, dear W_E_N.

Be sure I can understand your point of view!

But remember that 11 years ago you were 14 too! ;) And maybe showing off the same hopes and illusions!

Your gaining experience, instruction and education made you see matters more realistically and earthly. :D

The understanding side of Alberte :wave:
 
Last edited:
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas A. Edison

Certainly WEN, you are entitled to your opinion, and to post it here. As a father I have learned that young men will hatch one overly ambitious scheme after another, and regardless of another's input, they will fixate on each one, believing it to be just the best idea ever put forth by any human being.

How cruel to try to crush each ambition with reality? Better to encourage and provide enthusiasm and support. Soon enough a young man will realize what is beyond his abilities, or be convinced of it by his peers. Of course an older person will try to temper his optimism with the painful truths we have learned from this life, but who is to say he cannot achieve what we cannot?

Youthful dreams are precious, they are extinguished soon enough...
 
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas A. Edison

Certainly WEN, you are entitled to your opinion, and to post it here. As a father I have learned that young men will hatch one overly ambitious scheme after another, and regardless of another's input, they will fixate on each one, believing it to be just the best idea ever put forth by any human being.

How cruel to try to crush each ambition with reality? Better to encourage and provide enthusiasm and support. Soon enough a young man will realize what is beyond his abilities, or be convinced of it by his peers. Of course an older person will try to temper his optimism with the painful truths we have learned from this life, but who is to say he cannot achieve what we cannot?

Youthful dreams are precious, they are extinguished soon enough...

So true, Ed. I found that out myself when I was growing up.

My plan was to become a concert pianist. I played the piano since I was 7 years-old, studied all through high school. All of my teachers came from Julliard, New England Conservatory, or the Mannes, School. During my freshman year, I was studying music at Phillips Academy in Andover. I had a very enthusiastic teachers who thought I had the material for that type of career. My dad would talk with them, while they sang the high praises, then tell me that wasn't capable of doing it because I would never be good enough! He complained when I practiced, and then complained when I didn't! Promises were made for me to enter NEC's preparatory program, but that never happened. It was all lip service in front my teachers while I was there. In the car, and at home I got the negative treatment.

Well the negativity won over, and I ended up not going into music. Instead I entered the high-tech world, and have pretty much stayed there ever since. Perhaps in some ways it was a blessing due to the econmics, but in reality I still regret my career choice. If I could do this over again, I would take the music route instead.

I fully agree, encourage young people to live their dreams. Let them figure out how difficult things are. We all travel that journey along the road called life, and we have to take everything into consideration and make our own choices.

John
 
So true, Ed. I found that out myself when I was growing up.

That's a sad story John, I'm sorry it happened to you. My son suffers from multiple illnesses, and I just can't bear to be the one to tell him "you can't" even when I have my doubts. There'll be enough people anxious and willing to gleefully crush him, I choose not to be one of them.
 
Back
Top