Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Login/Logout

Author
Message
a_coppard
19
Years of Service
User Offline
Joined: 6th Nov 2006
Location:
Posted: 6th Nov 2006 20:26
I am trying to create a game that's going to be hosted online, a bit like RuneScape. Well I was wondering wether there is some DarkBASIC code for a Login/Logout script with membersjoining the whole time. DarkBASIC then need to remembers there online setting (like a database) to create there character in a world after joining. This site is going to be running PHP/MySQL if that helps and file sizes need to be compressed.
P.S This has got to finally be embeded in a single webpage, well O.K two, a register page which the database or whatever remembers, and then the actual game complete with login logout of that user.
Thanks a lot
a_coppard

a_coppard
http://adamacs.wordpress.com
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 7th Nov 2006 01:55 Edited at: 7th Nov 2006 01:56
I don't know anything about making an online game (yet). But all you need is an array to store the player name, password, and whatever other information you want and save it to a file.

In the help files click on "Principles" then "Data Types, Variables and Arrays" and look up "Commands", "File Commands".
RUCCUS
21
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 7th Nov 2006 02:12
Ill start off with the usual "chances are you're not ready, at all, to take on a large MMORPG, or even just an RPG for that matter, or even an online game at all, for that matter" speal.

Now that thats over (and surely ignored), multiplayer games are no simple task (atleast ones more complex than moving cubes around a matrix). Youll first need to decide which method of online you'll be using, Peer-2-Peer or Host/Client. P2P is where every player acts as a host, sending and recieving information from every other player. It has its advantages, but isnt good for MMO's. Host/Client is where one player is the host, (this doesnt have to be a "player", so to speak, it could be a server setup to just recieve and send out the data to all of the other players). The host, as just said, recieves all of the info from every player in the world, including their positions, rotations, messages their sending back and forth, if they're moving, shooting, what they're wearing, their stats, their name, their password, and a whole lot of other junk. The host then takes this info and performs all of the calculations, checking for collisions between each player and the world, processing the messages, pretty much everything. Then, the host sends out all of the data of each player to each player, at which time each player recieves the data and handles appropriately (repositing all of the other players in the world based on the positions sent, back, displaying everyone's messages, etc.).

As far as a login/logout system that remembers information, this isnt that hard. Assuming you're using a host/client method, the server (the host) would have all of the data for each player saved to it's harddrive. Then whenever a player logs in, it checks the player's name and password for an existing player file, if one is found it loads up the player. If a player creates a new character, it creates a new player file, saving all of the needed info.

Lastly, I hope you realize that runescape isnt an executable embedded in a webpage, its programmed in Java, a web-acceptable language. Embedding exe's in webpages might seem logical, and yes there are legit companies out there like igLoader that help to do it, but the ability for hackers to get into the executable and change it so that essentially everyone n the world is running a program made by the hacker, is extremely unsafe, and still a reality at this point.

Im sure this will blow over your head as it does most newcommers, and Im sure you're extremely dedicated to prove everyone wrong and make the world's next WoW/Runescape, or some other MMO program, but either way, I have to say it;

Dont do such a difficult project yet. MMO games are created by teams of hundreds of programmers, designers, graphic artists, and professional game developers. Most MMO's take years to produce, and require a constant dedication to the project, that means programming until the boss says stop, which is usually quite a long time.

Read the tutorials and make a bunch of smaller games, build up your experience, and then take on such a daunting task.


- RUC'

Your signature has been erased by a mod because it's larger than 600x120...
warship45
21
Years of Service
User Offline
Joined: 24th Jul 2004
Location: uk
Posted: 7th Nov 2006 17:45
i have made a login server easy to use and will be found WIP called multisync login server it works well and as it saids it uses multisync. all you got to do is add the users and program a login stuff for the client easy to do.

i agree with what RUCCUS said but i do not want to put you off so i just gave you a point in the right direction.

dbpro plugins
www.0z0.co.uk
Soroki
20
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 8th Nov 2006 19:53
@ a_coppard
How long have you been programming? I had an idea like you, as RUCCUS said, but I looked up what is required to make even an offline RPG. The project takes at least three years with a large team with twenty years of programmijng experience. I settled for some simple 2D games, which worked out well. I learned to code some NET stuff, simple chatting programs, some simple online games, and I am currently working on my first real big project. It's a racing game that you play against your friends online. Make some easier stuff first, my friend, because you will most likely get frustrated and quit the project. Make a simple 2D online game that you can play against some friends. Try that first. Then you can move on to something harder.

slicer 4 ever
19
Years of Service
User Offline
Joined: 11th Jul 2006
Location: currently: planet gamma3295
Posted: 12th Nov 2006 06:03 Edited at: 12th Nov 2006 06:05
just use ftp commands for example:



just thought of that off the top of my head should work exept for
if ftp file exist i know theres a commandf like that i'm just away from my laptop which has dbc so if someone could just replace that with the right command to check if that file exists

my smiles love me =-)=-)=-)(-=(-=(-=

Login to post a reply

Server time is: 2026-07-07 00:09:23
Your offset time is: 2026-07-07 00:09:23