In response to Loduwijk
No. DMCGI works differently from that. For one thing, you need a webserver separate from DreamDaemon to actually handle the HTTP connection; and besides, you can't have two programs running on the same port.

Using DMCGI, is, however, one route to achieving something similar.
In response to Crispy
*shrugs*

If he truly knows what DMCGI is and that is not what he wants then he didn't explain very well. In which case we cannot help him anyway.

According to what he said though, DMCGI is what he is talking about. You cannot have a website hosted for people to see through a browser in the way he sounded like he was looking for with DM unless you are using DMCGI, or at least such is the way I understand it.

Crispy wrote:
and besides, you can't have two programs running on the same port.

Of course, and that was the main topic he was asking about. However, concerning what I was replying to, that is another matter entirely.

However, you need not nessessarily have it operating as two seperate programs. Of course, DM probably can't do both at the same time; though that is beside the point (I don't know enough about DMCGI). If you can't do both at the same time, it should be made so that you can.

Of course I don't mean right away though. DMCGI itself still needs to be fixed up before they go and update it. But it would be nice to be able to log into the game itself through dream seeker when you are at home and log into a limited browser version when away.

Lastly, he could set up a different program, a website not run off the same program running the game, in order to do what it seems he wants. Either using DMCGI for that or going the PHP route.
In response to Loduwijk
Loduwijk wrote:
If he truly knows what DMCGI is and that is not what he wants then he didn't explain very well. In which case we cannot help him anyway.

I agree, he didn't explain it too well.

According to what he said though, DMCGI is what he is talking about. You cannot have a website hosted for people to see through a browser in the way he sounded like he was looking for with DM unless you are using DMCGI, or at least such is the way I understand it.

DMCGI is just a way of using DM to make CGI programs. It's just like PHP, or Apache's mod_python module. It doesn't do anything special with regards to BYOND games.

Crispy wrote:
and besides, you can't have two programs running on the same port.

Of course, and that was the main topic he was asking about. However, concerning what I was replying to, that is another matter entirely.

You were just replying to a restatement of the earlier post. Notice that he said http://myip:gameport, implying that he wants to connect to the same port that the game is hosted on.

However, you need not nessessarily have it operating as two seperate programs.

True, but putting it all in the same program is completely unnecessary bloat. You could have one program get all the packets, determine which ones are HTTP, and send them on to a sub-program, but really, why bother?

Of course, DM probably can't do both at the same time; though that is beside the point (I don't know enough about DMCGI). If you can't do both at the same time, it should be made so that you can.

It most definitely can't, and there's such a big difference between the way Dream Seeker works and the way DMCGI works that unifying them would be an incredible waste of time at best, and impossible at worst.

Lastly, he could set up a different program, a website not run off the same program running the game, in order to do what it seems he wants. Either using DMCGI for that or going the PHP route.

That's what I was referring to; it's the most sensible alternative, and can be implemented right now by anyone with a copy of Dream Maker and enough knowledge of DM. In fact, I'll put it on my to-do list as a library idea.
In response to Crispy
I brought this up because I can't get DMCGI to work on my site.
(root cannot write to /usr/lib and /usr/libexec thus the libs cannot be found)

I ment hosting a BYOND game, and at the same time accepting http:// connections.

At this very moment, I have a game with a telnet connection support. telnet:// is for telnet, byond:// is for BYOND. Isn't there a way to implement a small kind of a webserver for this? Your key would begin with # (telnet keys start with @) and then your IP as in the same way as on telnet. Any output to src would immidiatly be placed on the browser as plain HTML.

byond://PhoenixMan.MyGame = My Game.
telnet://myip:myport = My Game, telnet connection.
http://myip:myport = My Game, http/website connection?
In response to Phoenix Man
Phoenix Man wrote:
Any output to src would immidiatly be placed on the browser as plain HTML.

The problem with doing this kind of thing via a browser is that in the HTTP protocol requests for new content must originate from the client... to put it another way, it's a "pull" only system, where the server can't "push" content to the client; the client can only "pull" it from the server.

You can get around this by telling the webpage to refresh periodically (I think it was Shadowdarke who made a chat program like this), but it's a less than ideal solution.
In response to Crispy
Crispy wrote:
You can get around this by telling the webpage to refresh periodically (I think it was Shadowdarke who made a chat program like this), but it's a less than ideal solution.

You could also do what Google does with Google Suggest. They use Javascript's XMLHttpRequest object to request information from their server, and then use Javascript to manipulate the page based on that. Only the data needed is sent.

For example, instead of having to refresh an entire chat window, one could send only the new messages.
In response to Jon88
Nifty, I didn't know about that before. Thanks!
In response to digitalmouse
If I was ever inclined to make a web based game I would lean more towards perl or php. Especially because both of those langs have easy database integration (unless I missed the ByondSQL library ;))

I am going to have to setup byond on my apache box and see what I can do later today. Web games in byond definatly have alittle coolness factor to them. Plus that gives me some new ideas on libraries to make.
In response to TrashHalo
TrashHalo wrote:
If I was ever inclined to make a web based game I would lean more towards perl or php. Especially because both of those langs have easy database integration (unless I missed the ByondSQL library ;))

Booyah!

Only works on Unix and with MySQL, but as if you're going to be running a web server on Windows, right? =)
In response to Crispy
wow I have been owned. lol
Looks like I will be writing web apps for now on :P, psh webserver on windows, thats like heresy!
In response to TrashHalo
with the use of MySQL under BYOND, you ought to be able to make some decent browser-based RPGs. and if you tinker with Javascript a bit, you probably could get character-movement like what you see now in the DreamSeeker Windows client. When *that* happens, you are sure to get attention from all sides and increase your user base to include Mac- and Linux-based players.
Page: 1 2