@hgy29 mediawiki export to xml I changed the extension to txt because forum doesn't allow xml files. I exported all accelerometer pages (main page + methods). What do you think of the output?
If you look more closely you will see that it does reference classes(objects) and namespaces(whatever is before the . or : ). You should also see events and constants
There is no reference to the API the class belongs to but that isn't such a great issue IMHO.
UrlLoader does not have events listed, its just an empty array. That's the class I've been using for tests because it seems to be the smallest class which contains events, constants, and methods.
The main wiki page has now been modified also, by @MoKaLux I am suspecting heheh.
There's no links to the individual API pages and now all of the API stuff is at the top, where it really shouldn't be IMHO. Now the API stuff is just stuck there and delegates the actual wiki type stuff (examples and tutorials) to the bottom.
I reckon either on the left or right of the main page there should be... API Reference -Main API -Physics API -Lua API -Lua enhancements -Plugins -Facebook Instant Games
I think that might have been how it was originally (except Lua enhancements was alienated into another section).
Everything to do with API Reference should be in that little section (API Reference). That makes it easier to see and use, and also makes it easier to scrape any pages that are listed in that section... for 3rd party scrapers like my possible one would be.
You can also see which class they relate to in the json, each event under 'Event' namespace has a 'object' and 'page' field to know which class is was declared about and on which wiki page.
@hgy29 okay I've looked at the output again and it is fairly good. It does have namespaces but doesn't specify which API each namespace belongs in (like UrlLoader belongs in the Main API) etc. that's not a great issue I guess.
I've also noticed that it is not getting events, instead it just seems to only fetch one of each one. An example is UrlLoader where is has Event.ERROR but in the JSON generated by your script the only Event.ERROR is assigned to the GeoLocation namespace.
I've made progress with my own crappy scraper and it's generating this...
It can crawl all of the APIs but some of them have odd formts like "Lua Enhancements" and "FaceBook Instant" which are different than all other namespaces.
I guess in the end a PHP script would be better than JavaScript? I dunno... what do you think?
Yes, you are right, the general API section isn't available. We could add a tag on each API page maybe, no sure if that's the best way. And yes, in my script all events with the same name are merged together, I can fix that to distinguish those with different 'object' (will do in few minutes). I don't mind it being in JS or PHP, but we should find a way to do not put too much stress on the server. HTTP caching would be good, so maybe a php script is better.
Your API look very nice BTW, it would be great if we could host it along the wiki.
@all Please allow some more testing. I am trying to make gideros wiki as practical and nice as possible. I put all the functions in the front page waiting to get the side bar working...
I tested the function with a short message (that's easier to know when words begin and end)
local gametune = Sound.new("new_email.mp3")
gametune:play(700,0)
and indeed you're right. It's not working as expected in tutorial.
The first parameter works as stated. The second one doesn't work as author explains it ((it says You can tell the tune how many times to loop (play over again) by specifying the Loops option.)).
I edited the page to mark that statement as deprecated and changed command to
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
@hgy29 I've been looking at the JSON file your PHP script generates and found the events a bit confusing. I finally discovered that they all live in the "events" part of the "Event" namespace, and no in the "events" part of their associated namespace.
I then started parsing it all using my beloved UrlLoader namespace since that is fairly small and contains methods, events, and constants.
After some time and frustration I figured out why events would not parse correctly... in the "events" part of the "Event" namespace... all UrlLoader events have NO object! It's no wonder I was not able to find them LOL
thee are errors in the output also.
there is a namespace that is blank. The empty namespace seems to be (global) and all object references inside it are saying "Bitmap". then inside its "constants part" it has references to "Math"
Comments
it is probably not what you are looking for, but it could be modified to at least provide a json formatted index into the wiki API pages
https://wiki.giderosmobile.com/index.php/Special:Export
you can fill what you want from this link:
https://wiki.giderosmobile.com/index.php/Special:AllPages
It exports to xml.
Or you can have a look if you find a command you like:
https://www.mediawiki.org/wiki/Help:Export
Or this tool: https://pythonhosted.org/mwxml/
Likes: SinisterSoft, antix
I changed the extension to txt because forum doesn't allow xml files.
I exported all accelerometer pages (main page + methods).
What do you think of the output?
Likes: antix
@hgy29 that last pho looks interesting. It doesn't export which api and class things belong to and also doesn't list their events.
I haven't done PHP at school yet but how would I get or edit that script so it might do what I want?
UrlLoader does not have events listed, its just an empty array. That's the class I've been using for tests because it seems to be the smallest class which contains events, constants, and methods.
The main wiki page has now been modified also, by @MoKaLux I am suspecting heheh.
There's no links to the individual API pages and now all of the API stuff is at the top, where it really shouldn't be IMHO. Now the API stuff is just stuck there and delegates the actual wiki type stuff (examples and tutorials) to the bottom.
I reckon either on the left or right of the main page there should be...
API Reference
-Main API
-Physics API
-Lua API
-Lua enhancements
-Plugins
-Facebook Instant Games
I think that might have been how it was originally (except Lua enhancements was alienated into another section).
Everything to do with API Reference should be in that little section (API Reference). That makes it easier to see and use, and also makes it easier to scrape any pages that are listed in that section... for 3rd party scrapers like my possible one would be.
Likes: MoKaLux
I've also noticed that it is not getting events, instead it just seems to only fetch one of each one. An example is UrlLoader where is has Event.ERROR but in the JSON generated by your script the only Event.ERROR is assigned to the GeoLocation namespace.
I've made progress with my own crappy scraper and it's generating this...
It can crawl all of the APIs but some of them have odd formts like "Lua Enhancements" and "FaceBook Instant" which are different than all other namespaces.
I guess in the end a PHP script would be better than JavaScript? I dunno... what do you think?
And yes, in my script all events with the same name are merged together, I can fix that to distinguish those with different 'object' (will do in few minutes). I don't mind it being in JS or PHP, but we should find a way to do not put too much stress on the server. HTTP caching would be good, so maybe a php script is better.
Your API look very nice BTW, it would be great if we could host it along the wiki.
namespace -> (event/constant/method) -> page -> api details
Likes: antix
Likes: SinisterSoft
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: antix
I am trying to make gideros wiki as practical and nice as possible.
I put all the functions in the front page waiting to get the side bar working...
Likes: SinisterSoft
Likes: antix
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
The first parameter works as stated.
The second one doesn't work as author explains it ((it says You can tell the tune how many times to loop (play over again) by specifying the Loops option.)).
I edited the page to mark that statement as deprecated and changed command to
Regards.
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
I saw it in API and in the tutorial the author mentions it and gives an example too.
https://deluxepixel.com
Does the function behaves different depending on file format?
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
I then started parsing it all using my beloved UrlLoader namespace since that is fairly small and contains methods, events, and constants.
After some time and frustration I figured out why events would not parse correctly... in the "events" part of the "Event" namespace... all UrlLoader events have NO object! It's no wonder I was not able to find them LOL
thee are errors in the output also.
there is a namespace that is blank. The empty namespace seems to be (global) and all object references inside it are saying "Bitmap". then inside its "constants part" it has references to "Math"