dizietemblesssma Posted April 30, 2020 Share Posted April 30, 2020 A user of one of my patches tells me that it doesn't work with his sexlabs installed, that mod is too big for me to find a conflict, but I wondered if it could be a variable name clash as I have in one script: Armor[] SlotsSlots = New Armor[31] and sexlabs has in more than one place: ; SlotssslThreadController[] SlotssslThreadController[] property Threads hiddensslThreadController[] function get() return SlotsendFunctionendProperty diziet Link to comment Share on other sites More sharing options...
IsharaMeradin Posted April 30, 2020 Share Posted April 30, 2020 You need more information from the user. What exactly is not working? Under what scenarios is it not working? etc... It could be less a conflict of the same variable name and more a conflict in how the two mods actually function. I'm not familiar with yours or with the other and thus cannot speculate further. Link to comment Share on other sites More sharing options...
dizietemblesssma Posted April 30, 2020 Author Share Posted April 30, 2020 You need more information from the user. What exactly is not working?I'm trying to get that at the moment, but I was trying to ask a general question about the possibility of variable name clashes. If two mods use the same variable names and each mod declares them in the empty state (which I believe means they are baked into the save file?) Then would one expect some problem or other? Because looking back I can see I've used some rather simple variable names - slots,lefthand etc.I don't want to go back and change all of them:), but if I have created a risk of conflict that doesn't need to be there then I should, although then I'm not sure what happens to save files of users movng to a new mod version with names changed. If I'm engaged in a bad practice of not being unique in names I should stop really:) diziet Link to comment Share on other sites More sharing options...
IsharaMeradin Posted April 30, 2020 Share Posted April 30, 2020 Variables are tied to the script that they are with. Variable name crossover issues are more of a concern within a single script than it would be with other random scripts. That said, you can going forward use variable names that would be more unique, yet descriptive. I do not think, however, that that would be the cause of your user's problem. Link to comment Share on other sites More sharing options...
dizietemblesssma Posted April 30, 2020 Author Share Posted April 30, 2020 Ah, thanks for that, I'm a bit relieved:) diziet Link to comment Share on other sites More sharing options...
Recommended Posts