Hello. I am working on a system that is supposed to add and remove ServerPackages in the *ini dynamically, on a per-map basis.
Meaning if some map is running couple of SPs must be added to the list, and all other uneeded must be removed removed,
and when another map is voted, the ones from the current map being removed, and the ones needed for the map to come to be added.
I am trying to do this in a custom gametype, since it will be easier I think.
What I currently have is:
in the "ProcessServerTravel" function, I do a check for the current map, and the map that is coming next.
Depending on the current map, I run a function "RemoveServerPackage" from Elliots mutator, that will remove the unneeded server package (that was used the current map)
and after that I run function AddServerPackage that will add the neede serverpackages for the map that is coming next.
I have tested this on dedicated server, but for some reason I am not getting consistent results, meaning htat when map changes, my game will not always get the information that the server's Server Package list has been updated, and thus leading to failure of downloading the appropriate file.
If you have better idea or suggestion, or even ready made mutator or code please post here, I will be thankful!
Meaning if some map is running couple of SPs must be added to the list, and all other uneeded must be removed removed,
and when another map is voted, the ones from the current map being removed, and the ones needed for the map to come to be added.
I am trying to do this in a custom gametype, since it will be easier I think.
What I currently have is:
in the "ProcessServerTravel" function, I do a check for the current map, and the map that is coming next.
Depending on the current map, I run a function "RemoveServerPackage" from Elliots mutator, that will remove the unneeded server package (that was used the current map)
and after that I run function AddServerPackage that will add the neede serverpackages for the map that is coming next.
I have tested this on dedicated server, but for some reason I am not getting consistent results, meaning htat when map changes, my game will not always get the information that the server's Server Package list has been updated, and thus leading to failure of downloading the appropriate file.
If you have better idea or suggestion, or even ready made mutator or code please post here, I will be thankful!