New in development

  • china-richway2
    28th Aug 2013 Member 0 Permalink

    I just downloaded the TPT source, but I need someone to tell me the structure.

  • boxmein
    28th Aug 2013 Former Staff 0 Permalink
    @china-richway2 (View Post)
    src/bson and src/cajun are libraries,
    src/tests is for unit tests which i don't know if they work,
    src/pim is for the stuff the interaction machine unit test uses,
    src/graphics is for fancy drawy stuff
    src/client is for the web client
    src/socket is for boring cross platform sockets
    src/simulation is where simulation stuff is (elements, etc)
    src/resampler is there to resize images,
    src/tasks defines a class for threaded workers,
    src/gui is where gui stuff is,
    src/powdertoyjava is poop,
    in src/cat live cats

    That's about everything.
  • Incredy
    28th Aug 2013 Member 1 Permalink

    well, here's the link

     


    this explains the structure and the parts of it

    Seriously, what do you mean?

  • jacob1
    28th Aug 2013 Developer 0 Permalink
    if you want to make elements, src/simulation is the place to go. Look in elements/ in there to find the elements, and copy the structure of one to make another (there is also a totally unfinished guide in the wiki)

    Simulation.cpp is also important. So are some of the header files in there for some different tasks.

    if you want to modify one of the interfaces, that's in src/gui. There are many folders in there, it should be obvious what each is. src/gui/game is the gui for the main screen, many important functions are in there (it controls everything basically: what all the buttons on bottom do, brush drawing, the menus, etc.)

    src/client/Client.cpp has some things for downloading info from the server, and managing preferences.

    src/cat is the lua console. Also live cats as boxmein said.

    Renderer.cpp is in src/graphics/ I think

    that's about it ... or at least what I edit the most.
  • china-richway2
    29th Aug 2013 Member 0 Permalink

    @boxmein (View Post)

    @Incredy (View Post)

    @jacob1 (View Post)

     Thanks, but could anyone tell me how to compile?

  • mniip
    29th Aug 2013 Developer 0 Permalink
    Look on the wiki
  • china-richway2
    29th Aug 2013 Member 0 Permalink

    @mniip (View Post)

    Thanks! But the file's very big? 12.1MB Could I compress?

    EDIT: Thanks! It's now 5.17MB.

    Edited once by china-richway2. Last: 29th Aug 2013
  • mniip
    29th Aug 2013 Developer 0 Permalink
    again, look on the wiki

    EDIT: i drew a nice map of things happening inside TPT, it doesn't include networking, lua, and UI (yet?)
    image
    Edited once by mniip. Last: 29th Aug 2013
  • china-richway2
    29th Aug 2013 Member 0 Permalink

    Third question: How to debug? Is there a turtorial about it?

  • xetalim
    29th Aug 2013 Member 0 Permalink

    @china-richway2 (View Post)

     explain what you want with debug.