-
Notifications
You must be signed in to change notification settings - Fork 263
Copy ATF Sample and Run It
You need several folders and a file in the wws_atf
folder of the ATF distribution to build samples or an ATF application:
-
Framework
: folders of source files for each assembly in ATF. -
Samples
: the samples, one folder for each sample containing all the sample's source and other files. -
ThirdParty
: third party DLLs and other files ATF uses. -
wws_atf.component
: a file needed to build an ATF application. -
DevTools\DomGen
: a utility for generating schema stub classes.
Make a copy of the project folder for the sample you are going to be working from, SimpleDomEditor
, in this case. There are several ways to do this.
One way is to simply copy the folder for the sample and leave the copy in the Samples
folder. All the other folders and files are then available.
You can also replicate the folder structure of the ATF distribution for your new application project. Create a new folder for your project(s), say Projects
; create Framework
and ThirdParty
folders in Projects
; copy the wws_atf.component
file into Projects
, too. Create a folder in Projects
for your projects, analogous to the Samples
folder, say ATF Applications
. Make a copy of the Samples/SimpleDomEditor
folder, rename it "LandscapeGuide", and place it in ATF Applications
. This is the approach taken here.
Determine what assemblies are used by the chosen sample project. For SimpleDomEditor
, these are:
Atf.Core
Atf.Gui
Atf.Gui.WinForms
Atf.IronPython
Samples.vs2010.sln
, and going to the Solution's Property Pages. In Common Properties > Project Dependencies, select the desired project. The Depends on panel has the assemblies checked that you need. There is one folder in Framework
for each assembly; copy the assembly folders needed to your Framework
folder.
You may change these assemblies later as needed, based on what code you add or remove.
Next, determine the third party files needed. For SimpleDomEditor
, these are:
Bespoke
DockPanelSuite
IronPython
MEF
SharpDX
Wws.LiveConnect
Copy the Samples.vs2010.sln
file to your ATF Applications
folder.
To verify that you have copied everything you need, open the .sln
file and build SimpleDomEditor
. If it fails to build, examine the error messages and make the appropriate fixes. For instance, you might need some third party software that you have not copied into the ThirdParty
folder. Make the changes needed until you successfully build. Next, run SimpleDomEditor
and verify it's working, making changes until it operates properly.
Creating an Application from an ATF Sample
- Steps for Creating an Application Based on an Existing Sample: Suggested steps for building on an existing sample.
- Choose ATF Sample to Base Application On: Pick a sample that most closely matches your new application's features.
- Copy ATF Sample and Run It: Copy the indicated folders and files in ATF to start your application development.
- Start Customizing Your Application Software: Begin the process of transforming the sample into your application.
- Define Your Application's New Data Model: Define the types in your application's data in a file and create a schema.
- Modify Your Application's Existing Software: Modify the sample's existing code to work for your application.
- Add New Code and Parts to Your Application: Add the application's unique features, using the appropriate ATF classes and components.
- Build, Run, and Debug Your Application: With all code changed and features added, finish development.
- Home
- Getting Started
- Features & Benefits
- Requirements & Dependencies
- Gallery
- Technology & Samples
- Adoption
- News
- Release Notes
- ATF Community
- Searching Documentation
- Using Documentation
- Videos
- Tutorials
- How To
- Programmer's Guide
- Reference
- Code Samples
- Documentation Files
© 2014-2015, Sony Computer Entertainment America LLC