acemod / language-arma-atom

Atom language support for Real Virtuality file formats
https://atom.io/packages/language-arma-atom
MIT License
33 stars 16 forks source link

Update the maintenance scripts #103

Open kymckay opened 6 years ago

kymckay commented 6 years ago

I said I'd look into the scripts that retrieve SQF commands. My initial plan was to scrape the intercept pointers deceleration file the same way I did for the sqf repository (this is still an option as far as that is concerned). However I've realised that this package also reads the description and other information of each command so I'm in the process of checking why the scripts aren't working.

The first thing I notice is that armadoc.py only processes (alphabetically) up to curatorEditingArea.

Here is the information initially queried by the armadoc.py script. It seems that the code to continue requesting more information (I assume that's what this is meant to do) isn't working: https://github.com/acemod/language-arma-atom/blob/c4a6acfb510b7d16ee24a1604f1ba08ed160b3e6/rsc/armadoc.py#L18-L22

ShadowRanger commented 6 years ago

It's very strange how it suddenly doesn't work though, as I know this script originally ran with no issues. It could be some sort of flood detection on the wiki perhaps? Honestly not sure.

haztakki commented 6 years ago

Does this need to be done in Python? I can throw something together in PHP to copy all commands / functions on the Wiki if needed,

ShadowRanger commented 6 years ago

It can honestly be in whatever language as long as it ends up doing the same thing.

haztakki commented 6 years ago

I just quickly threw this together, it is 11 lines and was done very fast as you will see. Just showing how easy it is to achieve this. I have to go out soon but I can finish it later this evening. I assume you don't care about the visual output but how it copies it so I was thinking if you run it via command line (batch file) then it would generate a .txt file with the following format: command|command|command|etc Can you just apply all commands again or do you actually need comparison of new commands added? You don't want the operators either, right? Made using PHP, DOMDocument. https://youtu.be/4Hx2zmxdH1w

ShadowRanger commented 6 years ago

The existing Python scripts have been made to automate the full process of retrieving the commands and then generating the required JSON contents to be placed into the relevant files for Atom to read. Any implementation of this same system would be fantastic, and would be even better if it supported doing the same for BIS functions as well as the current scripts don't do that. I personally don't have any experience in Python or PHP, so its much appreciated that you guys @SilentSpike @HazJ are helping and would be awesome if either the current scripts could be fixed or new ones made to do the same thing.

haztakki commented 6 years ago

Hello. I have bene extremely busy the last week or so. Real issues and working on web app / other stuff. I assume this is still need of some attention? I'll get back on it this weekend. @ShadowRanger Regarding your point about JSON and Atom? What is the specific format that you need?