• 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.

gimp

Timing and Sending Data

2 posts in this topic

Obviously timing is critical to a client displaying the correct state. I have though up some simple and not so simple and high bandwidth methods of ensuring this works. What method do you guys use? In general is it better to use tcp so you don''t have to implement your own form of ensuring that critical packets are recieved? Should I use TCP for game state messages and UPD for non critical updates like messaging, scores, blah? I was thinking that ever tenth packet might be where the client sends off its current location and the nine packets in between would be containing things like ''player 4, FORWARD, JUMP''. The tenth packet would be to ensure that if something screwed up in the command delta''s to be played in the world then it would be corrected not to far in to the future. I''d also make this packet based rather than time based so that a player not moving(camping, chatting, healing,taking aim) would not be using and bandwidth. Is that a reasonable assumption Is there anything I''m missing in the things I''ve been talking about over few days? Thanks gimp
0

Share this post


Link to post
Share on other sites
Hee Hee I asked this same question some time ago too 8^) Well there are proven protocols which can synchronize timmers across a network. Do a search for Network Time Protocol (NTP), that will point you in the right direction. Basicly sending a large sample of timming packets to and from the client and then perform some statsctical analysis on it to extrapalate the delta time between the client and server, and from this you can get the servers and clients times to a degree of accuracy. Would only need to be done once so overhead is negiligable.

With that solved you already won 1/15 of the battle! 8^)

-ddn
0

Share this post


Link to post
Share on other sites
If you are doing a client-server game, only the server needs to know *exactly* what time it is. The clients make do with what the server has told them about the state of the world up to the current instant in time. Maybe the client software does a bit of predicting on things, but it remains at the mercy of the server, and the only state it will ever be able to display is what it knows. If latency causes a client to fall behind, that''s just what happens. There is precious little you''re going to do to stop that from occurring.

Don''t worry about being incredibly precise. Figure out how to be "precise enough" and let it go at that.

If you worry too much about the (fractions of a) second that the clients might be off from the server and each other, you''ll just end up going quite mad and wasting huge heaps of time. Really.

With networked games, it easy to make things more complicated than they have to be. Resist that urge...


DavidRM
Samu Games
0

Share this post


Link to post
Share on other sites