About Store Forum Documentation Contact



Post Reply 
MMO trying to release
Author Message
gusrbehfdl Offline
Member

Post: #1
MMO trying to release
hello, I just purchased indi license and trying to figure out whats what in MMO codes.

1. (when trying to release)In the main.cpp for both server and client, can someone expand on this line?

#include "../Paks.add(data.pak).cpp"

2. (Debug Mode) When I run Server + Clients on my computer(one pc), one client can briefly see other players and they disappear to underground(I can only see their 2d names thru the terrain). I didn't make any change in MMO code. any idea why this is happening?
12-27-2010 05:30 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: MMO trying to release
Hi,

1. Please ignore it and use the code from DEBUG (that sets DataPath)

2. I recently made some changes to the file format for mmo characters.
Can you remove all accounts/players data in the Storage folder, and try using latest SDK?
12-27-2010 09:09 PM
Find all posts by this user Quote this message in a reply
gusrbehfdl Offline
Member

Post: #3
RE: MMO trying to release
Thanks for the reply

1. solved.

2. I removed all account/chr(players) data in the storage folder and reupdated SDK even redownloaded MMO project. but same thing happens...

To add little more detail, I'm running a server and two clients,
After login my 1st client player,
When I login with my 2nd client, player from my 1st client briefly shows up where the waypoint is(which isn't where the 1st player is) and then the 1st player disappears underground. this happens to both clients.
12-28-2010 09:00 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: MMO trying to release
2. Thanks!
I've reproduced the problem, I'll fix it quickly.
12-28-2010 03:28 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: MMO trying to release
Hi,

Sorry about the issue.

Please change in Player.cpp to this code:

Code:
static void Distribute(File &f, Bool include_pos_packet_order=false) // distribute full file data to Server and Peers with direct connection
{
   f.pos(0);
   Int size=f.left();
   if( size<=65535)
   {
      Byte data[65535+1]; // +1 byte for eventual packet order
      f.get(data,size);

f.pos(0) was in the wrong place.

Thanks for reporting the issue.
12-28-2010 03:36 PM
Find all posts by this user Quote this message in a reply
gusrbehfdl Offline
Member

Post: #6
RE: MMO trying to release
That does it,

thanks!
12-29-2010 06:51 AM
Find all posts by this user Quote this message in a reply
Post Reply