Peoples are awesome. If nobody cares my work - GTFO!
Printable View
Peoples are awesome. If nobody cares my work - GTFO!
BEAUTIFUL tutorial ! You sir, deserved my like
pretty hacky way to solve this problem, there are better more generic solutions to this.
Nice iKasu,Me and my team will try and post the results as soon as fast :)
I apologize for how rude my last comment sounded, I should not have cut it off like that and should have elaborated on what I meant. So I will do just that below.
Sure, instead of hardcoding values and data, you would add support for reading them in dynamically either from data sent from the server (the best way) or through some local .ini file (not the best way).
I will try to describe in short detail when I say dynamically getting data from the server. Instead of the client "knowing" the information (i.e. initial map spawn position, map path, etc..) the client ends up actually knowing NOTHING on it's own, but depends on the server to tell it all it's information. First the client would receive the serverlist from the server, with basic info like server name, playercount, map name, w/e. Then when the client wants to enter in the server, the server which KNOWS all the needed info (map name, map path, etc..) will tell the client everything it wants to know, so the client knows what files to load, and where it will want to spawn the player. Also, through this method we can effectively eliminate the DB changes you will want to make, as the player does not persist in the map world meaning we don't need to store the mapid, this is because the player is forced to choose a server everytime they play. A problem you will run into is that player position persists when the logout, so when they re-enter the game they are where they were when they logged out. A real simple solution to this is to force players to spawn on spawnpoints on the map on server entry. This is ofcourse only one way that I thought up, the beauty of working on software is just how flexible you can be when approaching problems.
Very Nice Tut works for me with Map Cliffside thank you!
req.AddParam("map", slot.GameMapId);
Is correct?
or you mean
req.AddParam("map", GameMapId);
Without the identifier slot?
Because, in my AsyncFuncs, slot is not a declared identifier...
http://puu.sh/2PuSf.png
For me work without slot :)
http://puu.sh/2Pv15.png
;)
Map problem? Hmm i will test more....
http://puu.sh/2PF3y.jpg
Ok, my problem is:
Chars still spawning in zone 0
And... if chars die, chars dont get revive time left...
Chars still live in character menu...
:S
I fixed that everyone spawns on the same spot, and your last logout point is remembered (as long as you not connect to a other map, when you play cliffside then go on a colorado server and come back to cliffside you spawn on a random player spawn) <- Has to be fixed i look in to it too :).
You just forgot to add inside api_GetProfile1.aspx.cs : Line 34
below
add this:Code:xml.Append(xml_attr("GamePos", reader["GamePos"]));
Code:xml.Append(xml_attr("GamePos2", reader["GamePos2"]));
Nice tutorial.
We have the same xml.Append in 2 files:
File: api_SrvNotes
Line: 39
and
File: api_GetProfile1
Line: 34
I will add GamePos2 in both and share results!
I get this error:
Code:
Code:000000.087| WO_API: failed with error code 5 SQL Connect failed
000000.087| GetShopData FAILED, code: 5
000000.087| Reading game rewards
000000.090| WO_API: failed with error code 5 SQL Connect failed
000000.090| ApiGetDataGameRewards FAILED, code: 5
000000.090| !!! ERROR: failed to get game rewards
000000.090| !!! crashed
I have to work now, later i will try to fix it.
Nice
Thank you