Fred Posted October 26, 2008 Author Share Posted October 26, 2008 **Difficulty: 0/100**This modyfication will stop downloading maps from server when there are changing and stop checking it so players can faster go trought maps and server have more power because less packets and calculations, here we go:In Client Find:```If (casestring = "checkformap") Then```and exchange it all by this:``` If (casestring = "checkformap") Then ' Erase all players except self For i = 1 To MAX_PLAYERS If i <> MyIndex Then Call SetPlayerMap(i, 0) End If Next i ' Erase all temporary tile values Call ClearTempTile '!!! ' Get map num x = Val#(parse$(1)) ' Get revision y = Val#(parse$(2)) If FileExist("maps\map" & x & ".dat") Then Call SendData("needmap" & SEP_CHAR & "no" & SEP_CHAR & END_CHAR) Exit Sub End If Exit Sub End If```After that maps stop loading from server and that will be more faster for players.One minus is you must add for client autoupdater who can downloading new maps, but i think its woth it (packet with zip 100big maps are less than 200kb, player downloading it once and have no problems with changing maps)+Faster map loading+Less lag-More complicated map adding Link to comment Share on other sites More sharing options...
Lenton Posted October 26, 2008 Share Posted October 26, 2008 Kool, nice.> One minus is you must add for client autoupdater who can downloading new mapsHmm, what do you mean by this? Sounds like you have to send the client the maps? Link to comment Share on other sites More sharing options...
Fred Posted October 26, 2008 Author Share Posted October 26, 2008 You must have autoupdater in your game because client will not downloading maps anymore. Just add all your maps to your autoupdater when you make new or edit maps. Link to comment Share on other sites More sharing options...
codemeister1990 Posted October 26, 2008 Share Posted October 26, 2008 is there an autoupdater out there? Link to comment Share on other sites More sharing options...
Godlord Posted October 26, 2008 Share Posted October 26, 2008 There should be a bunch out there.For the map download removal, another method would be to check by using CRC32 hashes. If they are equal the map are supposed to be the same, if they are different the maps are different and the new map should be downloaded, that's way faster than re-downloading the map each time.Regards, Goddie, the Irresistible. Link to comment Share on other sites More sharing options...
Fred Posted October 26, 2008 Author Share Posted October 26, 2008 @codemeister1990:> is there an autoupdater out there?Idk, i have my own autoupdater. Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted October 26, 2008 Share Posted October 26, 2008 EE3.0 will download maps from FTP. Link to comment Share on other sites More sharing options...
Godlord Posted October 26, 2008 Share Posted October 26, 2008 That's another option…Regards, Goddie, the Irresistible. Link to comment Share on other sites More sharing options...
Guest Posted October 26, 2008 Share Posted October 26, 2008 eww ftp eww shouldnt you just have an install that installs all the maps then have smaller installs adding more maps + ftp for maps would be slow wouldnt it? Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted October 26, 2008 Share Posted October 26, 2008 thats not what i was talking about. All maps are downloaded from ftp. client downloads/uploads to it. its slow to get, but its faster than downloading from the server in any way, anyone can set up an ftp, and its optional. Link to comment Share on other sites More sharing options...
codemeister1990 Posted October 26, 2008 Share Posted October 26, 2008 can someone link an autoupdater (like you'll download all the stuff needed when you connect to the server right, thats what an autoupdater is?) Link to comment Share on other sites More sharing options...
Fred Posted October 26, 2008 Author Share Posted October 26, 2008 @Simius CruentusVery nice idea, but my way is faster anyway :D Link to comment Share on other sites More sharing options...
Tyr Posted October 26, 2008 Share Posted October 26, 2008 good idea, but i guess its only good to use when you finished all the mapping for your game :) Link to comment Share on other sites More sharing options...
WickedSix Posted October 26, 2008 Share Posted October 26, 2008 What do you mean by More complicated map adding? This is a pretty cool idea though, nice. Link to comment Share on other sites More sharing options...
Robin Posted October 26, 2008 Share Posted October 26, 2008 There's already a revision system that only downloads maps with changes from the client version. Instead of removing it completely, just ship the latest maps with your game and re-upload the client every few days, so people downloading it for the first time get the more up-to-date maps, and the people who already have the game are still updated. Link to comment Share on other sites More sharing options...
codemeister1990 Posted October 26, 2008 Share Posted October 26, 2008 umm, links guys COME ONsaying it's out there is great, but how about actually showing it -.- Link to comment Share on other sites More sharing options...
WickedSix Posted October 26, 2008 Share Posted October 26, 2008 @codemeister1990:> umm, links guys COME ON> saying it's out there is great, but how about actually showing it -.-Yeah I love it when they show screenshots of their codes and scripts. Link to comment Share on other sites More sharing options...
Fred Posted October 27, 2008 Author Share Posted October 27, 2008 @BlazeYaDeadZombie:> What do you mean by More complicated map adding? This is a pretty cool idea though, nice.Only that you must add it to your updater, its good for me but like Tyr says, if you have just started making game it can be complicated because you must actualize it often. Link to comment Share on other sites More sharing options...
codemeister1990 Posted October 27, 2008 Share Posted October 27, 2008 @BlazeYaDeadZombie:> Yeah I love it when they show screenshots of their codes and scripts.Oh…well it sounded as if everyone had it so I figured it was posted somewhere -.- Link to comment Share on other sites More sharing options...
Ryoky Posted April 11, 2010 Share Posted April 11, 2010 @pheXion:> [> After that maps stop loading from server and that will be more faster for players.> One minus is you must add for client autoupdater who can downloading new maps, but I think its woth it (packet with zip 100big maps are less than 200kb, player downloading it once and have no problems with changing maps)> > +Faster map loading> +Less lag> -More complicated map addingBut so people are able to hack this maps to get rare items.just take one map out of thw folder. edit it with own eclipse and then you put it back.then start the game. theres no newer map. then go to the edited map and take the item.Thats one more "-" Link to comment Share on other sites More sharing options...
Ruins of Hell Posted April 11, 2010 Share Posted April 11, 2010 @Ryoky:> @pheXion:> > > [> > After that maps stop loading from server and that will be more faster for players.> > One minus is you must add for client autoupdater who can downloading new maps, but I think its woth it (packet with zip 100big maps are less than 200kb, player downloading it once and have no problems with changing maps)> > > > +Faster map loading> > +Less lag> > -More complicated map adding> > But so people are able to hack this maps to get rare items.> > just take one map out of thw folder. edit it with own eclipse and then you put it back.> then start the game. theres no newer map. then go to the edited map and take the item.> > Thats one more "-"No. Maps are loaded from the Server. Link to comment Share on other sites More sharing options...
Rithy58 Posted April 11, 2010 Share Posted April 11, 2010 @Soul:> @Ryoky:> > > @pheXion:> > > > > [> > > After that maps stop loading from server and that will be more faster for players.> > > One minus is you must add for client autoupdater who can downloading new maps, but I think its woth it (packet with zip 100big maps are less than 200kb, player downloading it once and have no problems with changing maps)> > > > > > +Faster map loading> > > +Less lag> > > -More complicated map adding> > > > But so people are able to hack this maps to get rare items.> > > > just take one map out of thw folder. edit it with own eclipse and then you put it back.> > then start the game. theres no newer map. then go to the edited map and take the item.> > > > Thats one more "-"> > No. Maps are loaded from the Server.Actually, I think that could be a problem.How are attribute saved? Server-Side or Client-Side?Because I thought the attribute is save to the map1.dat(or something).So if you can remove or add attribute in map1.dat, you can cheat.Sincerely,Rithy Link to comment Share on other sites More sharing options...
shadowchris Posted April 11, 2010 Share Posted April 11, 2010 @Rithy58:> @Soul:> > > @Ryoky:> > > > > @pheXion:> > > > > > > [> > > > After that maps stop loading from server and that will be more faster for players.> > > > One minus is you must add for client autoupdater who can downloading new maps, but I think its woth it (packet with zip 100big maps are less than 200kb, player downloading it once and have no problems with changing maps)> > > > > > > > +Faster map loading> > > > +Less lag> > > > -More complicated map adding> > > > > > But so people are able to hack this maps to get rare items.> > > > > > just take one map out of thw folder. edit it with own eclipse and then you put it back.> > > then start the game. theres no newer map. then go to the edited map and take the item.> > > > > > Thats one more "-"> > > > No. Maps are loaded from the Server.> > Actually, I think that could be a problem.> How are attribute saved? Server-Side or Client-Side?> Because I thought the attribute is save to the map1.dat(or something).> So if you can remove or add attribute in map1.dat, you can cheat.> > Sincerely,> RithyIt's the same.If you lay down a attribute from the map editor it won't change. Link to comment Share on other sites More sharing options...
gothikaboy Posted April 14, 2010 Share Posted April 14, 2010 http://gmc.yoyogames.com/index.php?showtopic=450832Found this by google. Link to comment Share on other sites More sharing options...
Godlord Posted April 14, 2010 Share Posted April 14, 2010 @gothikaboy:> http://gmc.yoyogames.com/index.php?showtopic=450832> Found this by google.Doing it wrong.The way maps actually should be loaded is quite simple actually.* Switch to another map in-game.* Send CRC32-checksum of the map the client has (If there is no map, send that there is no checksum).* The server compares the CRC32-checksum, if they're equal the client can proceed.* In this case they aren't equal or the client doesn't have the map yet. The server should now send the map data.The first issue of slow map loading is solved, now it only loads the map when an update occurred, but there is, however, a second issue which should be solved and that is that the server sends the wrong map data. The client only needs to know where to draw the graphics and nothing else. So the client only needs to know what tiles are used on what layers. The attributes and such are out of interest, since those should be handled by the server and not the client. So basically the only few things the client needs to know is what layers there are, what tiles are on them, the title of the map for display, the music to be played and a few other visual aspects. Not only do you reduce the stuff the client doesn't actually need and thus increase the performance, but you also increase the security, since the client only keeps track of the visual aspects and not the logic, that is supposed to be handled by the server.Regards, Godlord. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now