Acey's Forum Posts

  • Location Info — Now for sale in the Scirra Store!

    https://www.scirra.com/store/construct2-plugins/location-info-2223

    <h3>Get all info you need on a users Location</h3><div class="deshr"></div><p>The plugin is using Googles API to get the Location info. When that is said, you need an Google account for this plugin to work (that's FREE).</p><h3>Available Info</h3><div class="deshr"></div>

    • Full Address
    • Country
    • Country Short
    • Locality
    • Locality Short
    • Sub-locality
    • Sub-locality Short
    • State
    • State Short
    • Postal Code
    • Street (name)
    • Street (name) Short
    • Street Number

    Use this topic to leave comments, ask questions and talk about Location Info

  • rexrainbow Thanks for the explanation, after playing a little with it, i found out what you meant, and now i know the difference, thank you

  • So your suggestion would be to always use method 2 ? If i understand correctly ?

  • Hi

    Well i think the Consecutive days counter is pretty broken, since i've had this account for 18 days. But on my account it says i've been visiting for 109 days in a row, and that's not really true :p

    -Acey

  • Emac

    I'm glad to see your interest in the plugin. I haven't get to start yet, since i had some other smaller and easier plugins in mind i started with. To learn a faster way of developing plugins.

    I'll finish the last of them today, and start on the Login module tomorrow.

    Do you have any suggestions for features you would like to see, like Origami Turtle ?

  • Ohh yea, can't wait! So much have to be involved in the alpha/beta, have some really great plugins and editor extensions in mind. Hope I'll be taken! )

    Would also help me Kickstart my company.

  • Hi

    Are there anyway to extend the editor as it is now? Or are there planned anything like what I'm asking for in the near future?

    -Acey

  • It's probably broken by the minifier - see the section on Closure Compiler in the SDK docs: https://www.scirra.com/manual/22/runtime-overview

    That seems pretty true for now, i've reworked the code to work without minifying, but how to i then oprimize it to work with minifying too, i think it's an cap for my plugins to say that people can't export with minifying if they use it.

    EDIT:

    TypeError: f.response.N is undefined is the error i get, when running here:

    http://demo.acey.io/C2/LocationInfo/

    I guess this comes from a try, catch i have, where the FOR loops are in.

    for(var componentIndex in self.response.results[0].address_components)
    {
    	var component = self.response.results[0].address_components[componentIndex]
    	console.log(component);
    	for (var typeIndex in component.types) {
    	    switch (component.types[typeIndex]) {
    	        case 'street_number':
    	            self.data.street_number = component.long_name;
    	            break;
    
    	        case 'route':
    	            self.data.street = component.long_name;
    	            break;
    
    	        case 'locality':
    	            self.data.city = component.long_name;
    	            break;
    
    	        case 'administrative_area_level_1':
    	            self.data.state = component.long_name;
    	            break;
    
    	        case 'administrative_area_level_2':
    	            self.data.county = component.long_name;
    	            break;
    
    	        case 'country':
    	            self.data.country = component.long_name;
    	            break;
    
    	        case 'postal_code':
    	            self.data.postal_code = component.long_name;
    	    }
    	}
    }[/code:3iu4v7uy]
  • Hello Everyone.

    This is my Company profile of a one man army, plugin/asset creator.

    I'll be using my time on developing and publishing Script plugins!

    -Acey

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well i better like the graphics of the big one. But the walking anims looks better on the small one.

  • Well that's from the official scirra url, so there's no chance that could be corrupted or unsafe to use.

  • Hi

    I'm working on another plugin, but struggling to find out why the code is acting different when it's published to a website, over running on localhost test.

    I got this JS/jQuery code, that perfectly works when i'm testing, but not when i've exported the project.

    jQuery.each(self.response.results[0].address_components, function () {
    	var component = jQuery(this)[0];
    	jQuery.each(component.types, function () {
    	    console.log(jQuery(this));
    	    switch (jQuery(this).selector) {
    	        case 'street_number':
    	            self.data.street_number = component.long_name;
    	            break;
    
    	        case 'route':
    	            self.data.street = component.long_name;
    	            break;
    
    	        case 'locality':
    	            self.data.city = component.long_name;
    	            break;
    
    	        case 'administrative_area_level_1':
    	            self.data.state = component.long_name;
    	            break;
    
    	        case 'administrative_area_level_2':
    	            self.data.county = component.long_name;
    	            break;
    
    	        case 'country':
    	            self.data.country = component.long_name;
    	            break;
    
    	        case 'postal_code':
    	            self.data.postal_code = component.long_name;
    	    }
    	});
    });[/code:35hglc6l]
    
    The console.log will output the following on test (correct):
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    Object[]
    
    Where the Object selectors will have some value.
    But the exported project will output this:
    Object["s", "t", "r", "e", "e", "t", "_", "n", "u", "m", "b", "e", "r"]
    Object["r", "o", "u", "t", "e"]
    Object["l", "o", "c", "a", "l", "i", "t", "y"]
    Object["p", "o", "l", "i", "t", "i", "c", "a", "l"]
    Object["a", "d", "m", "i", "n", "i", "s", "t", "r", "a", "t", "i", "v", "e", "_", "a", "r", "e", "a", "_", "l", "e", "v", "e", "l", "_", "2"]
    Object["p", "o", "l", "i", "t", "i", "c", "a", "l"]
    Object["c", "o", "u", "n", "t", "r", "y"]
    Object["p", "o", "l", "i", "t", "i", "c", "a", "l"]
    Object["p", "o", "s", "t", "a", "l", "_", "c", "o", "d", "e"]
    Object["s", "t", "r", "e", "e", "t", "_", "n", "u", "m", "b", "e", "r"]
    Object["r", "o", "u", "t", "e"]
    Object["l", "o", "c", "a", "l", "i", "t", "y"]
    Object["p", "o", "l", "i", "t", "i", "c", "a", "l"]
    Object["a", "d", "m", "i", "n", "i", "s", "t", "r", "a", "t", "i", "v", "e", "_", "a", "r", "e", "a", "_", "l", "e", "v", "e", "l", "_", "2"]
    Object["p", "o", "l", "i", "t", "i", "c", "a", "l"]
    Object["c", "o", "u", "n", "t", "r", "y"]
    Object["p", "o", "l", "i", "t", "i", "c", "a", "l"]
    Object["p", "o", "s", "t", "a", "l", "_", "c", "o", "d", "e"]
    
    Why is this so ? Please help me. 
    
    -Acey
  • Hi, your plugin show info only by position of country ?

    No no, i don't know why the screenshots aren't here, but you'll Load the Weather from a Latitude and Longitude, so you can use the Geolocation Plugin.

    I'll try uploading the screenshots again

  • Store URL: https://www.scirra.com/store/construct2%20...%20-info-2191

    Get all Weather Info from a anywhere in the World!

    Available Info:

    • Country
    • Sunrise
    • Sunset
    • Current Temperature
    • Minimum Temperature of the day
    • Maximum Temperature of the day
    • Humidity
    • Pressure
    • Wind Speed
    • Wind Direction
    • Clouds
    • Weather Description
    • Last Weather Update

    Choose Between 3 different Temperature Units:

    • Fahrenheit
    • Celsius
    • Kelvin

    Screenshots

  • Weather Info — Now for sale in the Scirra Store!

    https://www.scirra.com/store/construct2%20...%20-info-2191

    Get all Weather Info from a anywhere in the World!

    The plugin is using OpenWeatherMaps API to get the Weather info needed. When that is said, you need an OpenWatherMap account for this asset to work (that's FREE).

    DO NOT MINIFY THE JAVASCRIPT FILES WHEN EXPORTING - IT'LL BREAK THE PLUGIN

    I'll fix this very soon!

    Available Info:

    Country

    Sunrise

    Sunset

    Current Temperature

    Minimum Temperature of the day

    Maximum Temperature of the day

    Humidity

    Pressure

    Wind Speed

    Wind Direction

    Cloudiness

    Weather Description

    Last Weather Update

    Choose Between 3 different Temperature Units:

    Fahrenheit

    Celsius

    Kelvin

    We are not affiliated, associated, authorized, endorsed by or in any way officially connected to OpenWeatherMap Inc. (http://openweathermap.org/).

    Use this topic to leave comments, ask questions and talk about Weather Info