playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Satrio

Pages: [1] 2 3 ... 5
1
Work In Progress... / Re: MARA - 2.5d platformer - WIP
« on: February 08, 2014, 05:29:45 AM »
looks really good!

Good job!

2
Playmaker Help / Re: Arraymaker error
« on: September 12, 2013, 05:14:49 AM »
I think I solved the database problems. I had a mismatch in my rows, where I should have 16 rows, but actually had 18. Also I separated the copy open and close database commands so I have better control over when to do what.
Also I inserted a new variable to make sure the data is read in sequence (but I dont think that is needed.

My new flow looks like this


I still get the "argument out of range" error, but the database gets read like it should!

Also I highlited the build sql command. Maybe someone can benefit from that.

/s

3
Playmaker Help / Re: Arraymaker error
« on: September 12, 2013, 01:12:01 AM »


Hi! This is my setup, Im not sure I can create a reproduction of this "mess".

I use a Sqlite kit database from a google docs document. Everytime I generate a new level, the database gets copied and opened and closed. I tried separating the copy and open and close thing from my main loop, but i still havent gotten it to work properly.. it works a few times though before it hangs, so I was fooled into thinking "I got this" :(

Also the error
"ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[UnityEngine.GameObject].get_Item (Int32 index) (at /Applications/buildAgent/work/c514da0c8183631c/mcs/class/corlib/System.Collections.Generic/List.cs:633)
PlayMakerHashTableProxy.PreFillHashTable () (at Assets/PlayMaker ArrayMaker/__internal__/PlayMakerHashTableProxy.cs:124)
PlayMakerHashTableProxy.Awake () (at Assets/PlayMaker ArrayMaker/__internal__/PlayMakerHashTableProxy.cs:96)"
shows itself even before the game does anything with the database.

This is how the hashtable looks..

4
Playmaker Help / Arraymaker error
« on: August 29, 2013, 03:41:38 AM »
I don´t know if this error screws up my project or not, but a red error exclamation mark can´t be good, can it?

ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[UnityEngine.GameObject].get_Item (Int32 index) (at /Applications/buildAgent/work/b59ae78cff80e584/mcs/class/corlib/System.Collections.Generic/List.cs:633)
PlayMakerHashTableProxy.PreFillHashTable () (at Assets/PlayMaker ArrayMaker/__internal__/PlayMakerHashTableProxy.cs:124)
PlayMakerHashTableProxy.Awake () (at Assets/PlayMaker ArrayMaker/__internal__/PlayMakerHashTableProxy.cs:96)


I have a Hashtable that I prefilled with keys and prefab gameobjects. I get the keys from an SQLite Kit Database and "create" prefabs. Usually works good, but I am having some problems with SQLiteAsync, database not ready.. I am not sure if the two are related, but they both turned up at the same time, now I get this error everytime i run my game..


I will try Orangetree aswell for some answers, but usually their replies are really hard to understand (language barrier).


I have Arraymaker 0.92.


Another suggestion would be to write the current version number of Arraymaker on the wiki. It is hard to know which version is up there.. or maybe I'm blind and just cant find the info?


Thanks!


/s

5
Solved it in another way. Will have to build all my different cases as I go, utilizing a string switch to check the variable.. easier to debug!

/s

6
Hi!
I have set up a system where I have a database entry which contains a string variable. I want to be able to use this string variable as the name of an Int variable, which I will later use in a Int compare node.

The goal is to be able to dynamically change the name of an Int variable for example in a compare node.

The name of the Int variable will be fetched from a String Variable in a SQlite database.

/s

7
Official Action Updates / Re: NGUI Integration (WIP)
« on: July 10, 2013, 03:48:45 AM »
I use a "set property" action to do this. But remember you have to "drag" the NGUI item to the object slot, not the whole gameobject. Then you select "color" in the dropdown menu.

Hope this makes sense to you, as I am not able to reference the correct Unity terms for this, as I am on a mobile device.

8
General Discussion / Re: PM & SQLite Kit Questions
« on: July 09, 2013, 04:12:48 AM »
You are a Prince among Men!

9
General Discussion / Re: PM & SQLite Kit Questions
« on: July 05, 2013, 06:04:30 AM »
I use NGUI.
Yeah, step is a mystery. First I placed my loop there, but nothing really came out, certainly because I was doing it wrong.

I am just "shotgunning" and trying everything I can think of, but it is frustrating as there is a way of doing it that you or Oksana can do a screenshot of in 5 minutes, Im sure of it.

I figure most of the problems I have, are the same problems most PM users have. If we could code for real, we wouldnt need to use PM, at least not to the extent we are at the moment. But most examples are made by programmers for programmers.



10
General Discussion / Re: PM & SQLite Kit Questions
« on: July 05, 2013, 01:32:29 AM »
Checked out the links. So how would you retrieve  the whole list of cars and costs and display them in playmaker? That example would be most helpful. I understand the commands sent to the database, just not how to do it in pm, as the demo just uses one row of data. If it used two rows I could grasp it.

 

11
General Discussion / Re: PM & SQLite Kit Questions
« on: July 04, 2013, 03:07:26 PM »
Yes, I want to put the results into corresponding variables.

I have one column called "BrickType" where I want to store the names of "bricks" into string variables, STR_BrickType01, STR_BrickType02, etc..

I have another column called "BrickAmount" where I want to store the amount of "Bricks" of a certain "BrickType" in INT variables such as INT_BrickAmount01, INT_BrickAmount02, etc..

I want to fill out this "Table" with 32 rows, and probably a lot more columns where I want to store more data needed to create a level.

At the moment I use "ArrayMaker" to do this in several Hashtables, but they are very hard to edit for me with a lot of scrolling up and down and comparing entries, as each array only has one datatype. I want to use a spreadsheet such as googledocs (as advertised for SQLite Kit) to edit the data and import this into Unity and PM to drive the content of my levels and ultimately my whole game.

I think I got some of the concepts totally wrong though, so I am kind of stuck knowing I got the tools to do this, but not the skills.

12
General Discussion / Re: PM & SQLite Kit Questions
« on: July 04, 2013, 02:29:28 PM »
Hi!
Thanks for your reply.
I wanted to loop because I´m a total noob as it comes to SQL and db in general.

I thought (wrongly I presume) the example file that came with SQLite Kit just pulled one item from the database and that I had to iterate it myself,as the example database just contains one item. I understand that it is just a demo, but a database with just one item seems a bit weird as an example for a database ;) It could perhaps be at least two or three items "got"?

I just wanted to read the data and put into my own variables.

If I understand correctly the select file you posted reads all items in one "action"? I think one could consider that most people using PM is not really programmers  and need some extra handholding with examples that could relate more to "game" type needs.

Thanks for your help though, and thanks for making such a great product.
I am having a lot of fun figuring out who to build stuff with PM. This Sql stuff just went right over my tiny little head..




13
General Discussion / PM & SQLite Kit Questions
« on: July 01, 2013, 07:23:57 AM »
Hi!
I just got SQLite Kit and try to make my game "Dungeon Memory" a bit more dynamic.

I started with the demo file and I can read values from my spanking new database, but I have a problem looping the "Read Database" in the example files for SQLite. I watched the videolink provided on the "documentation" and it explains how the demo works, but nothing about the SQL language. I tried the link to the SQLite docs, but they are gibberish to me.

The provided command is: SELECT * FROM Level1 WHERE id=?
Level 1 is my table, and it reads the value that is inside the "Bind" action.
So I can get the values from one row, but then it stops, no matter how clever my "loops" are made.

How does one make a  read db - put values in variables loop with PM and SQLite Kit?

/s

14
User Showcase / Re: Pooka Pets
« on: June 16, 2013, 12:35:23 AM »
Looks cool!

I have an idea for antagonists if you want to include some action/danger elements, Pooka Spiders.

Some of the pookas moving limbs resembles spiderlegs to me.

Keep up the good work!

15
That would be good, Alex!
Sometimes a project contains more "subprojects", as when you import stuff from the asset store to try out if it fits the game you are building.

Being able to try a new technique or idea with PM and not messing up the global vars list with clutter could be nice! Other than that, naming conventions could prolly fix that (example "subproj_GL_Int_Score").

Pages: [1] 2 3 ... 5