Randomization Generator...

Pages: 1, 2
free web hosting
Free Web Hosting, No Ads > General > Hosted Members Area

Randomization Generator...

nol
Ok, the title is a little...ya, anyways, I'm in desprate need for somebody to help me with this script im trying to write (dunno even where to start) I know exactly what i want, so ill tell you. But what I want to know if this could easily be done, and if so, how?

Ok, this is exactly what I want

A clan is created (finished this part of the script)
Now, the leader of the clan, can challenge a clan (this part I can do)
The leader of the other clan, can accept the challenge, when this is done, a randomization code is started. It randomizes two things, Map played on, and Gametype. Now, this is not actually starting a game or w/e. THis is for a halo 3 clan thing. It chooses from the gametype database i made, which gametype and which map. Then it displays You will play
Round 1: [gametype] on [map]
Round 2: [gametype] on [map]
Round 3: [gametype] on [map]

Now, I really don't need the random gametype part, as itll be like

Round 1: Team slayer on [random map]

etc, but for round 3 i'll need the random gametype. I'll probably keep the info on a table or something in mysql or w/e, and ill try and delete it when I can or something so ya. Is there anyway I can do this?

 

 

 


Reply

KansukeKojima
QUOTE


I believe that this should cover it... of course, you'll have to modify some of the general pieces of it to suit your needs... but on the whole, the idea itself should work.... I mean... you'll have to add a file writing section to the code, etc... you probably get the idea.

Reply

nol
hmm, do you think id be able to do a insert command? like...

i would randomize it, and then, it would insert it into the database? such as a registration code would? (not talking about login or anything) like do you get what I mean? Im wondering if that would/could even work. It would be somewhat complicated though. Not this portion, but displaying the information, however i think it wouldnt be too hard. I mean, it would just enter the data into rows right? hmm..thank you for that smile.gif if someone just has a script or could tell me what functions I could use to place this information into mysql, that would be great!

Reply

jlhaslip
Rough outline of a Normalized Database Schema I'd look at for this would be something along these lines"
CODE
Table - Map
      map id
      map name
      map info and description

Table - Gametype
      game id
      game name
      game info and description
      
Table - Clans
      clan id
      name
      description
      leader name
      email
      wins
      losses

Table - Challenges
      challenge id
      clan1 name
      clan2 name
      clan1 issue challenge date/time
      clan2 accept challenge date/time


Table - Games
      game id
      clan1 id
      clan2 id
      challenge
      game number
      game type
      game map
      score clan1
      score clan2


define the maps and gametypes
define the Clans
Clans issue challenges
Clans accept challenges

Randomly select 3 gametypes and maps --> this is where you need the randomization script

play the challenge and record the scores

Update the wins/losses


Would probably not need a whole bunch more than this to Admin the process, but some of the Reports might get a little hairy. Compound Joins, etc, but should be doable.

 

 

 


Reply

nol
hmm the biggest thing im having a trouble grasping is, would it be easier to have one database, for the whole site, and multiple tables, or many databases, for more organization. If i were to do the second one, would it work to have transfers from databases, and to connect to two different databases on one thing? I think I'll go towards the first one, where theres all the user info, clan info etc. Also, I can't grasp how I will show like the members in a clan. I don't really know at all how I'd do that, I like your set up jl, I might go with that, but I just don't see how I could work the members in a clan in. Unless I'd create a new table for every clan, which in that case that would take a lot of database space wouldn't it?

Also, the system will run on a HONESTY system. Where, both teams report the scores after all 3 matches have been played.

Clan 1
Round one: (scores)
Round Two: (scores)
Round three: (scores)

Clan 2
same thing

if something is clashing like the scores are different, a email will be sent (this I can probably do) and a administrator checks bungie.net for true game records. If one clan doesn't do the scores in within two hours of the first clan to put theirs in, it automatically goes as a win for the first team (or basically whatever they got)

Hopefully this might be a little more detailed when it comes to the outcome of a match. However, for the clan challenges. Basically, on the forums they post a topic, another clan accepts, and then the clan sends the other clan a clan invitation. The invitation will be a generated message, they say what time they want etc, and the other clan accepts. The clan challenge will show up on both clan's recent games, however outcome will be a - . Until the game is done, and over with. Then itll say W for win L for loss. When the clans do it, the same thing will show up next to recent games, next to the - itll say Details, itll show the following somewhat:

Round one: [Gametype] on [map] - [outcome here]
Round two: etc
Round three: etc

and basically that. Later I'll probably add where it deletes this info after 48 hours, and puts it in their record etc. Does this help you ?

Reply

KansukeKojima
another method.... depending on how complicated you need it to be... you could use flat-files... unless it needs to be really complicated... then don't use them.

Reply

jlhaslip
simply add a Member Table to the above layout with their Clan id in their profile

Reply

nol
QUOTE(jlhaslip @ Feb 14 2008, 09:32 PM) *
simply add a Member Table to the above layout with their Clan id in their profile

oooh thats sneeky little man....never thought of that, so what you mean, is like I add a table like...

clanmembers
id
clanid
username
rank

etc?

hmm thanks smile.gif hopefully i can get this randomization script working then. Haven't really tried it just yet.

Reply

jlhaslip
yes, like that.
google on datbase normalization to see how to create Tables properly for Databases.
Information should only be in a database once. notice that the clan Tables do not have a list of its members? the clanid is in the members Table row, so for each clan, just use the clanid to find its members. if the same information is in two places, you will likely have a problem ensuring the data integrity and also, duplicate information is avoided, so space is reduced.

Reply

nol
what do you think about like...members though like. Lets say, i have a usergroup table, and a clanmember title. Do you think it would be alright for this part, if I were to use usernames under the clan members, yet have a users table too for registered users? would that make much sense?

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Similar Topics

Keywords : randomization, generator,

  1. Css Frame Generator
    (0)
  2. Softfuse Password Generator 1.4
    (1)
    Generate strong passwords for your accounts, e-mail client, or system. Click Here To Download ....
  3. Form Generator
    (9)
    I am making a form generator like the one trap17 uses to make the code for website requests. well i
    have everything set up, i studied the code from the trap17 generator and learned from it, then i
    tried to make my own, but when i click the generate button, the code isnt filled out. if you would
    like an example please visit my website at www.notapplicable.rifehost.com/forms/wrf.php the
    problem is that it doesnt fill in the the answers. can anyone help? i will put credits on the
    affilates page and on the gen pages. Here is my code: (this is the form) Website ....
  4. Forms, Text Files, And Php For A Signature Generator.
    Help a little. (1)
    Hello everyone! I am in need of some code a for a signature generator I am making. I am using
    BuffaloHELP's code for the php file, now I am trying to improve that code by making a form in a
    html file that will have the user say what is on the sig! But now, I need help getting the form
    data that is posted by the user to get into that sig! There is a file, sig.txt, where that tells
    the php file what text will go on the sig. But how can I make the form data in the html file go into
    the text file so it will go onto the sig? You might want to read BuffaloHELP&....
  5. C Or C++ Easy Programming Generator
    You need a program? (6)
    Hi i just had a stupid question on how to program is C or C++. I would like to know if there is any
    program like Photoshop to create C codes or how to put them together. If someone could show me it
    would be great. I appreciate it as i love computers and want to be like a wiz at it and also
    everything related to it. I know that this is crazy and i have heard that from people they tell me
    you're a GFX person stay there but i want to explore. Thanks if helped.....
  6. Gmail - Free Email Signature Graphic Generator
    Create one for you now, it's free, cool and usefull for anti-spam. (7)
    Gmail - Free Email Signature Graphic Generator Wouldn't you like an graphic with your Gmail
    account? Wouldn't you want a graphic like this one? If you do want to create one for
    yourself, for free, and not only for gmail, but also for all of the other free popular free email
    services like msn, yahoo and other, now it is too easy to get it, just visit the below link, insert
    you email adress, select the color of text and background color, and boom, voilá. Plus, it also
    offers the link for you to use it on forums, blogs and websites, so like that, the image won....
  7. Do You Know Power Cash Generator
    help me (3)
    i just found Power Cash Generator (http://www.powercashgenerator.com) nd this is my link:
    http://www.powercashgenerator.com/ i dont to register u by my link but i want to know is it true?
    /huh.gif" style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" /> Absolutely no
    referral link allowed. Review our forum rules. Do not use slang, such as "U" instead use "you" ....
  8. Free Email And Forum Signature Icon Generator
    (6)
    This site offers Email and Forum Signature Icon Generator with more than 1500 Different Styles to
    Choose from. QUOTE http://www.needasig.com/ The best part of this service is that they
    provide the links for the Userbars, so you save a lot of bandwidth. No registration required.....
  9. Yahoo Submission Feed Generator
    For Site Submit in yahoo, need url feed. (5)
    For submitting a site on Yahoo! search engine for FREE, we have to submit a feed which explains
    our site in detail. Is there any Yahoo! Search Submit Free Feed Generator sites available? If
    you are familier with any, please mention them in here. Hopping that a positive response will get
    from others.....
  10. Random Password Generator (updated With New Features)
    Program I Made For Passwords (10)
    Well I got bored last night during the 6 hour trip from New York to New Hampshire so I decided I
    mine as well make a program I could use. (Although I started it in last 20 minutes of ride). Anyway
    I created a Random Password Generator that allows you to choose how many characters long you would
    like it to be, and it will create a password of numbers, letters (upper and lower case) of however
    long you would like. It then has a copy and paste button. Please tell me what you think. By the
    way this is only for windows. Of course this probably has been done but oh well. ....
  11. Free Report - Secret Spider Generator
    Is the Secret Spider Generator Realy Worth It? (3)
    I have just put together a free report entitled " Secret Spider Generator Is NOT A Secret! " and
    you can download it for free. It is a must read report. I have thoroughly reviewed it and many
    other similar-type software. It is very informative and will show you why the "so-called" internet
    guru's are getting so rich. It gives you a small glimpse inside their minds and makes you think
    "scam". You can also get it here ....
  12. Esigs-the Magic Sig Generator
    Random Sigs (3)
    Hey guys what do you think of my new sig generator This signature reveals out many things doesnt it?
    It reveals IP,OS amd Browser. Even you can use this I have made the complete design of the websites
    and it is no forum though it has a supportig one. The user can have his own text and will get
    the url as http://esigs.be/username.jpg My username is http://esigs.be/pulkit.jpg Also he can
    choose his own image from the 22 images Have a look at it : http://www.esigs.be There are 22
    user Random images are : ....
  13. Sig Generator Not Wokring On Trap17 Or Website.
    Sig generation, how to amke it more compatible. (2)
    It seems as if these Sig Generattors arent that compatible.
    http://www.finalchapter.trap17.com/sigrotator/ is mine right there but I cant link it under my
    signature or even link it on my own forums here: www.thefinalchapter.trap17.com/index.htm. I have no
    idea why. Help is appreciated. Im just really curious if this was meant to be disabled because of
    security reasons.....
  14. Dynamic Image / Signature Generator
    a simple code to change text on an image (12)
    In search of dynamically changing quote, saying or all other types of text on an image I came across
    a code that I have modified to fit my initial usage. This procedure requires two files and short
    knowledge of PHP. If you are familiar with Trap17's sig rotation code you will understand this
    procedure very fast. Code 1: dynamic_sig.php (you can rename this to index.php and you'll see
    at the end why) Code 2: a simple text file named anything (I will call it name.txt ) Code 1
    CODE <?php header("Content-type: image/png"); �....
  15. Embedded Media Player Code Generator
    in simple 3 steps (3)
    QUOTE http://cit.ucsf.edu/embedmedia/step1.php Check out that link people . Just found
    that very useful page , so thought il share it with all u people . /ph34r.gif"
    style="vertical-align:middle" emoid=":ph34r:" border="0" alt="ph34r.gif" /> /ph34r.gif"
    style="vertical-align:middle" emoid=":ph34r:" border="0" alt="ph34r.gif" /> /ph34r.gif"
    style="vertical-align:middle" emoid=":ph34r:" border="0" alt="ph34r.gif" /> peace ....
  16. Flash Button Generator
    nice free flash button (3)
    Do you want use nice flash buttons on your site /cool.gif' border='0'
    style='vertical-align:middle' alt='cool.gif' /> If yes then check this out
    http://www.flashbuttons.com/ This site will generate nice flash menu for you in few simple
    steps(very easy) +You can choose buttons from over 60 styles +Some button have color futures +You
    can choose background color +You can choose number of Buttons Per Line +Your manu can have up to 30
    buttons +Possibility link to I-Frame +Possibility for custom JavaScript actions to your buttons +No
    registration needed (you can signu....
  17. Metamagic
    Doorwaypage generator + metatag builder and analyser (1)
    MetaMagic QUOTE A compact meta tag builder and analyzer as well as a doorway page maker and
    preview tool designed to provide ease of use for beginners and full functionality that more advanced
    users demand. Build basic and advanced meta tags and copy to Windows clipboard, save as a text file,
    or insert into your web page, build and preview a doorway page to suit the look of your site using a
    number of options and save the doorway page as an HTML document, analyze any HTML document for
    proper title, description, keywords meta tags, etc. and receive suggestions for ea....
  18. Google Sitemaps Generator
    XML listings of content you make available on your web serve (0)
    Sitemap Generator Sitemap Generator can create sitemaps from URL lists, webserver directories, or
    from access logs. If you are interested in helping with this project, please visit
    http://sourceforge.net/projects/goog-sitemapgen . This is very usefull tool. visit this link:
    Description: http://www.google.com/webmasters/sitemaps/...-generator.html Download:
    http://sourceforge.net/projects/goog-sitemapgen Visit the first link and see the power of this
    awsome tool. Hope you find this one usefull....
  19. Css Layout Generator - *free*
    Generate a CSS layout for your site (5)
    pretty powerful css layout generator. /smile.gif' border='0' style='vertical-align:middle'
    alt='smile.gif' /> and it's freely available online.
    http://www.csscreator.com/version2/pagelayout.php QUOTE To create your layout select the
    structural elements your site requires (header, footer, columns). Then specify a size in the field
    provided and choose a background color from the color chooser below. The color chooser changes
    values as you move your mouse along a row. To set a value click on the color row to release click
    again. Once the color in the box is th....
  20. Php Formmail Generator
    Great tool to build cool php web forms (8)
    PHP FormMail Generator QUOTE PHP FormMail Generator - A tool to create ready-to-use web forms in
    a flash. Once the form has been generated, you have a full functional web form. Including error
    checking of required fields, email address validation, credit card number & expiry date checking,
    multiple attachments sending, and email auto responding. Features: Unlimited fields of form
    All standard type of fields, plus lots of template, such as credit card number & expiry date...
    List/menu builder for multiple lists of Radio Buttons, Selection Menu, Check Box. Err....
  21. Flash Menu Generator
    (3)
    Hi does anyone have or know of a Free Flash Menu Generator? Daniel....
  22. Photo Gallery Generator
    What service/software do you use? (2)
    Just wondering what program/service you use to generate online photo galleries? I personally use a
    neat little program named Jalbum , a web photo album generator I downloaded for free. It can run on
    any platform and there are tons of gallery styles to choose from. How about the rest of you out
    there?....
  23. I Need A Database Generator
    Or something like that... (2)
    Ehrm the title and description don't describe it that good. I am making a info site for a
    MMORPG-game, and want to make a monsters list. On the first column, I have the levels On the second,
    the monster name etc Clicking on the name or level or whatever, it will show more info (preferably
    a new page, but a dropdown menu or something like that is okay too) Well, I don't know how to
    describe it, I hope you understand what I need anyway... /tongue.gif' border='0'
    style='vertical-align:middle' alt='tongue.gif' /> Preferably a generator (they're more easy to....
  24. Online Quiz Generator
    This is very cool (3)
    This is a handy little thing that will help you make one of those online personality quizzes like
    "What kind of cheese are you?" on your own webspace.
    http://www.founderweb.com/quiz_generator/page1.php Just just need to go in with an outline of what
    you want to do, fill in the form and it will output the code that you need to put on your site.....
  25. Drop Down Menu Generator
    ITs free (4)
    hi Every one I find This at Search and i think its good to posting here for help webmasters for
    design sites more software use for this job but its not free but it is free ::
    http://javascript.internet.com/generators/...-down-menu.html ....
  26. Php Form -fantastico Form Generator
    Need overview re: How To use & setup (0)
    Hey Guys, Can anyone give me a quick overview on how to use the Fantastico FORM generator script in
    CPanel. Need to set up several forms for website user input. Specifically, HowTo: 1) compose the
    form ; 2)Where to put the form (ie. in which folder etc.); 3) how to link the form to buttons on my
    other webpages; 4) output the form contents to e-mail boxes. Looked/searched for info &/or a
    tutorial but can't find one. Anybody. Thanks RGPHNX....
  27. Random Message Generator
    (4)
    Here comes another one of Inspired's "amazing" PHP scripts. This little script lets you display
    a random message every time the user visits that particular page. It's not really that useful,
    but it does make the page a bit more "dynamic". CODE $randMsg = array("Hi,
    welcome to my page!", "Hey you! Thanks for visiting!", "Bonjour, mon
    ami!", "So, do you like the site?", "Come one, come all!");
    $MsgNum = count($randMsg); $MsgGenNum = floor(rand(MsgNum)&....
  28. Traffic Syndicate
    Traffic Generator (1)
    Traffic Syndicate has anyone here used them before? good or bad experience with them? i find their
    'syndicate downline' system is somewhat innovative and im not totally familiar with other
    traffic generators but the Syndicate isnt built based on alot of refers and when you browse the
    websites and earn credits you can also 'find' extra credits and little letters that spell
    out 'surfing' and you get a prize and stuff. so newayz just wondering if people have used
    the Traffic Syndicate before and their thoughts on it. edit: wow i just 'found&....
  29. Online Free Buttons Generator
    Very cool (4)
    Just go here: CODE http://www.buttongenerator.com/ ....
  30. Asp - Code Generator Wizard
    Very good (0)
    If anyone likes asp, or makes his websites in asp, just go here: They have this online code
    generator tools: Data Command Wizard Form Wizard Response.Write Wizard Meta Tag Generator CODE
    http://www.powerasp.com/code_wizards/default.asp They are very cool!....

    1. Looking for randomization, generator,

Searching Video's for randomization, generator,
Similar
Css Frame
Generator
Softfuse
Password
Generator
1.4
Form
Generator
Forms, Text
Files, And
Php For A
Signature
Generator. -
Help a
little.
C Or C++
Easy
Programming
Generator -
You need a
program?
Gmail - Free
Email
Signature
Graphic
Generator -
Create one
for you now,
it's
free, cool
and usefull
for
anti-spam.
Do You Know
Power Cash
Generator -
help me
Free Email
And Forum
Signature
Icon
Generator
Yahoo
Submission
Feed
Generator -
For Site
Submit in
yahoo, need
url feed.
Random
Password
Generator
(updated
With New
Features) -
Program I
Made For
Passwords
Free Report
- Secret
Spider
Generator -
Is the
Secret
Spider
Generator
Realy Worth
It?
Esigs-the
Magic Sig
Generator -
Random Sigs
Sig
Generator
Not Wokring
On Trap17 Or
Website. -
Sig
generation,
how to amke
it more
compatible.
Dynamic
Image /
Signature
Generator -
a simple
code to
change text
on an image
Embedded
Media Player
Code
Generator -
in simple 3
steps
Flash Button
Generator -
nice free
flash button
Metamagic -
Doorwaypage
generator +
metatag
builder and
analyser
Google
Sitemaps
Generator -
XML listings
of content
you make
available on
your web
serve
Css Layout
Generator -
*free* -
Generate a
CSS layout
for your
site
Php Formmail
Generator -
Great tool
to build
cool php web
forms
Flash Menu
Generator
Photo
Gallery
Generator -
What
service/soft
ware do you
use?
I Need A
Database
Generator -
Or something
like that...
Online Quiz
Generator -
This is very
cool
Drop Down
Menu
Generator -
ITs free
Php Form
-fantastico
Form
Generator -
Need
overview re:
How To use
& setup
Random
Message
Generator
Traffic
Syndicate -
Traffic
Generator
Online Free
Buttons
Generator -
Very cool
Asp - Code
Generator
Wizard -
Very good
advertisement



Randomization Generator...



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE