  drew Reformation Premium join:2002-07-10 Port Orchard, WA clubs:
·wavebroadband
| reply to Johnny Re: Which Vote count do you prefer??
said by Johnny :1) See if Chip already holds a current vote on somebody - i.e. the value of his VotedFor key is non-blank. I can't believe I didn't think of that. Right now I loop through ALL player's VotedBy arrays and check for the name. LOL.
I'm going to have to work in the setups with roles and night actions, but it's always a motivation/time thing. I'm getting .NET 2008 Express installed on the laptop and am going to be taking that to work  |
|
  yock TFTC Premium join:2000-11-21 Fairfield, OH
| reply to Johnny This is the mental process I went through when I wanted to build the web application that handled it all. Gomez put together a data model and some templates for code generation but I just didn't have the time or the knowledge to contribute interface code.
You now have this really killer app, but it's platform-dependent upon OSX. Drew is making progress on his Visual C++ Windows app, but that's another app limited to one OS. How can we take all of these individual contributions and make them into something everyone can use and enjoy? |
|
  muzscman Mr. President Premium,VIP join:2002-02-15 Florissant, MO clubs:
·AT&T U-Verse
| said by yock :This is the mental process I went through when I wanted to build the web application that handled it all. Gomez put together a data model and some templates for code generation but I just didn't have the time or the knowledge to contribute interface code. You now have this really killer app, but it's platform-dependent upon OSX. Drew is making progress on his Visual C++ Windows app, but that's another app limited to one OS. How can we take all of these individual contributions and make them into something everyone can use and enjoy? we can host it on muzscman.com
 |
|
  Johnny Premium join:2001-06-27 Atlanta, GA
·Comcast
| reply to yock You now have this really killer app, but it's platform-dependent upon OSX. Drew is making progress on his Visual C++ Windows app, but that's another app limited to one OS. How can we take all of these individual contributions and make them into something everyone can use and enjoy?
Well, I was at one point ready to do some Java learning, but decided to stick with Objective-C as there are so many things I still need to learn about the Cocoa API. You can call the Cocoa API from Java or from Python or from Ruby, but that still only runs on a Mac.
So all I can think of is to set the specs down to minimum (i.e., no night action code, no attempt to screen-scrape) and let someone who knows Java look at my code and Drew's code and just transliterate it. For the basic voting/unvoting it should not take long.
A decision will have to be made as to whether we want to support persistent game state (day, night, roles already generated or not, roster complete or not) across re-launch of the app. That is the most tedious part.
I do think the game flavor generation and role generation calls to random.org are simple enough that the Java port should include them. I used Cocoa's built-in NSURLConnection API, but even a shell call to curl would do the same thing. You call once to get the flavor, then again to get the roles, then plug the roles into array templates.
For games other than C9 or F11 or other pre-fixed setups, the role generation could just be set to read off an entered list of role names and randomize the list. I have not coded that but it wouldn't be a lot of work. I'd probably do it with a separate modal sheet that the user filled in with the role names and a button that said Randomize. Then it would add those to the Role field of the players that had already been entered.
The automatic timing countdown could be left out also. Mine isn't fully complete yet, but given an integer it counts down the hours to deadline and it preserves the count across launches. In the complete version it would go to random.org at the end of each Night and get the next day's duration, based on minimum and maximum set by the user on the UI. That's just about 5 lines of code.
Having written this thing twice now, I can help with logic, but I don't know Java and I don't have any interest in Web stuff. |
|
  drew Reformation Premium join:2002-07-10 Port Orchard, WA clubs:
·wavebroadband
| reply to yock Mine is Visual Basic .NET, not C++. That, by itself, would make it more difficult to translate to Java.
You know what's interesting? I think our local forum Mod is a Java developer. How about that?  |
|
  yock TFTC Premium join:2000-11-21 Fairfield, OH | Yeah, Gomez and I worked on the initial concept of a JSP app to manage all of this. It was just too much. I've been working on implementing what we worked on originally in a small Swing app, but that still takes time. |
|
  drew Reformation Premium join:2002-07-10 Port Orchard, WA clubs: | The one thing is that all of this could be implemented in PHP with a MySQL backing right? You could have a website and use it to hold the persistent data and be available from anywhere. |
|
  yock TFTC Premium join:2000-11-21 Fairfield, OH
| Maybe, but we can't host this thing off-site. At one point I had a subdomain here at DSLR, but I suspect it has been removed due to lack of use. Justin had some real concerns about having anything even remotely official-looking being hosted off-site and we all agreed that keeping it in-house was necessary. That's why I'm more hip to the desktop application route. |
|
  drew Reformation Premium join:2002-07-10 Port Orchard, WA clubs: | Hmmm, I was unaware that there were such concerns. |
|