Fis, one of the pioneers within our H&D2 community, continues to write history by sharing the source code of his essential server management tool. We are blessed by his generosity and are very lucky to have the opportunity when we need it the most. We are grateful for his gift, looking forward to continue his work and improve the quality hosting we provide to you, the players
Now it's possible to add new features, fix bugs and make the Server Manager available for the Linux
platform, which will reduce maintenance costs and allow us to better use our available resources. For this, I ask all those who are interested in server management to join forces and take this tool to new heights together. Time is not a problem, but good teamwork, knowledge and dedication are.
Recently I was testing the classic
VTM modon our servers, trying to make sure everything works fine before I make the announcement. This mod contains 46 missions. Unfortunately, we can't add more than ~30 missions to our mpmaplist. After many hours of testing, it has been found that the Server Manager 2.9 is no longer able to display the maps in the list it reads from the mpmaplist.txt, unable to read when the size of the document has more than 11.800 lines. I've removed the VTM missions, and tested with coop and other style, making sure everything is correct and no errors are made. Every time a mission/ map is added beyond this 11.8K lines, the Server Manager 2.9 no longer displays the missions. It can only read the ones currently in some maplist, but not able to Add anything. To be more precise:
I have no idea if there is any workaround for this, but to explain everything even better... when we get to that 11.8K lines in our mpmaplist.txt, we will have to delete other maps/missions for the Server Manager to work. It's something very unpleasant. Our mpmaplist.txt has around 550 Kb, and with the VTM mod it goes over 600 Kb. There seems to be no limit in file size. Maybe it's a bug we can fix and a good one we desperately need. The source code came at the right time
Please share your ideas, intentions and suggestions in this thread so everyone can follow an unique plan. We can set up a work group consisting of our most available specialists and get things done.
I looked this mpmaplist loading part (HD2ServerService.pas). and my guess is that the list box itself has limit.
It might be a limit of data sent to Client, because Client program is the one that will display it.
In the code no limit is set in HD2ServerService.pas.
'Maps' is set as 'Array of Srting', that can take in large amount of data, no problem there.
Or maybe TEXTFILE property has limit, i would use StringList or even FileStream there.
At the bottom there is a line:
ServerService.AddToLogFile (true,'Total aviabile map configurations: '+IntToStr(length(Maps)));
It should write into logfile map number it has read in.
Does it ? and is it equal to real map count ?
I don't know, I've never bumped into any strange symbols. All I did is to download the file from our server, add the VTM section, add each VTM mission one by one to test it, then save the file with Windows/DOS format
P.S. I know the maplist needs a bit of cleaning job