i want to make a game for my friend so we can play online my own made game.
the game must be secuert
i want to have a highscore
it must be played on the server side(not like java script)
i must can make it
i can a bit of scripting i want to learn more about it but i dont now whice script sort is the best to use for this case
does anybody got a script sort for me to recement?
First off, are you sure you want to put in the time and effort to make this site? If you are, be aware this will take you 40+ hours to probably make the core, if you are talking text based. Do you understand php? If you answered yes to all of the above then I will help you. If you are making a non-text based game, if it is in java, lets see 1000+ hours, in c+, basic or any of those maybe 100-200 hours. I know everything in there except java and C+, if you want help tell me, but I won't teach you a programming language all together.
yes im sure i to take the time for it
i now how hard it is to program stuff but in the end it is it word
php i now a bit of and the same goes about delphi (7)
im thinking of a memory for example to make
that can be made in java i understand that u dont want to learn me everythink becaeuse it is just so much time in it (but i will go see the internet for some good tutorials and sites)
im in the starting fase of the game and im looking for a good program language on the serverside
so thats way the question.
i think if java or c+ is a good language there for it will we nice so u can(if u want) help me whit the game
well my 2 cents is that you should begin by making a text based game...they are really fun as long as you have an original ideea...but take care that it will take a lot of time and you should probably get some more people ...real programmmers to help you...at the very least you shall understand a little about game design...anyway...here is a good site for you...
http://www.gamedev.net/
ALl that you need to get you starting on your gaming programming attempts
thnx man
i looked around on the site it looks relay good.
but now i still dont now whiche one is the best program scrpit, java, c+ or anather one
my subjective opinion is that with c++ you can really create quality games....i don`t want to offend and java lovers as i haven`t dived in this subject yet...but from my personal experience c++ is a very powerfull programming language... after all if Ubisoft uses c++ for their games that must mean something...altough i must warn it is a hard path to follow....and will take alot of time to learn...
ow uses ubisoft c++ thats says enaug for me
i will go try c++ hopefull i will make the new BiA 
no, i will go see if i can get a book of c+ anywhere and somesoftware to use it
just one question: i can use the thinks i make for some online stuff what i can put on a website. like the games on http://www.funnygames.nl/ for example
Build a php text based before you even try making a C++ version. I spent 45 hours making a calculator with graphics and active images , also you could look around it at many angles, unfortunately, that 45 hours turns into a 1000 hour task to make it work around maps, trust me, if it is your first game make a text based, you could use liberty basic, or power basic, and make it a downloadable text based, but stay with text for your first game.
oke i think i get it
make an text base game with php and if that work good on c++ and then a the game i want
i now it will cost me a los of time to build those thinks but im willing to do that
srry to ask but the word downloadable means?
i think can be download but still running from the site
im i wrong?
That "downloadable" was a mistake on my part, I ment like using visual basic, to make a pure text game, so not playable on the webi, but I'd stay with php if you are willing. I'd help you alot with that, for free ofcourse
Anyhow, I reccomend starting to learn php from www.freewebmasterhelp.com read the php tutorial, figure it out, try making a form that saves multiple fields in 1 array, try it with varuibles to, output it with the item number, without, once you can do that, you are ready to start making a bit of the game. Now just mess around with databases. First use that site for another tutorial of php and mysql, then move to using the code that phpmyadmin gives you on querys, create a database table, allow users to login register, and clear the entire database from an admin panel, then you are ready to start working on the core of the game. BTW, that would be the login code. From then on I would help you with the core.
I would also like to learn C++ to make games. I am beginning to learn C++. Does anyone know any good sites that teach how to make a basic game is C++?
| raver wrote: |
anyway...here is a good site for you...
http://www.gamedev.net/
ALl that you need to get you starting on your gaming programming attempts |
try reading everything more carefully.... and one more thing...i don`t think that some people just realise what it takes to make a game....besides a huge number of hours you also need alot of man power. All of you OO freacks out there probably know that you must build classes for every little damn thing in a game....anyway...good luck to you all and can`t wait to play your demo`s 
haha
i dont think i can ever make a 3d game
those thinks are for the real pro pro people
but a textbase game must go good ofcourse u got every time a lot of bugs and stuff and it takes a very lot of time but that u get with ervery time of programming
i made for shool a game(sort of mario) and i watch in delphi i now how it is to program and howe hard it is sometimes that u dont need me to tell
Awsome, so want to use this post to work on the game, I think that is the best idea, I never check my e-mail. Anyhow, I will make a small base, that you can easily turn into a game if you want that 
jeah i think that is the best to use this topic for any futher questions from me or ather people who want to make somethink like this
if u can make a base for me that would be awsome man.
but (yes always a but:P) i wil get first the basic of c++ so that i now wat im doing.
i got already a book from the libery and some software to make it all working:)
u will be hearing of me
and thnx man for all the info u gave me already and that u will hopely will gave me in the futher
I got a small script that can be used to set a welcome message with bb code... It could be used for things like profiles, I need to fix the code first though... actually if somone can help here,
<?php
function bb2html($text)
{
$bbcode = array("<", ">",
"[list]", "[*]", "[/list]",
"[centre]", "[/centre]",
"[img]", "[/img]",
"[b]", "[/b]",
"[u]", "[/u]",
"[i]", "[/i]",
'[color="', "[/color]",
"[size=\"", "[/size]",
'[url="', "[/url]",
"[mail=\"", "[/mail]",
"[quote]", "[/quote]",
'"]');
$htmlcode = array("<", ">",
"<ul>", "<li>", "</ul>",
"<centre>", "</centre>",
"<img src=\"", "\">",
"<b>", "</b>",
"<u>", "</u>",
"<i>", "</i>",
"<span style=\"color:", "</span>",
"<span style=\"font-size:", "</span>",
'<a href="', "</a>",
"<a href=\"mailto:", "</a>",
"<table width=100% bgcolor=lightgray><tr><td bgcolor=white>", "</td></tr></table>",
'">');
$newtext = str_replace($bbcode, $htmlcode, $text);
$newtext = nl2br($newtext);//second pass
return $newtext;
}
?>
it is working only for lists, underline, bold, italic, and quotes, the rest seems to output the code wrong. http://mattdsworld.frih.net/editpage/edit.php that page edits, and sends the data to write.php. you can read the output on read.php only load read and edit.php files, the write.php will cause for possible errors, and resetting of the text.
your quoting seems to be messed up here:
| Code: |
"[quote]", "[/quote]",
'"]'); // <-- HERE
|
and in the same place on the html array[/code]
EDIT: IGNORE THAT, I AM SEEING THINGS!
still, i'd change it to this personally:
| Code: |
"[quote]", "[/quote]",
"\"]"); // <-- HERE
|
I'll keep looking...
Last edited by JustaMin on Fri Nov 25, 2005 8:49 pm; edited 1 time in total
but bold and quote work, it is the listed ones that don't..
Is center working? If so it's something to do with the closing tag - '"]' & '">'
Ok, centre isnt working cos you need to use the US (mis)spelling (
) 'center' in the HTML array...
I'm testing the script now, www.justaminute.me.uk/test.php
but whatabout the others?
I can't close the center tag now? *FIXED* I mispelled the closing center and didn't fix that one.. I still need help with the first part... the urls, color setting, and size setting...
Works for me:
| Code: |
<?php
function bb2html($text)
{
$bbcode = array("<", ">",
"[list]", "[*]", "[/list]",
"[centre]", "[/centre]",
"[img]", "[/img]",
"[b]", "[/b]",
"[u]", "[/u]",
"[i]", "[/i]",
"[color=\"", "[/color]",
"[size=\"", "[/size]",
'[url="', "[/url]",
"[mail=\"", "[/mail]",
"[quote]", "[/quote]",
"\"]");
$htmlcode = array("<", ">",
"<ul>", "<li>", "</ul>",
"<center>", "</center>",
"<img src=\"", "\">",
"<b>", "</b>",
"<u>", "</u>",
"<i>", "</i>",
"<span style=\"color:", "</span>",
"<span style=\"font-size:", "</span>",
'<a href="', "</a>",
"<a href=\"mailto:", "</a>",
"<table width=100% bgcolor=lightgray><tr><td bgcolor=white>", "</td></tr></table>",
"\">");
$newtext = str_replace($bbcode, $htmlcode, $text);
$newtext = nl2br($newtext);//second pass
echo $newtext;
}
|
Noda problem
| Quote: |
<?php
$filenamebb = 'welcomebb.txt';
$content = $_POST["data"];
if (is_writable($filename)) {
if (!$handle = fopen($filenamebb, 'w')) {
echo "Cannot open file ($filenamebb)";
exit;
}
// Write $somecontent to our opened file.
if (fwrite($handle, $content) === FALSE) {
echo "Cannot write to file ($filenamebb)";
exit;
}
echo "Success, wrote ($content) to file ($filenamebb)";
fclose($handle);
} else {
echo "The file $filenamebb is not writable";
}
include 'bb2html.php';
$filename = 'welcome.txt';
$oldcontent = $_POST["data"];
$newcontent = bb2html($oldcontent);
// Let's make sure the file exists and is writable first.
if (is_writable($filename)) {
if (!$handle = fopen($filename, 'w')) {
echo "Cannot open file ($filename)";
exit;
}
// Write $somecontent to our opened file.
if (fwrite($handle, $newcontent) === FALSE) {
echo "Cannot write to file ($filename)";
exit;
}
echo "Success, wrote ($newcontent) to file ($filename)";
fclose($handle);
} else {
echo "The file $filename is not writable";
}
?> |
that returns The file welcomebb.txt is not writablehiSuccess, wrote () to file (welcome.txt) when the text is hi, it clears the main page, and leaves welcomebb.txt unedited, welcome.txt is viewed through read.php, where html is shown...
| mattd8752 wrote: |
Noda problem
| Quote: | <?php
$filenamebb = 'welcomebb.txt';
$content = $_POST["data"];
if (is_writable($filename)) {
if (!$handle = fopen($filenamebb, 'w')) {
echo "Cannot open file ($filenamebb)";
exit;
}
// Write $somecontent to our opened file.
if (fwrite($handle, $content) === FALSE) {
echo "Cannot write to file ($filenamebb)";
exit;
}
echo "Success, wrote ($content) to file ($filenamebb)";
fclose($handle);
} else {
echo "The file $filenamebb is not writable";
}
include 'bb2html.php';
$filename = 'welcome.txt';
$oldcontent = $_POST["data"];
$newcontent = bb2html($oldcontent);
// Let's make sure the file exists and is writable first.
if (is_writable($filename)) {
if (!$handle = fopen($filename, 'w')) {
echo "Cannot open file ($filename)";
exit;
}
// Write $somecontent to our opened file.
if (fwrite($handle, $newcontent) === FALSE) {
echo "Cannot write to file ($filename)";
exit;
}
echo "Success, wrote ($newcontent) to file ($filename)";
fclose($handle);
} else {
echo "The file $filename is not writable";
}
?> | that returns The file welcomebb.txt is not writablehiSuccess, wrote () to file (welcome.txt) when the text is hi, it clears the main page, and leaves welcomebb.txt unedited, welcome.txt is viewed through read.php, where html is shown... |
Why don't you just parse the bbcode and add the html-encoded message to a database table to be echoed later?
I don't want to use databases, the whole point is flexibility, I am going to use this with a password protection for my class website, we don't have database support... this would be used for personal profiles... I mean, I am going to use it for the game to, but that is the reason I did this first, can you help anyhow?
I will use databases only if I must... But the error is still coming from the bb2html...
| mattd8752 wrote: |
| But the error is still coming from the bb2html... |
That's unlikely, the function is working perfectly for me. I'll have a look at this tomorrow
| JustaMin wrote: |
Works for me:
| Code: |
<?php
function bb2html($text)
{
$bbcode = array("<", ">",
"[list]", "[*]", "[/list]",
"[centre]", "[/centre]",
"[img]", "[/img]",
"[b]", "[/b]",
"[u]", "[/u]",
"[i]", "[/i]",
"[color=\"", "[/color]",
"[size=\"", "[/size]",
'[url="', "[/url]",
"[mail=\"", "[/mail]",
"[quote]", "[/quote]",
"\"]");
$htmlcode = array("<", ">",
"<ul>", "<li>", "</ul>",
"<center>", "</center>",
"<img src=\"", "\">",
"<b>", "</b>",
"<u>", "</u>",
"<i>", "</i>",
"<span style=\"color:", "</span>",
"<span style=\"font-size:", "</span>",
'<a href="', "</a>",
"<a href=\"mailto:", "</a>",
"<table width=100% bgcolor=lightgray><tr><td bgcolor=white>", "</td></tr></table>",
"\">");
$newtext = str_replace($bbcode, $htmlcode, $text);
$newtext = nl2br($newtext);//second pass
echo $newtext;
}
|
|
One difference in mine, echo $newtext; is return $newtext; which it should be considering it is a function, the echo would just output the data on the spot... thats what it was doing... anyhow, I am somewhat done, and it is just stuff you have to have the =something in that don't work..
Think ill try C++ you know every has to learn sometimes even the pros started as beginners.
I will be creating this game under DeathRow Productions (my site) therefor, it will be free for you to use, however, DeathRow will be hosting it's own copy with its own template, you will need to create your own template, I will give you an imageless list of links for each function. This will be a military game, I am going to decide my own name, however you can decide your own. It must say at the bottom of the page, this game was coded by DeathRow Productions. If you don't agree to that, you simply don't get a copy.