Skink Chief
ravagekitteh
Well-Known Member
- Messages
- 1,577
- Likes Received
- 2,880
- Trophy Points
- 113
Calling all programming nerds!
For a while now I’ve been working on an Age of Sigmar Battle simulator. You input the units, how strong they are, what they are equipped with etc, and it simulates a battle with randomised dice rolls, result modifiers, special abilities etc. It’s fairly rudimentary, and there aren’t many units on it yet, but I thought it might be a nice thing to share on here.
However, as nice and trustworthy as I know you all are, I’d rather not just leave a copy on here free for all of you to mess with.The problem is though, in order to change the unit, you have to actually edit the program itself. Ideally I want some way of putting the file on here, and locking it down such that you can edit the specific parts you need to, but can’t touch anything. However, if there is an alternative method that allows you to do it from within the program without editing it, that would be fantastic.
So I need any programming experts here’s advice if possible! I will list some of the key details below:
Because my programming skills are pretty poor, the program is made with python. It is very haphazard, as my technique is more to go with what works, rather than necessarily the cleanest, most efficient route. However, if you have any suggestions that involve overhauling the program completely (eg transporting it over to another programming language) I may politely tell you to f*** off. Without wanting to cause offense, I do not have the will to learn a new language at this stage, and I have spent to long with the existing method to be willing to change it dramatically. I’m happy to add in features, but not if they are too all encompassing or require a complete change in how the program works. This is supposed to be for fun, I’d rather not have this turn into a full blown project!
In terms of how it works, in order to supply the data for each unit, you go onto a certain section of the program and edit some of the functions. Each unit has a function (eg Saurus_Warriors(“attack”)), and to change it you simply have to change the prefix (eg Skinks(“attack”)). You do the same for defending, and then you jus swap them around to simulate their retaliation. The problem is, this requires actually going into the code and manually changing it, and I’ve not been able to find a way around that. My only though would be to have an input/if statement section that lists out all possible combinations (attacker = input(which unit is attacking?), if attacker == Saurus Warriors etc), but that would take up a lot of space so I’d prefer if there was another way. Alternatively, if there was a way to lock down the entire code with the exception of the areas that you’d need to change, that would be ideal. And most importantly, I’d need to know how best to actually post the program onto the forum in the first place, ideally in an edit locked way that I can still update it nobody else can (again, sorry for lack of trust but better to be safe than sorry)!
I’d really appreciate if anyone skilled at programming could help in any way. It might not be the most polished program, but it would at least be a nice tool for the community to use, and would give it a purpose outside of my own personal use!
For a while now I’ve been working on an Age of Sigmar Battle simulator. You input the units, how strong they are, what they are equipped with etc, and it simulates a battle with randomised dice rolls, result modifiers, special abilities etc. It’s fairly rudimentary, and there aren’t many units on it yet, but I thought it might be a nice thing to share on here.
However, as nice and trustworthy as I know you all are, I’d rather not just leave a copy on here free for all of you to mess with.The problem is though, in order to change the unit, you have to actually edit the program itself. Ideally I want some way of putting the file on here, and locking it down such that you can edit the specific parts you need to, but can’t touch anything. However, if there is an alternative method that allows you to do it from within the program without editing it, that would be fantastic.
So I need any programming experts here’s advice if possible! I will list some of the key details below:
Because my programming skills are pretty poor, the program is made with python. It is very haphazard, as my technique is more to go with what works, rather than necessarily the cleanest, most efficient route. However, if you have any suggestions that involve overhauling the program completely (eg transporting it over to another programming language) I may politely tell you to f*** off. Without wanting to cause offense, I do not have the will to learn a new language at this stage, and I have spent to long with the existing method to be willing to change it dramatically. I’m happy to add in features, but not if they are too all encompassing or require a complete change in how the program works. This is supposed to be for fun, I’d rather not have this turn into a full blown project!
In terms of how it works, in order to supply the data for each unit, you go onto a certain section of the program and edit some of the functions. Each unit has a function (eg Saurus_Warriors(“attack”)), and to change it you simply have to change the prefix (eg Skinks(“attack”)). You do the same for defending, and then you jus swap them around to simulate their retaliation. The problem is, this requires actually going into the code and manually changing it, and I’ve not been able to find a way around that. My only though would be to have an input/if statement section that lists out all possible combinations (attacker = input(which unit is attacking?), if attacker == Saurus Warriors etc), but that would take up a lot of space so I’d prefer if there was another way. Alternatively, if there was a way to lock down the entire code with the exception of the areas that you’d need to change, that would be ideal. And most importantly, I’d need to know how best to actually post the program onto the forum in the first place, ideally in an edit locked way that I can still update it nobody else can (again, sorry for lack of trust but better to be safe than sorry)!
I’d really appreciate if anyone skilled at programming could help in any way. It might not be the most polished program, but it would at least be a nice tool for the community to use, and would give it a purpose outside of my own personal use!