• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

wikidsmot

[java] Multi-player servers

8 posts in this topic

I''m developing a realtime multi-player fighting engine for my online RPG. What it will basically do is allow two opponents to fight in realtime using an RPG type battle interface(i.e. menus that allow you to perform actions) across the web. I use a server app that must be up and running for any of the clients to be able to connect and play. (i.e. I have to launch the server app with: "java GameServer" from the command prompt and keep that app running on the server machine so everyone can play. My problem is: I don''t have DSL or cable so my home comp is not the server, I use a pay web host. So in order for me to launch the app I telnet in and launch from the command line. If I log off, however, the app ceases and that''s the end of that. In order for the server to work, I have to be logged onto my telnet account so that the app won''t quit. Well, I''m using a phone modem with only one phone line in the house and I don''t want to tie it up 24/7. My question is: is there another way I can do this? Perhaps some specifics about my server app are required: All my server does is open a ServerSocket and waits for clients to connect. Each connection is assigned to a separate thread and that thread listens to that connection. Data is partially processed through the server and sent back down to the clients. Any suggestions will be appreciated.
0

Share this post


Link to post
Share on other sites
Do you have any buddies who work at an ISP?

War doesn't determine who is right, war determines who is left.
0

Share this post


Link to post
Share on other sites
You said telnet so i''m assuming this is a unix environment. Put an ampersand (''&'') at the end of your command to get it to run as a background operation. This will free up the telnet session to run other things and keep the program from dying when you log off or hit ctrl-c.
java GameServer &
The server will then tell you the PID of the process incase you need to kill it.
[1] 6748
where 6748 is the process id. You can do
ps -ax /grep java
to find all the processes running with ''java'' in their name and
kill [PID]
to stop a process. I''m not sure if your user would have permissions to do that, but that user might be able to kill processes that it started itself. I don''t know how to stop these ''&'' processes anyother way. You might try a linux/unix msg board.
0

Share this post


Link to post
Share on other sites
This thing changed my pipe character into a slash, right before "grep java" it should be a vertical pipe. And I forgot to input my name so I can''t edit it.
0

Share this post


Link to post
Share on other sites
Hmmm... This looks like wikidsmot is running his game server on a ( *gasp* ) school host. :O

Where else would you run a java proggie on a Unix box via a telnet session? Maybe the office, but then you could just start it up at work and leave it going...

someone is a very naughty little student.


makes me proud to be part of this forum


ManaSink


0

Share this post


Link to post
Share on other sites
I don''t know if it''s the same on unix but you can say localhost or 127.0.0.1 to dial into your own computer. Also I would consider letting players play with each other without using a server. This is how I usually play with friends, just to avoid logging onto the Zone and putting a password so others can''t join in and start lagging the game. For these reasons I am going to allow my game to be a client and a server without using a servlet. This way a servlet can be used so they can particapate in a Zone like atmosphere or just play vs with no extra delays.
0

Share this post


Link to post
Share on other sites
Thanks for the "localhost" advice, I''ve been doing that in order to debug my program. I''ll look into your other suggestions as well.
0

Share this post


Link to post
Share on other sites