CrazyVulcan's Recent Forum Activity

  • If you had posted a capx, we would have seen it immediately. Just sayin'

    Third post my friend

    It was a edit in about 15min after the original post so it could have been easy to miss.

  • Indeed korbaach you are correct as it was I was trying to load json string immediately after calling it with out the n completed step, thank you.

  • Simplest way I can think to do trivia is build an array. With columns and as many rows as you need. You will need to either manually design the array with each item when the game starts but since this is potently a large array writing a JSON file would be simplest. If you are using windows a simple notepad file saved as UTF-8 and named like "MyTriviaList.json" Then in C2 right click on ProjectFiles and add new and save the .json file there.

    The JSON looks much like this

    {"c2array":true,"size":[2,4,1],"data":[
         [["This is the first question"],["A: This is answer A"],["B: This is answer B"],["C: This is answer C"]]
         [["This is the Second question"],["A: This is answer A"],["B: This is answer B"],["C: This is answer C"]]
    ]}
    [/code:ds556wwz]
    
    Then inside C2 use AJAX to load project file then on complete load your array from JSON using Ajax.LastData. Form then its more art and personal choice of design and I can not help you there.
    
    Best of luck
    
    ps "size":[row,column,depth] make sure that is the correct size or it will not work.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • CrazyVulcan

    I am not sure the whole procedure of your case. You might post a very simple capx file or a screen shot of events.

    I guess that you had missing "condition:On completed" in Ajax object.

    I managed a work around but it could vary well be error on my part. The missing OnCompleat step could be what was wrong.

  • It's a stretch but try saving your text file in UTF-8 encoding... we never know ! Also, make sure to remove any trailing of leading characters from the file.

    Just resaved the project file for UTF-8 and tried both escaped and non escaped to no success

  • Are you using project files or inputing the string as a litteral ? If it's a litteral string, you need to escape double quotes with another double quotes. Otherwise it might be some kind of encoding problem...

    "{""c2array"":true,""size"":[3,3,1],""data"":[ [ [""Red""],[""Blue""],[""Blue""] ],[ [""Red""],[""Red""],[""Blue""] ],[ [""Green""],[""Green""],[""Blue""] ] ] }"

    Haveing done that I now It will work if I put it directly into Load From JSON but once Ajax get involved it will not work. I check the AJAX tool in debug and it will put the text exactaly as is from the project folder. So I really dont know.

    edit - here is a demo of what I am trying to do. Needs Rex-Board-Core plugin

    https://www.dropbox.com/s/ggoezgt1gdf8ipr/TileMapDemo.capx?dl=0

  • Any one who is familiar with my post history knows that I am not too knowledgeable about JSON/AJAX. This is a more general question and hope to help not only myself but others who maybe have noticed this strange occurrence.

    I am trying to Save/Load a Array using JSON with a bit of help from Rex's CSV2Array. But since I am not too skilled with writing JSON strings I have kind of found a lazy mans way to get them. I put the CSV into the array like

    "Red,Blue,Blue

    Red,Red,Blue

    Green,Green,Blue"

    I then have a small board that I assign colored animations to depending on running a for each XYvalue loop. That all works great. The board changes colors just as I expect. However now I use my trick to set the text of a text object to be the JSON of the array. Then from within C2Debug I copy n past that sting to a notepad file and save it to my project files.

    Here is where my problem starts.

    the JSON looks much like

    {"c2array":true,"size":[3,3,1],"data":[ [ ["Red"],["Blue"],["Blue"] ],[ ["Red"],["Red"],["Blue"] ],[ ["Green"],["Green"],["Blue"] ] ] }

    However when I put the vary same JSON sting back into C2 it gives me all kinds of syntax errors. Why? It is literally the exact same JSON that C2 spit out and directly plugged back in. Anyone know what I may be doing wrong?

  • rexrainbow Since the last C2 update I seem to be having issues with loading a CSV sting to an array via AJAX. If I load the CSV raw into CSV2Array it works fine. I pull the file of my server it loads fine. But when I go to put that string as AJAX.LastData into CSV2Array it buggers out. I will load about 88%-100% and the game will freeze. If I disable the 'Fill Array form CSV string' action it will run fine.

    I think this is either a bug or error on my part using LastData.

    Start Of layout->Ajax Request URL DOMAIN&"/Data/PoliticalMapCSV.txt"; Load CSV2Array "LastData" Row to X and Column to Y;Set Board to 10x10; Fill Board Tiles with "MapTile"

    For Each XY element in array & Pick Instance of "MapTile" = MapIndex-> Add 1 to MapIndex; Change Animation of "MapTile" = Array.CurValue;

    You can dump LastData into CSV2Array without any additional formatting right?

  • Thanks for all the information, I am actually re-evaluating the idea of making a company right now.

    I might start in a few years once I have released a couple of successful games, and I have made some sort of revenue from those games.

    Have you made any games that have generated you revenue? and how?

    Thanks again! Cheers!

    Not yet, my main game is going to take about a years worth of work. Look at my thread "Advance C2 Building a Online Browser Game with C2" I go into a fair bit of detail on my project. The other two games, more like a game and a "game' app are much simpler. One is a board game that I am designing and would like to sell digitally as well as making a physical version. I intend to make it free with a link to a patatron account where people can donate to support my content.

    I thought about running a Kickstarter for it but many game KS fail because people have little faith to put money into something that may not come around when they expect it to. Less money to start but I feel that garnishing the good will of my fans is more practical

    The other was kind of a lesson I came up with for learning triggers. Its a Tarot Card fortune telling app. Only bigger than others currently on the market. While 3 card spreads are not uncommon I am going full on Celtic Cross a 10 card spread. I will run video ads from within a iframe inside the app and play it off as discussing payment for the psychics time. A bit obtrusive but other than that it will be free form the IOS or Google Play store. Have yet to really sit down and look how much I can realistically expect from that but as long as its is popular enough I should have a steady income from it.

    However I will not be incorporating till those two are near the release phase as one is a mess of spread sheets and place holder art while the other is a half done proof of concept. I am not making money yet but plan to by years end though I am planing to not be making a profit by then. But that is the important thing which is having a set of goals set. I may not have a boss sitting over my shoulder to get my work done but self motivation is key.

  • I don't know how old you are, I am assuming you are +18 and living in the US but here are some things that you need to consider. I am myself working on these and I am still learning.

    To start a company in the US dose not take much more than registering a Trademark/Copyright. I recommend thinking of a few and google the hell out of them in every context you can imagine. There are many registered names and you really don't want a lawsuit starting right out. Even if it is something that seems to no longer be in use someone still owns it and you can not simple take it from them. If it is a name you really have your heart set on maybe reach out to that party and see if they would be willing to sell to you.

    I highly recommend looking into lawyers. You do not need a company lawyer in fact many firms will do if you simply are starting out. I also recommend not involving family or friends no matter if they 'seem' to know all that you need. However if you have family that owns their own business it is very worth your time to talk to them and learn.

    Lawyers cost money though so be prepared to have that money available. Myself I have worked for a year and some change saving every cent I could. I am looking at about $300 for all the necessary papers.

    Before you start selling games you may want to have a product ready to sell day one. Also look into how incorporating works as the Laws for doing business are vary direct. You will also need to look into opening a business account with your bank of choice.

    This is vary important come spring tax season. The IRS is not vary fond of people running a business for profit and not paying tax. With a personal account and a Business account set up and proper documentation of your company even if you fail at that business you would not loose everything like your house, car etc.

    Now myself I intend to form the business later the fall and am looking at lawyers and maybe not for you but I will be looking to get a personal loan. Small as my gole is to making a profit by Feb 2016.

    I wish you the best of luck. Any job can be hard but starting a business is perhaps the hardest. However the payout can be well worth the work. Just look out for the many many pitfalls that are in front of you.

    As some one mentioned you need a action plan. Look at every expense you have. Food, car/house payment, insurance, utility. Those are monthly and more or less fixed. Then you look at your start up costs. Buying needed software hardware or legal fees. If you need to get a server to house your game(I saw your MMO thread) That has a cost.

    Next look at your income. Second job, ad revenue, donations. And do a side by side look. Are you making more than you are spending? How much more do you need each month to make profit? What is your forecast for the next 6 months?

    Then for the game its self what can you make quickly and cheaply to get on the market? I have One dream game I work on but I also have two different game I bounce back and forth on. Those side projects are meant to be done by years end and hopefully sell well enough to fund me to finish my main game.

    It is also important to keep in mind time. How many hours will it take you to develop your game to completion? Is there another game you could make faster? Also are your games Free with ads? What about a cash shop or is it a one time purchase. For each game you make what will be the peak amount of revenue before you start making less each month. This last part is why most games don't get support beyond the first year or two after release because there is no money in it.

    If you read all this and you are still excited by the challenge and conquering the mountain before you, great! If not don't worry that is a perfectly normal reaction it just means you may need to re evaluate you attack plan a bit.

    CrazyVulcan

  • So as a update form my last post I now have a good grasp on calling AJAX and thank you all for your support and help. I finally gave in and now have web hosting though Azure so now I can get all the data setup completed. I just have a few specific issues I need to ask.

    1 How do I "POST" using AJAX?) I know a simple question but right now I am trying to understand how this works from a how to level. I have made a sort of custom character portrait generator and am trying to save an screenshots JSON to a SQL database. I am using MS Webmatrix and have my DB from Azure linked so I hope that I can see in real time if I am indeed Posting back the JSON correctly.

    1 Unique User Profile with SQL) I have a Database called "Player Data" inside I have two tables called Player_Roster and Standard_Character_List. The first is straight forward enough that all it dose is store players username and password and will link to additional tables. The second is a little more complex as it lists all the characters and their respective stats. Each column Has things like a Name that is unique, levels of skills in TAC, SCI, and ENG along with what skills they know.

    This is more of a SQL question as to how I can auto generate a table for each player. So that when a new player creates a account on my main website I then have my database copy Standard_Character_List to be "UserName"_Character_List. But I have yet to find a resource that lays how to do that out.

    3 Calling SQL Data and fill an array) To save costs from players calling the server constantly I plan to use a C2 Array object to store relevant data the game will need to call for each action. I though need to know how to link the data in my DB to my array in C2.

    I have a active account with pluralsite.com and digitaltutors.com so if you can, you can link me a course or lesson that I should look at would be great.

    Thank you for your time,

    CrazyVulcan

  • Or, When you trigger you clone action, click button. System - "Create Object": Cake, PosX, PosY, It gives you more control just keep in mind that you IID is now =1 for the new cake

    That way you can chose by ID for you cakes and you wont have to worry about one event affecting each instance.

CrazyVulcan's avatar

CrazyVulcan

Member since 22 Dec, 2013

None one is following CrazyVulcan yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies