Katta wrote:Looks like something that'd be really useful for me. I'm not sure if you have this transformation: Alex: Hi! => Alex "Hi!" since I don't know how to run your script. I wonder if you could please make a version for people unrelated to programming or maybe add a more detailed instruction.
Yeah, simple enough, just add
:p Alex: = Alex at the beginning then you can write
Alex: Hi! and it'll be transformed into
Alex "Hi!" in the output.
I could look at making a more easy to use GUI but that'd much further down the line.
One of the benefits of this is that the programmer of the game can set up the settings, config options and replacements and then just
:import them so that the writers who don't know much about programming don't have to worry about it and can just focus on the script.
I'm intending to add a few more examples and help/documentation as things go, for now I'm just focused on getting v1.0 out.
PyTom wrote:How are you invoking this? I'm wondering if it makes sense to add support somewhere - for example, in the launcher - for running add on tools like this one, as a preprocessing pass before launching the game.
Right now, it's run as a standalone python script, but it really wouldn't be that hard to integrate into the build processes of games automatically as it could be easily modularized and a few lines of python during init to build the .rpy files I think would be all that's needed; depends on how Ren'Py handles loading of files, something I haven't really investigated much.
Glad you like it though, everyone has different ideas about how thing should be done and I appreciate you understand that; Some programmers I know don't. It's worth noting that I'm working on a Sublime Text/TextMate grammar definition that should improve readability for people who use them.
Darim wrote:Works great on Linux. I will test it with more complex script files later.
Cheers for testing, though I'd be surprised if it didn't work on pretty much any python platform as it only uses builtin libraries (well, except coloramma, but that's optional in the script). I'm running a 5,000+ line script through it with file mixing, transformations, complex line replacements, etc. to test it. Soon enough I'll make a smaller test file that'll test every different feature of the script in different ways.