From: Erik V. <eri...@xs...> - 2011-03-01 23:22:44
|
Rick, Your request is quite sensible, and I fully sympathize with it (and it *has* been requested before), but unfortunately it is hard to achieve in Rails as it is. When (re)playing a game, Rails creates a lot of objects in memory, and currently there is no easy way to clean that up. Starting another game in the same Rails run is not far from being achievable, but the memory space of the old game would be wasted. Thinking about it, what might be doable without too much effort is to enable loading a saved file that represents a later stage in the *same* game. Rails could do a check of the actions in the saved game against the actions currently in memory, and get on as long as these are identical, finally picking up any extra actions in the saved game file. If I understand you correctly, that would help you out in the case you describe, right? Erik. > -----Oorspronkelijk bericht----- > Van: Rick Westerman [mailto:wes...@pu...] > Verzonden: dinsdag 1 maart 2011 14:19 > Aan: Development List Rails > Onderwerp: [Rails-devel] No close/load ability? > > Hello list: > > I am back looking and using Rails after a year or so hiatus. One feature I find > missing (and that I find strange that no one has made a feature request for) > is the ability to close the current game and open up another game without > having to quit and restart Rails. So I am wondering if I am missing something > obvious. Is there a way to load in a game without having to quit Rails? > > What is really bring this to the fore for me is that a buddy and I are playing > two-player 1889 via putting our files into Dropbox. When we are both on line > then we can get a bunch of moves done but are having to quit Rails between > moves. In other words I find myself doing: > > 1) Start Rails > 2) Load in the current game file, do my move, save the file. > 3) See via Dropbox that my buddy has done his move. > 4) Quit Rails. Repeat starting from #1. > > What would be preferable is: > > 1) Start Rails > 2) Load, do move, save as in #2 above. > 3) See my buddy do his move. > 4) Repeat starting with #2; i.e., no quit/start of Rails > > Thanks, > > -- > Rick Westerman > wes...@pu... > > ---------------------------------------------------------------------------- -- > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |