Beta Updates

Yea I agree, I know it should be up to me to solve this however if someone else can do the stuff lower down in the engine it would surely be a better solution then I could ever come up with and it would resolve some of my guilt of so far not being able to offer what I have promised :slight_smile:

Carlos and the rest of the Ansca team have been great so far and I don’t doubt how useful they will be in the future of Lime. [import]uid: 5833 topic_id: 4422 reply_id: 16505[/import]

1.9 soon? [import]uid: 11904 topic_id: 4422 reply_id: 16654[/import]

In the words of Carlos…
:slight_smile: [import]uid: 5833 topic_id: 4422 reply_id: 16657[/import]

Hi Graham,

sorry for being so slow on checking the performance issue. I need to get IndeED to a certain level/functionality to help me understand your “monster” better. Will get back to you tommorow!

Cheers
Michael [import]uid: 5712 topic_id: 4422 reply_id: 16659[/import]

Haha no problem at all! Just whenever you find the time :slight_smile: [import]uid: 5833 topic_id: 4422 reply_id: 16665[/import]

New version - http://dl.dropbox.com/u/571145/LimeBeta1.9.zip

I’m having some trouble with my FTP server so have just placed it in Dropbox for now. [import]uid: 5833 topic_id: 4422 reply_id: 16681[/import]

Great. Thanks. What is the syntax to initiate the code check & print in Terminal? [import]uid: 11904 topic_id: 4422 reply_id: 16686[/import]

Oh whoops forgot to say, it will all be done for you when you load Lime. It checks if there are any problems with the dependencies and if so will tell you. If all is OK it just stays quiet. Would it be better to display this if it is all OK aswell? [import]uid: 5833 topic_id: 4422 reply_id: 16718[/import]

No problems at all. Personally I’d love it to say which version of Lime is using in case there is a question about it. I know I can simply open one of your Lua as well so its not a big deal either way. Thanks much! [import]uid: 11904 topic_id: 4422 reply_id: 16757[/import]

That is now done. Will be in 2.0 :slight_smile: [import]uid: 5833 topic_id: 4422 reply_id: 16761[/import]

Graham,

The new version gives me a runtime error:

Runtime error
bad argument #4 to ‘_newRoundedRect’ (number expected, got nil)
stack traceback:
[C]: ?
[C]: in function ‘_newRoundedRect’
?: in function ‘newRoundedRect’
/Users/robsta/code/spart_lua/lime-coconut.lua:374: in function
(tail call): ?

I missed updating to 1.8 so I tried that and got the same error. I think it was 1.7 I was using and reverting back to that everything is ok.

CHeers!

ROb
[import]uid: 12431 topic_id: 4422 reply_id: 16765[/import]

Thanks!!! [import]uid: 11904 topic_id: 4422 reply_id: 16766[/import]

@technohead2000

That’s a strange one, is it possible for you to send me your project to have a look at?
@ksan

No problem :slight_smile: [import]uid: 5833 topic_id: 4422 reply_id: 16769[/import]

Graham, I am having the same problem as technohead2000

Runtime error
bad argument #4 to ‘_newRoundedRect’ (number expected, got nil)
stack traceback:
[C]: ?
[C]: in function ‘_newRoundedRect’
?: in function ‘newRoundedRect’
…udinata/Documents/projects/concerto/lime-coconut.lua:379: in function <…udinata>
UPDATE:
object.width is nil, I set it to 0 then it works fine. [import]uid: 11334 topic_id: 4422 reply_id: 16871[/import] </…udinata>

Ah I get it now, I’m pretty sure I know what that is. Will make a fix now and get the next version up. [import]uid: 5833 topic_id: 4422 reply_id: 16874[/import]

New version is up - http://justaddli.me/downloads/builds/beta/LimeBeta2.0.zip [import]uid: 5833 topic_id: 4422 reply_id: 16877[/import]

Graham,

You are a star, that fixed it for me.

Cheers!

Rob
[import]uid: 12431 topic_id: 4422 reply_id: 16894[/import]

Awesome. It was a silly mistake :slight_smile: [import]uid: 5833 topic_id: 4422 reply_id: 16904[/import]

In case people aren’t aware, I have refactored all the code in an effort to make it easier to look at and fix things, a post concerning this is here - http://developer.anscamobile.com/forum/2011/01/19/big-refactor

What this means is that there is now a version 2.1 - http://www.justaddli.me/downloads/builds/beta/LimeBeta2.1.zip

To save me repeating myself, here is what I wrote in the other post -

Please keep a backup of your project in the 2.0 stage in case it all explodes going to 2.1

In theory near everything is the same, however a few places have changed ever so slightly that they may cause some problems.

Please just post here whatever problems you come up against and I will sort them out as soon as I can. [import]uid: 5833 topic_id: 4422 reply_id: 17689[/import]

Just thought I’d mention a new feature that is coming in 2.2 - Config Files

A config file is simply just a single JSON object like below. It can have any values in it you want.

  
{  
 "type":"Body",  
 "bodyType":"static",  
 "bounce":0.6,  
 "points": ["pointA","pointB","pointC","pointD"]  
}  
  

In Tiled you can then assign this to anything that can have a property simply by giving it a property of “configFile” with the value set to the location of the above file, so for this I set it to a Tile in a TileSet like so:

“configFile” - “physicsBody.json”

The path is relative to the Resource folder however if you want to have it in the Documents folder (for instance a new object definition has been downloaded by the player etc) you can set it like this:

“configFile” - “documents|physicsBody.json”
All the elements of the json file (which can have any extension) will be copied over to the object as properties so can be accessed in the usual way.

I know this seems a bit of a step back from using a GUI however it can still be helpful, for instance if you wanted a bunch of separate Tiles to have the same properties, rather than setting them all up in Tiled for each one (and changing them all every time you want something different) you could now just create a config file for them and just assign the file to all the Tiles. It also allows a programmer to create complex object definitions that a designer could just hook up without having to know anything about what is actually happening underneath.

Hopefully it’s helpful to someone.

  • Edit -

I forgot to say, that this means you will require “Json.lua” in your project. It is freely available but I’m not sure if I would be allowed to actually bundle it with the purchase of Lime so will contact the authors before everything goes on sale.

Also, a Tiled item can’t have duplicate properties with the same name so for now an item can only have one config file assigned to it, I’m thinking of allowing nested config files so that you could set up a single file that then links multiple files, like this:

{ "configFile":"physicsBody.json", "configFile":"playerObject.json", "configFile":"otherStuff.json" } [import]uid: 5833 topic_id: 4422 reply_id: 17816[/import]