Savents Posted July 4, 2011 Author Share Posted July 4, 2011 I would like to know how to change the length of text that is allowed in a map name, currently you can type a long map name, but it just get's cut off when you send the map in. Link to comment Share on other sites More sharing options...
damian666 Posted July 4, 2011 Share Posted July 4, 2011 its defined in modtypes.i changed it recently, problem is though, you will have to convert your maps, well, if you have any anyway xd```Private Type MapRec Name As String * 30```make it like that to get longer names.Dami Link to comment Share on other sites More sharing options...
Savents Posted July 4, 2011 Author Share Posted July 4, 2011 Yeah I do have maps, how do I convert them?[EDIT]I still need help with this please, thanks. Link to comment Share on other sites More sharing options...
Robin Posted July 5, 2011 Share Posted July 5, 2011 You either program a converter or delete them all. Considering you needed to ask how to change the string size then I'd say it's safe to say you can't write a converter.Delete 'client\data files\maps' and 'server\data\maps'. Link to comment Share on other sites More sharing options...
Savents Posted July 5, 2011 Author Share Posted July 5, 2011 Well that sucks, deleting them is not an option really, to much work went into the maps thus far. For programing a converter, what exactly needs to be done for this type of case, I don't really know what is being converted, it seemed a simple enough edit (just longer characters in the map names) that I wouldn't have to delete my maps, guess I was wrong there. Link to comment Share on other sites More sharing options...
erkro1 Posted July 6, 2011 Share Posted July 6, 2011 @Savints:> Well that sucks, deleting them is not an option really, to much work went into the maps thus far. For programing a converter, what exactly needs to be done for this type of case, I don't really know what is being converted, it seemed a simple enough edit (just longer characters in the map names) that I wouldn't have to delete my maps, guess I was wrong there.You're changing something in the map UDT, you always need to delete/convert your maps after that.It don't matter if its a tiny or big change. Link to comment Share on other sites More sharing options...
Robin Posted July 6, 2011 Share Posted July 6, 2011 @Savints:> it seemed a simple enough editMaps are saved in binary. If you saved a maps in a certain way then tried to read them in another then the byte order would be completely off.If you add another 4 characters to the string length then you'd be effectively displacing every single long value in the binary dump off by 2.That means every single value in your map would be completely corrupted. Link to comment Share on other sites More sharing options...
Savents Posted July 6, 2011 Author Share Posted July 6, 2011 @Robin:> Maps are saved in binary. If you saved a maps in a certain way then tried to read them in another then the byte order would be completely off.> > If you add another 4 characters to the string length then you'd be effectively displacing every single long value in the binary dump off by 2.> > That means every single value in your map would be completely corrupted.Thanks that makes sense, I will guess I will stop production of maps, until I have all of the source edits I want, and work on mapping last, when everything else is 100% the way I want it. Link to comment Share on other sites More sharing options...
Robin Posted July 6, 2011 Share Posted July 6, 2011 You'll only ever need to clear the maps when you modify the existing data. Either changing a data type or add new stuff to the centre of the UDT.Add new data types to the _end_ of the UDT and it'll load just fine as you haven't altered the load order. 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