Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

How should we make a DF multiplayer game?

In the form of a MU* (as has already been tried)
- 4 (4.3%)
Empire building browser-based game, using the Frost and Flame engine or making it from scratch
- 10 (10.9%)
Adventure RPG browser-based game, using the Dragon Knights engine or making it from scratch
- 4 (4.3%)
A dungone crawler or maybe cooperative fortress builder client-based game using the Eclipse engine (would be real time, and have better graphics than browser-based games)
- 25 (27.2%)
Cooperative fortress building browser-based game, with traditional DF top-view 2D tiles
- 45 (48.9%)
a deviant of the cooperative fortress building browser-based game, were the tiles are grouped into bigger "sections"
- 3 (3.3%)
Other (propose it in the thread please)
- 1 (1.1%)

Total Members Voted: 92


Pages: 1 ... 12 13 [14] 15 16 17

Author Topic: Creation of a DF Browser Based game?  (Read 24672 times)

webadict

  • Bay Watcher
  • Former King of the Mafia
    • View Profile
Re: Creation of a DF Browser Based game?
« Reply #195 on: November 18, 2008, 08:37:51 am »

For now, water shouldn't flow. It should just be there.
Logged

winner

  • Bay Watcher
    • View Profile
Re: Creation of a DF Browser Based game?
« Reply #196 on: November 19, 2008, 08:43:24 pm »

so has anybody started it yet?
Logged
The great game of Warlocks!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Creation of a DF Browser Based game?
« Reply #197 on: November 19, 2008, 08:48:29 pm »

If anyone can give me a HTML template for the menu, I could try to make it and learn PHP at the same time...
It would be easy for a menu with no dynamic info, to appear on each page, since EVERYTHING IN PHP THAT IS NOT CODE IS SENT DIRECTLY OUT, so a simple web page is a very uneventful PHP script, so I could put it directly in...

But first:
Menu position: Top or Left?
Menu details: I need as many as possible.
Time: I need a lot.
Logged
Eh?
Eh!

webadict

  • Bay Watcher
  • Former King of the Mafia
    • View Profile
Re: Creation of a DF Browser Based game?
« Reply #198 on: November 19, 2008, 09:44:28 pm »

Look back a page or two. We had a layout for each page set up.
Logged

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Creation of a DF Browser Based game?
« Reply #199 on: November 20, 2008, 12:06:53 am »

Today I learned about <div> and imbedded CSS.


Spoiler: "This is pretty large" (click to show/hide)
Logged
Eh?
Eh!

Poltifar

  • Bay Watcher
    • View Profile
Re: Creation of a DF Browser Based game?
« Reply #200 on: November 20, 2008, 09:30:07 am »

Hmm, how do we take a screenshot? I'd like to show the work I've been trying to do. And to which site should I upload the pics?
Logged
Quote
<@Poltifar> yeah i've played life for almost 23 years
<@Poltifar> i specced myself into a corner, i should just reroll
<@Akroma> eh
<@Akroma> just play the minigames until your subscription runs out

webadict

  • Bay Watcher
  • Former King of the Mafia
    • View Profile
Re: Creation of a DF Browser Based game?
« Reply #201 on: November 20, 2008, 06:02:24 pm »

You take screenshots with "Prnt Scrn" and Paste it into something. It's nice if this something can be saved as an image file. Upload the photo(s) up to Photobucket.com. Free image hosting.
Logged

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Creation of a DF Browser Based game?
« Reply #202 on: November 20, 2008, 07:23:27 pm »

Here is what I have:

The test user login file
Code: [Select]
<?php setcookie("ID",1);setcookie("username","test user"); ?>
The horrible lack of security called the game file
Code: [Select]
<?php if(!isset($_COOKIE["ID"])||$_COOKIE["ID"]<1){?>
<h1>Sorry, but you are not logged in, you are not able to access this page unlss you log in.</h1>
<?php exit;}else{ ?>
<body bgcolor=999999>
 <div style="float:left;position:absolute;top:5px;left:160px;right:100%;bottom:100%;background-color=888888">
test
 </div>
 <div style="float:left;position:absolute;top:5px;left:5px;width:150px;height=95%;background-color=c0c0c0">
  <img src="images/logo.png">
 </div>
 <div style="float:left;position:absolute;top:160px;left:10px;width:140px;background-color=c0c0c0">
Dwarf Fortress Browser Based Game<br><br>Logged in as <?php echo(htmlspecialchars($_COOKIE["username"]));?>
 </div>
</body>
<?php }?>

Of course, if it were  real website there would be some kind of authentication there, as well as a real user list, and all kinds of fun features.

But it would still have a cookie ^_^.


Edit:

Woah, funky auto-coloring. I only copied it in from notepad.
Logged
Eh?
Eh!

Poltifar

  • Bay Watcher
    • View Profile
Re: Creation of a DF Browser Based game?
« Reply #203 on: November 21, 2008, 10:08:11 am »

Qwerty, that's why i want to use the Visual Studio Web Developper, it has an easy-to-use option to install site loging, with authentication/page access control and stuff
Logged
Quote
<@Poltifar> yeah i've played life for almost 23 years
<@Poltifar> i specced myself into a corner, i should just reroll
<@Akroma> eh
<@Akroma> just play the minigames until your subscription runs out

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Creation of a DF Browser Based game?
« Reply #204 on: November 23, 2008, 09:15:37 am »

Well, I will continue with my method, mostly because I am learning something from it.

If we end up using a diffrent system, I will switch to that one, but for now, I am sticking with PHP and mySQL to get experience.
Logged
Eh?
Eh!

Poltifar

  • Bay Watcher
    • View Profile
Re: Creation of a DF Browser Based game?
« Reply #205 on: November 23, 2008, 12:41:33 pm »

Sure, if you are managing, it's much better to make the code by hand than use some pre-made code we don't fully understand. But try not to rely too much on cookies and other client-based authentification, since it might pause a security risk.
Logged
Quote
<@Poltifar> yeah i've played life for almost 23 years
<@Poltifar> i specced myself into a corner, i should just reroll
<@Akroma> eh
<@Akroma> just play the minigames until your subscription runs out

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Creation of a DF Browser Based game?
« Reply #206 on: November 23, 2008, 02:06:12 pm »

I am using sessions linked to mySQL records, or will be.

The mySQL user table is currently:
user ID
64 char username
sha1 of password(I think that it was a longer MD5 or something)
list of dwarf IDs
length of time banned(in minutes, maximum aroung 1000 years)


So... that is the table end of it, I am currenty working on the PHP to go with it.

Edit: first user, and a successful login followed.
Next registration.
The password was also
Quote
Test
Spoiler (click to show/hide)

Edit again: successful registration!
« Last Edit: November 23, 2008, 03:53:09 pm by qwertyuiopas »
Logged
Eh?
Eh!

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Creation of a DF Browser Based game?
« Reply #207 on: November 23, 2008, 04:46:58 pm »

Well, it has come down to a choice.

I have a mostly successful login/registration system in place in plain PHP, but I know others are oing other stuff.

The question is:

What method will we use?

We need to give everyone a few days to think, work, and post examples first, but a concrete choice will be required before we progress further.

Edit:
Another picture.
Do you think that this(and only this) should be the login and register screen appearance?
Spoiler (click to show/hide)
« Last Edit: November 23, 2008, 09:47:38 pm by qwertyuiopas »
Logged
Eh?
Eh!

Poltifar

  • Bay Watcher
    • View Profile
Re: Creation of a DF Browser Based game?
« Reply #208 on: November 24, 2008, 09:00:22 am »

Well it seems you have managed to make a working system, so I guess we'll just go with your's. I tried to add a similar 'Dwarf ID' list system into the pre-made login in visual studio, but it just ain't working. And your register system and layout is very good, its also much better than the pre-made visual-studio login, which ALWAYS wants an email to be entered NO MATTER HOW MANY TIMES I TRY TO EXPLAIN TO IT THAT WE DON'T FUCKING WANT TO ASK FOR EMAILS.

So yes, home-made is better in all ways than the pre-made. We can go with that. Although I really wanted to work in ASP and visual basic. I'll try to upload pictures of the site layout I made (which, thankfully, I did manage to do).

PS: Please, please, PLEASE tell me you are going to add some kind of system that allows people to be banned and when they try to log-in, it displays 'You have been banned for now, your account will be reactivated in X time'. I want that just for me to be able to ban someone for 1000 years :P
Logged
Quote
<@Poltifar> yeah i've played life for almost 23 years
<@Poltifar> i specced myself into a corner, i should just reroll
<@Akroma> eh
<@Akroma> just play the minigames until your subscription runs out

Poltifar

  • Bay Watcher
    • View Profile
Re: Creation of a DF Browser Based game?
« Reply #209 on: November 24, 2008, 09:35:14 am »

Ok, here's what I got:

This one is the home page layout BEFORE logging in
Spoiler (click to show/hide)

This one is what is shown when the home page is loaded when you are logged in
Spoiler (click to show/hide)

This one is the movement page (can only be accessed when logged in)
Spoiler (click to show/hide)

Note: The movement grid and stuff is NOT functional, I just put the characters to give an idea of how it would look. The login, however, IS functional.

EDIT: I'd like to precise that I'll continue using Visual-studio, even if it has so many defects. Since all of these are just prototypes anyways (I hope no one is hoping to be able to get the game up and running at 100% any time soon, they will be sorely dissapointed), I don't think it matters wether they are even compatible with each other or not. As long as we make proof-of-concept works that actually work, we know we'll be able to combine them all into one eventually.
« Last Edit: November 24, 2008, 10:09:39 am by Poltifar »
Logged
Quote
<@Poltifar> yeah i've played life for almost 23 years
<@Poltifar> i specced myself into a corner, i should just reroll
<@Akroma> eh
<@Akroma> just play the minigames until your subscription runs out
Pages: 1 ... 12 13 [14] 15 16 17