Deleted
Deleted Member
Posts: 0
Karma:
|
Post by Deleted on May 7, 2018 12:46:25 GMT -5
Hi all, just to let you know that the compute_damage code is now published on the Wiki. It is written in python, so that most people should be able to run it if they have a python install on their computer. I know Linux and Mac have it by default, no idea about Windows, but at any rate the Anaconda distribution of Python is available for free. Since I don't use Windows, it would be great if anybody familiar with Python on windows were to add a few lines on how to run the code on it. On mac or linux, just open a terminal and type "python" and you will have a python session open, you can follow the instruction on the wiki page. Compute_damage allows to compute the damage (you would never have guessed right?) of any weapon in the game taking into account their different fire modes. In the next days I will begin to replace the damage tables for the weapons with these computed with it, since the present computation template in the wiki is less than optimal. Consider that the current form of the page is still rather rough, and the code itself is still being improved. The algorithm is there, but the IO can be made better: - I was thinking about adding an option to spit the result in a table already formatted to be introduced in the wiki source - I plan to replace the current hard-coded weapons database with one read from file(s) for ease of use. If anybody wants to contribute / modify the code, or even translate it into wiki template form to replace the existing one, you are of course very welcome. Enjoy! T.
|
|
Deleted
Deleted Member
Posts: 0
Karma:
|
Post by Deleted on Jul 10, 2018 15:54:12 GMT -5
Updated for v 4.0!
T.
|
|
|
Post by oooohmyyy on Jul 11, 2018 3:47:11 GMT -5
on Windows is similar, paste python.exe to /bin then you can execute python scripts directly thru command prompt. Or use visual studio and have python installed alongside it, I suppose anyone uses Windows to write code has at least vs community installed.
|
|
|
Post by acdcfan on Jul 11, 2018 4:52:19 GMT -5
Why don’t you just post a formula here?
|
|
|
Post by oooohmyyy on Jul 12, 2018 5:36:56 GMT -5
Why don’t you just post a formula here? suppose using the first method, and if python is say python2.exe, then run "python2.exe \path\script_name" under cmd should do it
|
|