Search found 4098 matches

by TMC
Thu Mar 26, 2020 2:53 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7471

OK. Thank you hugely for your work. How do you want to be credited, just "Lenny"? I'll commit it to the OHRRPGCE SVN repo (downloading and uploading the source is really not fun, why did we do that?) and continue working on it there, now that I know I won't be conflicting with your changes...
by TMC
Wed Mar 25, 2020 2:41 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7471

Yes, I mentioned that HSpeak does 3 passes, first for all the defineconstants and also definetrigger, second to process other top-level blocks once the constants and the names "script" and "plotscript" are known, and third to compile scripts after all script call signatures are k...
by TMC
Wed Mar 25, 2020 9:52 am
Forum: Game Discussion
Topic: Android google-play compat status thread
Replies: 73
Views: 10969

Not a very satisfying fix when you can't see it for yourself and don't know what the problem was!
by TMC
Tue Mar 24, 2020 1:28 am
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7471

It's nice that it continues on an error, because otherwise you wouldn't get anything useful out of it. Reading about doing error reporting with PLY. I guess you're referring to the fact that default arguments are written to scripts.txt, but the script compiler needs to add defaults for missing argum...
by TMC
Mon Mar 23, 2020 4:38 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7471

Oh, yes, very nice. I think the biggest missing feature is default arguments for function and script calls (and argument count checking). I'm amused that string_ref can be only a constant, not an integer literal, which is by far the most common case. Actually, it should be an arbitrary expression. R...
by TMC
Sun Mar 22, 2020 3:48 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7471

Oh, wow. (You really should start making new posts instead of editing your previous post, I missed that update) commands.bin is only used for certain error messages and is optional. A bit surprised you went for Python 2 compatibility, but not unwelcome. I did just backport DWRL's Python 3 fixes to P...
by TMC
Sun Mar 22, 2020 1:05 pm
Forum: Q&A Discussion
Topic: [Solved] Getting OHRRPGCE to run on linux, help needed :-(
Replies: 18
Views: 2603

:( rm is so dangerous, no rational person would believe it or accept it. I don't know how I've avoided any major mishaps deleting whole directories with a typo. I keep whole-disk snapshots and backups, and I have had to recover accidentally deleted files from snapshots a few times. (I trust you know...
by TMC
Sun Mar 22, 2020 12:22 am
Forum: Q&A Discussion
Topic: "RPG file appears to be corrupt (bad header)"
Replies: 4
Views: 535

Ah OK, it's not strange that programs freeze while they compete for harddisk access. You aren't the first person asking for help with a corrupt file who didn't know about autobackups. The only hint in the engine is the brief message when you save, "Saved, and copied to autobackups" (which ...
by TMC
Sat Mar 21, 2020 12:20 pm
Forum: Q&A Discussion
Topic: "RPG file appears to be corrupt (bad header)"
Replies: 4
Views: 535

Yes, every time you save the game (not just when quitting but also "Save and continue"), the .rpg is also copied to autobackups. It's probably also possible to recover data out of that corrupt .rpg since it doesn't sound like it's completely empty. I could take a look if you want, but basi...
by TMC
Fri Mar 20, 2020 7:10 am
Forum: Q&A Discussion
Topic: 60 FPS!
Replies: 4
Views: 596

Did you hear that a few months ago someone came by wanting to record a Let's Play of Alien Squatter, but complained that the game was running at a low framerate. They didn't want to do it before the game gets upgraded to 60fps. The only other thing to consider are slice and camera movement/velocity ...
by TMC
Thu Mar 19, 2020 1:27 am
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7471

I thought you were going to say that you removed none nodes in order to remove "variable" and "subscript", which can't be put in the hsz. They need to be removed so that the correct number of children is known for every node in compile_recurse. I think a variant of your previous ...
by TMC
Wed Mar 18, 2020 7:58 am
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7471

Oh, right, I forgot that t_NAME doesn't handle :, but it can: def t_NAME(t): r'[a-zA-Z_]([a-zA-Z0-9_ ]|:(?!=))*' t.value = t.value.replace(' ', '').lower() t.type = reserve...
by TMC
Tue Mar 17, 2020 3:39 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7471

Ah, an example of a script name starting with "do ". Actually, I think that's going to be far more common than identifiers starting with any other reserved word, so I guess "do" could be brackets-mandatory. Or use "do:" syntax instead... it's not python syntax, but it's...
by TMC
Tue Mar 17, 2020 3:32 am
Forum: Game Discussion
Topic: Android google-play compat status thread
Replies: 73
Views: 10969

Did you check the private app files ("persistent storage"/getFilesDir()) directory for it, which AFAIK is unreadable unless you rooted you phone? That's not the same as the data directory where the .rpgdir is extracted to. Even when the app is installed on external storage, the files dir i...
by TMC
Mon Mar 16, 2020 4:55 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7471

Yes, the parsed AST for baconthulhu.hss (and plotscr.hsd) looks great, as far as it works! And the grammar is a lot more straightforward and makes more sense to me. I see you've been working on hspeak_gen.py too. BTW, I just noticed you replaced the original lines from compile_recurse: if kind in &a...