Didn't read anything else in this thread, but I just wanted to jump on board of this one:Kogut wrote:(..)
Anyway - it is impossible and pointless to recreate OpenTTD in JavaScript(..)
Let's start with a quote:
Code: Select all
“Never tell a young person that anything cannot be done. God may have been waiting centuries for someone ignorant enough of the impossible to do that very thing.” - G. M. Trevelyan
What is possible these days is incredible. I myself navigate often in this field, and I made some very kewl proof-of-concepts. For example, I made a full 3D landscape in WebGL. 2 years ago, every nay-sayer would have been the first to say: THAT WONT WORK! THAT WILL BE SLOW! And all the other default replies I am reading here. And yet here we are, able to fully render complete scenes in 3D, at 60+ FPS. So what is there to stop a game as complex as OpenTTD?
More to the point, it is a matter of progression. We now start to see more and more frameworks that allow easy creation of games in Javascript. We see Lemmings, Wolfestein, what is next? Of course there is a lot to do to make it quick and viable for a game like OpenTTD. It won't be a one-day-job, and it won't be easy. Modern browsers are doing a lot of testing with pre-compiled Javascript, even compiling it to byte-code and other tricks, to speed it up. My personal opinion? I would give it a year or 2 before a game like OpenTTD will run fine in Javascript.
Some other nice references to show how quick Javascript is going: Node.js is a pretty complex piece of software, purely written in Javascript, which runs like Python or any other modern scripting language. I am sure many people said it was impossible when they started .. yet they did it. I can keep going with countless examples of this

My point? Keep an open mind, and don't dismiss stuff with words like "impossible" and "pointless". You don't want to be that person that was too ignorant to see passed the present missing the future.
PS: 3 years ago I wrote a draft for OpenTTD in a browser. It was pretty kewl and in fact kinda worked .. but a big but: a client rendered PNGs which were streamed to the browser


PPS: of course it still requires progress and dedication for anything like this to work. I am purely making a remark on the strong terms used here which demotivate people, while it is unreasonable. As final example: I wrote a fully working 80386 DOS 16-bit decompiler, which outputs to fully compilable ANSI C. You have no clue how many people told me it was not possible, instead of answering the questions I was asking, or instead of just cheering me on for trying. 3 months later I released OpenDUNE, a result of this decompilation process. All I could say was: HA, to all those nay-sayers. I hope someone here will be able to say the same to you in 2 years or so, when he made OpenTTD in Javascript

PPPS: don't take it personal, I am just making a point here

@OP: your grf.js link doesn't work :'(