Messages - Asudem [ switch to compact view ]

Pages: prev1 ... 11 12 13 14 15 [16] 17 18 19 20 21 ... 27next
76
Not a response on your inquiry, but general food for thought on such requests.  It might be better for a more targeted inquiry, and definitely good to mark your link with NSFW.  That is just because it is a mixed audience, and it's good to be mindful of that, more than anything wrong with the fact that you're asking, or the subject matter of it.

This might also be a reason that you might not get the replies that you want, as the usual suspects might not fall into the categories of wanting the tracking on their machine as they work on such a project.

Just an FYI.  Best of luck with your efforts!

Good call, thank you for that. I've been banging away at some Javascript and as it turns out, if people would like to test their scripts, they can do so in a non-NSFW enviironment here: https://yyanx.github.io/CB-TestBed/

I'm still learning the ins-and-outs of Javascript and boy, I didn't realize how much code you have to compact in order for things to work correctly.

EDIT: Here is my code so far:
Spoiler
//Variables
var setupComplete = false;
var setupTime = 2 * 60 * 1000;
var playCost = 50;
var voteCost = 10;
var voteTime = 5 * 60 * 1000;
var tipTotal = 0;
var winnerFlag = false;
var currentTip = 0; var cbWinner = 'No one yet!'; var lastPrize = 'Nothing';
var players = [{cbuser:cb.room_slug, message: 'Initial Card Setup', index: 1, votes: 0}];
var currentlyPlaying = [cb.room_slug];

//Initialize CAH
function init()

{
     //Initial Notice
     //Let users know the game has started
     cb.chatNotice('Chaturbate Against Humanity has begun!', '', 'gold','red', 'bold', 'lightblue');
     
     //Init Black Card
     setBlack();
     
     //Set Broadcaster Card
     players[0]['message'] = whiteCard();
     
     //Room Enter
     //Inform new users of the current App playing
     cb.onEnter(function(user) {
         cb.chatNotice('Welcome ' + user['user'] + '! We are playing Chaturbate Against Humanity! The rules are as follows:' );
     });
     
     //Timed Setup
     //Users are given X minutes to add a white card
     //cb.setTimeout(Setup, setupTime);
     
     //When User Tips
     cb.onTip(userTipped);
     
     //When User Chats
     cb.onMessage(OnMessage);
     
};

//Set Black Card
//Set the room topic to the CAH Black Card
function setBlack()

{
     //Change Room Subject
     cb.changeRoomSubject('[Black Card] #CAH');
     
};

//Handle Tip
function userTipped(tip)

{
     //Wait for Players
     if (players.length < 2
     )
     {
          //Check for new tip
          //White Card Tip
          if (tip['amount'] >= playCost
          )
          {
               //Add White Card
               //Run addUserCard
               addUserCard(tip['from_user']);   
               
          }
          else
          {
               //NO
          };  //end of IF [White Card Tip]
         
     }
     else
     {
          //Enough Players
          //User Already Played?
          if (cbjs.arrayContains(currentlyPlaying, tip['from_user'])
          )
          {
               //YES
               //Apologize
               cb.sendNotice('Sorry, you are already playing the card: ' + getCard(tip['from_user']) + '. You cannot play more than one card.' , tip['from_user']);
               
          }
          else
          {
               //NO
               //Add card to the new payer
               //Add New Card
               addUserCard(tip['from_user']);   
               
          };  //end of IF [User Already Played?]
         
     };  //end of IF [Wait for Players]
     
     //DEBUG - # Users In Play
     cb.log(players.length.toString());
     
     //DEBUG - List All Players
     
     //Loop Through Players
     for (var i=0;i<players.length;i++
     )
     {
          //Display Players
          cb.log('cbuser: ' + players[i].cbuser + ' message: ' + players[i].message + ' index: ' + players[i].index + ' votes: ' + players[i].votes);
         
     };  //end of FOR [Loop Through Players]
};

//Add White Card
function whiteCard()

{
     //Get Random White Card
     return 'Random Card';
     
};

//drawPanel
function drawPanel(tipTotal)

{
     //TRUE
     if (winnerFlag
     )
     {
          //YES
          //Determine the game's winner
     }
     else
     {
          //NO
          //Just redraw the panel
     };  //end of IF [TRUE]
     
     //Code
     cb.onDrawPanel(function(user) {
         return {
             'template': '3_rows_of_labels',
             'row1_label': 'Tip Received / Goal :',
             'row1_value': tipTotal,
             'row2_label': 'Winner:',
             'row2_value': cbWinner,
             'row3_label': 'Prize Won:',
             'row3_value': lastPrize
         };
     });
     
};

//Get Reward
//Give the user a reward for having the best card.
function getReward()

{
     //TRUE
     if (cbWinner == cb.room_slug
     )
     {
          //YES
          //Looks like the model won this time
     }
     else
     {
          //NO
          //Reward the user for winning!
     };  //end of IF [TRUE]
     
};

//Get User Card
function getCard(user)

{
     //Loop Through Players
     for (var i=0;i<players.length;i++
     )
     {
          //Find the User
          if (players[i].cbuser == user
          )
          {
               //YES
               //Return the Card
               return players[i].message;
               
          }
          else
          {
               //NO
          };  //end of IF [Find the User]
         
     };  //end of FOR [Loop Through Players]
     
};

//On Message
function OnMessage(msg)

{
     //HODOR
     msg.m = 'HODOR';
     
};

//Add User Card
function addUserCard(user)

{
     //Code
     var userMessage = whiteCard();
     var card = {cbuser: user, message: userMessage, index: players.length + 1, votes: 0};
     players.push(card);
     currentlyPlaying.push(user);               
     cb.sendNotice('Your white card is: ' + userMessage, user);
     
};

//Start Chaturbate Against Humanity
//Let's get on with it already!
init();


77
The dilemma I run into is the desire to try some templates on one hand, and the desire to avoid tools that produce unreadable html on the other.  I am not a web programmer, much less designer.

But one way to get some structure without paying may be to look at some of the free web page editor/designer tools that come with templates.

I have not even installed RocketCake yet.  But the description is intriguing.  It may be worth a look.

But I agree.  Programmers often make lousy "super users."  They tend to see the program from the inside instead of the UI.

Thank you very much for the suggestion, which looks absolutely worth checking out!

Something I discovered this morning is Joomla! which appears to be a pretty elegant solution, however I am dreading setting it up on my amazon cloud server, but if it's really worth a shot it's worth a shot.

78
Greetings all,

There is an online adult-entertainment oriented site called Chaturbate. It is where users pay to see webcam models to perform adult related activities by tipping with a virtual currency that the model can redeem for income. The models rely on user created javascript programs to control how much services will cost for an amount of tokens. Most of these programs count up to a goal to which all the users of the video chat room contribute by tipping tokens. However some programs become more complex and interactive, such as tipping certain amounts of tokens to reveal prizes on a keno board. Some even go as far as emulating Battleship. However, I have been approached by a friend of mine who is also a model on the site to create something new and different for her to interact with her fans. I thought consulting the Snack board of DonationCoder might help inspire me to create something using Chaturbate's API.

They even have their own sandbox servers that the apps can be tested on. As always, however, snacks must be specific in their idea requests: I want a basic Cards Against Humanity clone with a slight twist. A user tips an amount determined by the model's input to draw a white card. After so many people have drawn the white cards, a black card and all the white cards are shown to the chat. The chat then votes by tipping an randomly assigned amount to each answer and the amount of votes by the end of a timer countdown wins. The winner is revealed in the DrawPanel along with a randomly selected prize.

Any suggestions or working examples people could post would greatly be appreciated.

79
Greetings everyone,

I hope you're all familiar with the card game Cards Against Humanity if you've opened this topic. If so, boy are you in luck! I have started a private Pretend You're Xyzzy server which will allow any DonationCoder members play against eachother!

The server is running Apache Tomcat 9 Version 9.0.0.M4, Mar 12 2016, and uses a PostgreSQL database which allows remote access.

If anyone would like to help develop an application to add new cards to the database remotely we can create our own custom DonationCoder.com card deck! I will give you the remote password information via the messaging system.

There was a built in admin system that was disabled by default. I re-enabled it and added my IP to the "OK" list and I can now create custom CAH decks!

To add custom DonationCoder.com cards, click here and use "DC"  as the watermark.  :D

80
Developer's Corner / Designing Personal Sites - Programming POV
« on: May 01, 2016, 11:02 AM »
Greetings all,

So I have taken the plunge to host my own site to beef up my resume, and I've run into a little bit of a problem. I am a coder, and not much of a designer.

Right now, I'm throwing code at my website and seeing what sticks based on my own personal tastes. I could go on Fiverr and get some designs by paying someone else, but honestly that just doesn't feel as personal.

What I'm asking is if there's any rules you guys follow for UX and design as a programmer? Sometimes what makes sense and is logical to us isn't always the case for others, so I'd like to see what kind of feedback I can get here.

Any help is greatly appreciated!  :D

Pages: prev1 ... 11 12 13 14 15 [16] 17 18 19 20 21 ... 27next
Go to full version