Fengist's Recent Forum Activity

  • Well... that's rather confusing.

    If you use the ticked value in any way, it changes the font face for some reason. I even tried storing the ticked value as a global var, rounded it, converted it to int and it still changes the font face. I have honestly no idea why it's doing that. And it appears to only be doing it for the value returned by the plugin. I set the text size manually and it worked as intended.

    But I did find a workaround.

    In the line where you set the START_TEXT font size to the ticked value, add a line below it.

    -> START_TEXT: Set font face to "Arial" (normal)

  • Without seeing your actual code, it's going to be near impossible to diagnose this.

  • The easiest way to do this would be with an Ajax call to a php script on a website that saves it to a MySQL database.

    Construct really only has 2 ways of communicating outside of the client, Ajax and WebSockets. WebSockets could do the job as well but that requires creating a server. Having Ajax send that data to a website with a php script would be much, much easier. The php script could then stuff all of that data into a database or... append data to a .csv file if you wish.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Then the steps I outlined above should still help pinpoint the cause.

  • github.com/richtr/NoSleep.js

    Now, how to incorporate that into C3???

  • Project properties > display > orientations.

    You should be able to select portrait and it shouldn't rotate any more.

  • Well, that's hard to say. The first thing I'd do is to enlist Chrome to help me find out.

    When you're previewing your project, hit f12 to bring up the developer console. At the top, click on memory. You should see several things listed under 'select javascript VM instance'. Here, you can watch your project's memory usage and chrome will show up and down arrows as it uses more or less memory. You can also confirm here how much memory it's been using.

    If you click on 'take a snapshot' chrome will look through your project and provide you a list of what is using how much memory. A lot of that is going to be difficult to decipher but what you'll be looking for is really large numbers on the right hand side under 'retained size.' If you start expanding out the tree looking at what's consuming the most memory, you may... I say may... be able to recognize some of the data in there and spot the problem.

    You can also select the performance tab at the top, click on the memory checkbox, and record your session. One of the graphs will be of memory and at the top will be screenshots of where you were in the game. If you see a huge spike in the memory, look at the screenshot to see what was happening and that may help you zero in on the problem.

    One other thing to check if you use local storage, select the application tab at the top and then select 'clear storage'. You'll see a pie chart that will tell you how much memory local storage is using.... and guess what, local storage has a huge limit (30gb on my system with 32gb ram). You can browse through the local storage tree below that. Start looking under 'IndexedDB' and look for LOTS of key/value pairs.

    I can say with little doubt that it's likely somewhere in your code and not C3. While I've been writing this, my latest project has been running in the background and it's staying at a pretty solid 42mb.

  • You don't have do but yes, I'd create new icons. I'd start with a 512x512, create that, then resize and save one of each down to the 16x16.

  • You'll want to create your own icons.

    You'll need a program like photoshop or gimp, something that saves in the .png format.

  • I took a look as well and the first problem is, it's obviously a google translate of a Chinese document which makes it nearly impossible to comprehend.

    But, here's what I take from it with my limited knowledge of currency mining:

    Egretia appears to be setting up a mining pool:

    When performing blockchain calculations only the one that completes the correct blockchain gets paid. Pools are designed to allow miners to join forces and share in the profits.

    Bitcoins cannot be effectively mined with computers any more. They require a device called an ASIC ( Application-specific integrated circuit) which are expensive. Other cryptocurrencies can be mined with 'rigs' designed to use the GPU of multiple video cards in order to do the calculations. Profitability of these rigs is based primarily on the cost of electricity compared to the number of hashes you can generate per second. Top of the line systems are measured in terahashes. My video card is an RX580. It's rated at 30-40 megahashes/sec, assuming it were used exclusively for mining.

    If we assume that electricity costs $0.00 and I were to run this card 24/7 mining ethereum, I'd make $242.75 per year at today's prices, which pays for the card and puts $62.75 in my pocket. But that's a pretty decent video card... right? And that's with free electricity. Egretia does not list how many hashes/sec you're going to get. And I'm betting it's for a very good reason. Just a guess, but I'm betting that running a game under HTML AND trying to hash a blockchain, you'd be lucky to get 200 hashes/second per instance of the game running. In which case, you'd make $ 0.001618 per year assuming that game runs 24/7. But let's give it the benefit of the doubt. Let's assume you'll make 200 kilohashes per second off this game running 24/7 on someone else's machine. Your annual profit off one instance running? $1.62.

    Now, factor in two more things.

    1. Your game is going to be calculating these hashes AND trying to make a fun, playable game at the same time. Inside a browser running HTML5 and JS, I see one laggy ass game.

    2. Serious crypto miners are often caught in a conundrum. Electricity costs vs profitability. As a result, they're usually selling off their hardware every year or two and upgrading because the crypto currencies keep making it more and more difficult to hash, requiring faster and faster hardware which eats more and more electricity. I can tell you without a doubt that the overall cost of electricity compared to the hash rate of this software is going to be horrid. Their gimmick? You're making your customers pay for the electricity, and a lot more than you'll be making. Which means, if you have ANY concern for this planet whatsoever and conserving it's resources, it's just a bad idea.

    While I'm just guessing at the numbers, I personally think that if I were to get one customer out of 10 to purchase a vanity item for $5.00 PER YEAR... I'd make more money.

    Here, do your own math and see what conclusions you draw.

    (https://www.cryptocompare.com/mining/calculator/eth)

    The way I see it, only that company is going to make money and, at the expense of the planet. Your game would be just one minor cog in their machine.

  • Good to hear. I did some quick checking and as strange as it sounds, you do have to use AJAX to load the .json file. I would have thought that the json element could load and parse a file itself. Guess not.

    The tag is just a way to identify it when events happen. One of the things I do is create an Ajax on any event and then, under that, compare the tags to choose what to do.

  • And... is there a reason you're using the ajax request? Normally that's to contact an external website to get data but I don't see any url info in your request. Is that json file stored in the project? If so, you should be able to just Json.download | "Working_Word_List_Array.json"

    I could be wrong about that. Haven't worked with loading json directly from files either.

Fengist's avatar

Fengist

Member since 6 Nov, 2015

Twitter
Fengist has 5 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x3
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies