Results 1 to 13 of 13

Thread: Total War engine

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Arbeit macht fleisch Member ScionTheWorm's Avatar
    Join Date
    May 2005
    Location
    Norwegen
    Posts
    778

    Default Re: Total War engine

    Quote Originally Posted by edyzmedieval
    Mount&Blade is one of the best games to start off with exploring Python. It's just a simple 54MB game, made with Python modules and scripts and some animations and graphics in Blender.
    Check this out: www.python.org

    I know C++ well, but not enough to do graphics in it. So, guess Python and Blender are the best things to use. Blender is a sort of open-source 3DS Max 8, which from the screenshots, it's very cool.
    wrong, m&b isn't written in python at all, it just supports it to add some gamecontents as far as I know (through it's python based module system). it's pretty much like how rtw modding works (with scripting and "stats reading"), just that m&b is more modding friendly. at best you could use a graphics engine with an interface too python (that is: the engine is purely written in c++, but you could access functions in it from python, sending arguments etc). python is mostly used putting pieces from other languages together, as it's just a scripting language. everything in python is a c structure (an early version of the concept class), even integers, functions and floats are c structures.

    so how it would work, using a low-level language coded c++ engine from a scripting language could be in pseudo-pseudo-code like this:

    Code:
    engine = mygraphicsengine()
    scene = engine.makescene() (or something)
    warrior1 = mesh('warriormodel1.brf', 'warriortexture.dds', ...)
    warrior2 = mesh('warriormodel2.brf', 'warriortexture.dds', ...)
    
    scene.addmesh(warrior1, some location)
    scene.addmesh(warrior2, some location)
    
    start()
    this would be about how it would work from c++ too, but that would be faster. making the AI would require very CPU-demanding algorithms, which with python loops would be... very slow.

    best place to start with python is in my opinion with PyGame, though that wouldn't be 3d and the game you aim at. I just recently posted in a similar thread the link to ogre3d

  2. #2
    Ja mata, TosaInu Forum Administrator edyzmedieval's Avatar
    Join Date
    May 2005
    Location
    Fortress of the Mountains
    Posts
    11,446

    Default Re: Total War engine

    Nice info. Thanks.
    Ja mata, TosaInu. You will forever be remembered.

    Proud

    Been to:

    Swords Made of Letters - 1938. The war is looming in France - and Alexandre Reythier does not have much time left to protect his country. A novel set before the war.

    A Painted Shield of Honour - 1313. Templar Knights in France are in grave danger. Can they be saved?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO