Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About ProRussianMn

  • Rank
  1. Hey guys I made a sniper game with realistic physics. It is on my website check it out! http://2dsoft.weebly.com/ spread the word!
  2. Is this a shader applied to the material or is it a Post Fx?
  3. Is it possible to add this to the UFPS kit? So the health variables will work with the UFPS Variables?
  4. Hey can you add my save load system to this list? http://armedunity.com/topic/5062-robust-saveload-method/
  5. Heres a save/load method using XML just attach to the main camera, drag the player prefab in the player slot in script, and thats it! It is a java script. import System; import System.Collections; import System.Xml; import System.Xml.Serialization; import System.IO; import System.Text; // Anything we want to store in the XML file, we define it here class DemoData { var x : float; var y : float; var z : float; var name : String; } // UserData is our custom class that holds our defined objects we want to store in XML format class UserData { // We have to define a default instance of the structure public var _iUser : DemoData = new DemoData(); // Default constructor doesn't really do anything at the moment function UserData() { } } //public class GameSaveLoad: MonoBehaviour { // An example where the encoding can be found is at // http://www.eggheadcafe.com/articles/system.xml.xmlserialization.asp // We will just use the KISS method and cheat a little and use // the examples from the web page since they are fully described // This is our local private members private var _Save : Rect; private var _Load : Rect; private var _SaveMSG : Rect; private var _LoadMSG : Rect; //var _ShouldSave : boolean; //var _ShouldLoad : boolean; //var _SwitchSave : boolean; //var _SwitchLoad : boolean; private var _FileLocation : String; private var _FileName : String = "SaveData.xml"; //public GameObject _Player; var _Player : GameObject; var _PlayerName : String = "Joe Schmoe"; private var myData : UserData; private var _data : String; private var VPosition : Vector3; // When the EGO is instansiated the Start will trigger // so we setup our initial values for our local members //function Start () { function Awake () { // We setup our rectangles for our messages _Save=new Rect(10,80,100,20); _Load=new Rect(10,100,100,20); _SaveMSG=new Rect(10,120,200,40); _LoadMSG=new Rect(10,140,200,40); // Where we want to save and load to and from _FileLocation=Application.dataPath; // we need soemthing to store the information into myData=new UserData(); } function Update () {} function OnGUI() { // *************************************************** // Loading The Player... // ************************************************** if (GUI.Button(_Load,"Load")) { GUI.Label(_LoadMSG,"Loading from: "+_FileLocation); // Load our UserData into myData LoadXML(); if(_data.ToString() != "") { // notice how I use a reference to type (UserData) here, you need this // so that the returned object is converted into the correct type //myData = (UserData)DeserializeObject(_data); myData = DeserializeObject(_data); // set the players position to the data we loaded VPosition=new Vector3(myData._iUser.x,myData._iUser.y,myData._iUser.z); _Player.transform.position=VPosition; // just a way to show that we loaded in ok Debug.Log(myData._iUser.name); } } // *************************************************** // Saving The Player... // ************************************************** if (GUI.Button(_Save,"Save")) { GUI.Label(_SaveMSG,"Saving to: "+_FileLocation); //Debug.Log("SaveLoadXML: sanity check:"+ _Player.transform.position.x); myData._iUser.x = _Player.transform.position.x; myData._iUser.y = _Player.transform.position.y; myData._iUser.z = _Player.transform.position.z; myData._iUser.name = _PlayerName; // Time to creat our XML! _data = SerializeObject(myData); // This is the final resulting XML from the serialization process CreateXML(); Debug.Log(_data); } } /* The following metods came from the referenced URL */ //string UTF8ByteArrayToString(byte[] characters) function UTF8ByteArrayToString(characters : byte[] ) { var encoding : UTF8Encoding = new UTF8Encoding(); var constructedString : String = encoding.GetString(characters); return (constructedString); } //byte[] StringToUTF8ByteArray(string pXmlString) function StringToUTF8ByteArray(pXmlString : String) { var encoding : UTF8Encoding = new UTF8Encoding(); var byteArray : byte[] = encoding.GetBytes(pXmlString); return byteArray; } // Here we serialize our UserData object of myData //string SerializeObject(object pObject) function SerializeObject(pObject : Object) { var XmlizedString : String = null; var memoryStream : MemoryStream = new MemoryStream(); var xs : XmlSerializer = new XmlSerializer(typeof(UserData)); var xmlTextWriter : XmlTextWriter = new XmlTextWriter(memoryStream, Encoding.UTF8); xs.Serialize(xmlTextWriter, pObject); memoryStream = xmlTextWriter.BaseStream; // (MemoryStream) XmlizedString = UTF8ByteArrayToString(memoryStream.ToArray()); return XmlizedString; } // Here we deserialize it back into its original form //object DeserializeObject(string pXmlizedString) function DeserializeObject(pXmlizedString : String) { var xs : XmlSerializer = new XmlSerializer(typeof(UserData)); var memoryStream : MemoryStream = new MemoryStream(StringToUTF8ByteArray(pXmlizedString)); var xmlTextWriter : XmlTextWriter = new XmlTextWriter(memoryStream, Encoding.UTF8); return xs.Deserialize(memoryStream); } // Finally our save and load methods for the file itself function CreateXML() { var writer : StreamWriter; //FileInfo t = new FileInfo(_FileLocation+"\\"+ _FileName); var t : FileInfo = new FileInfo(_FileLocation+"/"+ _FileName); if(!t.Exists) { writer = t.CreateText(); } else { t.Delete(); writer = t.CreateText(); } writer.Write(_data); writer.Close(); Debug.Log("File written."); } function LoadXML() { //StreamReader r = File.OpenText(_FileLocation+"\\"+ _FileName); var r : StreamReader = File.OpenText(_FileLocation+"/"+ _FileName); var _info : String = r.ReadToEnd(); r.Close(); _data=_info; Debug.Log("File Read"); } //}
  6. Hi guys, so I am creating a first person adventure game set of in a planet in a different solar system. I am just starting of and would like just to show off (As you would call it) to maybe get some people interested and all. I post updates on my you tube channel :http://www.youtube.com/user/dumad123/videos I want to add great graphics for modern computers and also optimization to run it well at a playable frame rate. The plot is being worked on but I assure you in the next update video or so I will have it. I don't know if the game will be paid or free. I will try to let the public know ASAP. First update is out on my channel so check it out! You may like it (the video may be a bit dark, sorry! But next video it wont) UPDATE 2 IS OUT! http://www.youtube.com/watch?v=xu3yMMHsN_w
  7. I get several Errors MissingMethodException: PlayerPrefs.GetString Boo.Lang.Runtime.DynamicDispatching.MethodDispatcherFactory.ProduceExtensionDispatcher () Boo.Lang.Runtime.DynamicDispatching.MethodDispatcherFactory.Create () Boo.Lang.Runtime.RuntimeServices.DoCreateMethodDispatcher (System.Object target, System.Type targetType, System.String name, System.Object[] args) Boo.Lang.Runtime.RuntimeServices.CreateMethodDispatcher (System.Object target, System.String name, System.Object[] args) Boo.Lang.Runtime.RuntimeServices+<Invoke>c__AnonStorey14.<>m__7 () Boo.Lang.Runtime.DynamicDispatching.DispatcherCache.Get (Boo.Lang.Runtime.DynamicDispatching.DispatcherKey key,
  8. Hi im a noob to changing the GUI. I already have a custom GUI skin i made but how can i add the option in here to place a custuom GUI. Or use my GUI skin. Thanks
  9. Hi guys, I have tried to decompile some CSS models off of gamebanana, but I need these programs and I'm kinda running low on memeory left. Plus, it hasn't worked for me. I know 3ds max is like 10gigs and not free. So can someone possibly do it for me? I will figure out how to do it later but I have a dead line comimg up in 2 weeks and I don't have much time. If someone can please PM me and I will send link. I will put you in credits and greatly appreciate you. Thanks in advance.
  10. So I installed Blackstorms Demo weapons kit and then when I die the player does not respawn. I added a respawn script but it does not work. Can someone help me fix this? Thank you
  11. Hello I am trying to make my FPS project more realistic and I'm having trouble adding bullet physics such as wall penetration and drop off. It will be nice if it can be affected by wind to. I have very little programming knowledge but is learning. I would like it to directly edit the standerd FPS KIT SCRIPT. Not like a script how to add it and such. Any help would be appreciated
  12. If you want you can join. You might be able to give story plots. Why not apply ?
  13. I infact never heard of this story. I will read about though
  14. well since every focused on killing each other, no one noticed his pod, and yes, the war is over in 50 years. thats when he opens it the Earth is desoleted and by then the soldiers evaced 49 years ago. The game is all about survivng and trying to find out all about this war
  15. Age: 14 (I seem young, but wait unitll you see what I can do) Skype: dimitri.duma What I can do: I can make great open-world scenes (I have Unity Pro=Ocullusion Culling= VERY BIG AREAS) Name: Dimitri Email:dimitri.duma@gmail.com Hours: 30min-1 hour on weekdays, 2-4 hours on weekends Mind joining my project? http://armedunity.com/index.php?/topic/3010-50-years-later-futuristic-fps-game-need-memebers/
  • Create New...