I think it is a bug: new build(2012.971) dosent understand :
require “analytics”
was it renamed? relocated? removed? bugged? [import]uid: 90911 topic_id: 33083 reply_id: 333083[/import]
I think it is a bug: new build(2012.971) dosent understand :
require “analytics”
was it renamed? relocated? removed? bugged? [import]uid: 90911 topic_id: 33083 reply_id: 333083[/import]
Same issue here. [import]uid: 66464 topic_id: 33083 reply_id: 131376[/import]
There was a change and you need to do:
analytics = require(“analytics”)
now.
In fact, all requires need to be assigned to a variable. [import]uid: 19626 topic_id: 33083 reply_id: 131379[/import]
This is a good move, so there is consistency. [import]uid: 160288 topic_id: 33083 reply_id: 131381[/import]
tnx a lot!
Now they should fix Docs too:
http://developer.coronalabs.com/reference/index/analytics
=) [import]uid: 90911 topic_id: 33083 reply_id: 131386[/import]
May be you are having this issue https://developer.coronalabs.com/forum/2012/11/14/corona-sdk-2012968-issue ?
you can do
[lua]analytics = require(‘analytics’)[/lua]
or, try using corona build 2012.964
Regards.
[import]uid: 147582 topic_id: 33083 reply_id: 131389[/import]
Same issue here. [import]uid: 66464 topic_id: 33083 reply_id: 131376[/import]
There was a change and you need to do:
analytics = require(“analytics”)
now.
In fact, all requires need to be assigned to a variable. [import]uid: 19626 topic_id: 33083 reply_id: 131379[/import]
This is a good move, so there is consistency. [import]uid: 160288 topic_id: 33083 reply_id: 131381[/import]
tnx a lot!
Now they should fix Docs too:
http://developer.coronalabs.com/reference/index/analytics
=) [import]uid: 90911 topic_id: 33083 reply_id: 131386[/import]
May be you are having this issue https://developer.coronalabs.com/forum/2012/11/14/corona-sdk-2012968-issue ?
you can do
[lua]analytics = require(‘analytics’)[/lua]
or, try using corona build 2012.964
Regards.
[import]uid: 147582 topic_id: 33083 reply_id: 131389[/import]
… OK that seems to do it.
But guys: I am a bit puzzled that noone has updated the core docs on this yet! Such a fundamental change (handling requires) should have been proactively noted in the relevant API calls!!
http://docs.coronalabs.com/api/library/analytics/init.html
…and so on.
;-/
[import]uid: 15953 topic_id: 33083 reply_id: 131716[/import]
We will update the documentation as soon as possible.
It isn’t really a fundamental change as it is common practise in lua to assign a require to a variable (usually a local one)
Eg.
local this = require( “that” )
[import]uid: 84637 topic_id: 33083 reply_id: 131773[/import]
Hey, Danny, now that I understand how to code in Lua / Corona SDK so much better than when I first started, I do the local this = require( “that” ) on anything I require in my second project.
However, with the first project I did, I started off not knowing anything, so I’d copy how things are done from the samples and online documentation, and as long as it worked, I figured that’s how things must be done. And even when I spotted inconsistent ways modules are required, I wouldn’t know why they are different. It would only register in my mind that certain modules must be required in a specific way while other modules must be required in other ways for whatever reason.
So… I think it really is important to update Sample Code and documentation that Corona publishes and make sure it does not include code that would cause a project to crash, especially since, I believe, Corona SDK is positioned to be used by broad range of people (i.e., from novices to super duper expert genius programers.)
Just my two cents…
Naomi [import]uid: 67217 topic_id: 33083 reply_id: 131778[/import]
I totally agree, the sample code and documentation need updating and it needs to be checked across the board to ensure it is consistent.
Leave it with me [import]uid: 84637 topic_id: 33083 reply_id: 131782[/import]
Hey Danny,
just to clear your pov - it is very important to fix Docs.
For example: I was making presentation about indie game dev at university few days back. And as a result - 5 students now trying Corona SDK as dev tool. They have expirience with other languages, but first time with Lua.
They ll learn Lua from Corona Docs. But if Corona Docs are failing - there probably will just give up and
ll spread word that ‘corona sucks, even their own code dosent work’. And as result - you `ll never get them as clients. Not just that 5 students, but probably whole IT-part of university 'll deny your product.
PS Yes, i know - free version(old) of corona still works with old docs. But just wanna show you example why you should run and fix your Docs =) [import]uid: 90911 topic_id: 33083 reply_id: 131792[/import]
Hey efgames.
Don’t worry I totally understand where you are coming from.
I will try to get this sorted out asap.
[import]uid: 84637 topic_id: 33083 reply_id: 131796[/import]
… OK that seems to do it.
But guys: I am a bit puzzled that noone has updated the core docs on this yet! Such a fundamental change (handling requires) should have been proactively noted in the relevant API calls!!
http://docs.coronalabs.com/api/library/analytics/init.html
…and so on.
;-/
[import]uid: 15953 topic_id: 33083 reply_id: 131716[/import]
We will update the documentation as soon as possible.
It isn’t really a fundamental change as it is common practise in lua to assign a require to a variable (usually a local one)
Eg.
local this = require( “that” )
[import]uid: 84637 topic_id: 33083 reply_id: 131773[/import]
Hey, Danny, now that I understand how to code in Lua / Corona SDK so much better than when I first started, I do the local this = require( “that” ) on anything I require in my second project.
However, with the first project I did, I started off not knowing anything, so I’d copy how things are done from the samples and online documentation, and as long as it worked, I figured that’s how things must be done. And even when I spotted inconsistent ways modules are required, I wouldn’t know why they are different. It would only register in my mind that certain modules must be required in a specific way while other modules must be required in other ways for whatever reason.
So… I think it really is important to update Sample Code and documentation that Corona publishes and make sure it does not include code that would cause a project to crash, especially since, I believe, Corona SDK is positioned to be used by broad range of people (i.e., from novices to super duper expert genius programers.)
Just my two cents…
Naomi [import]uid: 67217 topic_id: 33083 reply_id: 131778[/import]