Welcome to symthic forums! We would love if you'd register!
You don't have to be expert in bit baking, everyone is more than welcome to join our community.

You are not logged in.

Hey! If this is your first visit on symthic.com, also check out our weapon damage charts.
Currently we have charts for Battlefield 3, Call of Duty: Black Ops 2, Medal of Honor: Warfighter and Call of Duty: Modern Warfare 3

Symthic

Head Administrator

(1,641)

  • "Symthic" started this thread

Posts: 965

Date of registration
: Nov 29th 2011

Platform: PC

Location: Finland

Battlelog:

Reputation modifier: 11

  • Send private message

41

Friday, January 6th 2012, 9:43pm

Re: Plotic - Graphical representation of weapon deadliness

Quoted from ""RobotMonkey""

There isn't a check for invalid filenames... so make sure that the title doesn't contain any characters that would be invalid.

I tried with plain text as title.

Forgot to add that maybe some button to open image in new window to see it in bigger scale without having to save and open it would be great.
Or maybe even so you could open multiple new windows and they would contain tabs for all type of plots.
Images would be held in memory til window is closed so you can generate another one to compare.

Generate plot of 1st wep - open in new window - generate plot of 2nd wep - open again in new window to compare.


I can quickly make code to parse values and send the needed files if you want.
Still it would be better to keep it as one exe file so it's simply download & open, maybe include the data as resources?


Edit:
Heres the files & code to get the values.
<!-- m --><a class="postlink" href="http://symthic.com/misc/Plotic%20things.rar" onclick="window.open(this.href);return false;">http://symthic.com/misc/Plotic%20things.rar</a><!-- m -->

Use GetValue for weapon's base values
Public Function GetValue(ByVal weapon As String, ByVal value As String)
Weapon should match the folder names
ie.
A91
M27IAR
M16A4

For value use one of following:
Recoil:
HorizontalRecoilAmplitudeIncPerShotMin
HorizontalRecoilAmplitudeIncPerShotMax
HorizontalRecoilAmplitudeMax
RecoilAmplitudeIncPerShot
RecoilAmplitudeDecreaseFactor
RecoilAmplitudeMax
FirstShotRecoilMultiplier

Spread:
IncreasePerShot
DecreasePerSecond
For min and max angles:
<ADS or HIP><Moving or Base><MinAngle or MaxAngle>
ie:
ADSMovingMinAngle
ADSBaseMinAngle
HIPBaseMaxAngle
HIPMovingMinAngle


For attachments:
Public Function GetAttachmentValue(ByVal weapon As String, ByVal attachment As String, ByVal value As String, ByVal stance As String)

Weapon is the same then in the base stats case above

Attachment should match attachment's name inside weapon's folder
ie
HeavyBarrel
Silencer
TargetPointer
ForeGrip

Value again is the data you want:
Spread:
MinAngleModifier
MaxAngleModifier
IncreasePerShotModifier
DecreasePerSecondModifier

Recoil:
RecoilMagnitudeMod
RecoilAngleMod

Use one of following as stance. If you dont give any stance, it gets the first values found in file which are values of StandZoom
StandZoom
StandNoZoom
CrouchZoom
CrouchNoZoom
ProneZoom
ProneNoZoom



Both functions return values as strings and use dot as decimal mark.
Edit the GetData function to fit the way you want to include the data.
BF3: Objective per minute: World top 1%

Posts: 72

Date of registration
: Dec 20th 2011

Platform: PC

Battlelog:

Reputation modifier: 5

  • Send private message

42

Saturday, January 7th 2012, 9:29pm

Re: Plotic - Graphical representation of weapon deadliness

Awesome, I'll start work on adding that functionality.

Image comparison should be cake as well since I already have all of the images stored in a class as it stands. So it's just a matter of creating a new instance of that class to give you the option to save and view multiple runs.

In terms of a 'zoom' window. That could be generated on the fly with the option of the image size.

Edit: I have found out what is going on with the silent image issue. I forgot to update the template to match the new sub scheme. Just drop the word 'Text'. I'll add logic to check for invalid file names.

<<Title>>
<<Sub>>
<<Info>>
I can't be in love if it's plastic, To live on my own just seems tragic
But we'll raise our swords high when our day comes, You thought it was gold but it was bronze.
But if i see you again back in detox, put my remains in my snuff box!

Symthic

Head Administrator

(1,641)

  • "Symthic" started this thread

Posts: 965

Date of registration
: Nov 29th 2011

Platform: PC

Location: Finland

Battlelog:

Reputation modifier: 11

  • Send private message

43

Sunday, January 8th 2012, 1:19am

Re: Plotic - Graphical representation of weapon deadliness

In silent mode title in the saved plots is always 'Famas' and damage 25 - 17
If you fix this I could generate all the plots.
I have my script almost ready for action.

Edit:
Distance of grid seems to broken too in silent mode.
BF3: Objective per minute: World top 1%

Posts: 72

Date of registration
: Dec 20th 2011

Platform: PC

Battlelog:

Reputation modifier: 5

  • Send private message

44

Sunday, January 8th 2012, 9:37am

Re: Plotic - Graphical representation of weapon deadliness

Quoted from ""Symthic""

In silent mode title in the saved plots is always 'Famas' and damage 25 - 17
If you fix this I could generate all the plots.
I have my script almost ready for action.

Edit:
Distance of grid seems to broken too in silent mode.


Ok... the subs for the grid and title were still pulling from form instead of the class, that has been fixed.

I also added the ability to zoom into any of the images, just right-click on the image, select zoom, and then the zoom size.

The image dialogs are new instances. Which means you can open as many as you want and they will keep the image intact, allowing you to run different weapons and keep the image windows open for comparisons.

That should be pretty useful until something more solid is put in place. The TTK chart is just screaming to be copied for use in a weapon comparison chart.
I can't be in love if it's plastic, To live on my own just seems tragic
But we'll raise our swords high when our day comes, You thought it was gold but it was bronze.
But if i see you again back in detox, put my remains in my snuff box!

Posts: 72

Date of registration
: Dec 20th 2011

Platform: PC

Battlelog:

Reputation modifier: 5

  • Send private message

45

Sunday, January 8th 2012, 9:45am

Re: Plotic - Graphical representation of weapon deadliness

I also wanted to throw this idea out there...

I'm thinking that if we can get the scale right, we could even give the option of viewing different scopes and their firing solutions based on the distance.

I could probably alpha them myself, if I could just get the image files. The only ones I can find are the ones that were used to explain mils on that google doc.
I can't be in love if it's plastic, To live on my own just seems tragic
But we'll raise our swords high when our day comes, You thought it was gold but it was bronze.
But if i see you again back in detox, put my remains in my snuff box!

Posts: 72

Date of registration
: Dec 20th 2011

Platform: PC

Battlelog:

Reputation modifier: 5

  • Send private message

46

Sunday, January 8th 2012, 10:29am

Re: Plotic - Graphical representation of weapon deadliness

In terms of adding the weapon data into the exe, I don't really agree with that. Ideally, it would be the weapon data in the most constant flux given patch releases for the game that would affect it.

For now, having it look for a weapons folder in the same directory will be the most effective. I'm sure I could find a library that would allow the ability to read directly from an archive file. Then files could be checksum controlled and easily tracked across BF3 patches.
I can't be in love if it's plastic, To live on my own just seems tragic
But we'll raise our swords high when our day comes, You thought it was gold but it was bronze.
But if i see you again back in detox, put my remains in my snuff box!

Suiizide

Resident Pro

(744)

Posts: 2,784

Date of registration
: Dec 30th 2011

Platform: PC

Location: Australia

Battlelog:

Reputation modifier: 10

  • Send private message

47

Sunday, January 8th 2012, 2:41pm

Re: Plotic - Graphical representation of weapon deadliness

Hey, just an idea. Someone else on the forums whipped this up with help from Plotic and it was very much ignored. I like the idea of it though. Can this be incorporated in to Plotic? Sorry if there is already a similar feature. I'm not all that good with Plotic :)

<!-- m --><a class="postlink" href="http://symthic.com/?s=forum&pa=viewforum.php?f=3" onclick="window.open(this.href);return false;">http://symthic.com/?s=forum&pa=viewforum.php?f=3</a><!-- m -->

Sig

The T-90 is a challenge, the BTR-90 is going to kill everyone in a 100 meter radius and go flying off a hill into a helicopter only to drive off while the corpse of the Cobra it just went through is being dragged through the beach on Oman.
The game will include a fully automatic An-94 launcher, literally firing Abakans at 600 RPM.
clicky
I expect rep.
If J3ST3R is dead, I think I just heard the entity that is grammar let out a sigh of relief...
To say nothing of the inordinate expense incurred by adding functionality to the gun that I may not ever use.
IKEA is the problem! Its all Desksdesksdesksdesksdesksdesksdesksdesks but oh, oh the second you say you want a table they chuckle and say "A table? You mean a kitchen table? How about a bedside table? Oh! Oh you must mean a dining room table!" and I'm like "NO! NO I JUST WANT A STANDARD, BLACK, BORING TABLE!" and they look at me then smile and go "You mean this? 170..." :(
Also, why does the RANDOM thread have a topic?

Why do fish have legs?
Fucking dutch.


Posts: 72

Date of registration
: Dec 20th 2011

Platform: PC

Battlelog:

Reputation modifier: 5

  • Send private message

48

Sunday, January 8th 2012, 7:23pm

Re: Plotic - Graphical representation of weapon deadliness

Quoted from ""Suiizide""

Hey, just an idea. Someone else on the forums whipped this up with help from Plotic and it was very much ignored. I like the idea of it though. Can this be incorporated in to Plotic? Sorry if there is already a similar feature. I'm not all that good with Plotic :)

<!-- m --><a class="postlink" href="http://symthic.com/?s=forum&pa=viewforum.php?f=3" onclick="window.open(this.href);return false;">http://symthic.com/?s=forum&pa=viewforum.php?f=3</a><!-- m -->" onclick="window.open(this.href);return false;



The link points to nowhere... just back to the forums... so you are going to need to provide more info on what you are referring to.

I understand it is quite cluttered right now. Plotic 2.0 will be much simpler to manage once complete since it will be reading directly from files. So you can just pick your weapon(s) from a dropdown and select the attachments you want.

I don't want to waste any time with documentation when many of the items will be removed once the information is being automatically pulled.
I can't be in love if it's plastic, To live on my own just seems tragic
But we'll raise our swords high when our day comes, You thought it was gold but it was bronze.
But if i see you again back in detox, put my remains in my snuff box!

Symthic

Head Administrator

(1,641)

  • "Symthic" started this thread

Posts: 965

Date of registration
: Nov 29th 2011

Platform: PC

Location: Finland

Battlelog:

Reputation modifier: 11

  • Send private message

49

Sunday, January 8th 2012, 7:36pm

Re: Plotic - Graphical representation of weapon deadliness

Distance still doesn't seem to be working from ini or did the template change aswell?
Titles etc. are tho.

The recoil decrease actually should also be added.

Heres how:
Lets take an example of 0.5 vertical and 0.3 horizontal recoil.
Decrease would be 18, or 1.8 while shooting.
Weapon would have 800rpm rof.
Pixels per degree scale would be 1000

we start from point x1000 y1700
the first shot without spread would land at:
x = 1000 + 1000 * 0.3 = 1300
y = 1700 - 1000 * 0.5 = 1200

Then we draw triangle between following points:
1000,1700 (the starting point)
1300,1700 (horizontal recoil taken into count but not vertical)
1300,1200 (both recoils taken into account)

Now we need to know length of each side of triangle.
Base is of course 300px (amount of horizontal recoil)
Side is 500px (amount of vertical recoil)
Hypotenuse or what ever its called is
sqrt(300^2+500^2) = 583,09518948453004708741528775456

The amount of decrease in pixels is Scale*Decrease/(RoF/60)
1000 * 1.8 / (800/60) = 135
We need to go 135 pixels towards the starting point from the calculated point of recoil.
we need to draw another triangle to get the coordinates of this point, but we only know the lenght of hypotenuse (135)
The angle of every corner in the triangle stays the same so we can use the same lenght ratios for new triangle than the one we draw before so:
500/583,0951 = 0,85749305730746151013788316862893
300/583,0951 = 0,51449583438447690608272990117736
Then we use these ratios to calculate the the base and side of the triangle with hypotenuse of 135
side = 135 * 0,857 = 115,695
base = 135 * 0,514 = 69,39

The point where shot will land with recoil decrease is
x = 1300 - 69 = 1231
y = 1200 + 116 = 1316



Quite simple? -:>-
Are you able to add this to the code yourself?
Of course you dont have to draw the triangles, it's just there to show how the calculations are done.
BF3: Objective per minute: World top 1%

Posts: 21

Date of registration
: Dec 30th 2011

Platform: PC

Location: United States

Battlelog:

Reputation modifier: 5

  • Send private message

50

Sunday, January 8th 2012, 8:46pm

Re: Plotic - Graphical representation of weapon deadliness

Quoted from ""Symthic""

Distance still doesn't seem to be working from ini or did the template change aswell?
Titles etc. are tho.

The recoil decrease actually should also be added.

Heres how:
Lets take an example of 0.5 vertical and 0.3 horizontal recoil.
Decrease would be 18, or 1.8 while shooting.
Weapon would have 800rpm rof.
Pixels per degree scale would be 1000

we start from point x1000 y1700
the first shot without spread would land at:
x = 1000 + 1000 * 0.3 = 1300
y = 1700 - 1000 * 0.5 = 1200

Then we draw triangle between following points:
1000,1700 (the starting point)
1300,1700 (horizontal recoil taken into count but not vertical)
1300,1200 (both recoils taken into account)

Now we need to know length of each side of triangle.
Base is of course 300px (amount of horizontal recoil)
Side is 500px (amount of vertical recoil)
Hypotenuse or what ever its called is
sqrt(300^2+500^2) = 583,09518948453004708741528775456

The amount of decrease in pixels is Scale*Decrease/(RoF/60)
1000 * 1.8 / (800/60) = 135
We need to go 135 pixels towards the starting point from the calculated point of recoil.
we need to draw another triangle to get the coordinates of this point, but we only know the lenght of hypotenuse (135)
The angle of every corner in the triangle stays the same so we can use the same lenght ratios for new triangle than the one we draw before so:
500/583,0951 = 0,85749305730746151013788316862893
300/583,0951 = 0,51449583438447690608272990117736
Then we use these ratios to calculate the the base and side of the triangle with hypotenuse of 135
side = 135 * 0,857 = 115,695
base = 135 * 0,514 = 69,39

The point where shot will land with recoil decrease is
x = 1300 - 69 = 1231
y = 1200 + 116 = 1316



Quite simple? -:>-
Are you able to add this to the code yourself?
Of course you dont have to draw the triangles, it's just there to show how the calculations are done.


Yes, I like this idea. I very much like this idea. If I had any programming knowledge whatsoever, I'd try to help out, but I kinda don't -:s-

Thank you both for this project and keep up the good work. I've been following its progression ever since I found Symthic's site.