Code Setup
From Moviesandbox
m (Compiling moved to Code Setup: readability) |
|||
Line 5: | Line 5: | ||
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> | 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> | ||
- | Careful! Don't create your own mod, but use the Moviesandbox mod as the basis for your Code. Also, | + | 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. | That way, your Code can be reused by other people that have Moviesandbox installed. | ||
Revision as of 05:49, 9 November 2007
How to set up your own code for Moviesandbox
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.
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[1] and here [2].
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.
Example:
Let's say you want to add 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 , 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!
Well, at least you can now start happily coding away...
--fiezi 06:30, 9 November 2007 (MET)