[Poll] Which style for the LUA reference on the wiki?

* I am bothered by the grid/hex coordinate systems. I considered types but that could be ugly. Instead I now want to rename every "x" and "y" arguments to "hexX" and "gridX" depending on the coordinate system they are expressed in.

That's great if you code can tell the difference. If not, it can be updated by manual wiki editing (can signatures be manually updated?). I expect that there will be a lot more enthusiasm for manual wiki updates when it is 98% complete and accurate rather than 50%.
 
That's great if you code can tell the difference. If not, it can be updated by manual wiki editing (can signatures be manually updated?).
My code reads a simple text file where I can manually specify some functions signatures. So I think I just need to add a "hexCoord" and "gridCoord" pseudo-types, then specify manual signatures for HexToGrid, plot.GetX and such. This should be enough for the engine to correctly infere those pseudo-types for 90% of uses. The engine I made is both powerful and customizable. :)
After that it's just a matter of implementing one edge case in the post-inference process.

Now, for the end user, editing the pages is quite easy. I used wiki templates to remove most of the layout bloat, so here is an example of a functions listing, you can see the end result at the top of the global functions page:
Code:
<!-- 
FOW_SETALL
-->
|-
{{FuncInfos5|yes  |yes  |no |<!-- No comment -->}}
|align="right"  |<code><!-- No return type --></code>
|width="100%" |<code>{{Label5|{{Func5|FOW_SetAll}}|FOW_SetAll}}<b>(</b>{{Type5|FogOfWarModeType}} fogOfWarType<b>)</b></code>
I can simplify it further, so I will probably do that. But the greatest simplification I could achieve could be troublesome with very long pages so I will need to run some tests before.

I expect that there will be a lot more enthusiasm for manual wiki updates when it is 98% complete and accurate rather than 50%.
I have the same hope. :)
Besides Deanej fixed the wiki message that is displayed to users who try to register with names longer than 8 characters. Before the error just told them the name was invalid and I, for example, though it was not working at all before The J learnt me the trick. This should help more people to register.
 
Hopefully. Might need some other sorts of PR too, but not sure how.

Thanks to both of you. :)
On one side the fact that this problem has not been fixed yet makes me anxious, I am starting to doubt that I will ever be able to upload that baby on CivFanatics and I am considering whether I will have to fire yet another wiki (oh crap! we already have two).

No hurry please.
Seems the error is a bit more complicated, because the error message is in fact wrong :/.
Asked the admins now again what the status is about it.
 
No hurry please.
Seems the error is a bit more complicated, because the error message is in fact wrong :/.
Asked the admins now again what the status is about it.
No need to worry. As I said I do not urge anyone to fix it right now because there are still things that can be refined. I understand it's not trivial (I talked with this admin about it in PM) and I do not want to bother anyone while on my side not everything has been done. Besides, to be honest, while starting a beta period asap would just be better, it's far more comfortable for me to work on a local version with no timeline or schedule. After that the clock will start ticking.

So it's only once I find myself with a perfect version and short of any task to do that I will fire a proper harassment campaign. :devil:
Hey, maybe I can write a bot for that too!

Also if I were to take such a decision as the one I mentioned it would not be without a proper notice and delay, especially because the admins have been very kind with me: I spammed Deanej a lot for miscellaneous requests and Ainwood accepted to install all the extensions I requested. :)

So please do not read what I wrote too far: I am only worried to the point that I have to think about the alternative solutions I would have, and said it out loud, that's all. No need to mail people and ring an alarm. ;)
 
:)
Was not too worried :), just wanted to mention it.

So it's only once I find myself with a perfect version and short of any task to do that I will fire a proper harassment campaign. :devil:
Hey, maybe I can write a bot for that too!

That would actually be relatively trivial :mischief:.
 
That would actually be relatively trivial :mischief:.
Well, trivial until you consider anti-spam protections. Then it becomes challenging. ;)
Yeah, let's do that, I am sure I can write a decent linguistic engine in less than 200 hours. With such a power in my hands I will be able to harass all of my countries' representatives, and the ones from other countries too! They will have to surrender in front of my mighty bot and the world will be mine! And then...

Everyone will have ponies! :mad:

mylittlepony.jpg

Image credit: Be nice art friends
 
The publishing has been delayed because I still have a few bugs to fix. I have been caught by surprise yesterday when I was still troubleshooting the new type inference system. Since this one was very advanced, I thought it was better to delay things a bit rather than use a previous stable version.

So give me 12 to 24 more hours. Anyway, should I have published now, the formatting would have been messed up because I need Deanej to make a few additions to the wiki's css styles. I guess it will done by the time I start publishing.
 
Back
Top Bottom