XNA Creators Club Online
Page 1 of 1 (7 items)
Sort Posts: Previous Next

Creating starter kits

Last post 05-04-2008 6:31 AM by Stainless. 6 replies.
  • 04-25-2008 1:51 PM

    Creating starter kits

    Anyone point me at a tutorial for creating starter kits?

    I have to do a whole load of programs based on a common framework and it would be so nice to have a starter kit to save me a lot of time.

     

    Information is not knowledge, knowledge is not wisdom, wisdom is not truth, truth is not beauty, beauty is not love, love is not music, music is the best! Wisdom is the domain of the Wis (which is extinct).
  • 04-25-2008 1:59 PM In reply to

    Re: Creating starter kits

    Creating project and file templates is pretty easy: http://msdn2.microsoft.com/en-us/magazine/cc188697.aspx.
  • 04-25-2008 2:31 PM In reply to

    Re: Creating starter kits

    Almost worked, the new project is always created in "my documents/....", the option to browse to a different location does not appear. When I do a "Save all" it then gives me the option to locate it but three files in the template are links and these are busted because they are based on the "my documents" filepath.

    I have these in, but no effect

     

    <LocationField>Enabled</LocationField>

    <EnableLocationBrowseButton>true</EnableLocationBrowseButton>

    Information is not knowledge, knowledge is not wisdom, wisdom is not truth, truth is not beauty, beauty is not love, love is not music, music is the best! Wisdom is the domain of the Wis (which is extinct).
  • 04-25-2008 3:00 PM In reply to

    Re: Creating starter kits

    I had the same trouble but managed to sort it.

        <CreateNewFolder>true</CreateNewFolder>
    <DefaultName>yourtemplatename</DefaultName>
    <ProvideDefaultName>true</ProvideDefaultName>
    <LocationField>Enabled</LocationField>
    <EnableLocationBrowseButton>true</EnableLocationBrowseButton>
    <PromptForSaveOnCreation>true</PromptForSaveOnCreation>
     

    The above code is between the templatedata tags in the .vstemplate file.

    Hope this helps. 

     Mike

     (edit: couldnt insert code box because i was using opera as a browser, the option didnt show - lol. Works fine now i switched to IE)

    One life - live it
  • 04-25-2008 3:57 PM In reply to

    Re: Creating starter kits

    Well that fixed that problem, but still not working.

    The content folder is not installed, even though I added it to the zip file, I suppose I have to add each file to the template by hand.

    I can handle that, but the links are still duff.

     

     

    Information is not knowledge, knowledge is not wisdom, wisdom is not truth, truth is not beauty, beauty is not love, love is not music, music is the best! Wisdom is the domain of the Wis (which is extinct).
  • 04-25-2008 4:08 PM In reply to

    Re: Creating starter kits

    The way i solved that was by including the content folder in the project, if you click on show all files at the top of the solution explorer, then right click on the folder (which should appear white) and chose include in project from the pop up menu. That will include the folder in the template when you export it.

     

    Hope that helps

     

    Mike

    One life - live it
  • 05-04-2008 6:31 AM In reply to

    Re: Creating starter kits

    That sorted that problem, now there is just the problem of links left.

    I have all my comms as seperate .cs files in a common location and include them all as links.

    When the new project is created, the links are all relative to documents and settings instead of the project location.

    Any idea how I can solve this one?

     

     

    Information is not knowledge, knowledge is not wisdom, wisdom is not truth, truth is not beauty, beauty is not love, love is not music, music is the best! Wisdom is the domain of the Wis (which is extinct).
Page 1 of 1 (7 items) Previous Next