H&D2 Server Manager Source Code
- snowman
- Topic Author
- Offline
- Your most dear friend.
Less
More
3 years 7 months ago - 3 years 7 months ago #1
by snowman
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.
You can open the gift Fis has given to us at Gitlab here: https://gitlab.com/fisfis/hd2-server-manager
Recently I was testing the classic VTM mod on 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.
Thank you for your patience everyone!
"Straight and narrow is the path."
H&D2 Server Manager Source Code was created by snowman
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.
You can open the gift Fis has given to us at Gitlab here: https://gitlab.com/fisfis/hd2-server-manager
Recently I was testing the classic VTM mod on 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:
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.
Thank you for your patience everyone!
"Straight and narrow is the path."
Last edit: 3 years 7 months ago by snowman.
Please Log in or Create an account to join the conversation.
- snowman
- Topic Author
- Offline
- Your most dear friend.
3 years 7 months ago #2
by snowman
"Straight and narrow is the path."
Replied by snowman on topic H&D2 Server Manager Source Code
Anyone who is having problems viewing the page, you can download the zipped contents here:
https://drive.google.com/file/d/1ZcWMUwsgsZzw2wreyBJk-rdt7bo5n7JU/view?usp=sharing
https://drive.google.com/file/d/1ZcWMUwsgsZzw2wreyBJk-rdt7bo5n7JU/view?usp=sharing
"Straight and narrow is the path."
Please Log in or Create an account to join the conversation.
- Stern
- Offline
Less
More
- Posts: 746
- Thank you received: 569
3 years 7 months ago - 3 years 7 months ago #3
by Stern
Is he willing to fix bugs ?
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 ?
The one who hesitates is lost !
Replied by Stern on topic H&D2 Server Manager Source Code
Is he willing to fix bugs ?
I looked this mpmaplist loading part (HD2ServerService.pas).
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 ?
The one who hesitates is lost !
Last edit: 3 years 7 months ago by Stern.
The following user(s) said Thank You: snowman
Please Log in or Create an account to join the conversation.
- snowman
- Topic Author
- Offline
- Your most dear friend.
3 years 7 months ago #4
by snowman
"Straight and narrow is the path."
Replied by snowman on topic H&D2 Server Manager Source Code
Fis may not have time to continue work on his SM, that's why he sent us the source code.
I'm attaching our mpmaplist.txt file with the VTM mod installed so you can test for yourselves. In case it's necessary to have access to our remote machine, that can be arranged
I'm attaching our mpmaplist.txt file with the VTM mod installed so you can test for yourselves. In case it's necessary to have access to our remote machine, that can be arranged
"Straight and narrow is the path."
Please Log in or Create an account to join the conversation.
- Stern
- Offline
Less
More
- Posts: 746
- Thank you received: 569
3 years 7 months ago #5
by Stern
The one who hesitates is lost !
Replied by Stern on topic H&D2 Server Manager Source Code
I can test it here.
But when i seve the list you attached to file it shows warning that its Unicode.
Some strange symbols there ?
But when i seve the list you attached to file it shows warning that its Unicode.
Some strange symbols there ?
The one who hesitates is lost !
Please Log in or Create an account to join the conversation.
- snowman
- Topic Author
- Offline
- Your most dear friend.
3 years 7 months ago #6
by snowman
"Straight and narrow is the path."
Replied by snowman on topic H&D2 Server Manager Source Code
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
P.S. I know the maplist needs a bit of cleaning job
"Straight and narrow is the path."
Please Log in or Create an account to join the conversation.
Birthdays
- Tecnom
- Hellcat in 3 days
- Winters in 4 days
- Alexliberty in 5 days
- Mizha in 9 days
- British Bulldog in 10 days