tag:blogger.com,1999:blog-78425149629857515902023-11-16T07:15:47.942-05:00Altaf Navalur ( Crazie Coder )Never take life seriously. Nobody gets out alive anywayAnonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-7842514962985751590.post-38546715483229068982013-05-25T13:43:00.001-04:002013-05-25T13:53:48.854-04:00Cut Paste option in Assets context menu for Unity3DI have been working with <a href="http://unity3d.com/" target="_blank">Unity3D </a>from a long time. Its a good engine. I wish I could say its a great engine but before that I want unity to add a bunch of stuff. One of them is to be able to move assets easily. This simple task becomes very difficult when you are dealing with big project where you have too many assets.<br />
<br />
Instead of waiting for unity to do it for me, I wrote a editor script that makes my life easy. This editor script adds <b>Cut </b>& <b>Paste </b>option<b> </b>to <b>Assets </b>context menu.<br />
<h3>
<b>How to use :</b> Create a c sharp file in editor folder & copy paste the code below. Right click on the asset in Project pane & click on Cut. Then choose the location where you want to paste the asset , right click & select paste.</h3>
<br />
Code is as follows,,<br />
<br />
<span style="color: blue;">using UnityEngine;<br />using UnityEditor;<br />using System.Collections;<br /><br />/* Author : Altaf<br /> * Date : May 20, 2013<br /> * Purpose : Context menu to copy, cut & paste items <br />*/<br /><br />public class AssetHelper : ScriptableWizard <br />{<br /> static string _AssetPath = string.Empty;<br /> <br /> [MenuItem("Assets/Cut", false, 80)]<br /> static void MoveAsset ()<br /> {<br /> _AssetPath = AssetDatabase.GetAssetPath(Selection.activeObject);<br /> Debug.Log("Copied asset at path : " + _AssetPath);<br /> }<br /><br /> [MenuItem("Assets/Cut", true)]<br /> static bool MoveAssetValidate ()<br /> {<br /> return (Selection.activeObject != null);<br /> }<br /><br /> [MenuItem("Assets/Paste", false, 80)]<br /> static void PasteAsset ()<br /> {<br /> string dstPath = AssetDatabase.GetAssetPath(Selection.activeObject);<br /> string fileExt = System.IO.Path.GetExtension(dstPath);<br /> if(!string.IsNullOrEmpty(fileExt))<br /> dstPath = System.IO.Path.GetDirectoryName(dstPath);<br /> string fileName = System.IO.Path.GetFileName(_AssetPath);<br /> string msg = AssetDatabase.MoveAsset(_AssetPath, dstPath + "/" + fileName);<br /> if(string.IsNullOrEmpty(msg))<br /> {<br /> _AssetPath = null;<br /> Debug.Log("Pasted asset at path : " + _AssetPath);<br /> }<br /> else<br /> Debug.LogError("Failed to paste asset : " + msg);<br /> }<br /><br /> [MenuItem("Assets/Paste", true)]<br /> static bool PasteAssetValidate ()<br /> {<br /> //Have we copied anything?<br /> if(string.IsNullOrEmpty(_AssetPath))<br /> return false;<br /> //Try to paste no where?<br /> if(Selection.activeObject == null)<br /> return false;<br /> //Trying to paste on same asst again?<br /> if(AssetDatabase.GetAssetPath(Selection.activeObject) == _AssetPath)<br /> return false;<br /><br /> return true;<br /> }<br />}</span><br />
<br />
<br />
Hope it helps...Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com0tag:blogger.com,1999:blog-7842514962985751590.post-44408488799902336092011-03-15T07:09:00.005-04:002011-03-15T07:21:57.565-04:00Search Objects based on Layer in Unity3DThis is an editor script for <a href="http://www.unity3d.com">Unity3D</a>.<br />This tool will help you, if you are working on a large scale project & you often need to search for objects with specific layer. Unity3D searches objects based on Name & Type. This helps you search for objects based on Layer.<br /><br /><span style="font-weight: bold; font-style: italic;">How To Use:</span><br /><ul><li>Press CTRL+SHIFT+L to launch the tool on PC. On MAC use CMD+SHIFT+L.</li><li>You can also find it in MyTools->Layer Search.<br /></li><li>Choose Layer name from the drop down list.</li><li>The objects with the selcted layer are listed.</li><li>Click on the object, it will frame the object.</li></ul>You can download the files from <a href="http://www.unifycommunity.com/wiki/images/b/bc/Editor.zip">here</a>.<br /><br />Hope it helps someone.Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com1tag:blogger.com,1999:blog-7842514962985751590.post-43581484508503310582010-01-13T15:49:00.006-05:002010-01-13T15:53:56.688-05:00Quick Find<h2 class="style15">Quick Find V1.1</h2> <p style="text-align: justify;" class="style15">This utility is a freeware for personal and commercial use. Its a very handy tool to search files.</p><div style="text-align: justify;"> </div><p style="text-align: justify;" class="style15">Motivation : Recently I was working on a Wii game which had 856 files(art assets). I was having a hard time searching files. Windows searech is not handy & takes time to search. So I developed this tool to help me search my required files much faster. Hope it helps you guys as well :)</p><br /><div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi38lo3WRfIlCwQWBoOQPH3K6k2E9RDHbwgwjo-ONv0-1sKMzIBBtQvemQWiGeJBKgCEQDW7TF56eEBoHSvKBG0kFv2sQaZFT_6QqLCxlY3uzrKmBs3jIWt2ieuOuxTshE17rIzqbEwnrs/s1600-h/ScreenShot.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 400px; height: 256px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi38lo3WRfIlCwQWBoOQPH3K6k2E9RDHbwgwjo-ONv0-1sKMzIBBtQvemQWiGeJBKgCEQDW7TF56eEBoHSvKBG0kFv2sQaZFT_6QqLCxlY3uzrKmBs3jIWt2ieuOuxTshE17rIzqbEwnrs/s400/ScreenShot.jpg" alt="" id="BLOGGER_PHOTO_ID_5426329871381987554" border="0" /></a><br /></div><br /><span style="font-weight: bold;"><br /><br /></span><p class="style15"><br /></p><p class="style15"><br /></p><h2 class="style2"><br /></h2><h2 class="style2"><br /></h2><br />Click <a href="http://www.craziecoder.com/softwares/quickfind/quickfind.html">here</a> to download the latest version<br /><br /><h2 class="style2">How To Use:</h2> <p style="text-align: justify;" class="style15">After installing the software right click on any folder and click <strong>"<em>Open Quick Find Here</em>"</strong>.</p><div style="text-align: justify;"> </div><p style="text-align: justify;" class="style15">Enter the name of file you are searching for. </p> <h2 class="style15"><span class="style2">Features:</span></h2> <ol><li class="style16">The <strong>Recursive Search</strong> option will search all underlying directories for the given file. This option is disabled by default.</li><li class="style16">If <strong>Instant Search</strong> is enabled, the tool will start searching the file as soon as you start typing the file name. It is recommended to disable it in case if you have too many files in the given directory. This feature is enabled by default.</li><li class="style16">Right click on the seached file to activate the context menu. From this context menu you can either <em>Open</em>, <em>Cut</em>, <em>Copy</em>, <em>Delete</em>, <em>Open Containing Folder </em>or Choose application to use to open the selected file(s).</li></ol> <p class="style15"> </p> <p class="style15">If you find any bug or crash, or if you have any feature request please do mail me on <a href="mailto:altaf.navalur@gmail.com"><em><strong>altaf.navalur@gmail.com</strong></em></a> </p> <p class="style15">Note:</p> <p class="style5">Use this software on your own risk. I am not responsible for any loss of data or what so ever.</p>Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com0tag:blogger.com,1999:blog-7842514962985751590.post-60082309172679211912009-07-07T14:12:00.003-04:002009-07-08T02:05:52.353-04:00Visual Studio Add-In : OpenFiles<div style="text-align: justify;">Finally...<br />Last year I was working on <a href="http://www.adobe.com/products/flex/?sdid=DIQHP">Flex Builder</a>. This IDE had a very cool feature. Using this tool you can browse through files & resources in the project. I wanted this feature In Visual Studio badly. The reason being in my game engine I had more than 700 files. If I want to open a file I have to navigate through the solution file. Which is extrmely boring. If we have filetrs, this gets worse. So I decided to write one for me. Initially I thought of writing a MACRO. But MACRO`s in Visual Studio have certain limitation. A MACRO cannot have UI. So I started writing an Add-In. I call this Add-In as "OpenFiles".<br /><br />What this Add-In does is, It Pop`s in a dialog box, Where in you can type the initial characters of the file you are looking for.<br />The list gets filled with the matching file(s) in the solution. Navigate through the files using Up & down arrow keys. Either hit Enter key or Double click to open the selected file.<br />Press CTRL + Click to select multiple files. Pretty Simple is`nt it...<br /><br />Now lets see how to use this. The Add-In supports VS 2005 & VS 2008 IDE`s.<br />Download Installers : <a href="http://www.filefront.com/13989699/OpenFiles%20VS%202005.vsi">VS 2005</a>, <a href="http://www.filefront.com/13989703/OpenFiles%20VS%202008.vsi">VS 2008</a>.<br /><br />When you run the installer, it will warn you for security iossues. Just click next, there is no rik in any way. If you are still not sure, click on "View files in Windows Explorer..." button. It will show you the file that are going to be installed.<br /><br />Once you are done with the installation,<br />Start visual studio, Create/Open any project you want.<br />To use the Add-In, go to Tool. Here you will see a Smiley face Icon with the Text "OpenFiles".<br />Click on it, a dialog box will pop up, type in the first few characters of the file you are looking for.<br /><br />If you are a kind of programmer who hates using mouse. I suggest you assign a short cut key for it.<br />To Assign a short cut key, do the following,<br />> Tools->Options->Environment->Keyboard.<br />> In the text box type : OpenFiles.<br />> In the list select : openFiles.Connect.OpenFiles.<br />> Choose any short cut key you want & click Assign.<br /><br />I have set it to : Ctrl + Shift + Alt + O.<br /><br />Hope you guys like it. Drop me a mail or write a comment if you have any suggestions.<br />Have fun Coding...<br /><br /><span style="color: rgb(255, 0, 0);">Note: Add-In are not supported by Express Editions.</span><br /></div>Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com0tag:blogger.com,1999:blog-7842514962985751590.post-16641195644667989912009-06-30T05:01:00.006-04:002009-06-30T06:37:48.242-04:00Visual Studio Macro to open Partner files.<div style="text-align: justify;">From past one year I have been working on Wii games. I was using CodeWarrior IDE. This IDE was not as good as Visual Studio, I used to hate it. But things changed. As I started using it more and more I got to see some really good features like. Pre-Processing a file by context menu. Class hierarchy diagram & few other features. Ofcourse we can Pre-Process a file in VS as well, but we have to go to project settings tab for that. Also, it Pre-Processes all files in the project. Another features which is "open the partner file". You can open c, cpp or cc file if you are in a header file and vice-verse. This small feature is really handy. So I wrote a MACRO for it.<br /></div><br />Steps to add this MACRO to your VS IDE,<br /><ul><li>Open VS IDE.</li><li>Press Alt+F11 or go to <span style="font-weight: bold;">Tools->Macros->Macros IDE.</span></li><li>Right click on <span style="font-weight: bold;">MyMacros->Add->Add New Item</span>.</li><li>Select Module in the dialog box and name it <span style="font-weight: bold;">OpenPartnerFile.</span></li><li>Paste<span style="font-weight: bold;"><span style="font-weight: bold;"> </span></span>the following code.</li></ul><br /><div><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(51, 102, 255);"></span>Public Module OpenPartnerFile<br /> ' if this file is a .cpp then open up the .h<br /><br /> ' or vice versa<br /><br /> Sub OpenPartnerFile()<br /><br /> Dim filename As String<br /><br /> Dim partnerFilename As String<br /><br /> filename = DTE.ActiveDocument.FullName<br /><br /> If (filename.EndsWith(".h")) Then<br /><br /> partnerFilename = filename.Substring(0, filename.Length() - 2) ' + ".cpp"<br /><br /> If System.IO.File.Exists(<div id=":1gx" class="ii gt"><wbr>partnerFilename + ".cpp") Then<br /><br /> partnerFilename += ".cpp"<br /><br /> End If<br /><br /> If System.IO.File.Exists(<wbr>partnerFilename + ".cc") Then<br /><br /> partnerFilename += ".cc"<br /><br /> End If<br /><br /> If System.IO.File.Exists(<wbr>partnerFilename + ".c") Then<br /><br /> partnerFilename += ".c"<br /><br /> End If<br /><br /><br /><br /> End If<br /><br /> If (filename.EndsWith(".cpp")) Then<br /><br /> partnerFilename = filename.Substring(0, filename.Length() - 4) + ".h"<br /><br /> End If<br /><br /> If (filename.EndsWith(".cc")) Then<br /><br /> partnerFilename = filename.Substring(0, filename.Length() - 3) + ".h"<br /><br /> End If<br /><br /> If (filename.EndsWith(".c")) Then<br /><br /> partnerFilename = filename.Substring(0, filename.Length() - 2) + ".h"<br /><br /> End If<br /><br /> 'MsgBox(partnerFilename)<br /><br /><br /> 'See if the file exists & open it<br /> If System.IO.File.Exists(<wbr>partnerFilename) Then<br /> DTE.ItemOperations.OpenFile(<wbr>partnerFilename)<br /> End If<br /><br /> End Sub<br /><br />End Module</div><br /><br />You are done with the MACRO now. Save and exit the Macro IDE. Now its the time to execute the macro on a keyboard shortcut. Steps are,<br /><ol><li>Tools->Options->Environment->Keyboard.</li><li>Select <span style="font-weight: bold;">Visual C++ 6</span> in the first drop down list.</li><li>In the next input box, type : <span style="font-weight: bold;">OpenPartnerFile</span>.</li><li>You will get a Macro in the list box below, Click on it.</li><li>Type a short cut of your choice & click assign. I feel "<span style="font-weight: bold;">ctrl+` </span>" more convenient.</li></ol>Hope you guys like it.<br /></div>Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com0tag:blogger.com,1999:blog-7842514962985751590.post-1297786847052785102008-12-14T04:51:00.004-05:002008-12-14T07:18:22.848-05:00Visual Studio MACROI have been using Visual Studio IDE`s from a long time. I just love Visual Studio IDE. It is the best thing from MS.<br /><br />I just love tools. I create tools to make my work faster. This MACRO that I have written will help you google your doubts just by right clicking in the IDE. is`nt it easy<br /><br />Follow the following steps to add this MACRO to your VS IDE,<br /><ul><li>Open VS IDE.</li><li>Press Alt+F11 or go to <span style="font-weight: bold;">Tools->Macros->Macros IDE.</span></li><li>Right click on <span style="font-weight: bold;">MyMacros->Add->Add New Item</span>.</li><li>Select Module in the dialog box and name it <span style="font-weight: bold;">WebLookUp.</span></li><li>Paste<span style="font-weight: bold;"><span style="font-weight: bold;"> </span></span>the following code between<span style="font-weight: bold;"> </span></li></ul> <span style="font-weight: bold;">Public Module WebLookUp </span><br /> // Code goes here<br /> <span style="font-weight: bold;">End Module</span><br /><br /><ul><li>Once you are done, your MACRO code should look like this,<br /></li></ul>Public Module WebLookUp<br /> Sub LookUpOnTheWeb()<br /> Dim selectedText As TextSelection = DTE.ActiveDocument.Selection<br /> If selectedText.Text.Length = 0 Then<br /> Return<br /> End If<br /> Dim args As String = """http://www.google.com/search?q=" + selectedText.Text + """"<br /> Dim commandString = "c:\Program Files\Mozilla Firefox\firefox.exe -url " + args<br /> Shell(commandString, AppWinStyle.MaximizedFocus, True, 100)<br /> End Sub<br />End Module<br /><br />This MACRO use firefox as the web browser. If you need to use some other browser just replace firefox with path for your loved browser.<br /><br />Once you are done with the MACRO, now is the time to add it to the Context Menu,<br />to do this follow these links, <a href="http://syedgakbar.wordpress.com/2007/12/09/macros-in-visual-studio-2005/">Link1</a>, <a href="http://blogs.msdn.com/vseditor/archive/2004/12/14/301111.aspx">Link2</a>, <a href="http://www.codinghorror.com/blog/files/Visual%20Studio%20.NET%202005%20Keyboard%20Shortcuts.htm">Link3</a><br /><br />Hope you guys like it. Have fun googling :)Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com0tag:blogger.com,1999:blog-7842514962985751590.post-223657772643893552008-01-26T01:46:00.001-05:002008-09-13T11:20:43.099-04:00Knight Hopper<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghCB5-Fs1Ks6741BHK0ForpXpRTEocQfqfb5GCCu54xpIiLDzFWgzKXA7CIO5jWOc4G9qqTT22Yt7Z9rL2ARsqjcAmvqtU35kFGRbN-S1il0p9bDmv-mZIbLdiuAl5z4CD9KxA4abylRg/s1600-h/ScreenShot1.jpg"><img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghCB5-Fs1Ks6741BHK0ForpXpRTEocQfqfb5GCCu54xpIiLDzFWgzKXA7CIO5jWOc4G9qqTT22Yt7Z9rL2ARsqjcAmvqtU35kFGRbN-S1il0p9bDmv-mZIbLdiuAl5z4CD9KxA4abylRg/s400/ScreenShot1.jpg" alt="" id="BLOGGER_PHOTO_ID_5159674696816960130" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJSTgQ_89IN6L-nmudhkfWNvYD7VCsWMsGlNSswuNDiW5sy7NX14WdRoQaM9s3N-kJVvH2OfAiWWN3YTQu_Fu5-a2602zN5_TQB9HMhjwtruFjtWlmo7BY110ovoWdZHKNtZOXlK5revU/s1600-h/ScreenShot2.jpg"><img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJSTgQ_89IN6L-nmudhkfWNvYD7VCsWMsGlNSswuNDiW5sy7NX14WdRoQaM9s3N-kJVvH2OfAiWWN3YTQu_Fu5-a2602zN5_TQB9HMhjwtruFjtWlmo7BY110ovoWdZHKNtZOXlK5revU/s400/ScreenShot2.jpg" alt="" id="BLOGGER_PHOTO_ID_5159674696816960146" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYlxlzg-HfSWZ8Cb8QMspc6yleojKvyIwKiwNweDuuvtXd1HRg__eUSI26EjqxYliK9DLdxRGNY3w3HOprWA0J_znQJ5Jur9l8Ce9FxB-GEl9abim1JgmuZRRwB-Zh8iNU_HWNO1WMkSw/s1600-h/ScreenShot3.jpg"><img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYlxlzg-HfSWZ8Cb8QMspc6yleojKvyIwKiwNweDuuvtXd1HRg__eUSI26EjqxYliK9DLdxRGNY3w3HOprWA0J_znQJ5Jur9l8Ce9FxB-GEl9abim1JgmuZRRwB-Zh8iNU_HWNO1WMkSw/s400/ScreenShot3.jpg" alt="" id="BLOGGER_PHOTO_ID_5159674701111927458" border="0" /></a><br /><br /><br /><br /> Last month I was in my home town (Dharwad) to attend my sisters wedding. I was playing chess with my younger brothers, then suddenly an idea struck my head. During my engineering days I use to play a small puzzle game like chess. Wherein one has to move like the knight on a 8x8 board. Objective is to fill as many blocks as you can. <p> I was soooooo desperate to make this game. I was just dying to come to Hyderabad. The day I came to Hyderabad, I discussed this idea with my room mate <a style="color: rgb(51, 51, 255);" href="http://www.sandsekh.blogspot.com/">Sandeep</a>, Who is a 3D modeler by profession. We sat down together & discussed the game play & layout. We were thinking which game engine to use. Since I am more comfortable with <a style="color: rgb(51, 51, 255);" href="http://www.garagegames.com/">Torque Game Engine</a>, We decide to go for </p><p><a style="color: rgb(51, 51, 255);" href="http://www.garagegames.com/products/torque/tgb/">Torque Game Builder</a>. After working for 6 days in a row we were able to complete the game. This game is at its bare. Since it was our first game on our own, We decided to keep it simple. </p><p><u><i>Features: </i></u></p><ul><li>Three difficulty levels. Each difficulty level has time limit & undo functionality.</li><li>In Easy mode you get 6 minutes & 20 Undo`s to solve the puzzle.</li><li>In Intermediate mode you get 4 minutes & 10 Undo`s to solve the puzzle.</li><li>In Hard mode you get 2 minutes & zero Undo`s to solve the puzzle.</li><li>You can change the theme to suite your taste. There are two themes for now <i>Classic</i> &<i> Mint</i>.</li></ul><div><a href="http://www.altafnavalur.com/games/knighthopper/knighthopper.html">Click here</a> to paly it online</div><div><a href="http://altaf.navalur.googlepages.com/KnightHoppersetup.exe"><span style="font-style: italic;">click here to download the game</span></a></div><a href="http://altaf.navalur.googlepages.com/">click here to see the same post in googlepages</a>Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com5tag:blogger.com,1999:blog-7842514962985751590.post-91938118138344550852007-12-18T18:33:00.000-05:002007-12-18T05:09:29.236-05:00<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dzjTi9VQrFlWoKXPo93tRdYt-PYgJmjs64Xmhq7U7yBJeD7J4af-8obxqLpwrTyns7bM0QWL4yekGuW33Rbsw' class='b-hbp-video b-uploaded' frameborder='0'></iframe><br /><br /><div style="text-align: justify;"><span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" >I</span>n the previous post I showed you how my <span style="font-style: italic;">Vehicle Physics Editor Tool</span> will help to tweak the vehicle physics at run time. After 4 days of work I have added some more functionality to it. In the earlier build one could modify only a handful of properties & there was no save option. In the new build I have added all possible properties in the editor. You can play around with any property you want. When you are done save it back to a file. Next time when you load the game, The vehicle will have all the properties that you specified.<br /><br /> <span style="color: rgb(51, 102, 255);font-size:130%;" ><span style="font-weight: bold;">O</span></span>ne thing to remember is to put all the dataBlocks in one single file & do not put any game play related stuff in that file. Because when you save the properties back to disk, it truncates the file. It will write only dataBlocks. In case if you create a new file for your dataBlocks, dont forget to add it to the execution list in <span style="font-style: italic; font-weight: bold;">~data/server/scripts/game.cs</span> file.<br /></div>Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com0tag:blogger.com,1999:blog-7842514962985751590.post-24738450602487474362007-12-14T15:45:00.000-05:002007-12-14T16:03:30.075-05:00Vehicle Physics Editor for TGE/TGEA<div style="text-align: justify;"><span style="font-size:180%;"><span style="font-weight: bold; color: rgb(51, 102, 255);">T</span></span>his is my first video demo with narration. So kindly adjust :).<br />This tool is used to tweak the vehicle physics while playing the game.<br />Even with he use of Torque scripting language, It`s a time cumbersome process to tweak the vehicle physics. This tool development is still in progress. For Demonstration purpose I have added two cars with unique datablock, The reason for choosing two unique datablocks is to show how it handles individual objects.<br /></div><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dwIhQEu8I_oKEgdksyiS5_QizRIgDuusUYaKHIZqJFbpvjWAuiI3wo3mFXuFv_d-VbjnfZEWjsOEgKYHe-rPw' class='b-hbp-video b-uploaded' frameborder='0'></iframe><br /><br /><span style="font-weight: bold; font-style: italic; color: rgb(51, 102, 255);font-size:130%;" >Features:</span><br /><ul><li>Vehicle Selection.</li><li> Dumping Tweaked values back to console.</li></ul><span style="font-size:130%;"><span style="color: rgb(51, 102, 255); font-weight: bold; font-style: italic;">Advantages:</span></span><br /><ul><li>Saves time.</li><li>No need of programmer to tweak the physics. Level designer or an artist can tweak the physics as desired. (As per current progress, The tweaked values are not saved to the file, Instead the values are dumped to the console).</li><li>Affects all the vehicles using the given dataBlock.</li><li>All the tweaked properties reflect changes dynamically. No need to restart the game.<br /></li></ul>Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com1tag:blogger.com,1999:blog-7842514962985751590.post-76065431653814188742007-12-13T06:04:00.000-05:002007-12-13T06:50:17.906-05:00Search Objects in Torque Game Engine (TGE/TGEA)I have been using <a href="http://www.blogger.com/www.garagegames.com">Torque Game Engine</a> from almost 2 years. In-fact I started my carrier as a game programmer using TGE 1.3. In one of my recent projects using TGEA, the world was so huge that the art team was facing problems searching objects in the game world. So I decided to make a tool for it. And here's the out put... I wish I could narrate in the video, so that I don't have to write about it here, But I don't have right tools to do that :(<br /><br /><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dwqxWvqtDHEj4p8sSy2p29UtYjO6uElnIwh2D36snZsqJeUhndG6eELBrPOyCw533D5W3nhH48GE1lFBWPpeg' class='b-hbp-video b-uploaded' frameborder='0'></iframe><br /><br /><span style="font-size:130%;"><span style="font-weight: bold; font-style: italic;">Features:</span></span><br /><ul><li>Filter objects by their type. i.e, DTS or DIF types.</li><li>Filter objects by their group name.</li><li>By clicking on the object, Camera snaps to the object.</li><li>Dynamic filtering of objects by their name.</li><li>Along with objects shape file name, Objects internal name is also shown. This helps in case of multiple instances.<br /></li></ul><span style="font-size:130%;"><span style="font-weight: bold; font-style: italic;">Advantages:</span></span><br /><ul><li>Saves time.</li><li>Filtering objects by their type helps in keeping track of many objects of that type exist.</li><li>Filtering objects by type & name helps to check how many instances of one object exist in the game world.<br /></li></ul>Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com0tag:blogger.com,1999:blog-7842514962985751590.post-34017493550008087892007-11-25T14:16:00.001-05:002007-11-25T14:38:47.431-05:00My First MaxScript<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIr3-J8FOvMNHLwlcpgHW1e-5NTYy-SRbpCbK49FKb4shuh-VJmCRPZirnnGvO6sqaoF6F3X5oEFFgIqFa8vHEbn-zhplOVq6aEn80XhK1mJS4ELxzT48ic3dd8F50zuRRQQn5z1-Nzno/s1600-h/MyTool.JPG"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIr3-J8FOvMNHLwlcpgHW1e-5NTYy-SRbpCbK49FKb4shuh-VJmCRPZirnnGvO6sqaoF6F3X5oEFFgIqFa8vHEbn-zhplOVq6aEn80XhK1mJS4ELxzT48ic3dd8F50zuRRQQn5z1-Nzno/s400/MyTool.JPG" alt="" id="BLOGGER_PHOTO_ID_5136859316910444642" border="0" /></a><br /><span style="color: rgb(51, 102, 255);font-size:180%;" >T</span>his morning I woke very late. I had a nice sleep after a long time. I was feeling sooooooo fresh. I was planning to learn max script from a long time. So I thought why not give it a shot today. I spoke to my friend <span style="color: rgb(51, 102, 255); font-weight: bold;">Dheeraj</span> took video tutorials from him on Max script & started watching it. It was too interesting. Syntax is not C++ friendly, But..... okie dokie. BTW am used to C++ very much.<br /><br />I was sitting around thinking what tool to make while I learn Max Script. & suddenly I remembered someone talking about writing a script in max to export a scene for Torque Game Engine. The idea just struck in my head, I started writing a script. By EOD I had a fully functional MaxScript ready to export a scene in max for <a href="http://www.garagegames.com/">Torque Game Engine</a>.<br /><br /><span style="font-weight: bold;">Tool Description: </span>This tool allows the artist to setup the world in 3DS max & export it for use in TGE. My scene exporter doesn't export the object, instead it exports the object properties in a format readable by TGE.<br /><span style="font-weight: bold;"><br />Features:<br /></span><ul><li>Option for exporting either the entire scene or only the selected objects.</li><li>Objects names are automatically appended with ".dts" extension.</li><li>Create group for easy manipulation in TGE mission editor.</li><li>Option for saving to file.</li></ul>Will add more to it as I go more n more deep in MaxScript.<br /><br />In near future I am planning to export the entire object it self along with the properties. I have no idea how much time I will take to do this. But will give it a shot :).Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com3tag:blogger.com,1999:blog-7842514962985751590.post-39797139587264205782007-10-15T04:34:00.000-04:002007-11-29T09:11:11.144-05:00All In One Tool for developers & Artists<span style="font-size:180%;"><span style="font-weight: bold;">B</span></span>eing a game programmer by profession I have always enjoyed developing & using tools.<br /><br />Reason Why I started developing this tool:<br /><ul><li>For version control I use <a href="http://tortoisesvn.tigris.org/">TortoiseSVN</a>, Which maintains <span style="font-style: italic;">.svn </span>folders for version management. Whenever I add any special feature in the game as part of my experiment with the design, I take a backup & keep the code for reference. I dont want any version files in my backup.</li><li>If I want to copy my entire working copy I have to close Visual Studio, If I close it, i`ll loose undo info.</li><li>Visual Studio has some intermediate files which are huge in size, like pdb, ncb obj, sbr....<br /></li><li>Some times I want to exclude certain files & folders.</li></ul>I was looking for a such a tool, I couldn't find it. I started using batch files, with XCopy command, Here I could ignore certain files & folders. But again I had to open the batch file in an editor do the necessary changes & run it again. Which was not so friendly. But it was very fast.<br /><br />So I finally decided to build a tool my self. I was thinking which language to use..... I was planning to get my hands wet in C# from a long time.. So I started development in C#. I faced Some problems with threading for that I took help from my Elder brother <span style="color: rgb(51, 102, 255);">Saleem, </span>who is a professional C# developer. <a href="http://www.sandsekh.blogspot.com/">Sandeep</a> helped me with the layout & background images.<span style="color: rgb(51, 102, 255);"><span style="color: rgb(0, 0, 0);"><br /><br />Main Features:<br /><br /></span></span><ul><li>BackUp.</li><li>Formatting.</li><li>3D Math calculator.</li><li>Scheduler.</li><li>Options.</li></ul>Features in BackUp:<br /><ul><li>One can copy files in multiple folders into one folder.</li><li>Copy only selected file types.</li><li>Ignore art assets, Texture files, exported animation files for <a href="http://www.garagegames.com/">TGEA</a>, max.....</li><li>Copy only source code. It copies only cpp, h,c hpp, hxx files.</li><li>Archive the backed up foldeder.</li><li>After archiving delete the source folder.</li><li><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtR2uxu_X96x2FgbUaoJxKGcRnlTy9fRTVCNvj-2hiRHMMAW6mYmws9Zf2PdW9CpKlbaTSNCNH0ChmzIgncgXflarrUlrGx9rHso_VVLNgkaPZfZFFuLegTIqrKZYGLDtNhqiXfVPcu2g/s1600-h/BackUpPg.JPG"><img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtR2uxu_X96x2FgbUaoJxKGcRnlTy9fRTVCNvj-2hiRHMMAW6mYmws9Zf2PdW9CpKlbaTSNCNH0ChmzIgncgXflarrUlrGx9rHso_VVLNgkaPZfZFFuLegTIqrKZYGLDtNhqiXfVPcu2g/s400/BackUpPg.JPG" alt="" id="BLOGGER_PHOTO_ID_5138127049522303138" border="0" /></a></li></ul><br /><br />Features in Fomatting:<br /><ul><li>Add line numbers to file(s).</li><li>Enlist files & folders in the given directory. Can optionally choose for size, file names only, directory names only.</li><li>Create class templates.</li><li>Beautify the code: This option beautifies the code, It puts proper spaces, indents, baces...It is still Work In Progress ( WIP ).</li></ul><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxAsvZIVZgMTHskOP0TJkYSwPxSaBjVAPd_Gxy8p2iVoOlQ3ct1xPdbm_fhWluK_qyTxZ91wPZSb6t_JKWjSs_A4o4oFd_tBmOTt9hSaiyireT7E2FC3p7RvK1I9uFBmDKHbYGiHDcXs4/s1600-h/FormatPg.jpg"><img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxAsvZIVZgMTHskOP0TJkYSwPxSaBjVAPd_Gxy8p2iVoOlQ3ct1xPdbm_fhWluK_qyTxZ91wPZSb6t_JKWjSs_A4o4oFd_tBmOTt9hSaiyireT7E2FC3p7RvK1I9uFBmDKHbYGiHDcXs4/s400/FormatPg.jpg" alt="" id="BLOGGER_PHOTO_ID_5138127049522303154" border="0" /></a><br /><br />Features In 3D Math Calculator:<br /><ul><li>It does the basic 3D math for you. Addition, subtraction, normalize, distance, length....of 3D vectors.</li><li>It is still in development phase.</li></ul><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghEo_yd8HhithCg_APcj7MkbZz2m2-7uko0xgULeEMjDchvHtsIxWp1r-MNVJmUp0-gXQd9vcUkTsNu5EAhDGUfZS-4m4L-YZeP7pxWGAf1LVZlOETHOESO0hHDqvdewWW5J4eiejsqb0/s1600-h/3dMathPg.jpg"><img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghEo_yd8HhithCg_APcj7MkbZz2m2-7uko0xgULeEMjDchvHtsIxWp1r-MNVJmUp0-gXQd9vcUkTsNu5EAhDGUfZS-4m4L-YZeP7pxWGAf1LVZlOETHOESO0hHDqvdewWW5J4eiejsqb0/s400/3dMathPg.jpg" alt="" id="BLOGGER_PHOTO_ID_5138127045227335826" border="0" /></a><br /><br />Features In Scheduler:<br /><ul><li>Shutdown/restart/launch external application at specified time.</li><li>Shutdown/restart/launch external application after specified time has elapsed.</li></ul><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4uIX2vUzPQi_PXUytH4awsuk1iV4f-e8xZIUz0DZijN7RAR6NVBq8F8qypb5adtrrP8e-5aTDqnydhWi_T2XX9BUF9zJDFQkUUB0WuwGZyUS5yKhIj0aqiqtZthvJAwBBASD-o15wdgU/s1600-h/SchedulePg.jpg"><img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4uIX2vUzPQi_PXUytH4awsuk1iV4f-e8xZIUz0DZijN7RAR6NVBq8F8qypb5adtrrP8e-5aTDqnydhWi_T2XX9BUF9zJDFQkUUB0WuwGZyUS5yKhIj0aqiqtZthvJAwBBASD-o15wdgU/s400/SchedulePg.jpg" alt="" id="BLOGGER_PHOTO_ID_5138127045227335810" border="0" /></a><br /><br /><br />Features In Options tab:<br /><ul><li>You can add directories/files to be ignored.<br /></li><li>You can specify the type of art assets you want to ignore.</li><li>Specify files to be included.</li><li>Choose archiver tool to be used. Currently WinRar & 7Z are supported.<br /></li></ul><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUcmymGhD1_yocHcmQAh1IobjVKtU2bb0YbWiE__ZtRj1mEijSowLKIU_qDq8GKEPMZhahQA1LnfMdzuFJlcZan9nw_r8oWSE-JnWP2LV-YNPURAbjBYHz2-lHZZf8hMtI1Z3m7vAf0gg/s1600-h/OptionsPg.jpg"><img style="cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUcmymGhD1_yocHcmQAh1IobjVKtU2bb0YbWiE__ZtRj1mEijSowLKIU_qDq8GKEPMZhahQA1LnfMdzuFJlcZan9nw_r8oWSE-JnWP2LV-YNPURAbjBYHz2-lHZZf8hMtI1Z3m7vAf0gg/s400/OptionsPg.jpg" alt="" id="BLOGGER_PHOTO_ID_5138127053817270466" border="0" /></a><br /><br /><span style="font-style: italic;">To maintain the database I use XML.</span>Anonymoushttp://www.blogger.com/profile/10338544695433529239noreply@blogger.com0