Fengist's Recent Forum Activity

  • There's even a Unity decompiler. Used it to figure out the code to mod Kerbals.

    Years ago a guy wrote a packet sniffer that ripped Eve Online packets apart to get market data.

    No game is safe.

    Good news! The instant your software gets cracked, you join an elite rank of programmers. It means you did something right.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Local storage?

  • Tried that. GPT even recognized the link to the sdk git. Asked it to create a simple addon. It totally screwed it up.

  • Umm not positive what you're referring to. If you're talking about adding an object to a layout, it's right click, insert new object, select the object like "sprite" then click the button "Insert". Don't think you can drag and drop those.

  • Right, both the uuid and sha are setting a c3 variable which will be ajax posted to the server. The general idea is a basic verification system that can't be copy/pasted.

    Saved me much gnashing of teeth. Appreciate it!

  • Figured it out. passed a string and runtime, I got a hash back.

    Thanks again!!!!

  • IT WORKED! THANK YOU... hours and hours spent on that.

    Now, one more question. I have a sha256 function I need to pass a string to.

    function sha256(ascii)

    How would I call it?

    function sha256(ascii, runtime)?????

  • I'm just trying to call it when I need it. It's purpose is to create a random nonce to pass to the server.

  • Put the file into Scripts folder and change its purpose to "Import for events".

    However, if you need to access runtime in the function, you might have to pass it as a parameter.

    And tried it by just running UUID();

    Didn't work.

  • If you're not doing any sort of multiplayer, why not save things in local storage? Or are you trying to show them scores/progress of other players?

  • and I tried this:

    globalThis.UUID = function UUID() {
    	runtime.globalVars.UUID = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
    		const r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);
    		return v.toString(16);
    	});
    }

    And then

    globalThis.UUID;

    Doesn't produce an error but it doesn't appear to set the UUID global var to anything

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