Closed Chenterito closed 2 years ago
IW4MAdmin will not be interacting with the file system for game specific implementation. My understanding is that you can’t load gametypes without a dsr on iw5.
Additionally, if the gametype is not defined in the default settings it will not append the _default dsr suffix
Exactly, the "dsr" is the one in charge of establishing the type of game and the different options for it. and on the other hand, if you directly execute the command "load_dsr namedsr" when not found in the defaults, it would be fine.
Yep that’s how it should be implemented currently. So I’m a bit unsure what the issue is.
If you do !mag dome dd
it’ll do load_dsr DD_default
, if you do !mag dome custom
it’ll do load_dsr custom
Isn’t that what we want?
in theory that is correct. I'll try it
I tried it and it doesn't work properly.
The command does not change the map, it only sets a DSR to then manually apply !map
dome and there it works only if a default name is used, such as:
!mag dome war
-> There it works setting the correct dsr, but I have to use a !map dome
for the map to change.
The other case. if I use !mag dome DOMM.dsr
or !mag dome DOMM
this doesn't work and it doesn't assign a correct DSR and the rest won't work either.
I hope I have explained myself.
$"load_dsr {(hasMatchingGametype ? gametype.ToUpper() + "_default" : gametype)};map {map}");
I don't know about this language, but I think the error is in the formation of the concatenated command. because I used the same idea from my client console and if it works.
Like this: load_dsr DOMM; map mp_dome
I think the string is wrongly concatenated.
!mag dome dom
!mag dom domm
I don't see where there is an issue with concatenation.
(note this was against iw4x map list so that's why mp_wasn't prefixed)
It's what the server console shows when I run the command.
I think I should run the commands separately.
After testing locally I can confirm this issue is caused by Pluto IW5 not properly parsing multiple commands via rcon. Updated 29ae00562159204b2ae485bb38af61c2bb97d45b to use separate commands. Will close once you can verify functionality as expected.
Now it works great
I think it should interact with the filesystem, since the default names are not always used in "dsr" files in the case of iw5. in my case I use a "dsr" called tdmmaniacos.dsr and that would not allow the execution of the command as it has been implemented. interacting, when looking in the respective folder for the dsr file to be executed.