ggibson1's Forum Posts

  • I would think saving the image as a bmp file should show you what size it will be in memory since uncompressed images are bitmaps .

  • Personal x2 = $260

    Business x2 = $860

    860 - 260 = $600

  • Thank You Aphrodite thats all i needed to know, using the array is a method i need to burn into my brain.

    I just seen this reply sorry for the late reply. I just asked R0j0hound this question but maybe you can help me aswell.

    im having an issue with figuring out if the cell is empty because if my cell is equal to 0 and my animation frames adjust to the value of the array.

    dirt = 0

    grass covered = 7

    If an empty cell is equal to 0 that is giving me an issue because if it is empty it will always make the sprite that occupies that cell Frame 0

    What is the return value of an empty cell?

    Im kinda confused because the way i see the logic it seems like an empty cell should return a different value.

    I believe that arrays start off with all zeros. If you wanted it to default with something that means "empty" to you then you could loop through the entire array right after you first create it and fill each cell with -1 or whatever you want to mean "empty".

  • Perhaps your nested JSON actually is just a string? It isn't really nested JSON unless it is JSON nodes ... JSON nodes encoded into a string isn't nested JSON.

  • I have no problem loading regular JSON with the AJAX loader and the JSON I get from the C2 Dictionary and Array objects load up just fine with Newtonsoft... including nested JSON strings. I have also ran the C2 JSON through JSONLint and it looks fine.

  • I'm on the fence here because I fear I don't fully understand what this is capable of but I thought I'd ask directly.

    I'm looking for a way to implement a potentially highly complex dialogue system that will include localization and functions something like Guzimus system in the link below.

    https://www.scirra.com/tutorials/833/mod-side-story-a-walkthrough-of-a-text-dialog-mod

    Is this tool worth looking further into for my purposes?

    Sure it is worth using.

    The C2 Data Editor makes it a lot easier to maintain a local database of information and query that information.

    That kind of tool can be used for a million different things whether it be an inventory of in-game items, a dialogue system, a list of monsters, etc.

    The C2 Data Editor simply takes what is already available in Construct 2 as a manual process and automates a lot of it.

    If you have ever made a computer program that used a SQL database then you already know the type of tools C2 Data Editor provides.

  • You can try C2 Data Editor. It imports csv and exports to C2.

    https://www.scirra.com/store/game-making-tools/c2-data-editor-124

  • A new update has just been uploaded. Everyone should receive an email in the next 24 hours with download instructions.

    From the Changes.txt file:

    * Bug fixes

    * Added "Remove Sort" button to the Array Editor screen so the data can be reset back to the default sort order.

    * The main screen now sorts data objects by name.

    * Added two new DataSet Functions (SearchBetweenFindFirst and SearchBetweenReturnColumn).

    * Add ability to replace empty fields with a value using the Search And Replace dialog.

    * Sort objects list in the "Select To Inject" dialog.

    Descriptions of the two new DataSet Functions:

    SearchBetweenFindFirst

    - Search two columns (LowerBound and UpperBound) in a DataSet for a match where a search value falls between the LowerBound and UpperBound. If a match is found then the RowIndex for the matching row is returned.

    SearchBetweenReturnColumn

    - Search two columns (LowerBound and UpperBound) in a DataSet for a match where a search value falls between the LowerBound and UpperBound. If a match is found then the value of a column in that row is returned.

    *** Don't forget to rate and review C2 Data Editor in the Scirra App Store!!!

  • Update:

    When i try to edit a row sometimes it jumps to the first row and overwrites this value insted of the actual selected cell... the thing that i have to click serveral times is really annoying.

    when i set the colum with it doesnt get saved. as soon as i add a new colum it gets reseted also when i restart thge tool whats making the work with big tables very hard.

    regards.

    1) I could not reproduce clicking a cell and having it jump to the first row. If you can explain the exact steps that lead to this happening I will look at it again.

    2) Clicking to edit a cell is standard grid behavior that comes built into the grid component I am using. Click once to select cell and click once more to begin editing.

    3) I will look into adding the ability to remember column widths for the next version.

    Thanks again!

  • As i am working alot with this tool lately i want to give you some feedback:

    thanks

    Patrick

    Thanks much for the feedback... I really appreciate it!

    1) Sorting by numbers - I am using components made by others and since their components do not support this neither do I...sorry... I will look into the ability to designate some columns as numbers rather than strings when you create a column... this might fix the issue.

    2) I will work on some tutorials showing how to use the sample CRUD functions. The "C2 Data Editor Demo.capx" that comes with the package shows these functions being used so you can look at that code to see what it is doing.

    3) The next update will include the ability to search for and replace empty fields!

    4) I tried to overwrite data by dragging and dropping rows many times and I could not reproduce what you are describing. If you can explain the exact steps of how you can get this to happen I will look at it again.. I will look at adding a copy row feature soon.

    Thanks again!

  • ggibson1

    thank you very much for the clarification, just bought it, even i will have no time to use it till next week. this sounds so awesome, cant wait to try it!

    thanks again

    regards

    joschi

    edit: also some more tutorials or examples would be awesome, maybe you can demonstrate how to make use of the c2 data editor in a simple economy game and include the vidiotutorial with the purchase? that would be really great

    Good idea.

    Who knows maybe I took voice lessons to learn how to make my voice sound like that...

  • Hey ggibson1

    the tool looks very interesting for me, but i am just a beginner in costruct so i have a few questions:

    did i understand it correctly that with the c2 data editor it is possible to use arrays like a database? i have some knowledge in mysql, and currently i am creating a game which simulates an economy. it its a real **** ** *** *** to do all this with arrays. the thing is, in my game new production facilitys get created all the time, each facility has its own recauces, needs to make orders and so on. just working with instance variables isnt enought here. so i need different arrays which i can handle like a mysql database...

    - is this possible with this tool?

    - are there any more examples or tutorials out there?

    thank you

    Joschi

    Yes you can use the Arrays like a database with the C2 Data Editor. It comes with several methods built from C2 Function objects that implement different kinds of queries against the data in a C2 Array. These functions treat a C2 Array like a database Table. The names of these methods are meant be more user friendly rather than matching SQL standards.

    There is a CAPX that comes with the C2 Data Editor that shows these methods being used. There is also extensive comments above each method. You can either copy these methods out of the CAPX or you can use the injection feature in the tool to inject these functions into an Eventsheet within your application.

    You can do things like lookup a row in an Array (Table) by one column (e.g. ID) and return the value of a different column (e.g. DollarAmount) from that same matching row.

    The names of the columns on the table results in Instance Variables on the C2 Array when it is injected into your application where each column name is assigned the index of the column in the table so that you can use the built in C2 intellisense to select which column to search on or return from the function by name.

    I have worked with databases extensively over the past 25 years and so I made C2 Data Editor to make C2 feel as close as possible to that way of handling data for the same reasons you mentioned.

  • A new version was just uploaded.

    This fix takes care of an issue where a user enters invalid characters into an array's column names and then injects into a C2 project.

    From the Changes.txt:

    * Adds the same filtering to array column names as is applied to array and dictionary names. Some characters (e.g. spaces) are not allowed in some C2 object names.

    *** Don't forget to rate and review C2 Data Editor in the Scirra App Store!!!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have tried the OR and the ones that came out in the 1990s... they are basically the same thing.

    The ones from the 1990s became so popular that people today think the OR is something new because they never heard of the same technology already being tried out well over 15 years ago. e.g. "cyber 3d visor"

    The resolution on the OR is no better than back then... some day they got to get it right...but then again some day the holodeck type experience will be here also.

  • It would be helpful if there was a utility function or two to ease accessing the nested structures

    Ok so I went and did a test and saw exactly what you were seeing. At some point I modified my code from using "" to ""

    I do not remember why I did this and hopefully there was no good reason for it. I just uploaded a new version of C2 Data Editor and an email will go out with download instructions once that has been approved by Scirra.

    I tested this in a sample project and was able to load up a nested Dictionary and get its values out without needing to do any additional handling of the quotes.

    [attachment=0:2uu8n9fr][/attachment:2uu8n9fr]

    *** If anyone sees this change causing a problem in your projects let me know ASAP.

    From the Changes.txt file:

    * Modified the formatting of Data Object values so that instead of "" being generated "" is instead which works in C2 event sheets also AND makes it so that it can load via the JSON load method easily.

    *** Don't forget to rate and review C2 Data Editor in the Scirra App Store!!!