|
|
(4 intermediate revisions not shown.) |
Line 1: |
Line 1: |
- | <h2>How to set up your own code for Moviesandbox</h2>
| + | If you are looking for the old Code Setup - the page has moved to [[UT2k4_CodeSetup]]. |
| | | |
- | First of all, create the Folders for your classes inside the Moviesandbox directory, and just as a tip, try to give them a clear three letter abbreviation to not mix them up with the MSBwhatever folders.
| + | Moviesandbox is developed in C++ and OpenGL with [http://www.codeblocks.org CodeBlocks]on Win32 compiled with MinGW. Codeblocks will need '''freeglut''' installed to compile. |
| + | It uses XCode on Mac OSX 10.5 or later. And is currently being ported to Linux. |
| + | <br> |
| + | <br> |
| + | [http://github.com/fiezi/moviesandbox Github Code Repository] |
| + | <br> |
| + | <br> |
| + | more to come soon... |
| | | |
- | Once you created your Folders (and the classes folders respectively), use the -mod switch when compiling with -mod=Moviesandbox. General info on the -mod switch can be found here[http://geeks.beyondunreal.com/ut2004/docs-modsystem.php] and here [http://wiki.beyondunreal.com/wiki/Using_The_Mod_System_In_UT2004].<br>
| + | [[Category:Coding]] |
- |
| + | |
- | Careful! Don't create your own mod, but use the Moviesandbox mod as the basis for your Code.
| + | |
- | Also, I advise you not to change the Moviesandbox Code files unless you have to.
| + | |
- | That way, your Code can be reused by other people that have Moviesandbox installed.
| + | |
- | | + | |
- | The next step is adding the editpackages to your '''Moviesandbox.ini''' file (that can be found in the ''Moviesandbox\System\'' folder). The easiest way is to just add them below the ''EditPackages=MSBWidgetPose'' line.
| + | |
- | | + | |
- | <h2>Example:</h2>
| + | |
- | | + | |
- | Let's say you want to add [[Create Actions | a couple of Actions]] to Moviesandbox, that you will call Super Action Pack.
| + | |
- | We start with finding a three letter abbreviation for your packages, in this case SAP (how convenient!) and then add a folder to our ''UT2004\MovieSandbox\'' folder called '''SAPActionCode'''. Or something like that. And then add a ''Classes'' folder in there. Now all your new Action classes can go in here. In case you want to do a couple of [[Custom Input Controls | custom Input Controls ]], just add another folder called ''SAPInputCode'' and a classe folder within that.
| + | |
- | | + | |
- | We're almost done. We still need to add a couple of things to our Moviesandbox.ini. go find this line:
| + | |
- | | + | |
- | ...
| + | |
- | EditPackages=MSBWidgetPose
| + | |
- | ...
| + | |
- | | + | |
- | and add your packages beneath:
| + | |
- | | + | |
- | ...
| + | |
- | EditPackages=MSBWidgetPose
| + | |
- | EditPackages=SAPActionCode
| + | |
- | EditPackages=SAPInputCode
| + | |
- | ...
| + | |
- | | + | |
- | And now you're done! If you're doing command line compilation, use '''ucc make -mod=MovieSandbox''', if you're using UDE, set up the mod system in the '''Options->Preferences->Game Information->Edit Gametype''' window. Add a new Gametype there or simply mosify the existing UT2004 gametype. And you're done!<br>
| + | |
- | Well, at least you can now start happily coding away...
| + | |
- | --[[User:PersonTwoOneEightFour|fiezi]] 06:30, 9 November 2007 (MET)
| + | |
- | | + | |
- | [[Category:Coding]] [[Category:Tutorials]] | + | |