Scroll?

Hey all!

Haven't been here in a long time. I've been trying other stuff but I keep hving thoughts about returning to ORX so I think that I finally am. However before I start I just have one question.

Is ORX C or C++?

Thanks!

EDIT: One more question! Will there be tutorials for Microsoft Visual C++ 2010 Express?

EDIT EDIT: This question has been answered (thank you) my other question is down there |
|
V

Comments

  • edited May 2012
    Hi!

    So yes, ORX is write using the C language. And so, because it's C, you can call ORX functions from a C++ program.

    If you want to do some C++, I suggest you to try Scroll, it's a good layer on ORX, made by Iarwain, using C++ (you can find informations on that by taking a look on the forum).

    For Visual Studio Express 2010, yes, there's some tutorial. Try to open the solution located at : orx utorialuildmsvs2010Tutorial.sln

    I suggest you to use the svn version because there's a lot of corrections and additional feature. For that, download the svn trunk of orx here : https://orx.svn.sourceforge.net/svnroot/orx/trunk

    Hope that help !

    EDIT: if you want some tutorial, take a look at the wiki, I'm sure you can learn more tricks about orx ! (http://orx-project.org/wiki/en/orx/tutorials/main)
  • edited May 2012
    Thanks!

    Would you mind providing me with a link for Scroll? It sounds interesting. :)
  • edited May 2012
    Take a look at this post :

    https://forum.orx-project.org/discussion/4117&catid=17#4117

    I think this post is the more recent about that. Follow the link provided by Iarwain and you'll have some good information on Scroll ! ;)
  • edited May 2012
    Is it possible to use ORX and Scroll?
  • edited May 2012
    Hi,

    Sure it's possible !

    And, it's not possible to use Scroll without ORX ;)
  • edited May 2012
    Cool! Thanks for that.
    Now, one final question (I think),
    Does the ORX download for Visual C++ Express 2008 work for Visual C++ 2010? Because I can't seem to find a file for 2010.
  • edited May 2012
    I think yes, there's a solution to build orx using Visual Express 2010.

    Do you use orx from the svn ? From where did you download orx ?
  • edited May 2012
    http://sourceforge.net/projects/orx/files/orx/orx - 1.3rc0 (2513)/

    I downloaded the latest version.
  • edited May 2012
    So yes, this one is the "official" version, but not the latest.

    The latest version (and recommended one) is under source control. Actually the source control for ORX is subversion (called svn).

    You have to download all ORX's source code and build it yourself.

    To get it (as I said to you previously) you need to get it from svn here : orx.svn.sourceforge.net/svnroot/orx/trunk

    You need a subversion client to grab it. Under windows I recommend you Tortoise (google it), and for the repository location, use svn://orx.svn.sourceforge.net/svnroot/orx/trunk

    Maybe, there's a full description somewhere on the forum about this process, I don't know.

    Hope that help!
  • edited May 2012
    http://orx-project.org/wiki/en/orx/tutorials/community/grey/tutorial0

    the above tute shows the basic steps of building orx from svn. (using tortoise svn on windows)

    Good luck! :)
  • edited May 2012
    Well, everytime I try to input the URL and Checkout Directory I get the message saying:

    Can't create directory 'C:Program FilesTortoiseSVNorx.svn': Access is denied.

    What's going wrong?

    EDIT: Nevermind. :P
  • edited August 2012
    A bit late, but you can find the latest version of Scroll here: https://bitbucket.org/orx/scroll
  • edited May 2012
    I've begun a tutorial series on Scroll. The first tutorial (basic setup) is here: http://orx-project.org/wiki/en/orx/tutorials/community/acksys/scroll0

    The second tutorial (object binding) will be finished soon.
  • edited May 2012
    Brilliant work Acksys :) I'm looking forward to seeing your next tutorial!
  • edited May 2012
    Dude, acksys, your amazing man, I'm looking forward to the rest of the tut aswell in place of my current hit and miss testing with scrolls. :woohoo:
  • edited May 2012
    The code is done and (optimistic) the tutorial should be written by the weekend.
  • edited May 2012
    The first version of my second tutorial is finished: http://orx-project.org/wiki/en/orx/tutorials/community/acksys

    I will modify it based on any feedback from readers.
  • edited May 2012
    If I use scroll, do I still have to include the orx.h file?

    And how do you handle input with this?
  • edited May 2012
    No need to include orx.h if you include Scroll.h.

    Scroll is only a layer on top of orx to bring some new features and convenience for map/objects handling. Inputs are still handled in the exact same way as with orx only.

    EDIT: you can actually see an example in acksys' tutorial. :)
  • edited May 2012
    Do I have to have both the scroll and orx headers in my include path? (It looks like I do; I'm getting annoying compiler errors.) Do I include the orx headers that came with scroll or do I include the orx headers that came with the last svn push?
  • edited May 2012
    The way I use scroll is this:

    <basedir>/include/ [put scroll files here]
    <basedir>/include/orx [put orx include files here]

    ... this should "just work" and whatnot, good luck!

    edit: essentially, put an 'orx' folder inside the scroll include files, and put all the orx includes inside that.

    edit2: and use the svn includes for orx, not a guarantee, but it's rare for scroll to be out of sync with orx.
  • edited May 2012
    Hi,

    I think only Scroll is sufficient in the include path (Scroll include "orx/orx.h", so if scroll is in the include path, orx/orx.h is in the include path too).

    I don't know how orx include files from scroll mecurial repository are up to date.

    Because I'm compiling orx mylself from the orx svn, I prefer keep those header version (because I use the corresponding orx dll). So, my method is to get the last version of Scroll, and copy them (*.h, *.inl) to my game src folder (without orx include).

    If my game doesn't compile because a scroll compilation error, I have to fix it (or maybe get the last version of orx).

    If there's a compilation problem, that means the orx header in scroll mercurial and orx svn are different, and it's always a good choice to have header synchronized with their corresponding library.

    Hope that can help !
  • edited May 2012
    @sonicbhoc, I have a repo on github with a "barebones" Scroll project. You can use it as an example.

    https://github.com/fmahnke/OrxScroll-Empty

    BTW, I've noticed if you don't bind any objects in the BindObjects functions, you get an assert on program exit.
  • edited May 2012
    Any details on that assert?
  • edited May 2012
    Yes, it came with the change to HashTable I think, but I didn't notice it until recently. It happens if your DerivedScroll::Init and DerivedScroll::BindObjects don't do any work (i.e. are empty). Look at my OrxScroll-Empty repo for an easy example.

    http://i.imgur.com/t5hmA.png
  • edited May 2012
    Oops, forgot to say I got it working. It's interesting so far, I'm just working on converting the code I have to C++ standard stuff and maybe re-working a function or two to make my life easier.
  • edited May 2012
    I've been following acksys' tutorials and so far so good!

    One thing though, could you guys generate and upload (in a new directory?) the doxygen docs for Scroll? That would be great :]
  • edited May 2012
    Hi,

    To generate a doxygen doc, Scroll header file need some C comment ... and I think there's no comment for now.

    So, this couldn't be done actually ...

    But a good exercice is to learn Scroll by reading the header files and/or the .inl files. I'm really sure that this point can give you a complete overview of "an advanced use of orx" ;)
  • edited May 2012
    faistoiplaisir wrote:
    Hi,

    To generate a doxygen doc, Scroll header file need some C comment ... and I think there's no comment for now.

    So, this couldn't be done actually ...

    But a good exercice is to learn Scroll by reading the header files and/or the .inl files. I'm really sure that this point can give you a complete overview of "an advanced use of orx" ;)

    Oh I see. I know I can read the header files to learn about Scroll, I'm just really comfortable with the doxygen docs :p
  • edited May 2012
    Ah yeah, didn't put any doxygen annotation in Scroll, sorry! ^^
Sign In or Register to comment.