Commit 872810e
committed
improve rogomatic game log use, set good game level, set screen delay
Renamed the game log file "roguelog" to "gamelog".
Moved `ROGUELOG` define from out of `install.h`, and into `types.h`
and renamed it `GAMELOG_FILENAME`.
Added `gamelog_path[]` to `config.c` to hold the game log path.
Changed `set_rgmdir()` in `config.c` to also set `gamelog_path`.
Changed uses of `ROGUELOG` define into using `gamelog_path`.
Changed meaning of the `-e` command line
Improved `set_rgmdir()` in `config.c` to use the `form_prefix_path()`
function where applicable.
When renaming the gamelog file at the end, save it under the rogomatic directory.
Improved `rogue_log_open()` in `getroguetoken.c` to
avoid reopening the rogue log twice.
Improved `rogue_log_close()` in `getroguetoken.c` to
avoid using a NULL `fecho`.
Improved `rogue_log_write_command()` in `getroguetoken.c` to
avoid using a NULL `fecho`.
Improved `rogue_log_write_token()` in `getroguetoken.c` to
avoid using a NULL `fecho`.
Removed `GOODGAME` from `install.h`. Added `${GOODGAME}` make variable to `Makefile`.
Set (kept initial value) the default `${GOODGAME}` in `Makefile` to 18.
Added `goodgame` variable to `config.c`.
Added `-G goodlvl` to command line to change the good game level value.
Added `-G goodlvl` to `run_rogo.sh` to support change the good game level value.
Improved the format of the usage message for `run_rogo.sh`.
Changed `VERSION` in `run_rogo.sh` to "1.3.1 2026-07-11"
Added `-G goodlvl` to `rerun_rogo.sh` to support change the good game level value.
Improved `rerun_rogo.sh` to search for executables `run_rogo`, `rogomatic`,
`player`, and `rogue` on each run cycles.
Added `-Z` to prevent `rerun_rogo.sh` search for executables anywhere other
than the `$PATH`.
Improved the format of the usage message for `rerun_rogo.sh`.
Added detection of SIGHUP of `run_rogo` to `rerun_rogo.sh`.
Changed `VERSION` in `rerun_rogo.sh` to "1.2.1 2026-07-11"
Don't **NOT** slow down in `sendcnow()` in `io.c` even more when reaching
dungeon levels lower than 12, instead keep the same microsecond sleep
schedule while in the dungeon.
Removed `USLEEP` from `types.h`. Added `${USLEEP}` make variable to `Makefile`.
Set (kept initial value) the default `${USLEEP}` in `Makefile` to 14000.
Added `usleep_usec` variable to `config.c`.
Added `-U usec` to command line to change the microsecond sleep value.
A `-U 0` will disable the microsecond sleep.
Pause 2.5 seconds in `main()` in `main.c` when a termination message is displayed.
I.e., pause 2.5 seconds on rogue death.
Removed to `NEWROGUE` from `install.h`.
Removed code in `setup.c` code that used `NEWROGUE`.
Removed `ROGUE` from `install.h`: only '${ROGUE} in `Makefile` is needed.
Simplify compile lines by only defining `ROGUE` in for `setup.o`.
Removed to `LOCKFILE` from `install.h`.
Improved how `unstuck_player.sh` finds the rogue process, and finds the
player process to SIGHUP if the player process appears to be stuck.
Improved `unstuck_player.sh` to no longer use `killall(1)`, but rather the
args gathered by a `ps(1)` command.
By default, `unstuck_player.sh` will ignore processes using `/var/tmp/rogomatic`.
Added `-A` to allow `unstuck_player.sh` to unstuck processes using `/var/tmp/rogomatic`.
Changed `unstuck_player.sh` to wait 0.5 seconds between delivering a SIGHUP to
a rogue process before trying to deliver a SIGHUP to the player process.
Added `-z loop_sec` to set the length of time to detect a CPU bound player loop.
By default, `loop_sec` is 256 seconds based on a 28 hour `rerun-rogo` run
where the longest level was slightly less than 50.5 seconds.
Improved `levellog_append()` in `debuglog.c` to avoid writing successive log entries
into `lvllog` for the same dungeon level. The exception is when the player is
exiting because rogue exited.
Improved `unstuck_player.sh` to detect a CPU bound player loop when the `lvllog` file
has not been updated for 32 seconds.
Changed `VERSION` in `unstuck_player.sh` to "1.1.0 2026-07-12"
Simplified most object file builds by removing unneeded defines in the compile line.
Change `-a secs` recommendation in `rogomatic(6)` and `README.md` to 4.5 seconds.
Updated `rogomatic(6)` man page according to the above.
Changed `VERSION` in `setup.c` to "14.2.8 2026-07-13"1 parent 51dca22 commit 872810e
7 files changed
Lines changed: 816 additions & 176 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
286 | 288 | | |
287 | 289 | | |
288 | 290 | | |
| |||
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
317 | 364 | | |
318 | 365 | | |
319 | 366 | | |
320 | 367 | | |
| 368 | + | |
321 | 369 | | |
322 | 370 | | |
323 | 371 | | |
324 | 372 | | |
325 | 373 | | |
| 374 | + | |
326 | 375 | | |
327 | 376 | | |
328 | 377 | | |
329 | 378 | | |
330 | 379 | | |
331 | 380 | | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
332 | 396 | | |
333 | 397 | | |
0 commit comments