How to convert string to Expression ? Using string in text file as formulas...
I'm using Unity with C#. Creating a resource management game. I need an Index system. ie. Food Happiness index, Food Variety idex. Each index would have different formulas. I don't want to hardcode...
View ArticleExternal XML Parser
Hi everyone, I have a problem. I know method of internal xml parser however I want **external xml parser script** for C#. I hope you to help me for this topic. Thank you.
View ArticleParser Error Unexpected symbol `m_MovementAudio'
I am working on the 3D "Tanks" tutorial and ran into some parser errors while making the TankMovement code. The errors showed up under "private void EngineAudio()" public float m_Speed = 12f; public...
View ArticleHow can I get this code to recognize coll in my update function?
using UnityEngine; using System.Collections; public class Ninja : MonoBehaviour { float speed = 7.0f; // Use this for initialization void Start () { transform.position = new Vector3 (2, 8, -5); } //...
View ArticleParser Error Unexpected symbol `public', expecting `.' or `;'
Very new to Unity, trying to script a level restart using code I found online, I keep getting this error and I have no idea what's wrong. ![alt text][1] [1]:...
View ArticleStrange issue with the B83 expression parser
I'm using the wonderful Expression Parser created by @Bunny83 as-is with no modifications (yet): http://wiki.unity3d.com/index.php/ExpressionParser What I'm trying to do is set it up so that the parser...
View ArticleGetting a parser error in my level editor in my bubble shooter?
using UnityEngine; using System.Collections; using UnityEditor; using System; using System.IO; public class LevelEditor : EditorWindow { private static LevelEditor window; private int maxRows; private...
View ArticleMake the compiler evaluate a string as a chunk of code to be compiled?
I want to create a method which will take ANY variable type as an argument. And by any I mean user-defined types, so it could be a very flexible method that can be reused anytime. Kind of: static...
View ArticleUV tiling with already made coordinates.
Hi. I am making FBX parser in runtime and faced again the problem. FBX has information about vertices coordinates, IDs of those vertices how to make polygons (PolygonVertexIndex), UV coordinates, and...
View ArticleGeoJSON parser in C# for Unity 3D - problem with import
Hi all, I was trying to test this GEOJSON parser but I am getting these errors. Is there any way to import this library into Unity? I simply moved it to the Asset folder.....
View ArticleJSON Parse Errors: Get Line Numbers
I'm building a game where all the data is stored externally in JSON. This data tends to break constantly, and when it does, It only tells me which file failed to parse, not which line the failure...
View ArticleRemove TAB from parsed string
This is a new problem arising from my previous question : http://answers.unity3d.com/questions/291294/stringequals-not-working-as-expected.html I am reading a texture packer text info file, and after...
View ArticleXML parsing problem - array
Hi guys, I have to implement a quiz game and I'm trying to parse an XML file in order to retrieve all the contained data and use them to fill some buttons and labels with questions and answers. This is...
View ArticleJson Parser
Im currently using the Boomlagoon JSON parser, but can't seem to retrieve object values: string text = "{ \"sample\" : { \"sam\" : 23 } }"; ## string to parse JSONObject json = JSONObject.Parse(text);...
View ArticleXML to Custom Asset Parser, cant get the code to work when refactored
Hi, I'm coding an XML to CustomAsset Parser, when I tried to refactor the code in red part, I can't get it to become true inside the if(). Can anyone point out what I did wrong? Also, it became error...
View Articleminijson pars
hi, I'm trying to create a parser with minijson class for this json string...
View ArticleEfficient script parser
I'm in the middle of making a text parser, and I'm stuck on a problem. I need it to be able to skip spaces between text if a condition is set (if statement). The parsing process is a for loop that...
View ArticleError cs8025 script (parser error) How i can fix this?
using UnityEngine; using System.Collections; public class LanternaSlender : MonoBehaviour { public Light spotLightFL; private Ray rayToInteract; private RaycastHit hitInteract; public float...
View ArticleString segment comparator
I've worked a little bit with creating language parsers using c# completely outside of unity before, but I now i'm writing a little language parser inside of unity and I need to know if there is a way...
View ArticleUnexpected Symbol `:' expecting :
Trying to create a simple cube object with my script based on [this script reference][1]. [1]: http://docs.unity3d.com/Documentation/ScriptReference/GameObject.CreatePrimitive.html Here's my code:...
View Article