Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

HamedH

Hamed

@Hamed
Admin
Unfollow Follow
About
Posts
456
Topics
8
Shares
0
Groups
2
Followers
12
Following
1

Posts

Recent Best Controversial

  • iPhone HP Crashes
    HamedH Hamed
    Help and Support

    @okac_jd 2.9 is super buggy right now and is only meant for nightly builds. The latest 2.8 update on the app store should fix the crashing!


  • Cannot publish projects to the hub currently
    HamedH Hamed
    Help and Support

    should be fixed


  • Cannot publish projects to the hub currently
    HamedH Hamed
    Help and Support

    How long ago was this? We've also been seeing this occur more frequently and is fixed on the version we're releasing soon.


  • Bird eye diagonal viewpoints for character help!
    HamedH Hamed
    Help and Support

    @hakujyu

    a40f79d2-7854-4e88-b941-49169220e24c-image.jpeg

    you need to drag the output into the text box


  • Forum new topic window problem iPad Pro
    HamedH Hamed
    Bug Reports

    I updated the theme so it's slightly better. The 2.6 update coming soon will have this fixed completely.


  • Forum new topic window problem iPad Pro
    HamedH Hamed
    Bug Reports

    that didn't fix it. Will fix in the app update. coming soon


  • Forum new topic window problem iPad Pro
    HamedH Hamed
    Bug Reports

    let me try updating the forum and seeing if that fixes it


  • Can’t branch projects
    HamedH Hamed
    Bug Reports

    @Bryce678 Yes, we are fixing this. Should be fixed in the next update.


  • Why is the app telling me to download editor?
    HamedH Hamed
    Help and Support

    @Lorebound-Labs Are you using the hyperPad hub app on iPad?

    If you're just getting started, check out the starter app https://www.hyperpad.com/app/starter <- lets you create one project for free

    or switch to https://www.hyperpad.com/app for unlimited projects


  • How to publish game.
    HamedH Hamed
    Help and Support

    @Imxbox973

    Can you show a screenshot or video to show what is happening?

    What isn't working specifically?


  • In App Purchase Tutorial on Exported Projects
    HamedH Hamed
    Help and Support

    In App purchase swift code for exported projects:

    first add pod 'SwiftyStoreKit' to the list of pods in Podfile in a text editor.

    Then in terminal, run pod install. If you don't have cocoapods installed on your mac, follow the instructions here: https://guides.cocoapods.org/using/getting-started.html

    Replace the contents of HPSwift.swift with the following file

    //
    //  HPSwift.swift
    //  hyperPad-Project
    //
    //  Created by Hamed Saadat on 2019-08-07.
    //
    
    import Foundation
    import SwiftyStoreKit
    
    @objc class HPSwift: NSObject {
        fileprivate var _behaviours: HPBehaviours? = nil
        @objc var behaviours: HPBehaviours? {
            get {
                return _behaviours
            }
            
            set(behaviours) {
                _behaviours = behaviours
                
                SwiftyStoreKit.completeTransactions(atomically: true) { purchases in
                    for purchase in purchases {
                        switch purchase.transaction.transactionState {
                        case .purchased, .restored:
                            if purchase.needsFinishTransaction {
                                // Deliver content from server, then:
                                SwiftyStoreKit.finishTransaction(purchase.transaction)
                            }
                            // Unlock content
                            behaviours?.broadcastValue(purchase.productId as NSString, withKey: "purchaseComplete")
                            
                        case .failed, .purchasing, .deferred:
                            behaviours?.broadcastValue(purchase.productId as NSString, withKey: "purchaseError")
                            break // do nothing
                        @unknown default:
                            break
                        }
                    }
                }
                
                behaviours?.addReceiveKey("restorePurchases", onReceive: { (receiveValue) in
                    SwiftyStoreKit.restorePurchases(atomically: true) { results in
                        if results.restoreFailedPurchases.count > 0 {
                            behaviours?.broadcastValue("Restore Failed: \(results.restoreFailedPurchases)" as NSString, withKey: "purchaseError")
                        }
                        else if results.restoredPurchases.count > 0 {
                            results.restoredPurchases.forEach { (purchase) in
                                behaviours?.broadcastValue(purchase.productId as NSString, withKey: "purchaseComplete")
                            }
                        }
                        else {
                            print("Nothing to Restore")
                        }
                    }
                })
                
                /*
                 Add Behaviour functionality here
                */
                
                behaviours?.addReceiveKey("purchase", onReceive: { (recieveValue) in
                     // handle in app purchase logic! //
                        SwiftyStoreKit.purchaseProduct("INSERT_PURCHASE_IDENTIFIER_HERE_OR_USE_recieveValue", quantity: 1, atomically: true) { result in
                            switch result {
                            case .success(let purchase):
                                behaviours?.broadcastValue(purchase.productId as NSString, withKey: "purchaseComplete")
                            case .error(let error):
                                var message = ""
                                switch error.code {
                                case .unknown: message = "Unknown error. Please contact support"
                                case .clientInvalid: message = "Not allowed to make the payment"
                                case .paymentCancelled: break
                                case .paymentInvalid: message = "The purchase identifier was invalid"
                                case .paymentNotAllowed: message = "The device is not allowed to make the payment"
                                case .storeProductNotAvailable: message = "The product is not available in the current storefront"
                                case .cloudServicePermissionDenied: message = "Access to cloud service information is not allowed"
                                case .cloudServiceNetworkConnectionFailed: message = "Could not connect to the network"
                                case .cloudServiceRevoked: message = "User has revoked permission to use this cloud service"
                                default: message = ((error as NSError).localizedDescription)
                                }
                                behaviours?.broadcastValue(message as NSString, withKey: "purchaseFailed")
                            }
                        }
                })
            }
        }
        
    }
    

    Some key points:

    behaviours?.addReceiveKey("restorePurchases", onReceive: { (receiveValue) in
                    // add your code here
                })
    

    Will get triggered when you trigger a broadcast behaviour with the restorePurchases key

    behaviours?.broadcastValue(purchase.productId as NSString, withKey: "purchaseComplete")

    Will trigger a receive message behaviour with the purchaseComplete key

    INSERT_PURCHASE_IDENTIFIER_HERE_OR_USE_recieveValue can be replaced with either the identifier of your purchase from AppStoreConnect. OR the receiveValue parameter. If you use receiveValue make sure in your broadcast behaviour, you're sending the identifier from App Store Connect.


  • Apple is asking me some questions about my game
    HamedH Hamed
    Help and Support

    @SplitMindGaming answer no to the rest


  • Apple is asking me some questions about my game
    HamedH Hamed
    Help and Support

    Answer Yes

    Pretty much just usage data, diagnostics, and crash data. Even though you don't actively use those, we do have 3rd party libraries that are included part of the build. (we're not tracking anything but firebase analytics is available to use if you want it)


  • Cant Open Xcode Project
    HamedH Hamed
    Help and Support

    @SplitMindGaming those are warnings and can be ignored. Can you screenshot filtering by red errors?

    Also are you using an M1 Machine?


  • Problem testing game in viewer app
    HamedH Hamed
    Help and Support

    @CreativeCloud can you try logging out and logging back in?

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search