Scripting language vs C++

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
Ruudjah
Engineer
Engineer
Posts: 44
Joined: 12 Nov 2007 11:09

Scripting language vs C++

Post by Ruudjah »

Tim Sweeny, lead dev of Unreal engine made the following comment. Obvisouly UE is a very different beast than OpenTTD, but I wonder how much merit the comment holds when applied against the OpenTTD codebase. There are some similarities, mainly C++ and being a game engine.

The post personally triggered me since interop turned out a suboptimal experience in all the cases I had to use interop code (in my experience about 6).
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Scripting language vs C++

Post by Eddi »

there is certainly a lot of truth in this, but OpenTTD's scripting part has not yet grown this far, so the benefits still outweigh the costs.
User avatar
FLHerne
Tycoon
Tycoon
Posts: 1543
Joined: 12 Jul 2011 12:09
Location: St Ives, Cambs, UK

Re: Scripting language vs C++

Post by FLHerne »

Ruudjah wrote:Tim Sweeny, lead dev of Unreal engine made the following comment. Obvisouly UE is a very different beast than OpenTTD, but I wonder how much merit the comment holds when applied against the OpenTTD codebase. There are some similarities, mainly C++ and being a game engine.

The post personally triggered me since interop turned out a suboptimal experience in all the cases I had to use interop code (in my experience about 6).
OpenTTD doesn't use scripting in the main game-engine though, the Squirrel interpreter is only for third-party AIs/gameplay scripting. Those can't be compiled in for obvious reasons, and the scripts use a fairly limited interface that's mostly equivalent to the player's UI - it doesn't duplicate the entire game state for core functions like a few games I've seen. If you don't use an AI or GS, the scripting engine doesn't do much/anything.

NewGRFs are a bit more intrusive into core stuff for performance/feature reasons, but they're not really a 'scripting language' as such.
Temporary Permanent signature filling text. Content coming soon delayed indefinitely! Oh, and I have had a screenshot thread.
Linux user (XMonad DWM/KDE, Arch), IRC obsessive and rail enthusiast. No longer building robots; now I ring church bells.
Author of an incredibly boring stickied post about NewGRFs.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 35 guests