Commit Graph

118 Commits (a5b85bbe5a2f430a19433faf06ac80df195fc012)

Author SHA1 Message Date
troido a5b85bbe5a properly clean up after crash
put cleanup in finally block so it happens no matter the crash
this should prevend scrambled lines all over the terminal
2018-05-23 21:45:51 +02:00
Jake Funke 8e34a29b34 Merge pull request #9 from jmdejong/tempfile
dump safely by writing to tempfile
2018-05-23 12:26:12 -07:00
troido d0bc57226a dump safely by writing to tempfile
First write all the dump to a temporary file.
Rename temp file to actual file name when done.
This prevents savefile corruption when botany crashes during write.
2018-05-23 21:21:50 +02:00
Jake Funke cd25d0a69d Merge pull request #8 from jmdejong/colourfix
don't try to use colours if unsupported; fix #7
2018-05-23 12:20:40 -07:00
troido 484981f5de don't try to use colours if unsupported 2018-05-23 21:03:20 +02:00
Jake Funke 09b18e862d updated todos 2018-05-21 18:00:53 +00:00
Jake Funke 70aa58a091 Update readme 2018-04-24 17:49:25 +00:00
Jake Funke 130b04e21b Correct water bar position 2018-04-24 17:47:19 +00:00
Jake Funke 864a33215a Update instructions 2018-03-14 21:42:10 +00:00
Jake Funke ce268c0609 Prevent exploitation of visit feature 2018-03-13 18:03:57 -07:00
Jake Funke b9ef7c31bb Block user from visiting self, fix guest watering bug 2018-03-12 14:35:42 -07:00
Jake Funke e6e8778dfb fixed art bug and update readme 2018-03-11 16:36:55 -07:00
Jake Funke 3b802dc931 Fixed water points bug 2018-03-11 15:51:11 -07:00
Jake Funke a74d257506 File permissions, optimized db access 2018-03-11 15:44:10 -07:00
Jake Funke f716b4ab96 added unix backspace 2018-03-11 15:10:07 -07:00
Jake Funke eed6e61199 Cleanup and revisions 2018-03-11 14:30:10 -07:00
Jake Funke 2644370a40 Removed debugging and added clear weekly users cronjob 2018-03-11 14:23:00 -07:00
Jake Funke d22b7d4b33 Weekly visits now held in db 2018-03-11 13:46:45 -07:00
Jake Funke 105a95f92e visitor queue handled 2018-03-07 23:31:00 -08:00
Jake Funke 55ce486dee Can check visitors now 2018-03-07 23:07:32 -08:00
Jake Funke 2b8224a4b2 Merge branch 'selfsame-master' 2018-03-06 17:40:25 -08:00
Jake Funke 539c162bb7 Add pachypodium 2018-03-06 17:40:07 -08:00
Jake Funke 7e72c97928 Merge branch 'master' of https://github.com/selfsame/botany into selfsame-master 2018-03-06 17:39:16 -08:00
selfsame 1a0c3136cf pachypodium 2018-03-04 02:20:33 +00:00
Jake Funke 0665ba3506 water handling 2018-03-02 21:20:29 -08:00
Jake Funke 5e08be5be6 Added template file for users to create plants 2018-02-28 18:27:58 +00:00
Jake Funke f29c8d5696 Turn off debug mode 2017-09-25 21:39:00 +00:00
Jake Funke fba9bacf07 Update data structures 2017-09-21 14:29:11 -07:00
Jake Funke d24c52277a Update readme 2017-09-20 20:03:48 +00:00
Jake Funke e20a219cf6 Merge branch 'master' of https://github.com/jifunks/botany 2017-07-19 19:11:06 +00:00
Jake Funke 2696a9d61d Decrease mutation rarity and reformat garden printing 2017-07-19 19:10:55 +00:00
Jake Funke f46bf8de9b Update README.md 2017-06-23 09:45:17 -07:00
Jake Funke b4c4c115df Update README.md 2017-06-23 09:44:28 -07:00
Jake Funke 3816648d35 Merge pull request #5 from jmdejong/patch-1
Ignore curs_set(0) error
2017-05-29 10:09:43 -07:00
jmdejong f385b5601b Ignore curs_set(0) error
~sui has mentioned that botany always crashes for him with the stack trace:  
    Traceback (most recent call last):   File "/home/curiouser/botany/botany.py", line 543, in <module>     botany_menu == CursedMenu(my_plant,my_data)   File "/home/curiouser/botany/menu_screen.py", line 19, in __init__     curses.curs_set(0) _curses.error: curs_set() returned ERR

According to the docs, an error will be returned when the terminal does not support the visibility requested.
Appearently hiding the cursor is not supported in ~sui's terminal (cmder).

To keep botany as accesible as possible I suggest to ignore this error
2017-05-28 21:44:08 +02:00
Jake Funke 934c632b13 Lowered mutation chance 2017-05-26 00:06:27 +00:00
Jake Funke 3fe1a8283c Plant death is now sadder 2017-05-22 19:06:57 +00:00
Jake Funke 32441bb46e Merge branch 'master' of https://github.com/jifunks/botany 2017-05-09 19:32:24 +00:00
Jake Funke b3aef701f5 Update harvest confirmation 2017-05-09 19:32:08 +00:00
Jake Funke 35b20935dd Update README.md 2017-05-05 10:25:08 -07:00
Jake Funke 64da3c0357 Update README.md 2017-05-04 17:33:43 -07:00
Jake Funke f33f2ae0bc Update README.md 2017-05-04 17:33:22 -07:00
Jake Funke e557dbab8f Generation system updated, readme updated 2017-05-04 18:49:29 +00:00
Jake Funke 7c2282df5d Correct growth rate display 2017-05-03 23:43:58 +00:00
Jake Funke c7ede5e854 Implement bonus growth for generations 2017-05-03 23:21:43 +00:00
Jake Funke e0432f149f Add plant generations 2017-05-03 19:51:21 +00:00
Jake Funke 2786a46397 Update final stage art 2017-04-26 21:46:42 +00:00
Jake Funke 00fe6c2175 Update menu for new ascii display 2017-04-19 20:32:18 +00:00
Jake Funke e9a80ec6aa Add stage 3 plants 2017-04-19 20:24:44 +00:00
Jake Funke a7baf50055 Merge pull request #3 from jmdejong/master
Added more plant information to json file.
2017-04-18 11:09:26 -07:00