I had an idea I don’t know how to carry it out.
In Inform 7, the author can write “The release number is 0.”
I would like the “Compile” button to automatically increment this number when included in the source text.
Currently a point.number release is not accepted because the decimal point is a period. Nor is something like “The release number is 1-6.”
It would be helpful to me if there was a second digit stored which becomes the number after the decimal point.
On first release if I write “The release number is 0.”, Inform releases version 0 and then changes it in the source text to 0.1. If I hit the release button again, it becomes 0.2.
The post decimal digit could potentially get very high during beta testing, but that would be great information. “You got eaten by the plant even though you had the pitchfork? Oh, you have 0.152. Here’s 0.157.”
The author can manually change the release number. If I hit a significant milestone in beta testing, I can write “The release number is 0.500.” and Inform will go with that. I could write “The release number is 752.0101010101888899999955555.” if I wanted the number to be useless or somehow significant to the story (within reason, I’m sure Inform has standards about how stupidly large a number can be).
The whole number before the decimal does not increment automatically, and is only set by the author. When the game is released, they can write “The release number is 1.” Inform releases version 1 and changes the source text “The release number is 1.1.” If the release button is hit again, it becomes 1.2. the author can at any time reset this by writing “The release number is 1.” again.
Is this possible with any kind of programming within Inform? I know Conversation Builder has a neat feature that writes code for the author to copy and paste, but is it possible for a source text to actually update itself upon release? I’m figuring this would almost need to be a feature request.
Perhaps within Preferences, there could be a tick box to turn it off for anyone who prefers to set the version manually.