|
Thanks for the notification in the thread below
The website states that the App is open source, but I couldn't find a download-link (yet). I tried the new version on OpenSUSE, as the assemblies are binary compatible. It runs[^], but it has trouble finding the weapons. I'm assuming that there's some path-concatenation going wrong, but there's no exceptions.
It might be easy to make it Mono-compatible, adding both the 'ux and the Mac to your supported platforms.
Bastard Programmer from Hell
|
|
|
|
|
Eddy Vluggen wrote: The website states that the App is open source, but I couldn't find a
download-link (yet).
It's not done yet. When it is, there will be an article here.
Eddy Vluggen wrote: I tried the new version on OpenSUSE, as the assemblies are binary compatible.
It runs[^], but it has trouble finding the weapons. I'm assuming that
there's some path-concatenation going wrong, but there's no exceptions.
It's just the weapons? It finds everything else okay?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
John Simmons / outlaw programmer wrote: It's not done yet. When it is, there will be an article here.
Should have been able to guess that the source would be accompanied by an article
John Simmons / outlaw programmer wrote: It's just the weapons? It finds everything else okay?
It's not complaining, and works up to step 5. I can't visualize a weapon, which means that step 6 doesn't become enabled. I'm not sure whether it's the weapons or not, just that it doesn't show it when asked. It'd be the first guess, taking the path-separator and the case-sensitivity of the filenames in account. Does it leave a log-file? Haven't checked if you we're logging the exception, might have something useful.
Bastard Programmer from Hell
|
|
|
|
|
Eddy Vluggen wrote: but it has trouble finding the weapons
I bet the Linux filesystem is case sensitive... That might be the problem. I'll fix that in time for this evening's upload.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
You bet right
Bastard Programmer from Hell
|
|
|
|
|
Checked it out this morning. I like.
Observation
Simple visualization button, when clicked, changes the weapon back to the default AR-15. So, if I work with the 1911 in advanced visualization and carry it back to the main form, to work with it there it won't stay as the 1911 if I click the simple visualization button.
Question
Is it possible to select the weapon on the main form and then that becomes your weapon for the entire application until you select another weapon?
It's 4:14am here in New York and I am still asleep. Hope I made some sense.
Again, great stuff here John.
Just along for the ride.
"the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011) "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)
|
|
|
|
|
Slacker007 wrote: Observation
Simple visualization button, when clicked, changes the weapon back to the default AR-15. So, if I work with the 1911 in advanced visualization and carry it back to the main form, to work with it there it won't stay as the 1911 if I click the simple visualization button.
By design. Simple visualization affords you no options other than the selection.sequence of colors and forces the use of the default weapon template. It you want to use another template, you have to go advanced.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
John Simmons / outlaw programmer wrote: By design.
Roger.
I guess my question was more geared to giving the user the ability to see various weapons, in the user selected color pattern, on the same landscape image without having to jump between windows.
I will check it out more at home tonight and tomorrow.
Just along for the ride.
"the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011) "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)
|
|
|
|
|
Okay - I added a button on the advanced vis form that allows the user to select any of the available weapons as his default. That way, when he clicks the simple button, he'll get the current default, and that will also be the default weapon shown in the advanced form when he opens it (unless another one has already been chosen but not made the default).
It will be made available this evening.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
modified 5-Oct-11 8:28am.
|
|
|
|
|
I added two more camo patterns as well. It might be a day or two before the next update.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
John Simmons / outlaw programmer wrote: I added two more camo patterns as well. It might be a day or two before the next update.
I will go over the app some more this weekend when I have free time away from work.
Just along for the ride.
"the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011) "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)
|
|
|
|
|
Very cool, downloaded it, messed around with it and I like it
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
A new (better) version is now available.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
I was going to respond to your reply to the "It's Hard" thread in the lounge), but you deleted it.
Creating new weapons is goes something like this:
0) Weapon templates require two files - a mask file, and an overlay file.
1) Each of those files must 1500x720 pixels and 96 DPI.
2) Each of the images must be a PNG file with alpha channel transparency (you can create these with Photoshop, Paintshop Pro, paint.Net, Gimp, etc).
3) The filenames must be like this:
MyWeapon_mask.png
MyWeapon_overlay.png
("MyWeapon is the base filename, and BOTH files must be the same in this regard.)
4) The _mask file uses magenta as the mask color to indicate all areas on the combined image that are NOT the weapon. This is important. If you don't use magenta, CamoPicker won't make the correct areas transparent.
5) After you've created your files, you have to manually edit the CamoPickerData.xml file, and add a new item to the CamoObjects section. It should be fairly obvious how that goes if you use the existing entries as n example.
I don't use feathered edges on the overlay file because CamoPicker isn't doing alpha blending when combining the various files into a single image. Look at any of the existing overlay files to see what I mean.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
John Simmons / outlaw programmer wrote: Creating new weapons is goes something like this
Meaning that you could get these patterns on any other polygon? Like a t-shirt?
Bastard Programmer from Hell
|
|
|
|
|
I included the ford logo as an example that as long as you adhere to the specified rules, you can camo anything you want.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Thanks for the info on creating weapon templates.
John Simmons / outlaw programmer wrote: your reply to the "It's Hard" thread in the lounge), but you deleted it
If I recall, and my recall tends to be fuzzy these days, I deleted it and reposted it here in this thread where it belonged.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
If anyone is interested, you can get it here:
http://www.paddedwall.org/guns/downloads/camopicker.zip[^]
It's a 2.7MB download. Unzip it to a folder of your choice. The ZIP file contains:
CamoPicker.EXE
CamoPickerData.XML
...as well as four sub-folders:
Weapons (contains weapon templates)
Patterns (contains camo pattern templates)
ColorData (contains paint system data)
TestLandscapes (contains several landscape photos)
I'm curious to see how everyone does without any supporting documentation (which I'm currently working on), and to see if anything weird happens.
The About box contains several links. The only one that doesn't have anything meaningful is the "Download latest version" link at the top of the form (I'm working on the documentation and associated web at this time. The rest of them *should* go somewhere useful.
Known Weirdness:
0) When moving, rotating, or scaling the visualized weapon on the landscape, it flashes - BAD.
1) When rotating the visualized weapon, the rotation origin is always in the same place - the upper-left corner of the overlaid weapon image.
If anyone looking at this has a lot of experience with GDI+ in .Net, I'd be interested in hearing from you regarding the two weirdness items above.
Thanks for looking.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Link seems broken, results in a 404
Bastard Programmer from Hell
|
|
|
|
|
Try it again.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Looks cool on Win7, just visualized the camouflage of a weapon
Bastard Programmer from Hell
|
|
|
|
|
I love it when a plan comes together.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
New version available:
Download link is at the bottom of the page[^]
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
John Simmons / outlaw programmer wrote: 0) When moving, rotating, or scaling the visualized weapon on the landscape, it flashes - BAD.
Have you enabled double-buffering? There's a couple articles here on CP, but I'm loathe to reference any as I can't tell if they're actually any good.
Marc
|
|
|
|
|
The custom picture box itself is double buffered.
I actually know why the flashing is occurring (I'm redrawing the background image in order to clear the old overlaid image), but any attempt to address it caused MUCH bigger issues.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|