Xlithan Posted July 11, 2012 Author Share Posted July 11, 2012 This always gets brought up, countless times.I've given it a bash myself and I just can't seem to put all the pieces together. There's so much code related to the map editor just scattered randomly around the client that it's difficult to try and pin-point it all and put it into a new project.If anybody has one working, or can help me to make one which I will happily share with the rest of the community, please reply :) Link to comment Share on other sites More sharing options...
Synergy Posted July 11, 2012 Share Posted July 11, 2012 Well, seeing as the maps are stored in both the server and client.. It might be a bit difficult, unless somehow the server 'copies' the maps from the client's maps.I don't think it's possible without completely changing how the maps are stored and read. Link to comment Share on other sites More sharing options...
Xlithan Posted July 11, 2012 Author Share Posted July 11, 2012 No you're completely wrong. The server loads all the map data from the map#.dat files, sends that data to the client, and the client uses the data to draw to the screen. The maps are saved on the client side for faster loading (I think), so that it doesn't have to get all the data packets from the server, unless the map was changed (Uses a revision number to check I think).The server does use some things that would be useful for an offline map editor, such as the saving and loading code. Link to comment Share on other sites More sharing options...
Synergy Posted July 11, 2012 Share Posted July 11, 2012 @Xlithan:> No you're completely wrong. The server loads all the map data from the map#.dat files, sends that data to the client, and the client uses the data to draw to the screen. The maps are saved on the client side for faster loading (I think), so that it doesn't have to get all the data packets from the server, unless the map was changed (Uses a revision number to check I think).> > The server does use some things that would be useful for an offline map editor, such as the saving and loading code.So I wasn't completely wrong, was I?Since you would still need the map data stored on the server to be saved to the client instead, hence, you'd need to change how maps are stored and read.If you can do it, I'll be very impressed, and very intrigued to see how you did it. Link to comment Share on other sites More sharing options...
Xlithan Posted July 12, 2012 Author Share Posted July 12, 2012 Maps are saved on the client. They only change on the client when there has been an update, or if the file does not exist initially. Link to comment Share on other sites More sharing options...
LonelyNekoLover Posted July 12, 2012 Share Posted July 12, 2012 i think an offline editor would be great idea. Say your at work with an hour lunch and no internet you can still finish that forest area you have been working on then when you get home you can just copy the map files to the server directly then start it up and viola!Now, it would be easy enough to make a copy of the server/client and take it with you and run it under local host then copy the map data when you get home… but having multiple copies of your game server can be very problematic if you get them mixed up you could lose alot of data. Link to comment Share on other sites More sharing options...
Xlithan Posted July 12, 2012 Author Share Posted July 12, 2012 Not to mention if your mapper doesn't have 24/7 internet. I would rather just have a map editing application. Link to comment Share on other sites More sharing options...
LonelyNekoLover Posted July 12, 2012 Share Posted July 12, 2012 well, right now im doing my mapping on my windows tablet. the pen interface makes it alot easier. So when i get done with a map i just drag the map file over to the server folder on my desktop through teh network. This way i can map anywhere in the house ^.^ Link to comment Share on other sites More sharing options...
Ali3n5 Posted July 26, 2012 Share Posted July 26, 2012 It could actually be quite simple to do. The server sends over map cache to the client so why don't you just make the editor point to that cache file. You would then need to add something to the Map UDT like "Revision" and when the server starts up, send all the revisions from the server-side maps: If the client's maps have a higher Revision then send over the client maps to the server. 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