I just realized that the Gideros IDE doesn't give me all the options (properties) for my objects. For instance, if I create a bitmap:
local bitback = Bitmap.new(Texture.new("image.png"))
Next I want to set the position it will appear at. If I type "bitback" and then ":" the colon, no options come up. This led me to believe there were no properties/methods for a bitmap. However, by chance I noticed an example code that used "setPosition()" so I tried it:
bitback:setPosition(50,0)
and even though it never gave me the option for "setPosition()", it works.
Just learning Lua and Gideros, I can't possibly know all of the methods for a bitmap by memory. Even if I could, I couldn't spell everything correctly by memory. Is there hope that this will be addressed anytime soon?
Comments
cheers
evs
Likes: phongtt
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Therefore we provide only a static list of autocomplete keywords so that developers can type less.
Install this:
http://www.eclipse.org/koneki/ldt/
and add this:
http://benjamin-cabe.com/koneki/execution-environments/gideros.zip
by doing - Preferences (Lua > Execution Environments > add > gideros.zip)
and your dreams will come true ...
cheers
evs
Likes: atilim
I'll try it out. Thanks
Likes: gorkem, kartben
I've written a little vbscript, much like my applescript, that can run code via Gideros Studio (which is used as just an intermediary and console output) on the Gideros Player (either on device or windows).
I have attached the script (remove the .txt from filename) as well as pics of the setup and how my External Tools Configuration is set.
Note: It works by running the most recent project in studio, so make sure you have LDT and Gideros pointing at the same thing, so that they are in sync!
HTH
cheers
evs
I just tried this but receive an error.
"CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher"
I have a 64bit system. Do I need a 64bit version of this script?
Try this (I can't test it myself)
In External Tools change location from
c:\Windows\System32\cscript.exe
to
c:\Windows\SysWoW64\cscript.exe
cheers
evs
Thanks for responding. It's still a no go. It tells me the exe is not compatible with my system.
run it from the command line (It's done automagically in the GUI) - not sure
Still try the above
cheers
evs
I couldn't get it to work. What I decided to do is :
1)create a project in eclipse.
2)create a project in Gideros.
3)move all Gideros files to the new eclipse project folder I just created.
4)open the project in Gideros but from the new eclipse location.
5)open the main.lua in eclipse.
Basically I edit the code in eclipse, save it, and press RUN from Gideros.
Presto, the updated code runs. Ridiculous, but it works.
Thanks.
cheers
evs
Likes: kartben
(I was using the Eclipse 64bit add on before, which gave me autocomplete, but no launching).
Now using your script it works. The problem is, I now get no autocomplete whatsoever.
Here is what I did:
1) I downloaded the LDT file and unzipped it.
2) I downloaded Gideros.zip (from benjamin-cabe.com)
3) I opened LDT and did Preferences>Lua > Execution Environments > add > gideros.zip
Finally, I created a new Lua Project in LDT named "Simple". I selected "gideros-2.2.1" as the Execution Environment. Then I created a new file in the Simple project called "main.lua"
I opened main.lua I started to type, but cannot get any code completion.
Is there an obvious mistake I have made?
@evs maybe it is a noob question but can you please tell me how did you edit the colors in the gideros studio ide?
I mean background is black and syntax highligting colors are also different. I couldn't find it because.
I even asked before in this thread but no answers:)
http://www.giderosmobile.com/forum/discussion/1334/gideros-studio-ui#Item_5