How exactly do you compile TPT?

  • greymatter
    8th Jun 2013 Member 0 Permalink
    Okay, i have been trying to compile tpt for nearly 3 weeks now, and all i have done is to waste my net usage. TPT seems to be an incredibly hard software to compile when comparig by it's size. I want someone to resolve few issues and give instructions.

    mniip and firefreak11 has helped me out, but now i'm at a dead end. Here's what happened so far:

    1)My stupid net doesn't load certain sites. Github was one of them, and mniip uploaded the sorce code in his website for me, which i downloaded. I don't have python.

    2)firefreak11 gave me a link to download and compile tpt without python. He said it required visual studio and .NET framework 4.0. I downloaded the code and viewed it in notepad, and i was able to understand most things.


    Now, I have 2 pc's, one old desktop with WinXP and the new laptop with Win8. I hear most compilers do not work in Win8 so i never downloaded any compiler in 8. In my old one, I have Turbo c++ and Borland Dev c++ with MingW.(I have a few more, but i guess that's insignificant.) I compiled a few .cpp files with dev c++, and got a very long list of errors. I tried downloading visual c++ but got a malware that froze the system.(But avast killed it soon). Now, some questions:

    1)What are the minimum requirements to compile tpt?

    2)Is the non-python one or the one with generator.py easier to compile?

    3)Which file exactly do you compile to run the game?

    4)How to make a .exe when i'm done?


    Note that i have a very limited net usage. So I want someone to give me very clear instructions about compiling tpt with the least net usage as possible. Thank you.
  • xetalim
    8th Jun 2013 Member 0 Permalink

    you read the wiki?

  • BeepBoopSon
    8th Jun 2013 Banned 0 Permalink
    This post is hidden because the user is banned
  • jacob1
    8th Jun 2013 Developer 0 Permalink
    1) using scons, anything will work. Using visual studio 2012, you will need windows vista or newer, although 2010 works on XP. Also it should work on windows 8 as far as I know but i'm not completely sure.

    2) it is way easier to use python and generator.py than manually editing some file

    3) 4) the compiler will do all of this for you if you follow the guide

    I suggest using scons from the command line (and you can configure those ide's to use it if you want) and not visual studio, so you will need to install both python 2.7.* and scons (in that order). I don't think they will be too large but you do need these. Since you already have mingw that's all you need there. As for the libraries ... i'm not sure, I haven't ever written a guide for it since I couldn't get it working, but I think I can find a download link to them if you need them later.

    the scons command is:
    scons --win --release --sse2
  • greymatter
    8th Jun 2013 Member 0 Permalink
    @xetalim (View Post)
    I did. But the link for downloading vc++ doesn't load for me and python seems to be quite large.
    @jacob1 I'm downloading scons now and it seems to be below 1 mb. Sweet! thanks!
    But the python is 15 mb+....Can you give me a version that is smaller but will support tpt?
  • jacob1
    8th Jun 2013 Developer 0 Permalink
    If you tried to download vc++ which is HUGE i'm sure you can take python which is 15MB. I'm not aware of any smaller version of it, that's pretty small and i guess you'll just have to wait while it downloads, or you can always google it yourself.
  • greymatter
    9th Jun 2013 Member 0 Permalink
    @jacob1 (View Post)
    "You'll just have to wait while it downloads"
    Time is not the problem. The size of the file is. My internet is based on size, not time.

    Python 2.4.4 seems to be 7.8 mb. Any way i'll get one within a few days. Thanks. Now, a question about MingW: A folder called MingW wih some files is there inside the Dev c++ folder. Should i leave it there, or do something with it?



    EDIT:I downloaded python 2.7.5. I installed it, and ran SCons installer. I got a message saying "No python installation found in the registry". I made sure python was installed. But I keep getting the sam error when i try to install it. What do I do?
  • BeepBoopSon
    9th Jun 2013 Banned 0 Permalink
    This post is hidden because the user is banned
  • greymatter
    9th Jun 2013 Member 0 Permalink
    @BeepBoopSon (View Post)
    Dev is pretty good. At least better than Turbo. But the question now is:
    "I downloaded python 2.7.5. I installed it, and ran SCons installer. I got a message saying "No python installation found in the registry". I made sure python was installed. But I keep getting the same error when i try to install it. What do I do?"

    It's maddening to spent this much time in just compiling a software. Perhaps should i just get Vc++ or is there a way to get around this particular problem mentioned above?
  • mniip
    9th Jun 2013 Developer 0 Permalink
    @BeepBoopSon (View Post)
    Yea, something like vim.

    @greymatter (View Post)
    make sure python executable is within your %path%